![](http://datasheet.mmic.net.cn/280000/M37902F8CHP_datasheet_16084061/M37902F8CHP_77.png)
77
M37902FCCHP, M37902FGCHP, M37902FJCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
Trigger
A-D conversion can be started by an internal trigger or by an exter-
nal trigger.
An internal 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 trigger is
selected, A-D conversion is started when bit 6 (A-D conversion start
bit) is set to
“
1.
”
When an external trigger is selected, the polarity of a trigger input
can be selected by bit 5 of the A-D control register 1. When bit 5 =
“
0
”
, a falling edge is selected, and when bit 5 =
“
1
”
, a rising edge is
selected.
“
1
”
and the
AD
TRG
input changes from
“
H
”
to
“
L
”
(or
“
L
”
to
“
H.
”
) In this case, the
0
to AN
6
because the
______
TRG
pin is multiplexed with an analog voltage input pin, AN
7
. If an
Fig. 78 Bit configuration of A-D control register 0
external trigger is selected, even when the A-D conversion is com-
pleted, the A-D conversion start bit keeps
“
1
”
. Also, a retrigger can be
available even when A-D conversion is in progress.
V
REF
connection
Whether to connect the reference voltage input (V
REF
) with the resis-
tor ladder network or not depends on bit 6 of the A-D control register
1. The V
REF
pin is connected when bit 6 is
“
0
”
and is disconnected
when bit 6 is
“
1
”
(High impedance state).
When A-D conversion is not performed, current from the V
REF
pin to
the resistor ladder network can be cut off by disconnecting resistor
ladder network from the V
REF
pin.
Before starting A-D conversion, wait for 1
μ
s or more after clearing
bit 6 to
“
0
”
.
A-D control register 0
Notes 1:
Ignored in the single sweep and repeat sweep modes. (Each of these bits may be
“
0
”
or
“
1
”
.)
2:
When using the AN
4
pin, be sure to clear the INT
3
pin select bit (bit 5 at address 94
16
) to
“
0
”
.
3:
When using the AN
5
pin, be sure to clear the INT
4
pin select bit (bit 6 at address 94
16
) to
“
0
”
.
4:
When using the AN
6
pin, be sure to clear the D-A
0
output enable bit (bit 0 at address 96
16
) to
“
0
”
(output disabled).
5:
When using the AN
7
pin, be sure to clear both of the INT
2
pin select bit (bit 4 at address 94
16
) and the D-A
1
output enable bit (bit 1 at address 96
16
) to
“
0
”
.
6:
When using an external trigger, be sure to clear the INT
2
pin select bit (bit 4 at address 94
16
) and D-A
1
output
enable bit (bit 1 at address 96
16
) to
“
0
”
.
7:
For writing to this bit, use the MOVM (MOVMB) instruction, or the STA (STAB, STAD) instruction.
8:
Rewriting to each bit of the A-D control register 0 (except for bit 6) must be performed while A-D conversion is stopped.
Address
1E
16
7
6
5
4
3
2
1
0
Analog input select bits
(Note 1)
(Valid in the one-shot and repeat modes.)
0 0 0 : Select AN
0
0 0 1 : Select AN
1
0 1 0 : Select AN
2
0 1 1 : Select AN
3
1 0 0 : Select AN
4
(Note 2)
1 0 1 : Select AN
5
(Note 3)
1 1 0 : Select AN
6
(Note 4)
1 1 1 : Select AN
7
(Note 5)
A-D operation mode select bits
0 0 : One-shot mode
0 1 : Repeat mode
1 0 : Single sweep mode
1 1 : Repeat sweep mode
Trigger select bit
0 : Internal trigger
1 : External trigger due to AD
TRG
input
(Note 6)
A-D conversion start bit
(Note 7)
0 : Stop A-D conversion
1 : Start A-D conversion
A-D conversion frequency (
φ
AD
) select bit 0