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
e
l
e
c
t
e
d
1
0
1
:
A
N
5
i
s
s
e
l
e
c
t
e
d
1
1
0
:
A
N
6
i
s
s
e
l
e
c
t
e
d
1
1
1
:
A
N
7
i
s
s
e
l
e
c
t
e
d
b
2
b
1
b
0
b7
b
0
AD control register 1 [Address 03D7
16
]
ADCON1
A/D operation mode select bit 1 (Note 1)
0 (Must always be “0” in repeat mode)
8/10-bit mode select bit
0 : 8-bit mode
1 : 10-bit mode
R
e
p
e
a
t
m
o
d
e
i
s
s
e
l
e
c
t
e
d
(
N
o
t
e
1
)
A
/
D
c
o
n
v
e
r
s
i
o
n
s
t
a
r
t
f
l
a
g
0
:
A
/
D
c
o
n
v
e
r
s
i
o
n
d
i
s
a
b
l
e
d
0
0
0
1
Invalid in Repeat mode
Vref connect bit
1 : Vref connected
0
0
0
1
T
r
i
g
g
e
r
s
e
l
e
c
t
b
i
t
0
:
S
o
f
t
w
a
r
e
t
r
i
g
g
e
r
Start A/D conversion
b
7
b
0
0
S
e
t
t
i
n
g
A
/
D
c
o
n
v
e
r
s
i
o
n
s
t
a
r
t
f
l
a
g
A
D
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
0
[
A
d
d
r
e
s
s
0
3
D
6
1
6
]
A
D
C
O
N
0
A
/
D
c
o
n
v
e
r
s
i
o
n
s
t
a
r
t
f
l
a
g
0
:
A
/
D
c
o
n
v
e
r
s
i
o
n
d
i
s
a
b
l
e
d
Stop A/D conversion
Note 1 : Rewrite to analog input pin select bit after changing A/D operation mode.
Note 2 : When f(X
IN
) is over 10 MHz, the f
AD
frequency must be under 10 MHz by dividing and set ø
AD
frequency to 10 MHz or lower.
Repeatedly carries out A/D conversion on pins
selected through the A/D input pin select bit.
b7
b
0
S
e
l
e
c
t
i
n
g
S
a
m
p
l
e
a
n
d
h
o
l
d
A
D
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
2
[
A
d
d
r
e
s
s
0
3
D
4
1
6
]
A
D
C
O
N
2
A
/
D
c
o
n
v
e
r
s
i
o
n
m
e
t
h
o
d
s
e
l
e
c
t
b
i
t
1
:
W
i
t
h
s
a
m
p
l
e
a
n
d
h
o
l
d
M
u
s
t
a
l
w
a
y
s
b
e
s
e
t
t
o
“
0
”
1
0
0
0
Reserved bit
A
D
r
e
g
i
s
t
e
r
0
[
A
d
d
r
e
s
s
0
3
C
1
1
6
,
0
3
C
0
1
6
]
A
D
0
A
D
r
e
g
i
s
t
e
r
1
[
A
d
d
r
e
s
s
0
3
C
3
1
6
,
0
3
C
2
1
6
]
A
D
1
A
D
r
e
g
i
s
t
e
r
2
[
A
d
d
r
e
s
s
0
3
C
5
1
6
,
0
3
C
4
1
6
]
A
D
2
A
D
r
e
g
i
s
t
e
r
3
[
A
d
d
r
e
s
s
0
3
C
7
1
6
,
0
3
C
6
1
6
]
A
D
3
A
D
r
e
g
i
s
t
e
r
4
[
A
d
d
r
e
s
s
0
3
C
9
1
6
,
0
3
C
8
1
6
]
A
D
4
A
D
r
e
g
i
s
t
e
r
5
[
A
d
d
r
e
s
s
0
3
C
B
1
6
,
0
3
C
A
1
6
] A
D
5
A
D
r
e
g
i
s
t
e
r
6
[
A
d
d
r
e
s
s
0
3
C
D
1
6
,
0
3
C
C
1
6
] A
D
6
A
D
r
e
g
i
s
t
e
r
7
[
A
d
d
r
e
s
s
0
3
C
F
1
6
,
0
3
C
E
1
6
] A
D
7
Frequency select bit 1 (Note 2)
0 : f
AD
/2 or f
AD
/4 is selected
1 : f
AD
or f
AD
/3 is selected
Frequency select bit 0 (Note 2)
0 : f
AD
/3 or f
AD
/4 is selected
1 : f
AD
or
f
AD
/2 is selected
Figure 2.9.9. Set-up procedure of repeat 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...