I'm running a PIC16F722. Programming in C, via the Hi-tech compiler.
However, the voltage on all the PORTC pins is between 1.2v and 1.4v. What's going on? Shouldn't they be at 0v potential? I'm powering the PIC from 5v. There is nothing connected to the outputs.
Thanks
Andrew
Code:
#include <htc.h>
void init(void)
{
TRISC = 0b00000000;
TRISA = 0b11110000;
}
void main(void) {
init ();
while (1) {
PORTC=0;
_delay (190000);
}
}
However, the voltage on all the PORTC pins is between 1.2v and 1.4v. What's going on? Shouldn't they be at 0v potential? I'm powering the PIC from 5v. There is nothing connected to the outputs.
Thanks
Andrew