Delay between set_adc_channel ( 0 ); and read_adc()
Posted: Tue Jun 21, 2011 2:06 am
What is the minimum delay between
Code:
set_adc_channel(0)
and
Code:
read_adc()
How is this delay calculated?
I have some app with 18f2550 and 18f8527.
I do believe it is a clock dependent.
For example : 8527 - clock 32Mhz - i have delay 400us .. if i put less than this value, the value is not entirely read,
I use this adc for touch screen and below 400us it doesn't get the right pixel pressed, when put 400 .. the right pixel is then selected/pressed.
Today i tried a simulation in Proteus with 2550 @48mhz, and delay_us 40 and at messages log in Isis i got adc time too small.
Long answer is to read the ADC section in the datasheet for the PIC you're using. Evrerything you need to know is clearly spelled out for you including various timings relative to which adc clock you choose.
Your query doesn't have enough info for anyone to properly answer.
However you've setup the adc , it needs 400us...not the fastest it can be though.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum