Page 1 of 1

MCLR as input?

Posted: Tue May 31, 2022 8:32 am
by jan.didden
I want to use the MCLR enable pin on the PIC16F15355 as input pin (Port E pin 3).
I set the appropriate config bit in the Build|Project Options.
But depending on the signal at that pin, the controller still resets unexpectedly.
Is there anything else I need to do to disable the MCLR and enable the input?

Jan Didden

Re: MCLR as input?

Posted: Tue May 31, 2022 9:17 am
by jan.didden
Whooa! This has been resolved. There is a config bit for LVP (Low Voltage Programming), and if this is enabled, it overrides the setting for MCLR/E3 input. Set LVP to disable, set MCLR to '.. is input pin' and all works as intended.

Jan Didden

Re: MCLR as input?

Posted: Tue May 31, 2022 9:21 pm
by BenR
Hi Jan, Glad you got it working and thanks for letting us know.

For me LVP is a setting to always avoid if you can, it can essentially put the running chip into none running program mode if left floating and worst case has the potental to erase/reprogram the device given the correct sequence of inputs or noise on the programming pins.