
dsPIC30F4011/4012
DS70135G-page 160
2010 Microchip Technology Inc.
Table 21-5 lists the Reset conditions for the RCON
Register. Since the control bits within the RCON regis-
ter are R/W, the information in the table implies that all
the bits are negated prior to the action specified in the
condition column.
TABLE 21-5:
INITIALIZATION CONDITION FOR RCON REGISTER, CASE 1
lists
a
second
example
of
the
bit
conditions for the RCON register. In this case, it is not
assumed that the user has set/cleared specific bits
prior to action specified in the condition column.
TABLE 21-6:
INITIALIZATION CONDITION FOR RCON REGISTER, CASE 2
Condition
Program
Counter
TRAPR IOPUWR EXTR SWR WDTO IDLE
SLEEP POR BOR
Power-on Reset
0x000000
00
0
1
Brown-out Reset
0x000000
00
0
1
MCLR Reset during normal
operation
0x000000
00
1
0
Software Reset during
normal operation
0x000000
00
0
1
0
MCLR Reset during Sleep
0x000000
00
1
0
1
0
MCLR Reset during Idle
0x000000
00
1
0
1
0
WDT Time-out Reset
0x000000
00
0
1
0
WDT Wake-up
PC + 2
00
0
1
0
1
0
Interrupt Wake-up from
Sleep
PC + 2(1)
00
0
1
0
Clock Failure Trap
0x000004
00
0
Trap Reset
0x000000
10
0
Illegal Operation Trap
0x000000
01
0
Note 1:
When the wake-up is due to an enabled interrupt, the PC is loaded with the corresponding interrupt vector.
Condition
Program
Counter
TRAPR IOPUWR EXTR SWR WDTO
IDLE
SLEEP POR BOR
Power-on Reset
0x000000
00
0
1
Brown-out Reset
0x000000
uu
u
0
1
MCLR Reset during normal
operation
0x000000
uu
1
0
u
Software Reset during
normal operation
0x000000
uu
0
1
0
u
MCLR Reset during Sleep
0x000000
uu
1
u
0
1
u
MCLR Reset during Idle
0x000000
uu
1
u
0
1
0
u
WDT Time-out Reset
0x000000
uu
0
1
0
u
WDT Wake-up
PC + 2
uu
u
1
u
1
u
Interrupt Wake-up from
Sleep
PC + 2(1)
uu
u
1
u
Clock Failure Trap
0x000004
uu
u
Trap Reset
0x000000
1u
u
Illegal Operation Reset
0x000000
u1
u
Legend: u = unchanged
Note 1:
When the wake-up is due to an enabled interrupt, the PC is loaded with the corresponding interrupt vector.