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

R5F21134DFP 参数 Datasheet PDF下载

R5F21134DFP图片预览
型号: R5F21134DFP
PDF下载: 下载PDF文件 查看货源
内容描述: 16位单片机M16C族/ R8C / Tiny系列 [16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY/R8C/Tiny SERIES]
分类和应用: 微控制器和处理器外围集成电路计算机时钟
文件页数/大小: 224 页 / 2076 K
品牌: RENESAS [ RENESAS TECHNOLOGY CORP ]
 浏览型号R5F21134DFP的Datasheet PDF文件第92页浏览型号R5F21134DFP的Datasheet PDF文件第93页浏览型号R5F21134DFP的Datasheet PDF文件第94页浏览型号R5F21134DFP的Datasheet PDF文件第95页浏览型号R5F21134DFP的Datasheet PDF文件第97页浏览型号R5F21134DFP的Datasheet PDF文件第98页浏览型号R5F21134DFP的Datasheet PDF文件第99页浏览型号R5F21134DFP的Datasheet PDF文件第100页  
R8C/13 Group  
12.2 Timer (Timer Y)  
12.2.2 Programmable Waveform Generation Mode  
In this mode, an signal output from the TYOUT pin is inverted each time the counter underflows, while  
the values in the TYPR register and TYSC register are counted alternately (see Table 12.8 Program-  
mable Waveform Generation Mode Specifications). A counting starts by counting the set value in the  
TYPR register. Figure 12.16 shows the TYZMR register in programmable waveform generation mode.  
Figure 12.17 shows the operation example.  
Table 12.8 Programmable Waveform Generation Mode Specifications  
Item  
Count source  
Count operation  
Specification  
f1, f8, fRING  
Down count  
When the timer underflows, it reloads the contents of primary reload register and sec-  
ondary reload register alternately before continuing counting.  
Output waveform width  
and period  
Primary period  
: (n+1)(m+1)/fi  
Secondary period : (n+1)(p+1)/fi  
Period  
: (n+1){(m+1)+(p+1)}/fi  
n: set value in PREY register, m: set value in TYPR register, p: set value in TYSC register  
fi : Count source frequency  
Count start condition  
Count stop condition  
Write 1(count start) to TYS bit in TYZMR register  
Write 0(count stop) to TYS bit in TYZMR register  
Interrupt request generation timing In half of count source, after Timer Y underflows during secondary period (at the same  
time as the CNTR1 output change) [Timer Y interrupt].  
INT2/CNTR1 pin functions Pulse output  
Use timer mode when using this pin as a programmable I/O port.  
Read from timer  
Write to timer  
Count value can be read out by reading TYPR register.  
Same applies to PREY register(1)  
Value written to TYPR register is written to only reload register.  
.
Same applies to TYSC register and PREY register(2)  
.
Select function  
Output level latch select function  
The output level during primary and secondary periods is selected by the TYOPL bit.  
Programmable waveform generation output switching function  
When the TYOCNT bit in the TYZOC register is set to 0, the output from TYOUT is  
inverted synchronously when Timer Y underflows during the secondary period. And  
when set to 1, a value in the P3_2 bit is output from TYOUT synchronously when Timer  
Y underflows during the secondary period(3)  
.
NOTES:  
1. Even when counting the secondary period, read out the TYPR register.  
2. The set value in the TYPR register and TYSC register are enabled by writing a value to the TYPR register.  
The written values are reflected to the waveform output from the next primary period after writing to the TYPR  
register.  
3. The TYOCNTbit is enabled in the following timings  
When count starts  
When Timer Y interrupt request is generated  
Therefore, pulse is output from the next primary period depending on the setting value of the TYOCNT bit.  
Rev.1.20 Jan 27, 2006 page 85 of 205  
REJ09B0111-0120  
 复制成功!