Page 1 of 1

RA5 and NOT MCLR ??

Posted: Sat Mar 13, 2010 10:44 am
by ksor
I have a PIC16F628 with a pushbutton hoocked up to pin 4 (the RA5) and I want to use it for FREEZING and if it's hold down a little longer - RESET of a counter.

But the pin is not acting like "RA5" (an input port) but as MCLR - so the processor resets !

How can I change the pin to be a INPUT and not MCLR ?

Re: RA5 and NOT MCLR ??

Posted: Sat Mar 13, 2010 1:30 pm
by JAW
Hi Ksor.

To remove the MCLR function from the pin you need to turn it off in the advanced section of the chip config page.

e.g. Chip > Configure > Switch to expert config page.

Then disable the Master Clear Enable.

Regards

Jim

Re: RA5 and NOT MCLR ??

Posted: Sat Mar 13, 2010 3:33 pm
by ksor
Great - that's it - thx JAW !