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

RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm