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

MPD789871 参数 Datasheet PDF下载

MPD789871图片预览
型号: MPD789871
PDF下载: 下载PDF文件 查看货源
内容描述: 8位单芯片微控制器 [8-Bit Single-Chip Microcontrollers]
分类和应用: 微控制器
文件页数/大小: 321 页 / 1339 K
品牌: NEC [ NEC ]
 浏览型号MPD789871的Datasheet PDF文件第149页浏览型号MPD789871的Datasheet PDF文件第150页浏览型号MPD789871的Datasheet PDF文件第151页浏览型号MPD789871的Datasheet PDF文件第152页浏览型号MPD789871的Datasheet PDF文件第154页浏览型号MPD789871的Datasheet PDF文件第155页浏览型号MPD789871的Datasheet PDF文件第156页浏览型号MPD789871的Datasheet PDF文件第157页  
CHAPTER 7 8-BIT TIMER  
7.4.2 Operation as 16-bit timer counter  
Timer 50 and timer 60 can be used as a 16-bit timer counter using cascade connection. In this case, 8-bit timer  
counter 50 (TM50) is the higher 8 bits and 8-bit timer counter 60 (TM60) is the lower 8 bits. 8-bit timer 60 controls  
reset and clear.  
The following modes can be used for the 16-bit timer counter.  
Interval timer with 16-bit resolution  
External event counter with 16-bit resolution  
Square-wave output with 16-bit resolution  
(1) Operation as interval timer with 16-bit resolution  
The interval timer with 16-bit resolution repeatedly generates an interrupt at a time interval specified by the  
count value preset in 8-bit compare register 50 (CR50) and 8-bit compare register 60 (CR60).  
To operate as an interval timer with 16-bit resolution, settings must be made in the following sequence.  
<1> Disable operation of 8-bit timer counter 50 (TM50) and 8-bit timer counter 60 (TM60) (TCE50 = 0,  
TCE60 = 0).  
<2> Disable timer output of TO60 (TOE60 = 0).  
<3> Set the count clock for timer 60 (see Tables 7-5 and 7-6).  
<4> Set the operation mode of timer 50 and 8-bit timer 60 to 16-bit timer counter mode (see Figures 7-4  
and 7-5).  
<5> Set a count value in CR50 and CR60.  
<6> Enable the operation of TM50 and TM60 (TCE60 = 1Note).  
Note Start and clear of the timer in the 16-bit timer counter mode are controlled by TCE60 (the value of  
TCE50 is invalid).  
When the count values of TM50 and TM60 match the values set in CR50 and CR60 respectively, both TM50 and  
TM60 are simultaneously cleared to 00H and counting continues. At the same time, an interrupt request signal  
(INTTM60) is generated (INTTM50 is not generated).  
Table 7-7 shows interval time, and Figure 7-16 shows the timing of the interval timer operation.  
Cautions 1. Be sure to stop the timer operation before overwriting the count clock with different data.  
2. In the 16-bit timer counter mode, TO50 cannot be used. Be sure to set TOE50 = 0 to disable  
TO50 output.  
User’s Manual U15075EJ1V0UM00  
153  
 复制成功!