欢迎访问ic37.com |
会员登录 免费注册
发布采购

HT46R47(18SOP) 参数 Datasheet PDF下载

HT46R47(18SOP)图片预览
型号: HT46R47(18SOP)
PDF下载: 下载PDF文件 查看货源
内容描述: [Microcontroller, 8-Bit, UVPROM, 8MHz, CMOS, PDSO18]
分类和应用: 可编程只读存储器微控制器光电二极管
文件页数/大小: 75 页 / 613 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT46R47(18SOP)的Datasheet PDF文件第17页浏览型号HT46R47(18SOP)的Datasheet PDF文件第18页浏览型号HT46R47(18SOP)的Datasheet PDF文件第19页浏览型号HT46R47(18SOP)的Datasheet PDF文件第20页浏览型号HT46R47(18SOP)的Datasheet PDF文件第22页浏览型号HT46R47(18SOP)的Datasheet PDF文件第23页浏览型号HT46R47(18SOP)的Datasheet PDF文件第24页浏览型号HT46R47(18SOP)的Datasheet PDF文件第25页  
HT46R46/C46/R47/C47/R48/R49  
Timer Register - TMR  
Timer Control Register - TMRC  
The TMR register is an 8-bit special function register lo-  
cation within the special purpose Data Memory where  
the actual timer value is stored. The value in the timer  
registers increases by one each time an internal clock  
pulse is received or an external transition occurs on the  
PA4/TMR pin. The timer will count from the initial value  
loaded by the preload register to the full count value of  
FFH at which point the timer overflows and an internal  
interrupt signal generated. The timer value will then be  
reset with the initial preload register value and continue  
counting. For a maximum full range count of 00H to FFH  
the preload register must first be cleared to 00H. It  
should be noted that after power-on the preload register  
will be in an unknown condition. Note that if the  
Timer/Event Counter is not running and data is written to  
its preload register, this data will be immediately written  
into the actual counter. However, if the counter is en-  
abled and counting, any new data written into the  
preload register during this period will remain in the  
preload register and will only be written into the actual  
counter the next time an overflow occurs.  
The flexible features of the Holtek microcontroller  
Timer/Event Counters enable them to operate in three  
different modes, the options of which are determined by  
the contents of the Timer Control Register TMRC. To-  
gether with the TMR register, these two registers control  
the full operation of the Timer/Event Counters. Before  
the timer can be used, it is essential that the TMRC reg-  
ister is fully programmed with the right data to ensure its  
correct operation, a process that is normally carried out  
during program initialisation.  
To choose which of the three modes the timer is to oper-  
ate in, the timer mode, the event counting mode or the  
pulse width measurement mode, bits TM0 and TM1  
must be set to the required logic levels. The timer-on bit  
TON or bit 4 of the TMRC register provides the basic  
on/off control of the timer, setting the bit high allows the  
counter to run, clearing the bit stops the counter. Bits  
0~2 of the TMRC register determine the division ratio of  
the input clock prescaler. The prescaler bit settings have  
no effect if an external clock source is used. If the timer  
is in the event count or pulse width measurement mode  
the active transition edge level type is selected by the  
logic level of the TE or bit 3 of the TMRC register.  
b
7
b
0
T
M
1
T
M
0
T
O
N
T
E
P
S
C
2
P
S
C
1
P
S
C
0
T
M
R
C
R
e
g
i
s
t
e
r
T
i
m
e
r
P
r
e
s
c
a
l
e
r
R
a
t
e
S
e
l
e
c
t
P
S
C
2
P
S
C
0
T
i
m
e
r
1
2
4
8
1
3
6
1
R
a
t
e
P
S
C
1
0
0
0
0
1
1
1
1
0
1
0
1
0
1
0
1
1
1
1
1
1
1
1
1
:
:
:
:
:
:
:
:
0
0
1
1
0
0
1
1
6
2
4
2
8
E
1
0
v
e
n
t
C
o
u
n
t
e
r
A
c
t
i
v
e
E
d
g
e
S
e
l
e
c
t
:
c
o
u
n
t
o
n
f
a
l
l
i
n
g
e
d
g
e
:
c
o
u
n
t
o
n
r
i
s
i
n
g
e
d
g
e
P
u
l
s
e
W
i
d
t
h
M
e
a
s
u
r
e
m
e
n
t
A
c
t
i
v
e
E
o
d
g
e
S
e
l
e
c
t
1
0
:
:
s
s
t
a
a
r
t
t
c
o
u
n
t
i
n
g
o
n
r
i
s
i
n
g
e
d
g
e
,
s
t
p
o
n
f
a
l
l
i
i
n
g
e
d
g
e
e
t
r
c
o
u
n
t
i
n
g
o
n
f
a
l
l
i
n
g
e
d
g
e
,
s
t
o
p
o
n
r
i
s
n
g
e
d
g
T
i
m
e
r
/
E
v
e
n
t
C
o
u
n
t
e
r
C
o
u
n
t
i
n
g
E
n
a
b
l
e
1
0
:
:
e
d
n
i
a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