M37754 Mitsubishi, M37754 Datasheet - Page 44
![no-image](/images/manufacturer_photos/0/4/451/mitsubishi_sml.jpg)
M37754
Manufacturer Part Number
M37754
Description
SINGLE-CHIP 16BIT CMOS MICROCOMPUTER
Manufacturer
Mitsubishi
Datasheet
1.M37754.pdf
(114 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M37754S4CGP
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Additionally, pulse width modulation can be applied for the pulse out-
put port RTP1. Because the timer A2 is used for pulse width modula-
tion, actuate timer A2 in the pulse width modulation mode. When any
bit of pulse output data is “1”, the pulse to which pulse width modula-
tion is applied is output from the pulse output port when the contents
of timer A1 counter become 0000
Pulse width modulation by timer A2 is applied when setting the pulse
width modulation select bit 0 (bit 4) of waveform output mode regis-
ter to “1”, pulse width modulation select bit 1 (bit 5) to “0,” and the
pulse width modulation data bit of RTP1 (bit 5) of pulse output data
register 0 to “1”.
RTP0
output data register 0 by setting the polarity select bit (bit 3) of wave-
form output mode register. When the polarity select bit is “1”, the re-
versed contents of pulse output data register 0 is output; when that
bit is “0”, the contents of pulse output data register 0 are output as it
is. Figure 52 shows example waveforms in the pulse mode 0.
In ports selecting the pulse mode 0, output of RTP0
and RTP0
of waveform output mode register; output of RTP1
and RTP1
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. The waveform output control bits are cleared to “0”
by reset other than clearing with instructions.
Pulse mode 1
This mode divides a pulse output port into 6 bits and 2 bits, and indi-
vidually controls them.
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:
•Six of RTP1
•Two of RTP0
Timer A1 controls six of RTP1
RTP0
Additionally, pulse width modulation can be applied for the pulse out-
put ports (RTP1, RTP0
bit 1 (bit 5) of waveform output mode register selects the type of
modulation: the common modulation to six of RTP1
RTP1
RTP1
When setting that bit to “0”, the common modulation to six ports is
applied; when setting that bit to “1”, the modulation to every two ports
is applied. The timer A2 is used for the common modulation to six
ports; the timers A2, A3 and A4 are used for the modulation to every
two ports. Accordingly, actuate the respective timers in the pulse
width modulation mode. When any bit of pulse output data is “1”, the
pulse to which pulse width modulation is applied is output from the
pulse output port when the contents of timer A1 counter become
0000
Pulse width modulation by corresponding timers is applied when set-
ting the pulse width modulation select bit 0 of waveform output mode
register to “1” and the corresponding pulse width modulation data
bits (bits 7 to 5) of pulse output data register 0 to “1”.
44
16
3
2
0
3
, RTP0
; timer A0 controls two of RTP0
, RTP0
.
and RTP1
0
0
is controlled by the waveform output control bit 0 (bit 6)
is done by the waveform output control bit 1 (bit 7).
3
2
, RTP1
1
3
, RTP0
, RTP0
and RTP0
2
, RTP1
2
1
, RTP1
0
3
.
and RTP0
, RTP0
1
2
and RTP1
or the modulation to every two ports of
1
3
, RTP1
, RTP1
2
). The pulse width modulation select
16
0
can output the contents of pulse
.
0
0
2
, RTP0
1
, RTP0
, RTP1
, RTP0
3
3
1
, RTP0
0
, RTP1
and RTP0
.
3
3
3
, RTP1
, RTP1
, RTP0
2
0
M37754M8C-XXXGP, M37754M8C-XXXHP
, RTP0
2
2
.
2
2
, RTP1
, RTP1
, RTP0
3
, and
1
1
1
,
The polarity select bit (bit 3) of waveform output mode register must
be “0” to select the positive polarity. The other operations are the
same as that of pulse mode 0. Figure 53 shows example waveforms
in the pulse mode 1.
In ports selecting the pulse mode 1, output of RTP0
controlled by the waveform output control bit 0 (bit 6) of waveform
output mode register; output of RTP1
RTP0
(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. The waveform output control bits are cleared to “0” by reset
other than clearing with instructions.
Fig. 51 Bit configuration of pulse output data registers 1 and 0 in
Note : Only when bit 5 of the particular function select register 1
7
7
M37754S4CGP, M37754S4CHP
6
6
3
(in Fig. 15) is set to “1”, this register’s contents can be
changed from the status after reset (in Fig.76).
and RTP0
5
5
pulse output port mode
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
4
4
3
3
2
2
2
1
1
is done by the waveform output control bit 1
0
0
MITSUBISHI MICROCOMPUTERS
Pulse output data register 1
RTP1
RTP1
RTP1
RTP1
Pulse output mode select bit
0 : Pulse mode 0
1 : Pulse mode 1
Pulse output data register 0
RTP0
RTP0
RTP0
RTP0
In pulse mode 0
In pulse mode 1
In pulse mode 1
In pulse mode 1
: Not used in pulse output port mode
0
1
2
3
0
1
2
3
pulse output data bit
pulse output data bit
pulse output data bit
pulse output data bit
pulse output data bit
pulse output data bit
pulse output data bit
pulse output data bit
Pulse width modulation data bit of
RTP1
Pulse width modulation data bit of
RTP1
Pulse width modulation data bit of RTP1
Pulse width modulation data bit of
RTP0
3
3
1
3
, RTP1
, RTP0
, RTP1
, RTP1
0
2
2
2
Address
Address
, RTP1
1
and RTP0
1C
1D
1
16
16
, RTP1
0
is
0
,