EasyManua.ls Logo

Holtek HT46R47 - Timer Registers - TMR, TMRL;TMRH, TMR0 L;TMR0 H, TMR1 L;TMR1 H

Holtek HT46R47
162 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents