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

EM78P5841 参数 Datasheet PDF下载

EM78P5841图片预览
型号: EM78P5841
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8 BIT MICROCONTROLLER]
分类和应用: 微控制器
文件页数/大小: 48 页 / 467 K
品牌: ELAN [ ELAN MICROELECTRONICS CORP ]
 浏览型号EM78P5841的Datasheet PDF文件第30页浏览型号EM78P5841的Datasheet PDF文件第31页浏览型号EM78P5841的Datasheet PDF文件第32页浏览型号EM78P5841的Datasheet PDF文件第33页浏览型号EM78P5841的Datasheet PDF文件第35页浏览型号EM78P5841的Datasheet PDF文件第36页浏览型号EM78P5841的Datasheet PDF文件第37页浏览型号EM78P5841的Datasheet PDF文件第38页  
EM78P5840/5841/5842  
8-bit Micro-controller  
• The PWM duty cycle is latched from DT1/DT2 to DTL1/DTL2.  
< Note > The PWM output will not be set, if the duty cycle is 0;  
• The PWMXIF pin is set to 1.  
The following formula describes how to calculate the PWM period:  
PERIOD = (PRDX + 1) * 4 * (1/Fosc) * (TMRX prescale value )  
Where Fosc is system clock  
(4) PWM Duty Cycle ( DTX: DT1H/ DT1L; DTL: DL1H/DL1L)  
The PWM duty cycle is defined by writing to the DTX register, and is latched from DTX to DLX while  
TMRX is cleared. When DLX is equal to TMRX, the PWMX pin is cleared. DTX can be loaded at any  
time. However, it cannot be latched into DTL until the current value of DLX is equal to TMRX.  
The following formula describes how to calculate the PWM duty cycle:  
Duty Cycle = (DTX) * (1/Fosc) * (TMRX prescale value)  
(5) PWM Programming Procedures/Steps  
Load PRDX with the PWM period.  
(1) Load DTX with the PWM Duty Cycle.  
(2) Enable interrupt function by writing IOCF PAFE0, if required.  
(3) Set PWMX pin to be output by writing a desired value to IOCC PAGE0.  
Load a desired value to R5 PAGE3 with TMRX prescaler value and enable both PWMX and TMRX.  
(6) Timer  
Timer1 (TMR1) and Timer2 (TMR2) (TMRX) are 10-bit clock counters with programmable prescalers,  
respectively. This is designed for the PWM module as baud rate clock generators. TMRX can be read,  
written, and cleared at any reset conditions.  
The figure in the next page shows TMRX block diagram. Each signal and block are described as follows:  
__________________________________________________________________________________________________________________________________________________________________  
* This specification is subject to change without notice.  
32  
2004/11/10 V2.6  
 复制成功!