deveopmen
Rev.B2 for proof reading
A-D Converter
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
290
(1) One-shot mode
In one-shot mode, the pin selected using the analog input pin select bit is used for one-shot A-D conver-
sion. Table 1.24.2 shows the specifications of one-shot mode.
Table 1.24.2. One-shot mode specifications
Item
Function
Start condition
Stop condition
Specification
The pin selected by the analog input pin select bit is used for one A-D conversion
Writing
“
1
”
to A-Di conversion start flag, external trigger
End of A-Di conversion (A-Di conversion start flag changes to
“
0
”
, except when
external trigger is selected)
Writing
“
0
”
to A-D conversion start flag
End of A-D conversion
One of ANj
0
to ANj
7
(j =non, 0, 2, 15), ANEX0, ANEX1
Read A-D register corresponding to selected pin
Interrupt request generation timing
Input pin
Reading of result of A-D converter
(2) Repeat mode
In repeat mode, the pin selected using the analog input pin select bit is used for repeated A-D conversion.
Table 1.24.3 shows the A-D control register in repeat mode.
Table 1.24.3. Repeat mode specifications
Item
Function
Specification
The pin selected by the analog input pin select bit is used for repeated A-D con-
version
Writing
“
1
”
to A-D conversion start flag, external trigger
Writing
“
0
”
to A-D conversion start flag
None generated
One of ANj
0
to ANj
7
(j =non, 0, 2, 15), ANEX0, ANEX1
Read A-D register corresponding to selected pin
Start condition
Stop condition
Interrupt request generation timing
Input pin
Reading of result of A-D converter
(3) Single sweep mode
In single sweep mode, the pins selected using the A-D sweep pin select bit are used for one-by-one A-D
conversion. Table 1.24.4 shows the A-D control register in single sweep mode.
Table 1.24.4. Single sweep mode specifications
Item
Function
Specification
The pins selected by the A-Di sweep pin select bit are used for one-by-one
A-D conversion
Writing
“
1
”
to A-D converter start flag, external trigger
End of A-Di conversion (A-D conversion start flag changes to
“
0
”
, except
when external trigger is selected)
Writing
“
0
”
to A-Di conversion start flag
End of sweep
ANj
0
and ANj
1
(2 pins), ANj
0
to ANj
3
(4 pins), ANj
0
to ANj
5
(6 pins), or ANj
0
to ANj
7
(8 pins) (j =non, 0, 2, 15)
Read A-D register corresponding to selected pin
Start condition
Stop condition
Interrupt request generation timing
Input pin
Reading of result of A-D converter