deveopmen
Intelligent I/O
Rev.B2 for proof reading
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
258
(3) SR (Set/Reset) waveform output mode (group 0 to 3)
This mode is set when the base timer value matches the value of WG register j (j is an even-numbered
channel), and reset when the base timer matches the WG register (j + 1) or the base timer value is
“
0
”
.
Specifications for the SR waveform output mode are given in Table 1.23.7 and an operating chart for the
SR waveform output mode in Figure 1.23.22.
Table 1. 23.7. Specifications of SR waveform output mode
Item
Specifications
Output waveform
When free run operation
Period
"H" level width
Resetting when base timer matches WG register 0 (ch0)
Period
"H" level width
m : values set to WG register j
: Base timer count source x 1/65536
: 1/base timer count source x (m-p)
: Base timer count source x 1/(k+2)
(Note 1)
: 1/base timer count source x (m-p)
p : values set to WG register i(j+1)
k : values set to WG register 0 (j is an even-numbered channel)
(Note 2)
Waveform output start condition
Write "1" to the function enable bit
(Note 3)
Waveform output stop condition
Write "0" to the function enable bit
Interrupt generation timing
When the base timer value matches the WG register j
OUTC pin
(Note 4)
Pulse output (Corresponding pins are set with the function select register.)
Read from the WG register
The set value is output
Write to the WG register
Can always write
Select function
(Note 5)
Initial value setting function
Sets output level used at waveform output start
Inverted output function
Inverts waveform output level and outputs the waveform from the OUTC pin
Note 1: The SR waveform output function that sets and resets the mode on ch0 and 1 cannot be used when the base
timer is reset by WG register 0 (ch0).
Note 2: Set WG register values for odd-numbered channels that are lower than even-numbered channels.
Note 3: On channels where both the time measurement function and waveform output function can be used, select the
waveform output function for the function select register (addresses 00E7
16
and 0127
16
).
Note 4: SR waveforms are output for even-numbered channels only.
Note 5: Settings for the WG control register on the odd-numbered channels are ignored.