參數(shù)資料
型號: HMS81C20XXA
廠商: Electronic Theatre Controls, Inc.
英文描述: CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver
中文描述: CMOS單芯片8位微控制器與A / D轉(zhuǎn)換器
文件頁數(shù): 60/107頁
文件大?。?/td> 1482K
代理商: HMS81C20XXA
HMS81C2012A/2020A
56
SEP. 2004 Ver 2.00
Example 1:
Timer0 = 16-bit timer mode, 0.5s at 4MHz
LDM
LDM
LDM
LDM
SET1
EI
:
:
TM0,#0000_1111B;8uS
TM1,#0
1
00_
11
00B;16bit Mode
TDR0,#<62500 ;8uS X 62500
TDR1,#>62500 ;=0.5s
T0E
Example 2:
Timer0 = 16-bit event counter mode
LDM
LDM
LDM
LDM
LDM
SET1
EI
:
:
R0FUNC,#0000_0
1
00B;EC0 Set
TM0,#000
1
_
11
11B;Counter Mode
TM1,#0
1
00_
11
00B;16bit Mode
TDR0,#<0FFH ;
TDR1,#>0FFH ;
T0E
Example 3:
Timer0 = 16-bit capture mode
LDM
LDM
LDM
LDM
LDM
LDM
SET1
EI
:
:
R0FUNC,#0000_000
1
B;INT0 set
TM0,#00
1
0_1111B;Capture Mode
TM1,#0
1
00_
11
00B;16bit Mode
TDR0,#<0FFH ;
TDR1,#>0FFH ;
IEDS,#01H;Falling Edge
T0E
12.6 PWM Mode
The HMS81C2020A has a high speed PWM (Pulse Width
Modulation) functions which shared with Timer1.
In PWM mode, pin R56/PWM1O/T1O outputs up to a 10-
bit resolution PWM output. This pin should be configured
as a PWM output by setting "1" bit PWM1O in R5FUNC.6
register.
The period of the PWM output is determined by the
T1PPR (PWM1 Period Register) and PWM1HR[3:2]
(bit3,2 of PWM1 High Register) and the duty of the PWM
output is determined by the T1PDR (PWM1 Duty Regis-
ter) and PWM1HR[1:0] (bit1,0 of PWM1 High Register).
The user writes the lower 8-bit period value to the T1PPR
and the higher 2-bit period value to the PWM1HR[3:2].
And writes duty value to the T1PDR and the
PWM1HR[1:0] same way.
The T1PDR is configured as a double buffering for glitch-
less PWM output. In Figure 12-12, the duty data is trans-
ferred from the master to the slave when the period data
matched to the counted value. (i.e. at the beginning of next
duty cycle)
PWM Period = [PWM1HR[3:2]T1PPR] X Source Clock
PWM Duty = [PWM1HR[1:0]T1PDR] X Source Clock
The relation of frequency and resolution is in inverse pro-
portion. Table 12-2 shows the relation of PWM frequency
vs. resolution.
相關(guān)PDF資料
PDF描述
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
HN27512P-30 512K (64K X 8 BIT ) UV AND OTP EPROM
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
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
HMS81C4308 制造商:未知廠家 制造商全稱:未知廠家 功能描述:[TV : OSD/ I?C]