GPIO 0 on PIC12F629

Status
Not open for further replies.

2camjohn

Member
I have just started using the PIC12F629.

Everything I have done so far works fine except GP0 (pin 7)

I have wired it up with a pull up resistor but it always reads 0 in software no matter what.

It is not a wiring problem (voltage is normally at 5 and goes to 0 when button is pressed) and GP0 has been set as an input.

Are there any other issues associated with this pin on the 12F629 ?



I have looked through the datasheet but found nothing so far.


Many thanks for your help.

John
 
Are you correctly setting the ANSEL and CMCON registers?, see example 3-1 on page 21 of the datasheet.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…