Renesas M16C Series User Manual page 250

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

Advertisement

M30240 Group
A-D control register 1 (Note)
A-D control register 1 (Note)
b7
b7
b6
b6
b5
b5
b4
b4
0 0
0 0
Figure 2.77: A-D converter related registers (2)
A-D control register 2 (Note)
b7
b6
b5
b4
A-D register i
(b15)
b7
Figure 2.78: A-D converter related registers (3)
Rev.1.00 Sep 24, 2003 Page 232 of 360
b3
b3
b2
b2
b1
b1
b0
b0
Symbol
Symbol
ADCON1
ADCON1
Bit symbol
Bit symbol
Bit name
Bit name
SCAN0
SCAN0
A-D sweep pin select bit
A-D sweep pin select bit
SCAN1
SCAN1
A-D operation mode
A-D operation mode
MD2
MD2
select bit 1
select bit 1
BITS
BITS
8/10-bit mode select bit
8/10-bit mode select bit
CKS1
CKS1
Frequency select bit 1
Frequency select bit 1
Vref connect bit
Vref connect bit
VCUT
VCUT
Reserved bit
Reserved bit
Note: If the A-D control register is rewritten during A-D conversion, the conversion result is
Note: If the A-D control register is rewritten during A-D conversion, the conversion result is
indeterminate.
indeterminate.
Symbol
b3
b2
b1
b0
ADCON2
0 0 0
Bit symbol
Bit name
A-D conversion method
SMP
select bit
Reserved bit
Nothing is assigned.
In an attempt to write to these bits, write "0". The value, if read, turns out to
be "0".
Note: If the A-D control register is rewritten during A-D conversion, the conversion
result is indeterminate.
Symbol
ADi(i=0 to 7)
(b8)
b0
b7
Eight low-order bits of A-D conversion result
• During 10-bit mode
Two high-order bits of A-D conversion result
• During 8-bit mode
When read, the content is indeterminate
Nothing is assigned.
In an attempt to write to these bits, write "0". The value, if
read, turns out to be "0".
Address
Address
When reset
When reset
03D7
03D7
00
00
16
16
16
16
Function
Function
When single sweep and repeat sweep
When single sweep and repeat sweep
mode 0 are selected
mode 0 are selected
b1 b0
b1 b0
0 0 : AN
0 0 : AN
, AN
, AN
(2 pins)
(2 pins)
0
0
1
1
0 1 : AN
0 1 : AN
to AN
to AN
(4 pins)
(4 pins)
0
0
3
3
1 0 : AN
1 0 : AN
to AN
to AN
(6 pins)
(6 pins)
0
0
5
5
1 1 : AN
1 1 : AN
to AN
to AN
(8 pins)
(8 pins)
0
0
7
7
When repeat sweep mode 1 is selected
When repeat sweep mode 1 is selected
b1 b0
b1 b0
0 0 : AN
0 0 : AN
(1 pin)
(1 pin)
0
0
0 1 : AN
0 1 : AN
, AN
, AN
(2 pins)
(2 pins)
0
0
1
1
1 0 : AN
1 0 : AN
to AN
to AN
(3 pins)
(3 pins)
0
0
2
2
1 1 : AN
1 1 : AN
to AN
to AN
(4 pins)
(4 pins)
0
0
3
3
0 : Any mode other than repeat sweep
0 : Any mode other than repeat sweep
mode 1
mode 1
1 : Repeat sweep mode 1
1 : Repeat sweep mode 1
0 : 8-bit mode
0 : 8-bit mode
1 : 10-bit mode
1 : 10-bit mode
0 : f
0 : f
/2 or f
/2 or f
/4 is selected
/4 is selected
AD
AD
AD
AD
1 : f
1 : f
is selected
is selected
AD
AD
0 : Vref not connected
0 : Vref not connected
1 : Vref connected
1 : Vref connected
Always set to "0"
Always set to "0"
Address
03D4
16
Function
0 : Without sample and hold
1 : With sample and hold
Always set to "0"
Address
03C0
to 03CF
Indeterminate
16
16
b0
Function
A-D Converter
R
R
W
W
When reset
XXXX0000
2
R W
When reset
R W

Advertisement

Table of Contents
loading

Table of Contents