deveopmen
Intelligent I/O
Rev.B2 for proof reading
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
254
Group i function enable register (i=0 to 3)
Symbol
GiFE (i=0 to 3)
Address
00E6
16
, 0126
16
, 0166
16
, 01A6
16
When reset
00
16
b7
b0
R W
Bit name
Bit
symbol
IFE0
IFE1
IFE2
IFE3
Ch0 function enable bit
IFE4
IFE5
IFE7
Function
IFE6
Whether the corresponding port
functions is selected
0 : Disables function on ch i
1 : Enables function on ch i
Ch1 function enable bit
Ch2 function enable bit
Ch3 function enable bit
Ch4 function enable bit
Ch5 function enable bit
Ch6 function enable bit
Ch7 function enable bit
Figure 1. 23. 18. WG-related register (3)
Group i waveform generation control register j (i=2 to 3/ j=0 to 7)
Symbol
GiPOCRj (i=2/j=0 to 3)
GiPOCRj (i=2/j=4 to 7)
GiPOCRj (i=3/j=0 to 3)
GiPOCRj (i=3/j=4 to 7)
Address
0150
16
, 0151
16
, 0152
16
, 0153
16
0154
16
, 0155
16
, 0156
16
, 0157
16
0190
16
, 0191
16
, 0192
16
, 0193
16
0194
16
, 0195
16
, 0196
16
, 0197
16
When reset
0X00 X000
2
0X00 X000
2
0X00 X000
2
0X00 X000
2
R W
Bit name
Function
Bit
symbol
MOD0
MOD1
MOD2
Operation mode
select bit
Output initial value
select bit
IVL
RLD
INV
0: Outputs "0" as the initial value
1: Outputs "1" as the initial value
Parallel RTP output
trigger select bit
PRT
0: Match of WG register j isn
’
t trigger
1: Match of WG register j is trigger
Inverted output function
select bit
b1
0
0
1
1
0
0
1
1
b0
0
1
0
1
0
1
0
1
: Single PWM mode
: S-R PWM mode
: Phase delayed PWM mode
: Must not be set
:
Bit modulation PWM mode
: Must not be set
: Must not be set
: Assigns communication output
to a port
0: Reloads a new count when CPU
writes the count
1: Reloads a new count when the
base timer i is reset
0: Output is not inverted
1: Output is inverted
RTP
RTP port function
select bit
0: Not use
1: Use
b2
0
0
0
0
1
1
1
1
Reload timing
select bit
(Note 2)
(Note 3)
(Note 1)
Note 1: This setting is valid only on even-numbered channels. When this mode is selected, settings for
corresponding odd-numbered (even number + 1) channels are ignored. Waveforms are output for
even-numbered channels, not output for odd-numbered channels.
Note 2: This setting is valid only for group 2 WG function ch0 and 1. Do not set this value for other channels.
Note 3: Inverted output function is allocated at the final stage of WG circuit. Therefore, when selecting "0"
output by IVL bit and inverted output by INV bit, "1" is output.
b7
b0