參數(shù)資料
型號(hào): HT47C20
廠商: Holtek Semiconductor Inc.
元件分類: 8位微控制器
英文描述: 8-BIT MICROCONTROLLER
中文描述: 8位微控制器
文件頁(yè)數(shù): 21/56頁(yè)
文件大?。?/td> 352K
代理商: HT47C20
HT47C20
21
January 18, 2000
Timer/event counter
One16-bittimer/eventcounterwithPFDoutput
or two channels of RC type A/D converter is im-
plemented in the HT47C20. The ADC/TM bit
(bit1ofADCRregister)decideswhethertimerA
and timer B is composed of one 16-bit
timer/eventcounterortimerAandtimerBcom-
posedoftwochannelsRCtypeA/Dconverter.
The TMRAL, TMRAH, TMRBL, TMRBH com-
pose one 16-bit timer/event counter, when
ADC/TM bit is 0 . The TMRBL and TMRBH
are timer/event counter preload registers for
lower-order byte and higher-order byte respec-
tively.
Using the internal clock, there are three refer-
ence time-base. The timer/event counter clock
source may come from the system clock or sys-
tem clock/4 or RTC time-out signal or external
source.
The external clock input allows the user to count
external events, count external RC type A/D
clock, measure time intervals or pulse widths, or
generate an accurate time base.
There are six registers related to the timer/event
counter operating mode. TMRAH ([20H]),
TMRAL([21H]),TMRC([22H]),TMRBH([23H]),
TMRBL ([24H]) and ADCR ([25H]). Writing
TMRBL only writes the data into a low byte
buffer, and writing TMRBH will write the data
and the contents of the low byte buffer into the
time/event counter preload register (16-bit) si-
multaneously. The timer/event counter preload
register is changed by writing TMRBH opera-
tions and writing TMRBL will keep the
timer/event counter preload register unchanged.
Reading TMRAH will also latch the TMRAL
into the low byte buffer to avoid the false timing
problem. Reading TMRAL returns the contents
of the low byte buffer. In other words, the low
byte of the timer/event counter can not be read
directly. It must read the TMRAH first to make
the low byte contents of the timer/event counter
be latched into the buffer.
The TMRC is the timer/event counter control
register, which defines the timer/event counter
options.
The timer/event counter control register de-
fines the operating mode, counting enable or
disable and active edge.
Writing to timer B makes the starting value be
placed in the timer/event counter preload regis-
ter, while reading timer Ayields the contents of
the timer/event counter. Timer B is timer/event
counter preload register.
The TN0, TN1 and TN2 bits define the opera-
tion mode. The event count mode is used to
count external events, which means that the
clock source comes from an external (TMR) pin.
The A/D clock mode is used to count external
A/D clock, the RC oscillation mode is decided by
ADCR register. The timer mode functions as a
normal timer with the clock source coming from
the internal selected clock source. Finally, the
pulse width measurement mode can be used to
count the high or low level duration of the ex-
ternal signal (TMR). The counting is based on
the instruction clock.
In the event count, A/D clock or internal timer
mode, once the timer/event counter starts
counting, it will count from the current con-
$ *
*( / &
(
: B #
: B
(
*
4 ' * 7
F
1
# 0 (%
(
$
( * + .
# ( *
Timer/event counter
相關(guān)PDF資料
PDF描述
HT47R20 8 位R-F 型OTP 單片機(jī)
HT48C05 Cost-Effective I/O Type 8-Bit MCU
HT48C06 Cost-Effective I/O Type 8-Bit MCU
HT48C10-1 8-Bit High Performance RISC-like Microcontroller Suitable for Multiple I/O Application(高性能、指令類似RISC的8位微控制器,用于多I/O接口設(shè)備)
HT48C50-1 8-Bit High Performance RISC-like Microcontroller Suitable for Multiple I/O Application(高性能、指令類似RISC的8位微控制器,用于多I/O接口設(shè)備)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT47C20_02 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:8-Bit R-F Type Mask MCU
HT47C20-1 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:R-F Type 8-Bit MCU
HT47C20-1_08 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:R-F Type 8-Bit MCU
HT47C20L 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:8-Bit Microcontroller
HT47C20L_05 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:R-F Type Low Voltage 8-Bit Mask MCU