Renesas M16C/26A Series Hardware Manual page 206

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6
A/D control register 0 (1)
b7
b6
b5
b4
0
NOTES:
1. If the ADCON0 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. AN
30
ADCON2 register to select the desired pin.
3. After rewriting the MD1 to MD0 bits, set the CH2 to CH0 bits over again using an another instruction.
A/D control register 1 (1)
b7
b6
b5
b4
1
NOTES:
1. If the ADCON1 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. If the VCUT bit is reset from "0" (V
conversion.
A/D control register 2 (1)
b7
b6
b5
b4
0
NOTE:
1. If the ADCON2 register is rewritten during A/D conversion, the conversion result will be indeterminate.
Figure 14.1.1.2 ADCON0 to ADCON2 Registers in One-Shot Mode
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
b3
b2
b1
b0
Symbol
0
ADCON0
Bit symbol
Bit name
Analog Input Pin
CH0
Select Bit (2, 3)
CH1
CH2
MD0
A/D Operation Mode
Select Bit 0 (3)
MD1
Trigger Select Bit
TRG
A/D Conversion Start
ADST
Flag
CKS0
Frequency Select Bit 0
to AN
and AN
can be used in the same way as AN
32
24
b3
b2
b1
b0
Symbol
0
ADCON1
Bit symbol
Bit name
A/D Sweep Pin
SCAN0
Select Bit
SCAN1
A/D Operation Mode
MD2
Select Bit 1
8/10-Bit Mode Select Bit
BITS
CKS1
Frequency Select Bit 1
VCUT
V
Connect Bit
REF
Nothing is assigned. When write, set to "0".
(b7-b6)
When read, its content is "0".
unconnected) to "1" (V
REF
b3
b2
b1
b0
Symbol
0
ADCON2
Bit symbol
A/D Conversion Method
SMP
Select Bit
ADGSEL0
A/D Input Group Select
Bit
ADGSEL1
Reserved Bit
(b3)
Frequency Select Bit 2
CKS2
Trigger Select Bit 1
TRG1
Nothing is assigned. When write, set to "0".
(b7-b6)
When read, its content is "0".
page 187
f o
3
2
9
6
C
2 /
6
) T
Address
After reset
03D6
00000XXX
16
2
Function
b2 b1 b0
0 0 0 : Select AN
0
0 0 1 : Select AN
1
0 1 0 : Select AN
2
0 1 1 : Select AN
3
1 0 0 : Select AN
4
1 0 1 : Select AN
5
1 1 0 : Select AN
6
1 1 1 : Select AN
7
b4 b3
0 0 : One-shot mode or delayed trigger mode
0,1
0 : Software trigger
1 : Hardware trigger (AD
0 : A/D conversion disabled
1 : A/D conversion started
See Table 14.2 A/D Conversion
Frequency Select
to AN
. Use the ADGSEL1 to ADGSEL0 bits in the
0
7
Address
After reset
03D7
00
16
16
Function
Invalid in one-shot mode
0 : Any mode other than repeat sweep
mode 1
0 : 8-bit mode
1 : 10-bit mode
Refer to Table 14.2 A/D Conversion
Frequency Select
1 : V
connected
(2)
REF
connected), wait for 1 µs or more before starting A/D
REF
Address
After reset
03D4
00
16
16
Bit name
Function
0 : Without sample and hold
1 : With sample and hold
b2 b1
0 0 : Select port P10 group (AN
0 1 : Select port P9 group (AN
1 0 : Do not set
1 1 : Select port P9 group (AN
"0"
Set to
See Table 14.2 A/D Conversion
Frequency Select
Set to "0" in one-shot mode
RW
RW
RW
RW
RW
RW
RW
trigger)
TRG
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
)
RW
i
)
3i
RW
)
24
RW
RW
RW
14. A/D Converter

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents