Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top