Set/Reset Waveform Output (Sr Waveform Output) Mode - Renesas M16C/29 Series User Manual

Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M
1
6
C
2 /
9
G
o r
u
p

13.5.3 Set/Reset Waveform Output (SR Waveform Output) Mode

Output signal level of the OUTC1j pin becomes high ("H") when the INV bit in the G1POCRi (i=0 to 7) is
set to 0 (output is not reversed) and the base timer value matches the G1POj register value (j=0, 2, 4, 6).
The "H" signal switches to a low-level ("L") signal when the base timer value matches the G1POk (k=j+1)
register value. Table 13.10 lists specifications of SR waveform mode. Figure 13.24 shows an example of
the SR waveform mode operation.
Table 13.10 SR Waveform Output Mode Specifications
Item
Output waveform
Waveform output start condition
Waveform output stop condition
Interrupt request
(3)
OUTC1j pin
Selectable function
NOTES:
1. The odd channel's waveform generating register must have greater value than the even channel's.
2. When the G1PO0 register resets the base timer, the channel 0 and channel 1 SR waveform generating functions
are not available.
3. Pins OUTC1
, OUTC1
0
R
e
. v
1
1 .
2
M
r a
3 .
, 0
2
0
0
7
R
E
J
0
9
B
0
1
0
1
0 -
1
1
2
• Free-running operation
(the RST1, RTS2, and RST4 bits of the G1BCR1 and G1BCR0 registers are set
to 0 (no reset))
Cycle
Inverse level width
• The base timer is cleared to 0000
following register
(a) G1PO0 register (enabled by setting RST1 bit to 1, and bits RST4 and RST2 to 0)
(b) G1BTRR register (enabled by setting RST4 bit to 1, and bits RST2 and RST1 to 0)
Cycle
Inverse level width
m : setting value of the G1POj register (j=0, 2, 4, 6 )
n : setting value of the G1POk register (k=j+1)
p : setting value of the G1PO0 register or G1BTRR register
value range of m, n, p: 0001
Bits IFEj and IFEk in the G1FE register is set to 1 (channel j function enabled)
Bits IFEj and IFEk are set to 0 (channel j function disabled)
The G1IRj bit in the G1IR register is set to 1 when the base timer value
matches the G1POj register value.
The G1IRk bit in the interrupt request register is set to 1 when the base timer
value matches the G1POk register value (See Figure 13.24)
Pulse signal output pin
• Default value set function : Set starting waveform output level
• Inverse output function: Waveform output signal is inversed and provided
from the OUTC1j pin
, OUTC14, OUTC1
2
page 166
f o
4
5
8
Specification
65536
:
f
BT1
n-m
(1)
:
f
BT1
16
p+2
:
f
BT1
n-m
(1)
:
f
BT1
.
6
by matching the base timer with either
to FFFD
16
16
13. Timer S
(2)
, or

Advertisement

Table of Contents
loading

Table of Contents