I have a problem when using port A on a PIC16F884. Reading this port always returns a zero. I use a relay on the board to indicate the state. The input to port A is a 6 position DIP switch and a 3 position toggle switch. The toggle is on A0,A1 and the DIP switch is on the rest. They are all pulled up to +5V with 10k resistors. Any help would be greatly appreciated.
I have the PUMP_MODE, SPLX_DPLX, etc #define'd to individual port A pins in the following code.
It looks like answered my own question. I had to clear the ANSEL register (0x188) since it appears that the ADC setup functions of CCS neglect to do so.
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