Timer Registers
-
TMR, TMRL/TMRH, TMR0L/TMR0H, TMR1L/TMR1H
The timer register is a special function register located in the special purpose Data Memory and is
the place where the actual timer value is stored. For the 8-bit timer, this register is known as TMR.
For the 16-bit timer, a pair of 8-bit registers are required to store the 16-bit timer value. In the case
of the HT46R23/HT46C23 devices, this register pair is known as TMRL and TMRH. In the case of
the HT46R24/HT46C24 device which has two 16-bit timers, the register pair for TMR0 is known as
TMR0L and TMR0H, while the register pair for TMR1 is known as TMR1L and TMR1H. The value
36
A/D Type MCU
T M R
T E
T i m e r / E v e n t C o u n t e r
M o d e C o n t r o l
1 6 - B i t
P r e l o a d R e g i s t e r
D a t a B u s
R e l o a d
O v e r f l o w
t o I n t e r r u p t
L o w B y t e
B u f f e r
T M 1 T M 0
T O N
H i g h B y t e
L o w B y t e
1 6 - B i t T i m e r / E v e n t C o u n t e r
P F D
2
¸
8 - s t a g e p r e s c a l e r
P S C 2 ~ P S C 0
( 1 / 1 ~ 1 / 1 2 8 )
f
S Y S
16-bit Timer/Event Counter Structure
-
HT46R23/HT46C23 TMR
T M R 0
( 4 8 - p i n p a c k a g e o n l y )
T 0 E
T i m e r / E v e n t C o u n t e r
M o d e C o n t r o l
1 6 - B i t
P r e l o a d R e g i s t e r
D a t a B u s
R e l o a d
O v e r f l o w
t o I n t e r r u p t
L o w B y t e
B u f f e r
T 0 M 1
T 0 M 0
T 0 O N
H i g h B y t e
L o w B y t e
1 6 - B i t T i m e r / E v e n t C o u n t e r
P F D
2
¸
8 - s t a g e p r e s c a l e r
T 0 P S C 2 ~ T 0 P S C 0
( 1 / 1 ~ 1 / 1 2 8 )
f
S Y S
16-bit Timer/Event Counter Structure
-
HT46R24/HT46C24 TMR0
T M R 1
T 1 E
T i m e r / E v e n t C o u n t e r
M o d e C o n t r o l
1 6 - B i t
P r e l o a d R e g i s t e r
D a t a B u s
R e l o a d
O v e r f l o w
t o I n t e r r u p t
L o w B y t e
B u f f e r
T 1 M 1
T 1 M 0
T 1 O N
H i g h B y t e
L o w B y t e
1 6 - B i t T i m e r / E v e n t C o u n t e r
P F D
2
¸
f
S Y S
/ 4
16-bit Timer/Event Counter Structure
-
HT46R24/HT46C24 TMR1
Summary of Contents for HT46R22
Page 7: ...vi A D Type MCU...
Page 9: ...viii A D Type MCU...
Page 10: ...P a r t I Microcontroller Profile Part I Microcontroller Profile 1...
Page 11: ...2 A D Type MCU...
Page 90: ...P a r t I I Programming Language Part II Programming Language 81...
Page 91: ...82 A D Type MCU...
Page 97: ...88 A D Type MCU...
Page 128: ...P a r t I I I Development Tools Part III Development Tools 119...
Page 129: ...120 A D Type MCU...
Page 140: ...Appendix Appendix 131...
Page 141: ...132 A D Type MCU...
Page 151: ...142 A D Type MCU...
Page 152: ...A p p e n d i x B Package Information Appendix B Package Information 143 B...
Page 161: ...A D Type MCU...
Page 162: ...Amendments...