HT48R70A-1 Holtek Semiconductor Inc, HT48R70A-1 Datasheet - Page 16

no-image

HT48R70A-1

Manufacturer Part Number
HT48R70A-1
Description
I/O Type 8-Bit MCU
Manufacturer
Holtek Semiconductor Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT48R70A-1
Manufacturer:
HOLTEK
Quantity:
9 700
Part Number:
HT48R70A-1
Quantity:
3 440
Part Number:
HT48R70A-1
Manufacturer:
HOLTEK/合泰
Quantity:
20 000
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. 1.60
T0E
T0ON
T0M0
T0M1
T1E
T1ON
T1M0
T1M1
Label (TMR0C)
Label (TMR1C)
Bits
Bits
0~2
0~2
RTC
3
4
5
6
7
3
4
5
6
7
(enabled only system oscil-
RTC
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
(enable only the sys-
TID
TMR0C Register
TMR1C Register
SYS
(can
/4
16
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.
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
preload register is changed by each writing TMR1H op-
erations. Reading TMR1H will latch the contents of
TMR1H and TMR1L counters to the destination and the
Function
Function
HT48R70A-1/HT48C70-1
June 9, 2004

Related parts for HT48R70A-1