deveopmen
Intelligent I/O
Rev.B2 for proof reading
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
252
Group i waveform generation register j (i=0 to 3/j=0 to 7)
Symbol
GiPOj(i=0/j=0 to 2) 00C1
16,
00C0
16,
00C3
16,
00C2
16,
00C5
16,
00C4
16
GiPOj(i=0/j=3 to 5) 00C7
16,
00C6
16,
00C9
16,
00C8
16,
00CB
16,
00CA
16
GiPOj(i=0/j=6,7)
GiPOj(i=1/j=0 to 2) 0101
16,
0100
16,
0103
16,
0102
16,
0105
16,
0104
16
GiPOj(i=1/j=3 to 5) 0107
16,
0106
16,
0109
16,
0108
16,
010B
16,
010A
16
GiPOj(i=1/j=6,7)
GiPOj(i=2/j=0 to 2) 0141
16,
0140
16,
0143
16,
0142
16,
0145
16,
0144
16
GiPOj(i=2/j=3 to 5) 0147
16,
0146
16,
0149
16,
0148
16,
014B
16,
014A
16
GiPOj(i=2/j=6,7)
GiPOj(i=3/j=0 to 2) 0181
16,
0180
16,
0183
16,
0182
16,
0185
16,
0184
16
GiPOj(i=3/j=3 to 5) 0187
16,
0186
16,
0189
16,
0188
16,
018B
16,
018A
16
GiPOj(i=3/j=6,7)
Address
When reset
XXXX
16
XXXX
16
XXXX
16
XXXX
16
XXXX
16
XXXX
16
XXXX
16
XXXX
16
XXXX
16
XXXX
16
XXXX
16
XXXX
16
00CD
16,
00CC
16,
00CF
16,
00CE
16
010D
16,
010C
16,
010F
16,
010E
16
014D
16,
014C
16,
014F
16,
014E
16
018D
16,
018C
16,
018F
16,
018E
16
R W
Function
Setting range
b15
(b7)
b8
(b0)
A compared value for waveform generation
is stored.
b7
b0
0000
16 to
FFFF
16
(Note)
Note: When resetting the base timer on ch0, the timer is reset 2 clock cycles after it matches the waveform
generation register of ch0.
WG: Waveform Generation
Group 3 waveform generation mask register j (j=4 to 7)
b15
b8
Symbol
G3MKj (j=4,5)
G3MKj (j=6,7)
Address
0199
16
,0198
16
, 019B
16
,019A
16
019D
16
,019C
16
, 019F
16
,019E
16
When reset
XXXX
16
XXXX
16
R W
Function
Note 1: This function is provided only for the waveform generation functions on ch 4 to 7 of Intelligent I/O group 3.
Note 2: Comparison results are masked in bit positions where a "1" has been set for the register bits.
b7
b0
Setting range
Masks base timer value
0000
16 to
FFFF
16
(Note 1)
(Note 2)
(b7)
(b0)
Waveform generation (WG) function (group 0 to 3)
Waveforms are generated when the base timer value matches the value of WG register j.
There are five mode in WG function: single phase waveform output mode (group 0 to 3), phase delayed
waveform output mode (group 0 to 3), SR (Set/Reset) waveform output mode (group 0 to 3), bit modulation
PWM output mode (group 2 and 3) and parallel real-time port output mode (group 2 and 3).
The WG function related registers are shown in Figures 1.23.16 to 1.23.19.
Figure 1. 23. 16. WG-related register (1)