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

MPD789871 参数 Datasheet PDF下载

MPD789871图片预览
型号: MPD789871
PDF下载: 下载PDF文件 查看货源
内容描述: 8位单芯片微控制器 [8-Bit Single-Chip Microcontrollers]
分类和应用: 微控制器
文件页数/大小: 321 页 / 1339 K
品牌: NEC [ NEC ]
 浏览型号MPD789871的Datasheet PDF文件第147页浏览型号MPD789871的Datasheet PDF文件第148页浏览型号MPD789871的Datasheet PDF文件第149页浏览型号MPD789871的Datasheet PDF文件第150页浏览型号MPD789871的Datasheet PDF文件第152页浏览型号MPD789871的Datasheet PDF文件第153页浏览型号MPD789871的Datasheet PDF文件第154页浏览型号MPD789871的Datasheet PDF文件第155页  
CHAPTER 7 8-BIT TIMER  
(3) Operation as square-wave output with 8-bit resolution  
Square waves of any frequency can be output at an interval specified by the value preset in 8-bit compare  
register n0 (CRn0).  
To operate timer n0 for square-wave output, settings must be made in the following sequence.  
<1> When using timer 50, set P31 to output mode (PM31 = 0).  
When using timer 60, set P32 to output mode (PM32 = 0) or set P33 to output mode (PM33 = 0) (When  
TO61 is selected as timer output).  
<2> Set the output latches of P31, P32, and P33 to 0.  
<3> Disable operation of timer counter n0 (TMn0) (TCEn0 = 0).  
<4> Set a count clock for timer n0 and enable output of TOn0 (TOEn0 = 1)Note  
.
<5> Set a count value in CRn0.  
<6> Enable the operation of TMn0 (TCEn0 = 1).  
When the count value of TMn0 matches the value set in CRn0, the TOn0 pin output will be inverted.  
Through application of this mechanism, square waves of any frequency can be output. As soon as a match  
occurs, TMn0 is cleared to 00H and continues counting. At the same time, an interrupt request signal  
(INTTMn0) is generated.  
The square-wave output is cleared to 0 by setting TCEn0 to 0.  
Tables 7-5 and 7-6 show the square-wave output range, and Figure 7-15 shows the timing of square-wave  
output.  
Note In the case of timer 60, either TO60 or TO61 can be selected as the timer output pin. If TO61 is  
selected, set TOE61 = 1.  
Caution Be sure to stop the timer operation before overwriting the count clock with different data.  
Remark n = 5, 6  
Table 7-5. Square-Wave Output Range of Timer 50 (During fX = 5.0 MHz Operation)  
TCL502 TCL501 TCL500  
Minimum Pulse Width  
1/fX (0.2 µs)  
Maximum Pulse Width  
28/fX (51.2 µs)  
Resolution  
1/fX (0.2 µs)  
0
0
0
0
1
0
0
1
1
0
0
1
0
1
0
23/fX (1.6 µs)  
27/fX (25.6 µs)  
1/fXT (30.5 µs)  
211/fX (409.6 µs)  
215/fX (6.55 ms)  
23/fX (1.6 µs)  
27/fX (25.6 µs)  
1/fXT (30.5 µs)  
28/fXT (7.81 ms)  
Input cycle of timer 60 match  
signal  
Input cycle of timer 60 match  
Input cycle of timer 60 match  
signal  
signal × 8  
1
0
1
Input cycle of timer 60 output  
Input cycle of timer 60 output  
Input cycle of timer 60  
× 8  
Remarks 1. fX: Main system clock oscillation frequency  
2. fXT: Subsystem clock oscillation frequency  
User’s Manual U15075EJ1V0UM00  
151  
 复制成功!