M37754 Mitsubishi, M37754 Datasheet - Page 58
![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
Operation mode
The operation mode is selected by bits 3 and 4 of A-D control regis-
ter 0 and bit 2 of A-D control register 1. The available operation
modes are one-shot, repeat, single sweep, repeat sweep 0, and re-
peat sweep 1. Either an A-D converter or a comparator can be se-
lected respectively for every pin in the following 5 modes. The
following description applies to the case where the bit of the com-
parator function select register is “0” and an A-D converter is se-
lected. It also applies to a comparator’s operation except that an A-D
conversion is changed to a comparator operation and the result of a
comparison is stored into the comparator result register.
(1) One-shot mode
One-shot mode is selected when bits 3 and 4 of A-D control register
0 are “0” and bit 2 of A-D control register 1 is “0”. The A-D conversion
pins are selected with bits 0 to 2 of A-D control register 0. A-D con-
version can be started by a software trigger or by an external trigger.
A software trigger is selected when bit 5 of A-D control register 0 is
“0” and an external trigger is selected when it is “1”. When a software
trigger is selected, A-D conversion or comparator operation is started
when bit 6 (A-D conversion start flag) is set to “1.”
Fig. 71 A-D control register bit configuration
58
Notes1, 2: Refer to Figure 9 Processor mode register 1 bit configuration.
Bit 6 at address
5F
7
16
(Note 1)
6
0
3: When f(X
5
mode.
4
Bit 2 at address
5F
3
16
IN
(Note 2)
2
) > 25 MHz, this can be selected only in 8-bit resolution
0
1
1
0
A-D conversion frequency select bit
A-D control register 1
A-D sweep pin select bit
When single sweep or repeat sweep
mode 0 is selected
0 0 : AN
0 1 : AN
1 0 : AN
1 1 : AN
When repeat sweep mode 1 is selected
0 0 : AN
0 1 : AN
1 0 : AN
1 1 : AN
A-D operation mode select bit 1
8/10-bit mode select bit
A-D converter frequency select bit 1
V
These bits are not used for A-D converter.
REF
0 : Other than repeat sweep mode 1
1 : Repeat sweep mode 1
0 : 8-bit mode
1 : 10-bit mode
0 : V
1 : V
Bit 1
0
0
1
1
0
0
1
1
connection select bit (Note 5)
REF
REF
0
0
0
0
0
0
0
0
, AN
, AN
– AN
– AN
– AN
– AN
– AN
is connected
is not connected
1
1
3
5
7
2
3
Bit 0
(2 pins)
(4 pins)
(6 pins)
(8 pins)
(1 pins)
(2 pins)
(3 pins)
(4 pins)
0
1
0
1
0
1
0
1
Address
1F
16
M37754M8C-XXXGP, M37754M8C-XXXHP
f(X
f(X
f(X
f(X
IN
f(X
f(X
f(X
)/2 (Note 3)
f
IN
IN
IN
IN
IN
IN
AD
)/16
)/8
)/4
)/8
)/4
)/2
When the bit of comparator function select register is “0” and bit 3 of
A-D control register 1 is “1”, A-D conversion ends after 59 f
and the interrupt request bit of the A-D interrupt control register is set
to “1.” At the same time, A-D control register 0 bit 6 (A-D conversion
start bit) is cleared to “0” and A-D conversion stops. The result of A-D
conversion is stored in the A-D register corresponding to the selected
pin.
When the bit of the comparator function select register is “1”, a com-
parator operation ends after 14 f
bit of the A-D interrupt control register is set to “1”. At the same
time, the A-D control register 0 bit 6 (A-D conversion start bit) is
cleared to “0” and the comparator operation stops. The result of the
comparison is stored into the bit of the comparator result register cor-
responding to the selected pin.
If an external trigger is selected, A-D conversion starts when the A-D
conversion start bit is “1” and the AD
“L”. In this case, the pins that can be used for A-D conversion are AN
to AN
put pin AN
except that the A-D conversion start bit is not cleared after A-D con-
version and a retrigger can be available during A-D conversion.
Notes 4: When f(X
M37754S4CGP, M37754S4CHP
Bit 6 at address
5F
16
6
(Note 1)
7
5: When the expansion function select bit (bit 5 of particular function select
because the AD
1
register 1 ; refer to Fig. 62) is “1”, bit 5 can be written and changed.
6
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
7
. This operation is the same as that for software trigger
5
4
Bit 2 at address
5F
IN
16
) > 12.5 MHz, this can be selected only in 8-bit resolution mode.
3
(Note 2)
_____
0
1
2
MITSUBISHI MICROCOMPUTERS
TRG
1
pin is multiplexed with analog voltage in-
0
A-D conversion frequency select bit
Bit 1
A-D control register 0
Analog input select bit
A-D operation mode select bit 0
Trigger select bit
A-D conversion start bit
A-D conversion frequency select bit 0
0 0 0 : Select AN
0 0 1 : Select AN
0 1 0 : Select AN
0 1 1 : Select AN
1 0 0 : Select AN
1 0 1 : Select AN
1 1 0 : Select AN
1 1 1 : Select AN
AD
0 : Software trigger
1 : AD
0 : Stop A-D conversion
1 : Start A-D conversion
0
0
1
1
0
0
1
1
0 0 : One-shot mode
0 1 : Repeat mode
1 0 : Single sweep mode
1 1 : Repeat sweep mode 0
_____
cycles and the interrupt request
TRG
Repeat sweep mode 1
TRG
input changes from “H” to
input trigger
Bit 0
0
1
0
1
0
1
0
1
1
2
3
4
5
7
0
6
Address
1E
16
f(X
f(X
f(X
f(X
f(X
f(X
IN
f(X
f
) (Note 4)
AD
IN
IN
IN
IN
IN
AD
IN
)/8
)/4
)/2
)/4
)/2
cycles,
)
0