Sampling rate - PIC16F877
Hi,
Can anybody please tell me how i can modify the code, adcx.bas as found at: http://www.melabs.com/resources/samples/x1/pbp/adcx.bas
to take samples every 10mS. Would it be enoght if i just change the PAUSE 10 command in the mainloop to PAUSE 100. The comment in the code says that pausing for 10 is doing the conversion about 10 times a second. If this is equvalent to taking 10 samples a second can i take 100 samples a second by pausing for 100? Or am i thinking wrong?
Thanks in advance,
Regards,
Tom.
Sampling rate - PIC16F877
well, the problem is i want still sample some of the signals every 10mS and one of the signals every 20mS so if i put 20mS in the mainloop this will result in sampling the signals every 20mS (all of them).
Where can i put the 20mS in the program to sample only one of the signals every 20mS and the rest in 10mS (the program still need to start from mainloop)?
This code is just an exaple i'm refering, in my project i'm reading 6 analog signals connected to PORTA (to the A/D channels) so out of these 1 of them has to be sampled every 20mS.
I turn off the Watchdog timer because i wanted to use the @ SLEEP command to put the PIC in sleep mode. So will TMR0 still work while the PIC is in SLEEP mode? If it does, do you have any example i can look at which shows how to use TMR0 with prescaler which time it to 20mS (Since Watchdog timer and TMR0 shares the prescaler, is it possible to use the prescaler only for TMR0?)
Thanks,
Tom.
Sampling rate - PIC16F877
hey guys,
i am new here and i am in search of actual rates bcoz i could not find it any where.
can any one help?????
thanks in advance!!!!