- This topic has 1 reply, 2 voices, and was last updated 13 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › ADC 0804 interfacing with 89c51
Im unable to interface adc 0804 with 89c51….plz help….can sum1 upload a valid code.
Hi tushar.. Here I am giving u simple codes, Hope that it’ll b useful 2 u.
RD BIT P2.5
WR BIT P2.6
INTR BIT P2.7
MYDATA EQU P1
MOV P1,#0FFH
SETB INTR
BACK: CLR WR
SETB WR
HERE: JB INTR,HERE
CLR RD
MOV A,MYDATA
ACALL CONVERSION ; u have to make a conversion subroutine for hex to ascii conversion.
ACALL DISPLAY ; likewise … for display
SETB RD
SJMP BACK
Repl me whether it works or not.