Rev.2.00 Oct 16, 2006 page 226 of 354
REJ09B0340-0200
M30245 Group
2. A/D Converter
(2) AN1 conversion begins after AN0
conversion is complete
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
Result
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
(3) Consecutive conversion
A/D conversion
is complete
(
1
)
S
t
a
r
t
A
/
D
c
o
n
v
e
r
s
i
o
n
S
e
t
t
o
“
1
”
b
y
s
o
f
t
w
a
r
e
.
C
l
e
a
r
e
d
t
o
“
0
”
b
y
s
o
f
t
w
a
r
e
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
.
(
4
)
In repeat sweep 0 mode, choose functions from those listed in Table 2.9.6. Operations of the circled items
are described below. Figure 2.9.12 shows timing chart, and Figure 2.9.13 shows the set-up procedure.
2.9.6 Operation of A/D Converter (in repeat sweep mode 0)
I
t
e
m
Item
Set-up
S
e
t
-
u
p
Operation clock
AD
8
-
b
i
t
/
1
0
-
b
i
t
O
R
e
s
o
l
u
t
i
o
n
Analog input pin
AN
0
and AN
1
(2 pins) / AN
0
to AN
3
(4 pins) / AN
0
to AN
5
(6 pins) / AN
0
to AN
7
(8 pins)
O
O
Software trigger
Trigger for starting
A/D conversion
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
Activated
O
Divided-by-4 f
AD
/ divided-
by-3 f
AD
/ divided-by-2 f
AD
/ f
AD
Operation
Table 2.9.6. Choosed functions
(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.
(3) The A/D converter converts all pins selected by the user. The conversion result is transmitted
to AD register i corresponding to each pin every time A/D conversion on the pin is completed.
The A/D conversion interrupt request bit does not go to “1”.
(4) The A/D converter continues operating until the A/D conversion start flag is set to “0” by
software.
Figure 2.9.12. Operation timing of repeat sweep 0 mode
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...