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

MPD789871 参数 Datasheet PDF下载

MPD789871图片预览
型号: MPD789871
PDF下载: 下载PDF文件 查看货源
内容描述: 8位单芯片微控制器 [8-Bit Single-Chip Microcontrollers]
分类和应用: 微控制器
文件页数/大小: 321 页 / 1339 K
品牌: NEC [ NEC ]
 浏览型号MPD789871的Datasheet PDF文件第121页浏览型号MPD789871的Datasheet PDF文件第122页浏览型号MPD789871的Datasheet PDF文件第123页浏览型号MPD789871的Datasheet PDF文件第124页浏览型号MPD789871的Datasheet PDF文件第126页浏览型号MPD789871的Datasheet PDF文件第127页浏览型号MPD789871的Datasheet PDF文件第128页浏览型号MPD789871的Datasheet PDF文件第129页  
CHAPTER 6 16-BIT TIMER  
6.4.2 Operation as timer output  
Timer outputs are repeatedly generated at the count value preset in 16-bit compare register 90 (CR90) based on  
the intervals of the value set in TCL901 and TCL900.  
To operate the 16-bit timer as a timer output, the following settings are required.  
Set P26 to output mode (PM26 = 0).  
Reset output latch of P26 to 0.  
Set the count value in CR90.  
Set 16-bit timer mode control register 90 (TMC90) as shown in Figure 6-7.  
Figure 6-7. Settings of 16-Bit Timer Mode Control Register 90 for Timer Output Operation  
TOD90 TOF90 CPT901 CPT900 TOC90 TCL901 TCL900 TOE90  
TMC90  
0/1  
0/1  
0/1  
1
0
0/1  
1
TO90 output enable  
Setting of count clock (see Table 6-2)  
Inverse enable of timer output data  
Caution If both the CPT901 flag and CPT900 flag are set to 0, the capture operation is prohibited.  
When the count value of 16-bit timer counter 90 (TM90) matches the value set in CR90, the output status of the  
TO90/P26 pin is inverted. This enables timer output. At that time, TM90 counting continues and an interrupt request  
signal (INTTM90) is generated.  
Figure 6-8 shows the timing of timer output (see Table 6-2 for the interval time of the 16-bit timer).  
Figure 6-8. Timer Output Timing  
t
Count clock  
TM90 count value  
CR90  
0000H  
0001H  
N
FFFFH 0000H 0001H  
N
FFFFH  
N
N
N
N
N
INTTM90  
Interrupt  
acknowledgement  
Interrupt  
acknowledgement  
TO90Note  
TOF90  
Overflow flag set  
Note The initial value of TO90 becomes low level when output is enabled (TOE90 = 1).  
Remark N = 0000H to FFFFH  
User’s Manual U15075EJ1V0UM00  
125  
 复制成功!