欢迎访问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文件第170页浏览型号7906的Datasheet PDF文件第171页浏览型号7906的Datasheet PDF文件第172页浏览型号7906的Datasheet PDF文件第173页浏览型号7906的Datasheet PDF文件第175页浏览型号7906的Datasheet PDF文件第176页浏览型号7906的Datasheet PDF文件第177页浏览型号7906的Datasheet PDF文件第178页  
TIMER B  
8.5 Pulse period/pulse width measurement mode  
8.5.2 Operation in pulse period/pulse width measurement mode  
When counter clear type is selected  
When the count start bit is set to 1,the counter starts counting of the count source.  
The counter value is transferred to the reload register when a valid edge of the measurement pulse  
is detected. (Refer to section (1) Pulse period/Pulse width measurement.)  
The counter value is cleared to 000016after the transfer in , and the counter continues counting.  
The timer Bi interrupt request bit is set to 1when the counter value is cleared to 000016in (Note).  
The interrupt request bit remains set to 1until the interrupt request is accepted or until the interrupt  
request bit is cleared to 0by software.  
The timer repeats operations to above.  
Note: No timer Bi interrupt request occurs when the first valid edge is input after the counter starts counting.  
When free-run type is selected  
When the count start bit is set to 1,the counter starts counting of the count source.  
The counter value is transferred to the reload register when a valid edge of the measurement pulse  
is detected. (Refer to section (1) Pulse period/Pulse width measurement.)  
The timer Bi interrupt request bit is set to 1after the transfer in (Note).  
The interrupt request bit remains set to 1until the interrupt request is accepted or until the interrupt  
request bit is cleared to 0by software.  
The counter continues counting with the counter value kept.  
When a counter overflow occurs, the timer Bi overflow flag is set to 1,and counting continues after  
clearing the counter value to 000016 .At this time, the timer Bi interrupt request bit does not change.  
The timer repeats operations to above.  
Note: No timer Bi interrupt request occurs when the first valid edge is input after the counter starts counting.  
(1) Pulse period/pulse width measurement  
The measurement mode select bits (bits 3 and 2 at addresses 5B16 and 5D16) specify whether the  
pulse period of an external signal is measured or its pulse width is done. Table 8.5.3 lists the  
relationship between the measurement mode select bits and the pulse period/pulse width measurements.  
Make sure that the measurement pulse interval from the falling edge to the rising edge, and vice  
versa are two cycles of the count source or more. Additionally, use software to identify whether the  
measurement result indicates the Hlevel width or the Llevel width.  
Table 8.5.3 Relationship between measurement mode select bits and pulse period/pulse width measurements  
b3  
0
b2 Pulse period/Pulse width measurement  
Measurement interval (Valid edges)  
From falling edge to falling edge (Falling edges)  
From rising edge to rising edge (Rising edges)  
From falling edge to rising edge, and vice versa  
(Falling and rising edges)  
0
1
0
Pulse period measurement  
0
1
Pulse width measurement  
7906 Group Users Manual Rev.2.0  
8-23