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

7906 参数 Datasheet PDF下载

7906图片预览
型号: 7906
PDF下载: 下载PDF文件 查看货源
内容描述: 16位单片机 [16-BIT SINGLE-CHIP MICROCOMPUTER]
分类和应用: 计算机
文件页数/大小: 531 页 / 3056 K
品牌: RENESAS [ RENESAS TECHNOLOGY CORP ]
 浏览型号7906的Datasheet PDF文件第114页浏览型号7906的Datasheet PDF文件第115页浏览型号7906的Datasheet PDF文件第116页浏览型号7906的Datasheet PDF文件第117页浏览型号7906的Datasheet PDF文件第119页浏览型号7906的Datasheet PDF文件第120页浏览型号7906的Datasheet PDF文件第121页浏览型号7906的Datasheet PDF文件第122页  
TIMER A  
7.3 Timer mode  
7.3.3 Select function  
In timer Aj (j = 0 to 2, 4, 9), the gate function or pulse output function can be selected.  
The following describes the gate and pulse output functions.  
(1) Gate function  
The gate function is selected by setting the gate function select bits (bits 4 and 3 at addresses 5616  
to 5816, 5A16, DA16) to 10  
2
or 11 .The gate function makes it possible to start or stop counting  
2
depending on the TAjIN pins input signal. Table 7.3.2 lists the count valid levels.  
Figure 7.3.4 shows an example of operation with the gate function selected.  
When selecting the gate function, set the port P2 and port P6 direction registersbits which correspond  
to the TAjIN pins for the input mode. Additionally, make sure that the TAjIN pins input signal has a  
pulse width equal to or more than two cycles of the count source.  
Table 7.3.2 Count valid levels  
Gate function select bits  
Count valid level (Duration while counter counts)  
b4  
1
b3  
0
While TAjIN pins input signal level is at Llevel  
While TAjIN pins input signal level is at Hlevel  
1
1
Note: The counter does not count while the TAjIN pins input signal is not at the count valid level.  
FFFF16  
n
Starts counting.  
Stops counting.  
000016  
Time  
Set to 1by software.  
Count start bit  
Count valid  
level  
Invalid level  
TAjIN pins  
input signal  
Timer Aj interrupt  
request bit  
The counter counts while the count start bit = 1and the TAjIN pins input signal is at the count valid level.  
The counter stops counting while the TAjIN pins input signal is not at the count valid level, and the counter  
value is retained.  
Cleared to 0when  
interrupt request is  
accepted or cleared  
by software.  
n : Reload registers contents  
Fig. 7.3.4 Example of operation with gate function selected  
7906 Group Users Manual Rev.2.0  
7-15  
 复制成功!