
R8C/10 Group
Rev.1.20 Jan 27, 2006 page 108 of 180
REJ09B0019-0120
14.1 One-shot Mode
In one-shot mode, the input voltage on one selected pin is A/D converted once. Table 14.2 lists the
specifications of one-shot mode. Figure 14.4 shows the ADCON0 and ADCON1 registers in one-shot
mode.
A
D
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
0
(
1
)
S
y
m
b
o
lA
d
d
r
e
s
sA
f
t
e
r
r
e
s
e
t
A
D
C
O
N
00
0
D
6
1
6
0
0
0
0
0
X
X
X
2
7
6
5
4
3
2
1
0
A
n
a
l
o
g
i
n
p
u
t
p
i
n
s
e
l
e
c
t
b
i
t
(
2
)
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
1
i
s
s
e
l
e
c
t
e
d
C
H
0
B
i
t
s
y
m
b
o
lB
i
t
n
a
m
e Function
CH1
CH2
AD operation mode select
bit
(2)
0
:
O
n
e
-
s
h
o
t
m
o
d
e
M
D
ADST
A/D conversion start flag 0 : A/D conversion disabled
1 : A/D conversion started
F
r
e
q
u
e
n
c
y
s
e
l
e
c
t
b
i
t
0
(
3
)
0
:
f
A
D
/
4
i
s
s
e
l
e
c
t
e
d
1
:
f
A
D
/
2
i
s
s
e
l
e
c
t
e
d
C
K
S
0
R
W
AD control register 1
(1)
S
y
m
b
o
l
A
d
d
r
e
s
sA
f
t
e
r
r
e
s
e
t
A
D
C
O
N
10
0
D
7
1
6
0
0
1
6
Bit name FunctionBit symbol
7
6
5
4
3
2
1
0
b
2
b
1
b
0
N
O
T
E
S
:
1
.
I
f
t
h
e
A
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
0
R
W
R
W
R
W
RW
R
W
R
W
R
W
R
W
(b4)
Must set to “0”
Reserved bit
(b5)
00
Must set to “0”
R
e
s
e
r
v
e
d
b
i
t
(b2-b0)
R
W
R
W
R
W
R
W
R
W
R
W
Must set to “0”
R
e
s
e
r
v
e
d
b
i
t
(
b
6
-
b
7
)
0
1
0 : CKS0 bit in ADCON0 register is valid
1 : f
AD
is selected
Figure 14.4 ADCON0 Register and ADCON1 Registers in One-shot Mode
Item Specification
Function Input voltage on one pin selected by CH2 to CH0 bits is A/D converted once.
Start condition Set ADST bit to “1”
Stop condition
•
Completion of A/D conversion (ADST bit is set to “0”)
• Set ADST bit to “0”
Interrupt request generation timing
End of A/D conversion
Input pin One of AN0 to AN7, as selected
Reading of result of A/D converter
Read AD register
Table 14.2 One-shot Mode Specifications
14.1 One-shot Mode
Commenti su questo manuale