參數(shù)資料
型號(hào): HT82M9AEE
廠商: Holtek Semiconductor Inc.
英文描述: USB Mouse Encoder 8-Bit MCU with EEPROM
中文描述: USB鼠標(biāo)編碼器8位微控制器帶有EEPROM
文件頁數(shù): 15/48頁
文件大?。?/td> 330K
代理商: HT82M9AEE
HT82M9AEE/HT82M9AAE
Rev. 1.20
15
August 13, 2007
Bit No.
Label
Function
0~2, 5
Unused bit, read as 0
3
TE
Defines the TMR active edge of the timer/event counter
(0=active on low to high; 1=active on high to low)
4
TON
Enable/disable the timer counting (0=disable; 1=enable)
6
7
TM0
TM1
Defines the operating mode
01=Event count mode (external clock)
10=Timer mode (internal clock)
11=Pulse width measurement mode
00=Unused
TMRC (11H) Register
Timer/Event Counter
A timer/event counter (TMR) is implemented in the
microcontroller.
The timer/event counter contains a 16-bit programma-
ble count-up counter and the clock may come from an
external source or from the system clock divided by 4.
Using the internal clock source, there is only 1 reference
time-base for the timer/event counter. The internal clock
source is coming from f
SYS
/4. The external clock input
allows the user to count external events, measure time
intervals or pulse widths.
There are 3 registers related to the timer/event counter;
TMRH (0FH), TMRL (10H), TMRC (11H). Writing TMRL
will only put the written data to an internal lower-order
byte buffer (8 bits) and writing TMRH will transfer the
specified data and the contents of the lower-order byte
buffer to TMRH and TMRL preload registers, respec-
tively. The timer/event counter preload register is
changed by each writing TMRH operations. Reading
TMRH will latch the contents of TMRH and TMRL coun-
ters to the destination and the lower-order byte buffer,
respectively. Reading the TMRLwill read the contents of
the lower-order byte buffer. The TMRC is the
timer/event counter control register, which defines the
operating mode, counting enable or disable and active
edge.
The TM0, TM1 bits define the operating mode. The
event count mode is used to count external events,
whichmeansthattheclocksourcecomesfromanexter-
nal (TMR) pin. The timer mode functions as a normal
timer with the clock source coming from the f
SYS
/4
(Timer). The pulse width measurement mode can be
used to count the high or low level duration of the exter-
nal signal (TMR). The counting is based on the f
SYS
/4.
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 FFFFH. Once
overflow occurs, the counter is reloaded from the
timer/event counter preload register and generates the
interrupt request flag (TF; bit 6 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
measurement can be done. Until setting the TON, the
cycle measurement will function again as long as it re-
ceives further transient pulse. Note that, in this operat-
ing mode, the timer/event counter starts counting not
according to the logic level but according to the transient
edges. In the case of counter overflows, the counter is
reloaded from the timer/event counter preload register
and issues the interrupt request just like the other two
modes. To enable the counting operation, the timer ON
bit (TON; bit 4 of TMRC) should be set to 1. In the pulse
width measurement mode, the TON will be cleared au-
3
3
, "
( +
# $
"
#
(
,
5 ( -
"
)
@
(
,
# (
"
( -
"
,
#
@
% , C
(
%
'
) *
5 ( -
"
)
@
(
:
)
;
C ( - !
% %
-
Timer/Event Counter
相關(guān)PDF資料
PDF描述
HT82M9BAE USB Mouse Encoder 8-Bit MCU with EEPROM
HT82M9BEE USB Mouse Encoder 8-Bit MCU with EEPROM
HT82P604B DC-DC Converter
HT82V14 14-Bit CCD/CIS Analog Signal Processor(14位CCD/CIS模擬信號(hào)處理器)
HT82V16 16-Bit CCD/CIS Analog Signal Processor(16位CCD/CIS模擬信號(hào)處理器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT82M9BAE 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Mouse Encoder 8-Bit MCU with EEPROM
HT82M9BEE 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Mouse Encoder 8-Bit MCU with EEPROM
HT82P4352-16SOP 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Analog IC
HT82P604B 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:DC-DC Converter
HT82T20-20SOP 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Logic IC