Rev.2.00 Oct 16, 2006 page 229 of 354
REJ09B0340-0200
M30245 Group
2. A/D Converter
Figure 2.9.16. Set-up procedure of repeat sweep 1 mode
b
7
b
0
1
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 conversion start flag
1 : A/D conversion started
T
r
a
n
s
m
i
t
t
i
n
g
c
o
n
v
e
r
s
i
o
n
r
e
s
u
l
t
t
o
A
D
r
e
g
i
s
t
e
r
i
Eight low-order bits of A/D conversion result
b
7
b
0
(
b
1
5
)
(
b
8
)
b7
b
0
D
u
r
i
n
g
1
0
-
b
i
t
m
o
d
e
T
w
o
h
i
g
h
-
o
r
d
e
r
b
i
t
s
o
f
A
/
D
c
o
n
v
e
r
s
i
o
n
r
e
s
u
l
t
D
u
r
i
n
g
8
-
b
i
t
m
o
d
e
W
h
e
n
r
e
a
d
,
t
h
e
c
o
n
t
e
n
t
i
s
i
n
d
e
t
e
r
m
i
n
a
t
e
S
e
t
t
i
n
g
A
D
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
0
a
n
d
A
D
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
1
b
7
b
0
AD control register 1 [Address 03D7
16
]
ADCON1
8/10-bit mode select bit
0 : 8-bit mode
1 : 10-bit mode
Invalid in Repeat mode
Vref connect bit
1 : Vref connected
0
0
1
1
Start A/D conversion
b7
b0
0
Setting A/D conversion start flag
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
N
o
t
e
1
:
R
e
w
r
i
t
e
t
o
a
n
a
l
o
g
i
n
p
u
t
p
i
n
s
e
l
e
c
t
b
i
t
a
f
t
e
r
c
h
a
n
g
i
n
g
A
/
D
o
p
e
r
a
t
i
o
n
m
o
d
e
.
N
o
t
e
2
:
W
h
e
n
f
(
X
I
N
)
i
s
o
v
e
r
1
0
M
H
z
,
t
h
e
f
A
D
f
r
e
q
u
e
n
c
y
m
u
s
t
b
e
u
n
d
e
r
1
0
M
H
z
b
y
d
i
v
i
d
i
n
g
a
n
d
s
e
t
ø
A
D
f
r
e
q
u
e
n
c
y
t
o
1
0
M
H
z
o
r
l
o
w
e
r
.
b
7
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
AD register 0
[Address 03C1
16
, 03C0
16
]
AD0
AD register 1
[Address 03C3
16
, 03C2
16
]
AD1
AD register 2
[Address 03C5
16
, 03C4
16
]
AD2
AD register 3
[Address 03C7
16
, 03C6
16
]
AD3
AD register 4
[Address 03C9
16
, 03C8
16
]
AD4
AD register 5
[Address 03CB
16
, 03CA
16
] AD5
AD register 6
[Address 03CD
16
, 03CC
16
] AD6
AD register 7
[Address 03CF
16
, 03CE
16
] AD7
b
7
b
0
AD control register 0
[Address 03D6
16
]
ADCON0
R
e
p
e
a
t
s
w
e
e
p
m
o
d
e
0
i
s
s
e
l
e
c
t
e
d
(
N
o
t
e
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
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
1
1
I
n
v
a
l
i
d
i
n
r
e
p
e
a
t
s
w
e
e
p
m
o
d
e
0
C
o
n
v
e
r
t
s
n
o
n
-
s
e
l
e
c
t
e
d
p
i
n
a
f
t
e
r
c
o
n
v
e
r
t
i
n
g
p
i
n
s
s
e
l
e
c
t
e
d
t
h
r
o
u
g
h
t
h
e
A
/
D
s
w
e
e
p
p
i
n
s
e
l
e
c
t
b
i
t
.
A
/
D
o
p
e
r
a
t
i
o
n
m
o
d
e
s
e
l
e
c
t
b
i
t
1
(
N
o
t
e
1
)
1
(
M
u
s
t
a
l
w
a
y
s
b
e
“
1
”
i
n
r
e
p
e
a
t
s
w
e
e
p
m
o
d
e
1
)
F
r
e
q
u
e
n
c
y
s
e
l
e
c
t
b
i
t
1
(
N
o
t
e
2
)
0
:
f
A
D
/
2
o
r
f
A
D
/
4
i
s
s
e
l
e
c
t
e
d
1
:
f
A
D
o
r
f
A
D
/
3
i
s
s
e
l
e
c
t
e
d
F
r
e
q
u
e
n
c
y
s
e
l
e
c
t
b
i
t
0
(
N
o
t
e
2
)
0
:
f
A
D
/
3
o
r
f
A
D
/
4
i
s
s
e
l
e
c
t
e
d
1
:
f
A
D
o
r
f
A
D
/
2
i
s
s
e
l
e
c
t
e
d
Содержание 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...