欢迎访问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文件第120页浏览型号7906的Datasheet PDF文件第121页浏览型号7906的Datasheet PDF文件第122页浏览型号7906的Datasheet PDF文件第123页浏览型号7906的Datasheet PDF文件第125页浏览型号7906的Datasheet PDF文件第126页浏览型号7906的Datasheet PDF文件第127页浏览型号7906的Datasheet PDF文件第128页  
TIMER A  
7.4 Event counter mode  
7.4.1 Setting for event counter mode  
Figures 7.4.2 and 7.4.3 show an initial setting example for registers related to the event counter mode.  
Note that when using interrupts, set up to enable the interrupts. For details, refer to “CHAPTER 6.  
INTERRUPTS.”  
Selecting event counter mode and each function  
b7  
b0  
Timer Aj mode register (j = 0 to 2, 4, 9)  
0
1
ꢀ ꢀ 0  
(Addresses 5616 to 5816, 5A16, DA16  
)
Selection of event counter mode  
Pulse output function select bit  
0: No pulse output  
1: Pulse output  
Count polarity select bit  
0: Counts at falling edge of external signal.  
1: Counts at rising edge of external signal.  
Up-down switching factor select bit  
0: Contents of up-down register  
1: Input signal to TAjOUT pin  
X: It may be either 0or 1.”  
Setting updown register  
b7  
b0  
Updown register 0 (Address 4416  
)
0
0
Timer A0 updown bit  
Set to the corresponding updown bit when the  
contents of the up-down register are selected as  
the up-down switching factor.  
Timer A1 updown bit  
Timer A2 updown bit  
Timer A4 updown bit  
0: Countdown  
1: Countup  
Timer A2 twophase pulse  
signal processing select bit  
Set the corresponding bit to 1when the  
twophase pulse signal processing function  
is selected for timers A2 and A4.  
0: Twophase pulse signal processing  
function disabled  
Timer A4 twophase pulse  
signal processing select bit  
b7  
b0  
1: Twophase pulse signal processing  
function enabled  
Updown register 1 (Address C416  
)
0
0
0
0
0
0
Set to the corresponding updown bit when the contents  
of the up-down register are selected as the up-down  
switching factor.  
Timer A9 updown bit  
0: Countdown  
1: Countup  
Timer A9 twophase pulse  
signal processing select bit  
Set the corresponding bit to 1when the  
twophase pulse signal processing function  
is selected for timer A9.  
0: Twophase pulse signal processing  
function disabled  
1: Twophase pulse signal processing  
function enabled  
Setting divide ratio  
(b15)  
b7  
Timer A0 register (Addresses 4716, 4616  
Timer A1 register (Addresses 4916, 4816  
)
)
(b8)  
b0 b7  
b0  
Timer A2 register (Addresses 4B16, 4A16  
Timer A4 register (Addresses 4F16, 4E16  
Timer A9 register (Addresses CF16, CE16  
)
)
)
Can be set to  
000016to FFFF16(n).  
The counter divides the count source frequency by (n + 1)  
when counting down, or by (FFFF16 n + 1) when counting up.  
Continued to Figure 7.4.3  
on the next page  
Fig. 7.4.2 Initial setting example for registers related to event counter mode (1)  
7906 Group Users Manual Rev.2.0  
7-21