Rev.2.00 Oct 16, 2006 page 224 of 354
REJ09B0340-0200
M30245 Group
2. A/D Converter
In single sweep mode, choose functions from those listed in Table 2.9.5. Operations of the circled items
are described below. Figure 2.9.10 shows timing chart, and Figure 2.9.11 shows the set-up procedure.
2.9.5 Operation of A/D Converter (in single sweep mode)
Figure 2.9.10. Operation timing of single sweep mode
I
t
e
m
Item
Set-up
S
e
t
-
u
p
O
p
e
r
a
t
i
o
n
c
l
o
c
k
A
D
8
-
b
i
t
/
1
0
-
b
i
t
O
R
e
s
o
l
u
t
i
o
n
Analog input pin
A
N
0
a
n
d
A
N
1
(
2
p
i
n
s
)
/
A
N
0
t
o
A
N
3
(
4
p
i
n
s
)
/
A
N
0
t
o
A
N
5
(
6
p
i
n
s
)
/
A
N
0
t
o
A
N
7
(
8
p
i
n
s
)
O
O
S
o
f
t
w
a
r
e
t
r
i
g
g
e
r
T
r
i
g
g
e
r
f
o
r
s
t
a
r
t
i
n
g
A
/
D
c
o
n
v
e
r
s
i
o
n
O
T
r
i
g
g
e
r
b
y
A
D
T
R
G
S
a
m
p
l
e
&
H
o
l
d
N
o
t
a
c
t
i
v
a
t
e
d
A
c
t
i
v
a
t
e
d
O
Divided-by-4 f
AD
/ divided-
by-3 f
AD
/ divided-by-2 f
AD
/ f
AD
Operation (1) Setting the A/D conversion start flag to “1” causes the A/D converter to start the conversion on
voltage input to the AN
0
pin.
(2) After the A/D conversion of voltage input to the AN
0
pin is completed, the content of the
successive comparison register (conversion result) is transmitted to AD register 0. The A/D
converter converts all analog input pins selected by the user. The conversion result is trans-
mitted to AD register i corresponding to each pin, every time conversion on one pin is com-
pleted.
(3) When the A/D conversion on all the analog input pins selected is completed, the A/D conver-
sion interrupt request bit goes to “1”. At this time, the A/D conversion start flag goes to “0”.
The A/D converter stops operating.
Table 2.9.5. Choosed functions
Cleared to “0” when interrupt request is accepted, or cleared by software
A
/
D
c
o
n
v
e
r
s
i
o
n
s
t
a
r
t
f
l
a
g
“
1
”
“
0
”
A
D
r
e
g
i
s
t
e
r
0
A
D
r
e
g
i
s
t
e
r
1
φ
A
D
A
D
r
e
g
i
s
t
e
r
i
R
e
s
u
l
t
Result
R
e
s
u
l
t
S
e
t
t
o
“
1
”
b
y
s
o
f
t
w
a
r
e
8
-
b
i
t
r
e
s
o
l
u
t
i
o
n
:
2
8
φ
A
D
c
y
c
l
e
s
1
0
-
b
i
t
r
e
s
o
l
u
t
i
o
n
:
3
3
φ
A
D
c
y
c
l
e
s
8
-
b
i
t
r
e
s
o
l
u
t
i
o
n
:
2
8
φ
A
D
c
y
c
l
e
s
1
0
-
b
i
t
r
e
s
o
l
u
t
i
o
n
:
3
3
φ
A
D
c
y
c
l
e
s
(
1
)
S
t
a
r
t
A
/
D
c
o
n
v
e
r
s
i
o
n
After A/D conversion on AN
0
pin is complete,
A/D converter begins converting all pins selected
A
/
D
c
o
n
v
e
r
s
i
o
n
i
s
c
o
m
p
l
e
t
e
(
2
)
N
o
t
e
: W
h
e
n
φ
A
D
f
r
e
q
u
e
n
c
y
i
s
l
e
s
s
t
h
a
n
1
M
H
Z
,
s
a
m
p
l
e
a
n
d
h
o
l
d
f
u
n
c
t
i
o
n
c
a
n
n
o
t
b
e
s
e
l
e
c
t
e
d
.
C
o
n
v
e
r
s
i
o
n
r
a
t
e
p
e
r
a
n
a
l
o
g
i
n
p
u
t
p
i
n
i
s
4
9
φ
A
D
c
y
c
l
e
s
f
o
r
8
-
b
i
t
r
e
s
o
l
u
t
i
o
n
a
n
d
5
9
φ
A
D
c
y
c
l
e
s
f
o
r
1
0
-
b
i
t
r
e
s
o
l
u
t
i
o
n
.
(
3
)
A
/
D
c
o
n
v
e
r
s
i
o
n
i
n
t
e
r
r
u
p
t
r
e
q
u
e
s
t
b
i
t
“
1
”
“
0
”
Summary of Contents for M16C FAMILY
Page 12: ...Chapter 1 Hardware...
Page 13: ...See M30245 group datasheet...
Page 14: ...Chapter 2 Peripheral Functions Usage...
Page 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Page 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Page 340: ...Chapter 4 External Buses...
Page 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Page 362: ...Chapter 5 Standard Characteristics...