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

MPD789871 参数 Datasheet PDF下载

MPD789871图片预览
型号: MPD789871
PDF下载: 下载PDF文件 查看货源
内容描述: 8位单芯片微控制器 [8-Bit Single-Chip Microcontrollers]
分类和应用: 微控制器
文件页数/大小: 321 页 / 1339 K
品牌: NEC [ NEC ]
 浏览型号MPD789871的Datasheet PDF文件第164页浏览型号MPD789871的Datasheet PDF文件第165页浏览型号MPD789871的Datasheet PDF文件第166页浏览型号MPD789871的Datasheet PDF文件第167页浏览型号MPD789871的Datasheet PDF文件第169页浏览型号MPD789871的Datasheet PDF文件第170页浏览型号MPD789871的Datasheet PDF文件第171页浏览型号MPD789871的Datasheet PDF文件第172页  
CHAPTER 7 8-BIT TIMER  
7.4.5 Operation as PWM output (timer 60)  
In the PWM pulse generator mode, a pulse of any duty ratio can be output by setting a low-level width using  
CR60 and a high-level width using CRH60.  
To operate timer 60 in PWM output mode, settings must be made in the following sequence.  
<1> Disable operation of TM60 (TCE60 = 0).  
<2> Disable timer output of TO60 (TOE60 = 0).  
<3> Set count values in CR60 and CRH60.  
<4> Set the operation mode of timer 60 to the PWM pulse generator mode (see Figure 7-5).  
<5> Set the count clock for timer 60.  
<6> Set P32 to the output mode (PM32 = 0) and the P32 output latch to 0 and enable timer output of TO60  
(TOE60 = 1).  
<7> Enable the operation of TM60 (TCE60 = 1).  
The operation in the PWM output mode is as follows.  
<1> When the count value of TM60 matches the value set in CR60, an interrupt request signal (INTTM60) is  
generated and output of timer 60 is inverted, which makes the compare register switch from CR60 to  
CRH60.  
<2> A match between TM60 and CR60 clears the TM60 value to 00H and then counting starts again.  
<3> After that, when the count value of TM60 matches the value set in CRH60, an interrupt request signal  
(INTTM60) is generated and output of timer 60 is inverted again, which makes the compare register switch  
from CRH60 to CR60.  
<4> A match between TM60 and CRH60 clears the TM60 value to 00H and then counting starts again.  
A pulse of any duty ratio is output by repeating <1> to <4> above. Figures 7-26 and 7-27 show the operation  
timing in the PWM output mode.  
168  
User’s Manual U15075EJ1V0UM00  
 复制成功!