參數(shù)資料
型號(hào): HT48R31-2(18DIP-A0)
元件分類(lèi): 8位微控制器
英文描述: 8-BIT MICROCONTROLLER
中文描述: 8位微控制器
文件頁(yè)數(shù): 15/42頁(yè)
文件大?。?/td> 259K
代理商: HT48R31-2(18DIP-A0)
HT48R50A-1/HT48C50-1
Rev. 1.00
15
January 2, 2003
Timer/Event Counter
Two timer/event counters (TMR0, TMR1) are imple-
mented in the microcontroller. The Timer/Event Counter
0 contains an 8-bit programmable count-up counter and
the clock may come from an external source or from the
system clock or RTC.
The Timer/Event Counter 1 contains an 16-bit program-
mable count-up counter and the clock may come from
an external source or from the system clock divided by 4
or RTC.
Using the internal clock sources, there are 2 reference
time-bases for Timer/Event Counter 0. The internal
clock source can be selected as coming from f
SYS
(can
always be optioned) or f
RTC
(enabled only system oscil-
lator in the Int. RC+RTC mode) by options.
Using the internal clock sources, there are 2 reference
time-bases for Timer/Event Counter 1. The internal
clock source can be selected as coming from f
SYS
/4
(can always be optioned) or f
RTC
(enable only the sys-
tem oscillator in the Int. RC+RTC mode) by options.
Usingexternalclockinputallowstheusertocountexter-
nal events, measure time internals or pulse widths, or
generate an accurate time base. While using the inter-
nal clock allows the user to generate an accurate time
base.
The Timer/Event Counter 0 can generate PFD signal by
using external or internal clock and PFD frequency is
determine by the equation f
INT
/[2 (256-N)].
There are 2 registers related to the Timer/Event Counter
0;TMR0([0DH]),TMR0C([0EH]).Twophysicalregisters
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
countercontrolregister,whichdefinessomeoptions.
Label (TMR0C)
Bits
Function
PSC0~PSC2
0~2
To define the prescaler stages, PSC2, PSC1, PSC0=
000: f
INT
=f
SYS
/2 or f
RTC
/2
001: f
INT
=f
SYS
/4 or f
RTC
/4
010: f
INT
=f
SYS
/8 or f
RTC
/8
011: f
INT
=f
SYS
/16 or f
RTC
/16
100: f
INT
=f
SYS
/32 or f
RTC
/32
101: f
INT
=f
SYS
/64 or f
RTC
/64
110: f
INT
=f
SYS
/128 or f
RTC
/128
111: f
INT
=f
SYS
/256 or f
RTC
/256
TE
3
To define the TMR0 active edge of Timer/Event Counter 0
(0=active on low to high; 1=active on high to low)
TON
4
To enable or disable timer 0 counting
(0=disabled; 1=enabled)
5
Unused bit, read as 0
TM0
TM1
6
7
To define the operating mode
01=Event count mode (external clock)
10=Timer mode (internal clock)
11=Pulse width measurement mode
00=Unused
TMR0C register
Label (TMR1C)
Bits
Function
0~2
Unused bit, read as 0
TE
3
To define the TMR1 active edge of Timer/Event Counter 1
(0=active on low to high; 1=active on high to low)
TON
4
To enable or disable timer 1 counting
(0=disabled; 1=enabled)
5
Unused bit, read as 0
TM0
TM1
6
7
To define the operating mode
01=Event count mode (external clock)
10=Timer mode (internal clock)
11=Pulse width measurement mode
00=Unused
TMR1C register
相關(guān)PDF資料
PDF描述
HT48R31-2(20DIP-F0) 8-BIT MICROCONTROLLER
HT48R31-2(28SKDIP-B0) 8-BIT MICROCONTROLLER
HT48R32(18DIP-A0) 8-BIT MICROCONTROLLER
HT48R32(20DIP-F0) 8-BIT MICROCONTROLLER
HT48R32(28SKDIP-B0) 8-BIT MICROCONTROLLER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT48R31-28SDIP-B-0 制造商:HOLTEK 功能描述:IC, 8BIT MCU OTP 2K, 48R31, DIP28
HT48R32 制造商:HOLTEK 制造商全稱(chēng):Holtek Semiconductor Inc 功能描述:8-Bit Microcontroller Series
HT48R32(18DIP-A0) 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:8-Bit Microcontroller
HT48R32(20DIP-F0) 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:8-Bit Microcontroller
HT48R32(28SKDIP-B0) 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:8-Bit Microcontroller