Adc0809 code Items tagged with Adc0809 code
8051+ADC0809
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
;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
Posted by Ûž TPS Ûž on Sun Jul 13 2008, 11:16 pm