I need to add offset to my AC signals entering to adc of pic16f877A.
I should check the most -ve value of the analog signal then add it as offset.
For example if the signal varies from 2.5 to -2.5 so my program should add 2.5 to the signal before it enters to adc.
Another question, what is the range of adc in pic16f877A?
And if my signal is more than this range how can I minimize it?!
Thanks
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Wed Oct 27, 2010 12:07 pm
I am not intimately familiar with the 16F877A, but every PIC I have worked with has a max ADC range of 0V to VCC. So if you have an AC input that goes below GND you will have to either do an analog offset before the signal gets to the ADC, or or run the PIC 0V supply rail below ground.
The best bet is to read the datasheet for your PIC. _________________ The search for better is endless. Instead simply find very good and get the job done.
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