ADc conversion time pic16f877a

Status
Not open for further replies.

pci

Newbie level 1
Joined
Jun 24, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
i have pic16f877a . i use adc and i put 4Mhz external

i write in my this function only code ADc_Read();
so i need to know conversion time ??

thank you
 

You can poll for conversion.

after starting the conversion, check for the GO/DONE in the ADCON 0(2nd bit) register to clear...ie..you are start the conversion by setting ADCON0, 2......and it will clear automatically after the conversion...

i will write a sample code in ASM

bsf ADCON0,2
loop:
btfsc ADCON0,2
goto loop
goto readvalue

readvalue: converted values are available in the ADC registers...you can take it for processing.....
 

depend on the ADC clock source settings you can complete the ADC conversion in 16 or 200 uS. As faster is the ADC conversion than more noisy is the measured signal. In case you don't want 10 bits resolution you can make the conversion really fast
 

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…