Adc pic877a

Thread Starter

well wisher

Joined Nov 23, 2012
4
I programmed PIC 16F73,16F873,877 for ADC many times(interfaced LM35,voltage regulators).They worked well.Today I tried to program 877A,but not working.Not giving any output.I used the same code used for 877.From the datasheet I saw bit 6 of ADCON1 is used in 877A...Can anyone help me?
 

ErnieM

Joined Apr 24, 2011
8,377
No one can help given the limited information you supplied; "but not working" is not a description of the problem. Showing the schematic would be a plus. Showing how you set up the A2D is essential.

Bit 6 of ADCON1 is ADCS2, the top bit of the ADCS setting and is used to control the clock source for the converter. The 877A A/D Conversion Clock Select bits are 3 bits long, not 2 bits as in the non-A version.

I would suggest looking at the data sheet of the device you are actually using and program for that device rather then just copping code from another device.
 
Thread starter Similar threads Forum Replies Date
RRITESH KAKKAR Microcontrollers 4
Top