HT48E10 Holtek Semiconductor, HT48E10 Datasheet - Page 12

no-image

HT48E10

Manufacturer Part Number
HT48E10
Description
I/O Type 8-Bit MTP MCU
Manufacturer
Holtek Semiconductor
Datasheet
The registers status is summarized in the following table.
Note:
Timer/Event Counter
A timer/event counter (TMR) is implemented in the
microcontroller. The timer/event counter contains an
8-bit programmable count-up counter and the clock may
come from an external source or from the system clock.
Using an external clock input allows the user to count
external events, measure time internals or pulse widths,
or generate an accurate time base. While using the in-
ternal clock allows the user to generate an accurate time
base.
The timer/event counter can generate PFD signals by
using external or internal clock and the PFD frequency
is determine by the equation f
There are two registers related to the timer/event coun-
ter; TMR ([0DH]), TMRC ([0EH]). Two physical registers
are mapped to TMR location; writing to TMR makes the
starting value be placed in the timer/event counter
preload register and reading TMR retrieves the contents
of the timer/event counter. The TMRC is a timer/event
counter control register, which defines some options.
Rev. 1.50
MP0
MP1
BP
ACC
Program
Counter
TBLP
TBLH
WDTS
STATUS
INTC
TMR
TMRC
PA
PAC
PB
PBC
PC
PCC
EECR
Register
* stands for warm reset
u stands for unchanged
x stands for unknown
(Power-on)
0000 0000
0000 0111
1111 1111
1111 1111
1111 1111
1111 1111
00-0 1000
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
-xxx xxxx
-xxx xxxx
--00 xxxx
--00 -000
1000 ----
---- -111
---- -111
Reset
000H
INT
/[2 (256-N)].
(Normal Operation)
WDT Time-out
0000 0000
uuuu uuuu
uuuu uuuu
0000 0111
1111 1111
1111 1111
1111 1111
1111 1111
-uuu uuuu
-uuu uuuu
xxuu uuuu
00-0 1000
--1u uuuu
xxxx xxxx
--00 -000
1000 ----
---- -111
---- -111
000H
(Normal Operation)
12
RES Reset
0000 0000
uuuu uuuu
uuuu uuuu
1111 1111
1111 1111
1111 1111
1111 1111
-uuu uuuu
-uuu uuuu
xxuu uuuu
00-0 1000
0000 0111
--uu uuuu
xxxx xxxx
The TM0, TM1 bits define the operating mode. The
event count mode is used to count external events,
which means the clock source comes from an external
(TMR) pin. The timer mode functions as a normal timer
with the clock source coming from the f
pulse width measurement mode can be used to count the
high or low level duration of the external signal (TMR). The
counting is based on the f
In the event count or timer mode, once the timer/event
counter starts counting, it will count from the current
contents in the timer/event counter to FFH. Once over-
flow occurs, the counter is reloaded from the timer/event
counter preload register and generates the interrupt re-
quest flag (TF; bit 5 of the INTC) at the same time.
In the pulse width measurement mode with the TON and
TE bits equal to one, once the TMR has received a tran-
sient from low to high (or high to low if the TE bit is 0 ) it
will start counting until the TMR returns to the original
level and resets the TON. The measured result will re-
main in the timer/event counter even if the activated
transient occurs again. In other words, only one cycle
--00 -000
1000 ----
---- -111
---- -111
000H
RES Reset
0000 0000
uuuu uuuu
uuuu uuuu
0000 0111
1111 1111
1111 1111
1111 1111
1111 1111
xxuu uuuu
-uuu uuuu
-uuu uuuu
00-0 1000
--01 uuuu
xxxx xxxx
--00 -000
1000 ----
---- -111
---- -111
(HALT)
000H
INT
clock.
WDT Time-out
October 31, 2006
www.DataSheet4U.com
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
-uuu uuuu
-uuu uuuu
xxuu uuuu
uu-u uuuu
uuuu uuuu
--11 uuuu
--uu -uuu
HT48E10
uuuu ----
(HALT)*
---- -uuu
---- -uuu
INT
000H
clock. The

Related parts for HT48E10