English
Language : 

M37733MHBXXXFP Datasheet, PDF (43/89 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
PRELIMINARY NSootimcee: pTahriasmisentroict alimfinitsalasrpeescuifbicjeactitotno. change.
(3) Single sweep mode
Single sweep mode is selected when bit 3 of A-D control register 0 is
“0” and bit 4 is “1”.
In the single 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 control register 1 (address 1F16). 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 conversion 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 0 bit 6 (A-D conversion start flag) is set to “1”.
When A-D conversion of all selected pins ends, an interrupt request
bit of the A-D conversion interrupt control register is set to “1”. At the
same time, A-D conversion start flag is cleared and A-D conversion
stops.
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 A-D conversion result which is stored in the A-D
register 5 becomes invalid because the ADTRG pin is also used as the
AN5 pin.
The operation by external trigger is the same as that 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
Repeat sweep mode 0 is selected when bit 3 of A-D control register
0 is “1” and bit 4 is “1”.
The difference from 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.
MITSUBISHI MICROCOMPUTERS
M37733MHBXXXFP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
43