Rev.2.00 Oct 16, 2006 page 219 of 354
REJ09B0340-0200
M30245 Group
2. A/D Converter
b7
b0
1
Setting A/D conversion start flag
A/D conversion start flag
1 : A/D conversion started
Reading conversion result
E
i
g
h
t
l
o
w
-
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
b7
b0
(b15)
(b8)
b7
b0
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
During 10-bit mode
Two high-order bits of A/D conversion result
During 8-bit mode
When read, the content is indeterminate
S
t
a
r
t
A
/
D
c
o
n
v
e
r
s
i
o
n
S
t
o
p
A
/
D
c
o
n
v
e
r
s
i
o
n
b
7
b
0
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
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
n
a
l
o
g
i
n
p
u
t
p
i
n
s
e
l
e
c
t
b
i
t
(
N
o
t
e
1
)
0
0
0
:
A
N
0
i
s
s
e
l
e
c
t
e
d
0
0
1
:
A
N
1
i
s
s
e
l
e
c
t
e
d
0
1
0
:
A
N
2
i
s
s
e
l
e
c
t
e
d
0
1
1
:
A
N
3
i
s
s
e
l
e
c
t
e
d
1
0
0
:
A
N
4
i
s
s
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
b
7
b
0
A
D
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
1
[
A
d
d
r
e
s
s
0
3
D
7
1
6
]
A
D
C
O
N
1
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
)
0
(
M
u
s
t
a
l
w
a
y
s
b
e
“
0
”
i
n
o
n
e
-
s
h
o
t
m
o
d
e
)
8/10-bit mode select bit
0 : 8-bit mode
1 : 10-bit mode
One-shot mode is selected (Note 1)
Trigger select bit
0 : Software trigger
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
0
I
n
v
a
l
i
d
i
n
o
n
e
-
s
h
o
t
m
o
d
e
V
r
e
f
c
o
n
n
e
c
t
b
i
t
1
:
V
r
e
f
c
o
n
n
e
c
t
e
d
0
0
0
1
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
AD control register 2 [Address 03D4
16
]
ADCON2
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
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.
0
0
0
Reserved bit
AD control register 0 [Address 03D6
16
]
ADCON0
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
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.5. Set-up procedure of one-shot mode
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...