PRELIMINAR
Y
Notice:
This
is not
a final
specification.
Some
parametric
limits
are
subject
to change.
52
M37905M4C-XXXFP, M37905M4C-XXXSP
M37905M6C-XXXFP, M37905M6C-XXXSP
M37905M8C-XXXFP, M37905M8C-XXXSP
16-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
Pulse mode 1
This mode divides a pules output port into 6 bits and 2 bits and indi-
vidually control them.
When setting the pulse output mode select bit to “1”, and setting bits
2 and 1 to “0” and bit 0 to “1” of the waveform output select bits, the
following become the pulse output ports:
Six of RTP31, RTP30, RTP23, RTP22, RTP21, RTP20
When setting the pulse output mode select bit to “1”, and setting bits
2 and 0 to “0” and bits 1 to “1” of the waveform output select bits, two
of RTP33, RTP32 become the pulse output ports.
When setting the pulse output mode select bit to “1”, and setting bit 2
to “0” and bits 1 and 0 to “1” of the waveform output select bits, the
following two groups become the pulse output ports:
Two of RTP33, RTP32
Six of RTP31, RTP30, RTP23, RTP22, RTP21, RTP20
Each time the contents of timer A8 counter become 000016, the con-
tents of pulse output data register 1 (address A416)’s bits 7 and 6,
which corresponding to RTP33 and RTP32, are output from ports.
Each time the contents of timer A5 counter become 000016, the con-
tents of pulse output data register 0 (address A216)’s low-order 6 bits
(bits 5 to 0), which corresponding to RTP31, RTP30, RTP23, RTP22,
RTP21, RTP20, are output from ports.
Whether to control these pulse output ports by an underflow of timer
A5 or an input edge to pin RTPTRG1 is selected by the pulse output
trigger select bit of the pulse output data register 0 (bits 7 and 6 at
address A216).
Additionally, pulse width modulation can be applied to RTP31,
RTP30, RTP23, RTP22, RTP21, and RTP20. The pulse width modula-
tion timer select bits of the pulse output control register (bits 5 and 4
at address A016) select the type of pulse width modulation from the
following:
(1) When the pulse width modulation timer select bits = “00”, the
common modulation to six of RTP31, RTP30, RTP23, RTP22,
RTP21, RTP20 is selected. For this modulation, since timer A6 is
necessary, be sure to actuate this timer in the pulse width modu-
lation mode.
(2) When the pulse width modulation timer select bits = “01”, the
modulation to the following two groups is selected; one consists
of RTP31, RTP30, RTP23, and the other consists of RTP22,
RTP21, RTP20. For this modulation, since timers A6 and A7 are
necessary, be sure to actuate these timers in the pulse width
modulation mode.
(3) When the pulse width modulation timer select bits = “10”, the
modulation to the following three groups is selected; one consists
of RTP31, RTP30, and another consists of RTP23, RTP22,
and the other consists of RTP21, RTP20. For this modulation,
since timers A6, A7, and A9 are necessary, be sure to actuate
these timers in the pulse width modulation mode.
Additionally, at this time, be sure to set the corresponding pulse
width modulation enable bit of the pulse output data register 1 (bits 2
through 0 at address A416) to “1” in order to enable the pulse width
modulation.
The other operations are the same as that of pulse mode 0. Figure
59 shows example waveforms in pulse mode 1.
In ports selecting pulse mode 1, output of RTP33 and RTP32 is con-
trolled by the waveform output control bit 0 (bit 6) of the pulse output
control register; output of RTP31, RTP30, RTP23, RTP22, RTP21,
and RTP20 is done by the waveform output control bit 1 (bit 7).
When setting the waveform output control bit to “1”, waveform is out-
put from the corresponding port. When clearing that bit to “0”, wave-
form output from the corresponding port stops, and the port
becomes floating. These waveform output control bits 0, 1 are
cleared to “0” by reset, by inputting a falling edge to pin P4OUTCUT,
or by executing instructions.