欢迎访问ic37.com |
会员登录 免费注册
发布采购

GMS87C2020K 参数 Datasheet PDF下载

GMS87C2020K图片预览
型号: GMS87C2020K
PDF下载: 下载PDF文件 查看货源
内容描述: 现代微电子8位单芯片微控制器 [HYUNDAI MICRO ELECTRONICS 8-BIT SINGLE-CHIP MICROCONTROLLERS]
分类和应用: 微控制器和处理器光电二极管电子可编程只读存储器
文件页数/大小: 107 页 / 1524 K
品牌: HYNIX [ HYNIX SEMICONDUCTOR ]
 浏览型号GMS87C2020K的Datasheet PDF文件第55页浏览型号GMS87C2020K的Datasheet PDF文件第56页浏览型号GMS87C2020K的Datasheet PDF文件第57页浏览型号GMS87C2020K的Datasheet PDF文件第58页浏览型号GMS87C2020K的Datasheet PDF文件第60页浏览型号GMS87C2020K的Datasheet PDF文件第61页浏览型号GMS87C2020K的Datasheet PDF文件第62页浏览型号GMS87C2020K的Datasheet PDF文件第63页  
HYUNDAI MicroElectronics  
GMS81C2012/GMS81C2020  
Example 1:  
Example 3:  
Timer0 = 16-bit capture mode  
Timer0 = 16-bit timer mode, 0.5s at 4MHz  
LDM  
LDM  
LDM  
LDM  
TM0,#0000_1111B;8uS  
LDM  
LDM  
LDM  
LDM  
LDM  
LDM  
R0FUNC,#0000_0001B;INT0 set  
TM1,#0100_1100B;16bit Mode  
TM0,#0010_1111B;Capture Mode  
TM1,#0100_1100B;16bit Mode  
TDR0,#<62500  
TDR1,#>62500  
;8uS X 62500  
;=0.5s  
TDR0,#<0FFH  
TDR1,#>0FFH  
;
;
SET1 T0E  
EI  
:
:
IEDS,#01H;Falling Edge  
SET1 T0E  
EI  
:
:
Example 2:  
Timer0 = 16-bit event counter mode  
LDM  
LDM  
LDM  
LDM  
LDM  
R0FUNC,#0000_0100B;EC0 Set  
TM0,#0001_1111B;Counter Mode  
TM1,#0100_1100B;16bit Mode  
TDR0,#<0FFH  
TDR1,#>0FFH  
;
;
SET1 T0E  
EI  
:
:
12.6 PWM Mode  
The GMS81C2020 has a high speed PWM (Pulse Width  
Modulation) functions which shared with Timer1.  
And writes duty value to the T1PDR and the  
PWM1HR[1:0] same way.  
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 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)  
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).  
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.  
The user writes the lower 8-bit period value to the T1PPR  
and the higher 2-bit period value to the PWM1HR[3:2].  
MAR. 2000 Ver 1.00  
59  
 复制成功!