Cannot use port RA3 MCLR as Input on 12F1822 - Printable Version +- ds30 Loader free edition forums (https://picbootloader.com/forum) +-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3) +--- Forum: 8-bit firmwares (https://picbootloader.com/forum/forumdisplay.php?fid=7) +--- Thread: Cannot use port RA3 MCLR as Input on 12F1822 (/showthread.php?tid=21843) |
Cannot use port RA3 MCLR as Input on 12F1822 - portafreak - 2016-02-27 I cannot get port RA3 to work as input when I change the configuration bits in my application on a 12F1822. The configuration bits are the following: In bootloader: Code: __CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_ON & _FCMEN_ON In application: Code: __CONFIG(FOSC_INTOSC & WDTE_OFF & PWRTE_OFF & MCLRE_OFF & CP_OFF & CPD_OFF & BOREN_OFF & CLKOUTEN_OFF & IESO_ON & FCMEN_ON); As you can see both LVP and MCLRE are off in my application code so RA3 should work as input, but the pic reset as soon as GND is applied. Am I missing something? RE: Cannot use port RA3 MCLR as Input on 12F1822 - Mr_Booo - 2016-02-28 Configuration bits are set once and once only when the pic is programmed by the pickit or whatever ICSP you use. That is why you have to set it up in the boot loader the way you want to use it in your application. The boot loader can not chance the configuration bits, neither can any application. Only an ICSP can. There is also no need to set configuration bits in you application when you are using a bootloader. RE: Cannot use port RA3 MCLR as Input on 12F1822 - portafreak - 2016-02-28 Thanks for your answer, I will modify my bootloader with MCLRE off. RE: Cannot use port RA3 MCLR as Input on 12F1822 - Mikael Gustavsson - 2016-03-02 It is always recommended to copy/move the appliation config bits to the boot loader. |