HT45R34 Holtek Semiconductor, HT45R34 Datasheet - Page 13

no-image

HT45R34

Manufacturer Part Number
HT45R34
Description
C/R to F Type 8-Bit OTP MCU
Manufacturer
Holtek Semiconductor
Datasheet
www.DataSheet4U.com
Note:
Timer/Event Counter
An 8-bit timer/event counter, known as Timer/Event
Counter, is implemented in the microcontroller. The
Timer/Event Counter contains an 8-bit programmable
count-up counter whose clock may come from an exter-
nal source or from the system clock. Using the external
clock input allows the user to count external events, mea-
sure time internals or pulse widths, or generate an accu-
rate time base. Using the internal clock allows the user to
generate an accurate time base.
Rev. 1.20
TMRC
PA
PAC
ASCR
INTC1
TMRAH
TMRAL
RCOCCR
TMRBH
TMRBL
RCOCR
Bit No.
Register
0~2
3
4
5
6
7
* means warm reset
u means unchanged
x means unknown
TPSC0~TPSC2
Label
TON
TM0
TM1
(Power-on)
TE
1111 1111
1111 1111
00-0 1000
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
---1 1111
0000 1---
1xxx --00
---0 ---0
Reset
To define the prescaler stages, TPSC2, TPSC1, TPSC0=
000: f
001: f
010: f
011: f
100: f
101: f
110: f
111: f
To define the TMR active edge of the timer/event counter
(0=active on low to high; 1=active on high to low)
To enable or disable timer counting (0=disabled; 1=enabled)
Unused bit, read as 0
To define the operating mode, TM1, TM0=
01=Event count mode (external clock)
10=Timer mode (internal clock)
11=Pulse width measurement mode
00=Unused
(Normal Operation)
INT
INT
INT
INT
INT
INT
INT
INT
WDT Time-out
1111 1111
1111 1111
=f
=f
=f
=f
=f
=f
=f
=f
00-0 1000
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
1xxx --00
---1 1111
0000 1---
---0 ---0
SYS
SYS
SYS
SYS
SYS
SYS
SYS
SYS
/2
/4
/8
/16
/32
/64
/128
TMRC (0EH) Register
13
(Normal Operation)
There are 2 registers related to the Timer/Event Coun-
ter, TMR and TMRC. Two physical registers are mapped
to the TMR location; writing to TMR places the start
value of the Timer/Event Counter in a preload register
while reading TMR retrieves the contents of the
Timer/Event Counter. The TMRC is a timer/event coun-
ter control register, which defines the timer operating
conditions.
RES Reset
1111 1111
1111 1111
00-0 1000
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
---1 1111
0000 1---
1xxx --00
---0 ---0
Function
RES Reset
1111 1111
1111 1111
00-0 1000
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
1xxx --00
---1 1111
0000 1---
---0 ---0
(HALT)
WDT Time-out
October 15, 2007
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
uuuu uuuu
uu-u uuuu
uuuu --uu
HT45R34
---u uuuu
uuuu u---
(HALT)*
---u ---u

Related parts for HT45R34