The following table indicates the way in which the various components of the microcontroller are af-
fected after a power-on reset occurs.
Item
Condition After RESET
Program Counter
Reset to zero
Interrupts
All interrupts will be disabled
WDT
Clear after reset, WDT begins counting
Timer/Event Counter
All Timer Counters will be turned off
Prescaler
The Timer Counter Prescaler will be cleared
Input/Output Ports
All I/O ports will be setup as inputs
Stack Pointer
Stack pointer will point to the top of the stack
The different kinds of reset 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 de-
scribes how each type of reset affects each of the microcontroller internal registers.
HT46R47/HT46C47
Register
Reset
(Power On)
RES or LVR
Reset
WDT Time-out
(Normal Operation)
WDT Time-out
(HALT)
MP
-
x x x x x x x
-
u u u u u u u
-
u u u u u u u
-
u u u u u u u
ACC
x x x x x x x x
u u u u u u u u
u u u u u u u u
u u u u u u u u
PCL
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
TBLP
x x x x x x x x
u u u u u u u u
u u u u u u u u
u u u u u u u u
TBLH
- -
x x x x x x
- -
u u u u u u
- -
u u u u u u
- -
u u u u u u
STATUS
- -
0 0 x x x x
- -
u u u u u u
- -
1 u u u u u
- -
1 1 u u u u
INTC
-
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
TMR
x x x x x x x x
x x x x x x x x
x x x x x x x x
u u u u u u u u
TMRC
0 0
-
0 1 0 0 0
0 0
-
0 1 0 0 0
0 0
-
0 1 0 0 0
u u
-
u u u u u
PA
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
u u u u u u u u
PAC
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
u u u u u u u u
PB
- - - -
1 1 1 1
- - - -
1 1 1 1
- - - -
1 1 1 1
- - - -
u u u u
PBC
- - - -
1 1 1 1
- - - -
1 1 1 1
- - - -
1 1 1 1
- - - -
u u u u
PD
- - - - - - -
1
- - - - - - -
1
- - - - - - -
1
- - - - - - -
u
PDC
- - - - - - -
1
- - - - - - -
1
- - - - - - -
1
- - - - - - -
u
PWM
x x x x x x x x
x x x x x x x x
x x x x x x x x
u u u u u u u u
ADRL
x
- - - - - - -
x
- - - - - - -
x
- - - - - - -
u
- - - - - - -
ADRH
x x x x x x x x
x x x x x x x x
x x x x x x x x
u u u u u u u u
ADCR
0 1 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 1 0 0 0 0 0 0
u u u u u u u u
ACSR
1
- - - - -
0 0
1
- - - - -
0 0
1
- - - - -
0 0
u
- - - - -
u u
²
u
²
stands for unchanged
²
x
²
stands for unknown
²-²
stands for unimplemented
68
A/D Type MCU
Содержание HT46R22
Страница 7: ...vi A D Type MCU...
Страница 9: ...viii A D Type MCU...
Страница 10: ...P a r t I Microcontroller Profile Part I Microcontroller Profile 1...
Страница 11: ...2 A D Type MCU...
Страница 90: ...P a r t I I Programming Language Part II Programming Language 81...
Страница 91: ...82 A D Type MCU...
Страница 97: ...88 A D Type MCU...
Страница 128: ...P a r t I I I Development Tools Part III Development Tools 119...
Страница 129: ...120 A D Type MCU...
Страница 140: ...Appendix Appendix 131...
Страница 141: ...132 A D Type MCU...
Страница 151: ...142 A D Type MCU...
Страница 152: ...A p p e n d i x B Package Information Appendix B Package Information 143 B...
Страница 161: ...A D Type MCU...
Страница 162: ...Amendments...