參數(shù)資料
型號(hào): HT82K96E
廠商: Holtek Semiconductor Inc.
英文描述: 8-Bit USB Multimedia Keyboard Encoder OTP MCU
中文描述: 8位USB多媒體鍵盤編碼器檢察官辦公室單片機(jī)
文件頁數(shù): 16/46頁
文件大?。?/td> 325K
代理商: HT82K96E
HT82K96E
Rev. 1.70
16
April 22, 2004
There are 2 registers related to the Timer/Event Counter
0; TMR0 ([0DH]), TMR0C ([0EH]). Two physical regis-
ters are mapped to TMR0 location; writing TMR0 makes
the starting value be placed in the Timer/Event Counter
0 preload register and reading TMR0 gets the contents
of the Timer/Event Counter 0. The TMR0C is a
timer/event counter control register, which defines some
options.
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
lower-order byte buffer, respectively. Reading the
TMR1L will read the contents of the lower-order byte
buffer. The TMR1C is the Timer/Event Counter 1 control
register,whichdefinestheoperatingmode,countingen-
able or disable and active edge.
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
(TMR0/TMR1) pin. The timer mode functions as a nor-
mal timer with the clock source coming from the f
SYS
/4
(Timer0/Timer1). The pulse width measurement mode
can be used to count the high or low level duration of the
externalsignal(TMR0/TMR1).Thecountingisbasedon
the f
SYS
/4 (Timer0/Timer1).
In the event count or timer mode, once the Timer/Event
Counter 0/1 starts counting, it will count from the current
contents in the Timer/Event Counter 0/1 to FFH or
FFFFH. Once overflow occurs, the counter is reloaded
from the Timer/Event Counter 0/1 preload register and
generates the interrupt request flag (T0F/T1F; bit 5/6 of
INTC) at the same time.
In the pulse width measurement mode with the TON
and TE bits equal to one, once the TMR0/TMR1 has re-
ceived a transient from low to high (or high to low if the
TE bits is 0 ) it will start counting until the TMR0/TMR1
returns to the original level and resets the TON. The
measured result will remain in the Timer/Event Counter
0/1 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 receives further transient pulse. Note
that, in this operating mode, the Timer/Event Counter
0/1 starts counting not according to the logic level but
according to the transient edges. In the case of counter
overflows, the counter 0/1 is reloaded from the
Timer/Event Counter 0/1 preload register and issues the
interrupt request just like the other two modes. To en-
able the counting operation, the timer ON bit (TON; bit 4
ofTMR0C/TMR1C)shouldbesetto1.Inthepulsewidth
measurement mode, the TON will be cleared automati-
cally after the measurement cycle is completed. But in
the other two modes the TON can only be reset by in-
structions. The overflow of the Timer/Event Counter 0/1
is one of the wake-up sources. No matter what the oper-
ation mode is, writing a 0 to ET0I/ET1I can disable the
corresponding interrupt services.
In the case of Timer/Event Counter 0/1 OFF condition,
writing data to the Timer/Event Counter 0/1 preload reg-
ister will also reload that data to the Timer/Event Coun-
ter 0/1. But if the Timer/Event Counter 0/1 is turned on,
data written to it will only be kept in the Timer/Event
Counter 0/1 preload register. The Timer/Event Counter
0/1 will still operate until overflow occurs (a Timer/Event
Counter 0/1 reloading will occur at the same time).
When the Timer/Event Counter 0/1 (reading
TMR0/TMR1) is read, the clock will be blocked to avoid
errors. As clock blocking may results in a counting error,
this must be taken into consideration by the program-
mer.
, !
( +
" $
!
"
(
,
1 ( /
!
)
3
(
,
" (
!
( /
!
,
"
3
% , A
(
%
'
) *
1 ( /
!
)
3
(
;
2 )
# <
#
A ( /
% %
/
Timer/Event Counter 1
相關(guān)PDF資料
PDF描述
HT82M21A 3-Key 3D USB+PS/2 Optical Mouse Controller
HT82M22 5-Key 3D USB+PS/2 Optical Mouse Controller
HT82M22A 5-Key 3D USB+PS/2 Optical Mouse Controller
HT82M23C 3/5-Key USB+PS/2 Optical Mouse Controller
HT82M23A 3/5-Key USB+PS/2 Optical Mouse Controller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT82K96E_07 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Multimedia Keyboard Encoder 8-Bit OTP MCU
HT82M13 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Mouse/Trackball Controller
HT82M21A 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:3-Key 3D USB+PS/2 Optical Mouse Controller
HT82M21A_05 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:3-Key 3D USB+PS/2 Optical Mouse Controller
HT82M22 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:5-Key 3D USB+PS/2 Optical Mouse Controller