HT95AXXX
Rev. 1.20
16
May 26, 2004
By examining the processor status flags PDF and TO,
the software program can distinguish between the dif-
ferent chip resets .
TO PDF
Reset Condition
0
0
Power on reset
u
u
External reset during Normal mode or
Green mode
0
1
External reset during Sleep mode or Idle
mode
1
u
WDT time-out during Normal mode or
Green mode
1
1
WDT time-out during Sleep mode or Idle
mode
Note: u means unchanged
The functional units chip reset status are shown below:
Program Counter
000H
Interrupt
Disabled
Prescaler
Cleared
WDT
Cleared
After a master reset,
WDT begins counting.
(If WDT function is enabled
by mask option)
Timer/EventCounter0/1 Off
Input/output Port
Input mode
Stack Pointer
Pointstothetopofthestack
When the reset conditions occurred, some registers may be changed or unchanged. (HT95A400/40P)
Register
Addr.
Reset Conditions
Power On
RES Pin
RES Pin
(Sleep/Idle)
WDT
WDT
(Sleep/Idle)
IAR0
00H
xxxx xxxx
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
MP0
01H
xxxx xxxx
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
IAR1
02H
xxxx xxxx
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
MP1
03H
xxxx xxxx
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
BP
04H
--00 0000
--00 0000
--00 0000
--00 0000
--uu uuuu
ACC
05H
xxxx xxxx
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
PCL
06H
0000H
0000H
0000H
0000H
0000H
TBLP
07H
xxxx xxxx
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
TBLH
08H
xxxx xxxx
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
WDTS
09H
0000 0111
0000 0111
0000 0111
0000 0111
uuuu uuuu
STATUS
0AH
--00 xxxx
--uu uuuu
--01 uuuu
--1u uuuu
--11 uuuu
INTC0
0BH
-000 0000
-000 0000
-000 0000
-000 0000
-uuu uuuu
TMR0H
0CH
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
uuuu uuuu
TMR0L
0DH
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
uuuu uuuu
TMR0C
0EH
00-0 1---
00-0 1---
00-0 1---
00-0 1---
uu-u u---
TMR1H
0FH
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
uuuu uuuu
TMR1L
10H
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
uuuu uuuu
TMR1C
11H
00-0 1---
00-0 1---
00-0 1---
00-0 1---
uu-u u---
PA
12H
1111 1111
1111 1111
1111 1111
1111 1111
uuuu uuuu
PAC
13H
1111 1111
1111 1111
1111 1111
1111 1111
uuuu uuuu
PB
14H
1111 1111
1111 1111
1111 1111
1111 1111
uuuu uuuu
PBC
15H
1111 1111
1111 1111
1111 1111
1111 1111
uuuu uuuu
DialerIO
16H
111x xxxx
111x xxxx
111x xxxx
111x xxxx
uuuu uuuu
PD
18H
1111 1111
1111 1111
1111 1111
1111 1111
uuuu uuuu
PDC
19H
1111 1111
1111 1111
1111 1111
1111 1111
uuuu uuuu
PE
1AH
1111 1111
1111 1111
1111 1111
1111 1111
uuuu uuuu
PEC
1BH
1111 1111
1111 1111
1111 1111
1111 1111
uuuu uuuu
INTC1
1EH
-000 -000
-000 -000
-000 -000
-000 -000
-uuu -uuu
TBHP
1FH
--xx xxxx
--uu uuuu
--uu uuuu
--uu uuuu
--uu uuuu