Renesas M16C/29 Series Hardware Manual page 241

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group
A/D control register 0 (Note 1)
b7
A/D control register 1 (Note 1)
b7
A/D control register 2 (Note 1)
b7
Note 1: If the ADCON2 register is rewritten during A/D conversion, the conversion result will be indeterminate.
Figure 15.1.1.2 ADCON0 to ADCON2 Registers in One-Shot Mode
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
b6
b5
b4
b3
b2
b1
b0
Symbol
0
0
ADCON0
Bit symbol
CH0
CH1
CH2
MD0
MD1
TRG
ADST
CKS0
Note 1: If the ADCON0 register is rewritten during A/D conversion, the conversion result will be indeterminate.
Note 2: AN
to AN
, AN
to AN
, and AN
00
07
20
27
Use the ADGSEL1 to ADGSEL 0 bits in the ADCON2 register to select the desired pin.
Note 3: After rewriting the MD1 to MD0 bits, set the CH2 to CH0 bits over again using an another instruction.
b6
b5
b4
b3
b2
b1
b0
Symbol
1
0
ADCON1
Bit symbol
SCAN0
SCAN1
MD2
BITS
CKS1
VCUT
(b7-b6)
Note 1: If the ADCON1 register is rewritten during A/D conversion, the conversion result will be indeterminate.
Note 2: If the VCUT bit is reset from "0" (V
A/D conversion.
b6
b5
b4
b3
b2
b1
b0
Symbol
0
0
ADCON2
Bit symbol
SMP
ADGSEL0
ADGSEL1
(b3)
CKS2
TRG1
(b7-b6)
page 221 of 402
Address
After reset
03D6
00000XXX
16
2
Bit name
b2 b1 b0
Analog Input Pin
0 0 0 : Select AN
Select Bit (Note 2, 3)
0 0 1 : Select AN
0 1 0 : Select AN
0 1 1 : Select AN
1 0 0 : Select AN
1 0 1 : Select AN
1 1 0 : Select AN
1 1 1 : Select AN
b4 b3
A/D Operation Mode
0 0 : One-shot mode or delayed trigger mode
Select Bit 0 (Note 3)
0,1
Trigger Select Bit
0 : Software trigger
1 : Hardware trigger (AD
A/D Conversion Start
0 : A/D conversion disabled
Flag
1 : A/D conversion started
See Table 15.2 A/D Conversion
Frequency Select Bit 0
Frequency Select
to AN
can be used in the same way as AN
30
32
Address
After reset
03D7
00
16
16
Bit name
A/D Sweep Pin
Invalid in one-shot mode
Select Bit
A/D Operation Mode
0 : Any mode other than repeat sweep
Select Bit 1
mode 1
8/10-Bit Mode Select Bit
0 : 8-bit mode
1 : 10-bit mode
Refer to Table 15.2 A/D Conversion
Frequency Select Bit 1
Frequency Select
1 : V
connected
(Note 2)
V
Connect Bit
REF
REF
Nothing is assigned. When write, set to "0".
When read, its content is "0".
unconnected) to "1" (V
connected), wait for 1 µs or more before starting
REF
REF
Address
After reset
03D4
00
16
16
Bit name
0 : Without sample and hold
A/D Conversion Method
1 : With sample and hold
Select Bit
b2 b1
A/D Input Group Select
0 0 : Select port P10 group (AN
Bit
0 1 : Select port P9 group (AN
1 0 : Select port P0 group (AN
1 1 : Select port P1/P9 group (AN
"0"
Reserved Bit
Set to
Frequency Select Bit 2
See Table 15.2 A/D Conversion
Frequency Select
Trigger Select Bit 1
Set to "0" in one-shot mode
Nothing is assigned. When write, set to "0".
When read, its content is "0".
15. A/D Converter
Function
RW
0
RW
1
2
3
RW
4
5
6
RW
7
RW
RW
RW
trigger)
TRG
RW
RW
to AN
.
0
7
Function
RW
RW
RW
RW
RW
RW
RW
Function
RW
RW
RW
)
i
)
3i
)
0i
RW
)
2i
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents