PDA

View Full Version : A/D sampling time and ...



yasser hassani
- 30th April 2004, 07:41
Hi anyone

1-I want to know how I can determine sampling time for pic16f877’s onchip A/D with picbasic pro?

2-How I can read data from on chip A/D in pic16f877 and save them to micro’s RAM with pic basic pro compiler?
Any suggestions would be helpful.

3-I want to use 8 bits A/D instead of 10 bits in pic16f877.
I use from pic basic pro as compiler.
Thank you very much.

Melanie
- 30th April 2004, 08:16
The average sampling time is 50uS although this will depend on the capacitance of the external circuitry you are sampling. I refer you to the ADC chapter in your PIC's Datasheet.

Also please do a search on this forum - there are plenty of examples already posted (including a complete program to read six ADC's and Datalogging the results, that I posted less than two weeks ago). Reading about the ADCIN command in your PBP manual is also a good place to start...