Thota Suresh Avionics
Member level 2
- Joined
- Jul 15, 2013
- Messages
- 45
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 8
- Activity points
- 345
Hi,
I am Using PIC30F 5011 micro controller to handle different types of resets like POR and BOR and MCLR i am using terminal program.every time i am Power on the micro controller without pressing MCLR reset,
in hyper terminal showing results MCLR reset occurred.
my question is every time power up i expect POR and BOR only to flag but why does MCLR(EXTR) get flagged?
- - - Updated - - -
Hardware Information:
Vcc is connected to Pull up resistor (4.7 k)
MCLR is connected to External reset Switch with Pull down resistor (47k)
I am Using PIC30F 5011 micro controller to handle different types of resets like POR and BOR and MCLR i am using terminal program.every time i am Power on the micro controller without pressing MCLR reset,
in hyper terminal showing results MCLR reset occurred.
my question is every time power up i expect POR and BOR only to flag but why does MCLR(EXTR) get flagged?
Code:
while(1)
{
if(RCONbits.POR)
{
printf("POR Reset occurred");
RCONbits.POR = 0;
RCONbits.BOR = 0;
}
if (RCONbits.BOR)
{
printf("BOR Reset occurred");
RCONbits.BOR = 0;
}
if(RCONbits.EXTR)
{
printf("MCLR Reset occurred");
RCONbits.EXTR = 0;
}
}
- - - Updated - - -
Hardware Information:
Vcc is connected to Pull up resistor (4.7 k)
MCLR is connected to External reset Switch with Pull down resistor (47k)