Renesas M16C FAMILY series Hardware Manual page 266

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C
A/D Control Register 0
b7
NOTES:
A/D Control Register 1
b7
NOTES:
A/D Control Register 2
b7
b6
NOTES:
1. If the ADCON2 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. Set to "1" in delayed trigger mode 1.
Figure 15.27 ADCON0 to ADCON2 Registers in Delayed Trigger Mode 1
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
(1)
b6
b5
b4
b3
b2
b1
b0
Symbol
0
0
0
1
1
1
ADCON0
Bit Symbol
CH0
CH1
CH2
MD0
MD1
TRG
ADST
CKS0
1. If the ADCON0 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. Do not write "1" in delayed trigger mode 1. When write, set to "0".
(1)
b6
b5
b4
b3
b2
b1
b0
Symbol
1
0
ADCON1
Bit Symbol
SCAN0
SCAN1
MD2
BITS
CKS1
VCUT
(b7-b6)
1. If the ADCON1 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. AN0
to AN0
and AN2
to AN2
can be used in the same way as AN
0
7
0
7
bits in the ADCON2 register to select the desired pin.
3. If the VCUT bit is reset from "0" (Vref unconnected) to "1" (Vref connected), wait for 1 µs or more before starting
A/D conversion.
(1)
b5
b4
b3
b2
b1
b0
Symbol
1
0
1
ADCON2
Bit Symbol
SMP
ADGSEL0
ADGSEL1
(b3)
CKS2
TRG1
(b7-b6)
page 246
f o
3
8
5
Address
After Reset
03D6
00000XXX
16
2
Bit Name
b2 b1 b0
Analog Input Pin
1 1 1 : Set to "111b" in delayed trigger
Select Bit
mode 1
b4 b3
A/D Operation Mode
0 0 : One-shot mode or delayed trigger mode
Select Bit 0
0,1
Trigger Select Bit
Refer to Table 15.13
A/D Conversion Start
0 : A/D conversion disabled
Flag
(2)
1 : A/D conversion started
Refer to Table 15.2
Frequency Select Bit 0
Address
After Reset
03D7
00
16
16
Bit Name
A/D Sweep Pin
When selecting delayed trigger mode 1
Select Bit
(2)
b1 b0
0 0: AN
to AN
0
0 1: AN
to AN
0
1 0: AN
to AN
0
1 1: AN
to AN
0
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
Frequency Select Bit 1
(3)
1 : Vref connected
Vref Connect Bit
Nothing is assigned. When write, set to "0".
When read, its content is indetermintae.
to AN
0
7
Address
After Reset
03D4
00
16
16
Bit Name
A/D Conversion Method
1 : With sample and hold
Select Bit (2)
b2 b1
A/D Input Group
0 0 : Select port P10 group
Select Bit
0 1 : Do not set
1 0 : Select port P0 group
1 1 : Select port P1/P9 group
Reserved Bit
"0"
Set to
Refer to Table 15.2
Frequency Select Bit 2
Trigger Select Bit 1
Refer to Table 15.13
Nothing is assigned. When write, set to "0".
When read, its content is "0".
Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
Function
RW
RW
(2 pins)
1
(4 pins)
3
(6 pins)
5
RW
(8 pins)
7
RW
RW
RW
RW
. Use the ADGSEL1 to ADGSET0
Function
RW
RW
RW
RW
RW
RW
RW
15. A/D Converter

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents