Download Print this page

Renesas M16C/50 Series User Manual page 388

Advertisement

M16C/5L Group, M16C/56 Group
18.2.2
Waveform Generation Register j (G1POj) (j = 0 to 7)
Waveform Generation Register j
b15
b8
(b7)
(b0)
b7
Write to the G1POj register in 16-bit units.
The value written to this register is reflected to the internal buffer when the clock is synchronized with
the base timer count source (fBT1). When the waveform generation function is used, the output
waveform is changed when this register matches with the base timer. Refer to 18.3.3.1 "Single-Phase
Waveform Output Mode", 18.3.3.2 "Inverted Waveform Output Mode" and 18.3.3.3 "Set/Reset
Waveform Output Mode (SR Waveform Output Mode)" for details.
When the base timer value matches the G1PO0 register value while the RST1 bit in the G1BCR1
register is 1, the base timer becomes 0000h. When this function is used, the value of the G1POj
register (j = 1 to 7) used to generate output waveforms should be smaller than the value of the G1PO0
register. Do not set the G1PO0 register to 0000h. While the RST1 bit is 1, rewrite the G1PO0 register
when the BTS bit in the G1BCR1 register is 0 (base timer reset). Refer to 18.3.1.4 "Base Timer Reset
While the Base Timer is Counting" for details.
When the base timer value matches the G1POk register value (k = j - 2), while bits GT and GOC in the
G1TMCRj register (j = 6, 7) are both 1 (GT = 1: gate function used), the gate function is released. When
this function is used, the value set in the G1POk register should be smaller than the maximum value of
the base timer.
When the base timer reset is used with the G1BTRR register, set the register values as follows:
G1POk value < G1BTTR value
When the base timer reset is used with the G1PO0 register, set the register values as follows:
G1POk value < G1PO0 value
Refer to 18.3.2.1 "Gate Function (Channel 6 and 7)" for details.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
(j = 0 to 7)
b0
Address
Symbol
02C1h to 02C0h, 02C3h to 02C2h, 02C5h to 02C4h
G1PO0 to G1PO2
02C7h to 02C6h, 02C9h to 02C8h, 02CBh to 02CAh
G1PO3 to G1PO5
02CDh to 02CCh, 02CFh to 02CEh
G1PO6 to G1PO7
• When the RLD bit in the G1POCRj register is 0, the value written to the
G1POj register is immediately reloaded to an internal buffer and
reflected in the output waveform.
• When the RLD bit in the G1POCRj register is 1 and the base timer is
reset, the value is reloaded.
Function
18. Timer S
Reset Value
XXXXh
XXXXh
XXXXh
Setting Range
RW
0000h to FFFFh
RW
Page 351 of 803

Advertisement

loading