problem using ADC as an interrupt for 8051

Status
Not open for further replies.

LM317

Newbie level 4
Joined
Nov 7, 2009
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
istanbul
Activity points
1,308
8051 Interrupts

Hi,

I try to use ADC with interrupt. there are two points that i couldn't understand. these are;

-on an example ASM code, C Carry Flag setb (C=1) and clear it. i think we use C as a one bit ACC. but why we need to do this.

-same ASM code setb RD and clear it too. what is RD and why we do this.


thanks for helping me...
 

8051 Interrupts

which ADC you have used ? I cant understand "C" !

RD means "output enable " some times written as "OE"

To get data from ADC to you have to set RD to 1 that is RD = 1 and then to clear it so that ADC could start coverting next analogue signal change ,

After the signal is converted an interrupt occures at INTR or EOC pins (end of conversion ; for ADC0808)

when you recieve interrupt that means data has been converted , get it by setting RD = 1 , save it to some char. variabe

initially RD should be set to zero . i.e RD = 0

look at the schematic for detail (as interrupt )

**broken link removed**
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…