Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot use port RA3 MCLR as Input on 12F1822
#1
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
 __CONFIG _CONFIG2, _WRT_OFF & _PLLEN_ON & _STVREN_ON & _BORV_LO & _LVP_OFF




In application:


Code:
__CONFIG(FOSC_INTOSC & WDTE_OFF & PWRTE_OFF & MCLRE_OFF & CP_OFF & CPD_OFF & BOREN_OFF & CLKOUTEN_OFF & IESO_ON & FCMEN_ON);

__CONFIG(WRT_OFF & PLLEN_ON & STVREN_ON & BORV_LO & LVP_OFF);



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?
Reply


Messages In This Thread
Cannot use port RA3 MCLR as Input on 12F1822 - by portafreak - 2016-02-27, 13:36:25

Forum Jump:


Users browsing this thread: 1 Guest(s)