參數(shù)資料
型號(hào): HT47C20
廠商: Holtek Semiconductor Inc.
元件分類: 8位微控制器
英文描述: 8-BIT MICROCONTROLLER
中文描述: 8位微控制器
文件頁(yè)數(shù): 22/56頁(yè)
文件大?。?/td> 352K
代理商: HT47C20
HT47C20
22
January 18, 2000
tents in the timer/event counter (TMRAH and
TMRAL) to FFFFH. Once overflow occurs, the
counter is reloaded from the timer/event coun-
ter preload register (TMRBH and TMRBL) and
generates the corresponding interrupt request
flag (TF; bit 4 of INTC1) at the same time.
In the pulse width measurement mode with the
TON and TE bits are equal to one, once the
TMR has received a transient 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 remain 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 measure-
ment will function again as long as it receives
further transient pulse. Note that in this opera-
tionmode,thetimer/eventcounterstartscount-
ing 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
interrupt request just like the other three
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
willbeautomaticallyclearedafterthemeasure-
ment cycle is completed. But in the other three
modes, the TON can only be reset by instruc-
tions. The overflow of the timer/event counter is
one of the wake-up sources and can also be ap-
plied to a PFD (Programmable Frequency Di-
vider) output at PA3 by mask option. No matter
what the operation mode is, writing a 0 to ETI
can disable the corresponding interrupt service.
When the PFD function is selected, executing
CLR PA.3 instruction to enable PFD output
and executing SET PA.3
able PFD output and PA.3 output low level.
instruction to dis-
In the case of timer/event counter OFF
condition,writingdatatothetimer/eventcounter
preload register also reloads that data to the
timer/event counter. But if the timer/event coun-
ter turns on, data written to the timer/event
counter preload register is kept only in the
timer/event counter preload register. The
timer/event counter will still operate until
overflow occurs.
When the timer/event counter (reading
TMRAH) is read, the clock will be blocked to
avoid errors. As this may results in a counting
error, this must be taken into consideration by
the programmer.
Label
(TMRC)
Bits
Function
0~2 Unused bits, read as 0
TE
3
Defines the TMR active edge of timer/event counter
(0= active on low to high; 1= active on high to low)
TON
4
Enable/disable timer counting
(0= disabled; 1= enabled)
TN0
TN1
TN2
5
6
7
Defines the operating mode (TN2, TN1, TN0)
000= Timer mode (system clock)
001= Timer mode (system clock/4)
010= Timer mode (RTC output)
011= A/D clock mode (RC oscillation decided by ADCR register)
100= Event counter mode (external clock)
101= Pulse width measurement mode (system clock/4)
110= Unused
111= Unused
TMRC register
相關(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