Programmable Waveform Generation Mode - Renesas M16C FAMILY Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY:
Table of Contents

Advertisement

Under development
Preliminary specification
Specifications in this manual are tentative and subject to change.
R8C/11 Group

12.2.2 Programmable Waveform Generation Mode

In this mode, an signal output from the TY
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
Period
Count start condition
Count stop condition
Interrupt request generation timing In half of count source, after Timer Y underflows during secondary period (at the same
INT2/CNTR
pin functions
1
Read from timer
Write to timer
Select function
Notes:
1. When the counting stopped, the output level is that in the secondary period.
2. Even when counting the secondary period, read out the TYPR register.
3. The set value in the TYPR register and TYSC register are made effective 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.
4. The output is switched in sync with timer Y underflow in the secondary period.
Rev.0.91
2003 Sep 08
f
, f
, f
1
8
RING
• Down count
• When the timer underflows, it reloads the contents of primary reload register and sec-
ondary reload register alternately before continuing counting.
fi/(n+1)((m+1)+(p+1))
n: set value in PREY register, m: set value in TYPR register, p: set value in TYSC register
Write "1" (count start) to TYS bit in TYZMR register
Write "0" (count stop) to TYS bit in TYZMR register
time as the CNTR
1
Pulse output
Count value can be read out by reading TYPR register.
Same applies to PREY register
Value written to TYPR register is written to only reload register.
Same applies to TYSC register and PREY register
• 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 TY
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 TY
Y underflows during the secondary period
page 85 of 184
pin is inverted each time the counter underflows, while
OUT
Specification
output change) [Timer Y interrupt].
1
2
.
4
.
12.2 Timer (Timer Y)
3
.
synchronously when Timer
OUT
is
OUT

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c seriesTiny series

Table of Contents