Discussion in "8051 Discussion Forum" started by    Ûž TPS Ûž    Jul 13, 2008.
Sun Jul 13 2008, 11:16 pm
#1
sample code and circuit
;THIS DEMO PROGRAM READS DATA FROM ADC TO MCU AND
; OUTPUT WILL BE SHOWN IN P1 AS BINARY VALUE
;P0.0 = A0 P0.1 = A1 P0.2 = A2
;P3.2 = EOC
;P3.3 = START
;P3.6 = ALE
;P3.7 = OE
;DATA = PORT 2
MOV P0,#00H
MOV P1,#0FFH
MOV P2,#00H
MOV P3,#04H.............................
...................... please check attachment
Tags ADC0809 codeinterfacing ADC0809 with 8051assembly code for ADC0809 8051
Mon Jul 14 2008, 08:55 am
#2
if this code really works ?
because i had experience interfacing 8051 and ADC before .
We nid to wait for the ADC to convert analog input to hex before it transfer to 8051
8051 is usually much faster than ADC . hence , we nid to check the busy flag of ADc while it was converting data
Mon Jul 14 2008, 08:47 pm
#3
nice TPS

create drivers or say API kind of subroutines so people can easy use them

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Minniemus
Sun May 19 2024, 07:39 am
Andyhet
Sat May 18 2024, 07:28 am
BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am
Patricknoind
Fri May 17 2024, 09:53 am
JeremyCycle
Fri May 17 2024, 09:46 am
FrabSeby
Thu May 16 2024, 07:31 pm