Discussion in "8051 Discussion Forum" started by    ۞ TPS ۞    Jul 13, 2008.
Sun Jul 13 2008, 05:46 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, 03:25 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, 03:17 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

Conversation

No messages yet.

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 146, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123