Renesas M16C/29 Series Hardware Manual page 263

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
b6
Note 1: If the ADCON0 register is rewritten during A/D conversion, the conversion result will be indeterminate.
Note 2: Do not write "1" in delayed trigger mode 1. When write, set to "0".
A/D control register 1 (Note 1)
b7
b6
0 0
Note 1: If the ADCON1 register is rewritten during A/D conversion, the conversion result will be indeterminate.
Note 2: AN
Note 3: If the VCUT bit is reset from "0" (V
A/D control register 2 (Note 1)
b7
b6
Note 1: If the ADCON2 register is rewritten during A/D conversion, the conversion result will be indeterminate.
Note 2: Set to "1" in delayed trigger mode 1.
Figure 15.1.8.4 ADCON0 to ADCON2 Registers in Delayed Trigger Mode 1
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
b5
b4
b3
b2
b1
b0
Symbol
0
0
1
1
1
ADCON0
Bit symbol
Analog Input Pin
CH0
Select Bit
CH1
CH2
MD0
A/D Operation Mode
Select Bit 0
MD1
Trigger Select Bit
TR
G
A/D Conversion Start
ADST
Flag
CKS0
Frequency Select Bit 0
b5
b4
b3
b2
b1
b0
Symbol
1
0
ADCON1
Bit symbol
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
REF
Reserved Bit
(b7-b6)
to AN
, AN
to AN
, and AN
00
07
20
27
30
Use the ADGSEL1 to ADGSEL0 bits in the ADCON2 register to select the desired pin.
REF
A/D conversion.
b5
b4
b3
b2
b1
b0
Symbol
0
1
ADCON2
Bit symbol
A/D Conversion Method
SMP
Select Bit (Note 2)
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 243 of 402
Address
After reset
03D6
00000XXX
16
2
Bit name
b2 b1 b0
1 1 1 : Set to "111b" in delayed trigger
mode 1
b4 b3
0 0 : One-shot mode or delayed trigger mode
0,1
Refer to Table 15.1.8.2 Trigger Select Bit
Setting in Delayed Trigger Mode 1
0 : A/D conversion disabled
(Note 2)
1 : A/D conversion started
Refer to Table 15.2 A/D Conversion
Frequency Select
Address
After reset
03D7
00
16
16
Bit name
When selecting delayed trigger mode 1
(Note 2)
b1 b0
0 0: AN
to AN
(2 pins)
0
1
0 1: AN
to AN
(4 pins)
0
3
1 0: AN
to AN
(6 pins)
0
5
1 1: AN
to AN
(8 pins)
0
7
0 : Any mode other than repeat sweep
mode 1
0 : 8-bit mode
1 : 10-bit mode
Refer to Table 15.2 A/D Conversion
Frequency Select
1 : V
connected
Connect Bit
(Note 3)
REF
Set to "0"
to AN
can be used in the same way as AN
32
unconnected) to "1" (V
connected), wait for 1 µs or more before starting
REF
Address
After reset
03D4
00
16
16
Bit name
1 : With sample and hold
b2 b1
0 0 : Select port P10 group (AN
0 1 : Select port P9 group (AN
1 0 : Select port P0 group (AN
1 1 : Select port P1/P9 group (AN
"0"
Set to
Refer to Table 15.2 A/D Conversion
Frequency Select
Refer to Table 15.1.8.2 Trigger Select Bit
Setting in Delayed Trigger Mode 1
Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
Function
RW
RW
RW
RW
RW
RW
RW
RW
to AN
.
0
7
Function
RW
RW
RW
)
i
)
3i
)
0i
RW
)
2i
RW
RW
RW
15. A/D Converter

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents