datasheetbank_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

M37702M2AXXXFP View Datasheet(PDF) - Mitsumi

Part Name
Description
View to exact match
M37702M2AXXXFP Datasheet PDF : 59 Pages
First Prev 31 32 33 34 35 36 37 38 39 40 Next Last
MITSUBISHI MICROCOMPUTERS
M37702M2AXXXFP, M37702M2BXXXFP
M37702S1AFP, M37702S1BFP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
(1) One-shot mode [00]
The A-D conversion pins are selected with the bit 0 to 2 of A-D
control register. A-D conversion can be started by a software trig-
ger or by an external trigger.
A software trigger is selected when the bit 5 of A-D control register
is “0” and an external trigger is selected when it is “1”.
When a software trigger is selected, A-D conversion is started
when bit 6 (A-D conversion start flag) is set. A-D conversion ends
after 57 φAD cycles and an interrupt request bit is set in the A-D
conversion interrupt control register. At the same time, A-D control
register bit 6 (A-D conversion start flag) is cleared and A-D con-
version stops. The result of A-D conversion is stored in the A-D
register corresponding to the selected pin.
If an external trigger is selected, A-D conversion starts when the
______
A-D conversion start flag is “1” and the ADTRG input changes from
“H” to “L”. In this case, the pins that can be used for A-D conver-
______
sion are AN0 to AN6 because the ADTRG pin is shared with the
analog voltage input pin AN7. The operation is the same as with
software trigger except that the A-D conversion start flag is not
cleared after A-D conversion and a retrigger can be available dur-
ing A-D conversion.
(2) Repeat mode [01]
The operation of this mode is the same as the operation of one-
shot mode except that when A-D conversion of the selected pin is
complete and the result is stored in the A-D register, conversion
does not stop, but is repeated. Also, no interrupt request is issued
in this mode. Furthermore, if software trigger is selected, the A-D
conversion start flag is not cleared. The contents of the A-D regis-
ter can be read at any time.
(3) Single sweep mode [10]
In the sweep mode, the number of analog input pins to be swept
can be selected. Analog input pins are selected by bits 1 and 0 of
the A-D sweep pin selection register (1F16 address) shown in Fig-
ure 45. Two pins, four pins, six pins, or eight pins can be selected
as analog input pins, depending on the contents of these bits.
A-D conversion is performed only for selected input pins. After
A-D conversion is performed for input of AN0 pin, the conversion
result is stored in A-D register 0, and in the same way, A-D conver-
sion is performed for selected pins one after another. After A-D
conversion is performed for all selected pins, the sweep is
stopped.
A-D conversion can be started with a software trigger or with an
external trigger input. A software trigger is selected when bit 5 is
“0” and an external trigger is selected when it is “1”.
When a software trigger is selected, A-D conversion is started
when A-D control register bit 6 (A-D conversion start flag) is set.
When A-D conversion of all selected pins end, an interrupt request
bit is set in the A-D conversion interrupt control register. At the
same time, A-D control register bit 6 (A-D conversion start flag) is
cleared and A-D conversion stops.
When an external trigger is selected, A-D conversion starts when
______
the A-D conversion start flag is “1” and the ADTRG input changes
from “H” to “L”. In this case, the A-D conversion result of the trig-
______
ger input itself is stored in the A-D register 7 because the ADTRG
pin is shared with AN7 pin.
The operation is the same as done by software trigger except that
the A-D conversion start flag is not cleared after A-D conversion
and a retrigger can be available during A-D conversion.
(4) Repeat sweep mode [11]
The difference with the single sweep mode is that A-D conversion
does not stop after converting from the AN0 pin to the selected
pins, but repeats again from the AN0 pin. The repeat is performed
among the selected pins. Also, no interrupt request is generated.
Furthermore, if software trigger is selected, the A-D conversion
start flag is not cleared. The A-D register can be read at any time.
76543210
A-D sweep pin
selection register
Address
1F16
0 0 : AN0, AN1 (2 pins)
0 1 : AN0 to AN3 (4 pins)
1 0 : AN0 to AN5 (6 pins)
1 1 : AN0 to AN7 (8 pins)
Fig. 45 A-D sweep pin selection register configuration
35
 

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]