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
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
8-bit resolution :
28
φ
AD
cycles
10-bit resolution :
33
φ
AD
cycles
(1) Start AN
0
pin
A/D conversion
2.9.7 Operation of A/D Converter (in repeat sweep mode 1)
Figure 2.9.15. Operation timing of repeat sweep 1 mode
In repeat sweep 1 mode, choose functions from those listed in Table 2.9.7. Operations of the circled items are
described below. Figure 2.9.14 shows ANi pin's sweep sequence, Figure 2.9.15 shows timing chart, and Figure
2.9.16 shows the set-up procedure.
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 on 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) Every time the A/D converter carries out A/D conversion on a selected analog input pin, the A/D converter
carries out A/D conversion on only one unselected pin, and then the A/D converter carries out A/D conver-
sion from the AN
0
pin again. The conversion result is transmitted to the corresponding AD register i every
time conversion on a pin is completed. The A/D conversion interrupt request bit does not go to “1”.
(4) The A/D converter continues operating until software goes the A/D convers
ion start flag to “0”.
Table 2.9.7. Choosed functions
Item
Item
Set-up
Set-up
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
A
n
a
l
o
g
i
n
p
u
t
p
i
n
O
O
Software trigger
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
Trigger by AD
TRG
Sample & Hold
Not activated
A
c
t
i
v
a
t
e
d
O
A
n
0
(
1
p
i
n
)
/
A
N
0
a
n
d
A
N
1
(
2
p
i
n
s
)
/
A
N
0
t
o
A
N
2
(
3
p
i
n
s
)
/
A
N
0
t
o
A
N
3
(
4
p
i
n
s
)
D
i
v
i
d
e
d
-
b
y
-
4
f
A
D
/
d
i
v
i
d
e
d
-
b
y
-
3
f
A
D
/
d
i
v
i
d
e
d
-
b
y
-
2
f
A
D
/
f
A
D
Figure 2.9.14. ANi pin's sweep sequence in repeat sweep mode
When AN
0
is selected
Converted analog input pin
Time
0
0
0
0
0
0
0
0
0
0
1
2
3
4
5
6
7
1
2
.
.
.
When AN
0
, AN
1
are selected
Converted analog input pin
Time
0
0
0
0
0
0
0
1
1
1
1
1
1
1
2
3
4
5
6
7
.
.
.
0
2
Converted analog input pin
Time
0
0
0
0
0
0
0
2
2
2
2
2
2
3
4
5
6
7
.
.
.
3
1
1
1
1
1
1
When AN
0
to AN
2
are selected
Converted analog input pin
Time
0
0
0
0
0
0
3
3
3
3
2
4
5
6
7
.
.
.
1
1
1
1
1
2
2
2
2
3
4
When AN
0
to AN
3
are selected
Содержание 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...