HT48R70A-1_07 HOLTEK [Holtek Semiconductor Inc], HT48R70A-1_07 Datasheet - Page 14

no-image

HT48R70A-1_07

Manufacturer Part Number
HT48R70A-1_07
Description
I/O Type 8-Bit MCU
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
Timer/Event Counter
Two timer/event counters (TMR0, TMR1) are imple-
mented in the microcontroller. The Timer/Event Counter
0 contains an 16-bit programmable count-up counter
and the clock may come from an external source or from
the system clock divided by 4 or RTC.
The Timer/Event Counter 1 contains an 16-bit program-
mable count-up counter and the clock may come from
an external source or from the system clock divided by 4
or RTC.
Using the internal clock sources, there are 2 reference
time-bases for Timer/Event Counter 0. The internal
clock source can be selected as coming from f
always be optioned) or f
lator in the Int. RC+RTC mode) by options.
Using the internal clock sources, there are 2 reference
time-bases for Timer/Event Counter 1. The internal
clock source can be selected as coming from f
(can always be optioned) or f
tem oscillator in the Int. RC+RTC mode) by options.
Using external clock input allows the user to count exter-
nal events, measure time internals or pulse widths, or
generate an accurate time base. While using the inter-
nal clock allows the user to generate an accurate time
base.
Rev. 2.10
Bit No.
Bit No.
0~2
0~2
3
4
5
6
7
3
4
5
6
7
Label
T0ON
Label
T1ON
T0M0
T0M1
T1M0
T1M1
T0E
T1E
Unused bit, read as 0
To define the TMR0 active edge of Timer/Event Counter 0
(0=active on low to high; 1=active on high to low)
To enable or disable timer 0 counting (0=disabled; 1=enabled)
Unused bit, read as 0
To define the operating mode
01=Event count mode (external clock)
10=Timer mode (internal clock)
11=Pulse width measurement mode
00=Unused
Unused bit, read as 0
To define the TMR1 active edge of Timer/Event Counter 1
(0=active on low to high; 1=active on high to low)
To enable or disable timer 1 counting (0=disabled; 1=enabled)
Unused bit, read as 0
To define the operating mode
01=Event count mode (external clock)
10=Timer mode (internal clock)
11=Pulse width measurement mode
00=Unused
RTC
(enabled only system oscil-
RTC
(enable only the sys-
TMR0C (0EH) Register
TMR1C (11H) Register
TID
SYS
(can
/4
14
There are 3 registers related to the Timer/Event Counter
0;TMR0H ([0CH]), TMR0L ([0DH]), TMR0C ([0EH]). Writ-
ing TMR0L will only put the written data to an internal
lower-order byte buffer (8 bits) and writing TMR0H will
transfer the specified data and the contents of the
lower-order byte buffer to TMR0H and TMR0L preload
registers, respectively. The Timer/Event Counter 1 preload
register is changed by each writing TMR0H operations.
Reading TMR0H will latch the contents of TMR0H and
TMR0L counters to the destination and the lower-order
byte buffer, respectively. Reading the TMR0L will read the
contents of the lower-order byte buffer. The TMR0C is the
Timer/Event Counter 1 control register, which defines the
operating mode, counting enable or disable and active
edge.
The Timer/Event Counter 0 can generate PFD signal by
using external or internal clock and PFD frequency is
determine by the equation f
There are 3 registers related to Timer/Event Counter 1;
TMR1H (0FH), TMR1L (10H), TMR1C (11H). Writing
TMR1L will only put the written data to an internal
lower-order byte buffer (8 bits) and writing TMR1H will
transfer the specified data and the contents of the
lower-order byte buffer to TMR1H and TMR1L preload
registers, respectively. The Timer/Event Counter 1
Function
Function
HT48R70A-1/HT48C70-1
INT
/[2 (65536-N)].
August 7, 2007

Related parts for HT48R70A-1_07