參數(shù)資料
型號(hào): HMS81C2020AQ
廠商: Electronic Theatre Controls, Inc.
英文描述: CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver
中文描述: CMOS單芯片8位微控制器與A / D轉(zhuǎn)換器
文件頁(yè)數(shù): 53/107頁(yè)
文件大小: 1482K
代理商: HMS81C2020AQ
HMS81C2012A/2020A
SEP. 2004 Ver 2.00
49
8-bit Timer Mode
In the timer mode, the internal clock is used for counting
up. Thus, you can think of it as counting internal clock in-
put. The contents of TDR
n
are compared with the contents
of up-counter, T
n
. If match is found, a timer 1 interrupt
(T1IF) is generated and the up-counter is cleared to 0.
Counting up is resumed after the up-counter is cleared.
As the value of TDR
n
is changeable by software, time in-
terval is set as you want
Figure 12-3 Timer Mode Timing Chart
Figure 12-4 Timer Count Example
0
n-2
2
0
n
3
n-1
n
Source clock
Up-counter
TDR1
T1IF interrupt
Start count
1
2
3
1
4
Match
Detect
Counter
Clear
~
~
~
~
~
~
Timer 1 (T1IF)
Interrupt
TDR1
TIME
Occur interrupt
Occur interrupt
Occur interrupt
Interrupt period
= 8
μ
s x 125
upcoun
~
~
0
1
2
3
4
5
6
7A
7D
7C
Count Pulse
Period
7B
MATCH
(TDR0 = T0)
Example:
Make 2ms
interrupt using by Timer0 at 4MHz
LDM
LDM
SET1
EI
TM0,#0FH
TDR0,#125
T0E
; divide by 32
; 8us x 125= 1ms
; Enable Timer 0 Interrupt
; Enable Master Interrupt
When
TDR0 = 125
D
= 7D
H
f
XIN
= 4 MHz
INTERRUPT PERIOD =
4
×
10
6
Hz
1
×
32
×
125 = 1 ms
TM0 = 0000 1111
B
(8-bit Timer mode, Prescaler divide ratio = 32)
8
μ
s
7D
0
相關(guān)PDF資料
PDF描述
HMS81C20XXA CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver
HMS81C20XXA-HK CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver
HN2716 2048-word x 8bit Erasable and Electrically Programmable Only Memory
HN27512 512K (64K X 8 BIT ) UV AND OTP EPROM
HN27512P-25 512K (64K X 8 BIT ) UV AND OTP EPROM
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HMS81C20XXA 制造商:未知廠家 制造商全稱:未知廠家 功能描述:CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver
HMS81C20XXA-HK 制造商:未知廠家 制造商全稱:未知廠家 功能描述:CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver
HMS81C2112A 制造商:未知廠家 制造商全稱:未知廠家 功能描述:[VFD MCU: High Voltage IO/ADC/HS PWM/SCI]
HMS81C2120A 制造商:未知廠家 制造商全稱:未知廠家 功能描述:[VFD MCU: High Voltage IO/ADC/HS PWM/SCI]
HMS81C4260 制造商:HYNIX 制造商全稱:Hynix Semiconductor 功能描述:HYNIX SEMICONDUCTOR INC. 8-BIT SINGLE-CHIP MICROCONTROLLERS