Reset Initial Conditions
The different types of reset described affect the reset flags in different ways. These flags, known
as PDF and TO are located in the status register and are controlled by various microcontroller
operations, such as the SLEEP or IDLE Mode function or Watchdog Timer. The reset flags are
shown in the table:
TO
0
u
1
1
The following table indicates the way in which the various components of the microcontroller are
affected after a power-on reset occurs.
Program Counter
Interrupts
WDT, Time Bases
Timer Modules
Input/Output Ports
Stack Pointer
The different kinds of resets all affect the internal registers of the microcontroller in different ways.
To ensure reliable continuation of normal program execution after a reset occurs, it is important to
know what condition the microcontroller is in after a particular reset occurs. The following table
describes how each type of reset affects each of the microcontroller internal registers.
Register
Program Counter
●
●
IAR0
●
●
MP0
●
●
IAR1
●
●
MP1L
●
●
MP1H
●
●
ACC
●
●
PCL
●
●
TBLP
●
●
TBLH
●
●
●
TBHP
●
STATUS
●
●
PBP
IAR2
●
●
MP2L
●
●
MP2H
●
●
RSTFC
●
●
Rev. 1.11
BS66F340C/BS66F350C/BS66F360C
PDF
0
Power-on reset
u
LVR reset during FAST or SLOW Mode operation
u
WDT time-out reset during FAST or SLOW Mode operation
1
WDT time-out reset during IDLE or SLEEP Mode operation
Item
Reset to zero
All interrupts will be disabled
Clear after reset, WDT begins counting
Timer Modules will be turned off
I/O ports will be setup as inputs
Stack Pointer will point to the top of the stack
Power On Reset
LVR Reset
●
0000H
0000H
●
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
●
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
●
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
●
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
●
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
●
x x x x x x x x
u u u u u u u u
●
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
●
x x x x x x x x
u u u u u u u u
●
x x x x x x x x
u u u u u u u u
- - - - x x x x
- - - - u u u u
- - - x x x x x
- - - u u u u u
●
- - x x x x x x
- - u u u u u u
●
x x 0 0 x x x x
u u u u u u u u
●
- - - - - - - 0
- - - - - - - 0
●
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
●
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
●
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
●
- - - - 0 x 0 0
- - - - u u u u
90
Touch A/D Flash MCU
Reset Conditions
"u" stands for unchanged
Condition after Reset
WDT Time-out
(Normal Operation)
0000H
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
u u u u u u u u
0 0 0 0 0 0 0 0
u u u u u u u u
u u u u u u u u
- - - - u u u u
- - - u u u u u
- - u u u u u u
u u 1 u u u u u
- - - - - - - 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
- - - - u u u u
WDT Time-out
(IDLE/SLEEP)
0000H
u u u u u u u u
u u u u u u u u
u u u u u u u u
u u u u u u u u
u u u u u u u u
u u u u u u u u
0 0 0 0 0 0 0 0
u u u u u u u u
u u u u u u u u
- - - - u u u u
- - - u u u u u
- - u u u u u u
u u 11 u u u u
- - - - - - - u
u u u u u u u u
u u u u u u u u
u u u u u u u u
- - - - u u u u
November 09, 2023
Need help?
Do you have a question about the BS66F340C and is the answer not in the manual?