We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am interfacing ADc0809 with 8051 but dont know how to monitor the EOC of ADC so can anybody help me .... i want to monitor EOC using assembly coding so how can i do it...?
Thanks for your reply... but will you please give me the sample code to just monitor EOC...
if (EOC) EOC_Detected();
What do you mean "the" sample code - as if there is only one possible way to code it in the whole wide world?!
For a start, do you want it interrupt-driven, or polled?
As I said, any sample code that monitors any digital input could be used
thanks again... but i have shorted the eoc and soc pin in adc..and i am giving the data through the hyperterminal. my circuit consists of max232,8051,dac,adc and back to pc through mc. now when i pree E8 in the hyperterminal i am getting as E9 back(recieved)....i am not getting where is the fault.. i have checked the output of dac it is correct..could you help me in this regard...
What do you mean by, "press E8"?
Do you mean you are sending "E8" to the MCU, it then interprets that as a hex value, and sends it to the DAC; the DAC output is connected to the ADC input; the MCU reads the result from the ADC, and sends it back to the PC - here you see "E9" on hypoterminal?
If so, then you have just 1 LSB error there; ie, 1 part in 256 - or 0.4% error.
Remember that you're dealing with an analogue signal here - so 0.4% error is actually pretty good!!
I think that my way of asking question was wrong... sorry for that....I just wanted to know whether the EOC pulse goes to high or goes from high to low after end of conversion.... and if it goes from low to high or high to low then what is the pulse width of EOC... please reply me your reply is the turning point of my project....
I just wanted to know whether the EOC pulse goes to high or goes from high to low after end of conversion.... and if it goes from low to high or high to low then what is the pulse width of EOC
this is a support forum for Keil, not a "datasheet reading service"
Erik
As per datasheet of ADC0809 the EOC pulse goes low till conversion completes. After conversion it goes to high level.
So the min & max time for which EOC pulse is low, given in datasheet.
LOOP4:MOV A,P0 ; MONITOR EOC ANL A,#80H JZ LOOP4 above mentioned is the code which i used to monitor the EOC pulse which i am checking at port p0.7,but the problem is that when i run the program it is getting struck can you please sort the error in my code...