Renesas M16C Series User Manual page 119

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

Advertisement

M30240 Group
A-D control register 0 (Note 1)
b7
b6
b5
b4
b3
b2
b1
A-D control register 1 (Note)
b7
b6
b5
b4
b3
b2
b1
0 0
Figure 1.97: A-D converter-related registers (1)
Rev.1.00 Sep 24, 2003 Page 101 of 360
Symbol
Address
b0
ADCON0
Bit symbol
Bit name
Analog input pin select bit
CH0
CH1
CH2
A-D operation mode
MD0
select bit 0
MD1
Trigger select bit
TRG
A-D conversion start flag
ADST
Frequency select bit 0
CKS0
Note 1: If the A-D control register is rewritten during A-D conversion, the conversion result is indeterminate.
Note 2: When changing A-D operation mode, set analog input pin again.
b0
Symbol
Address
ADCON1
Bit symbol
Bit name
A-D sweep pin select bit
SCAN0
SCAN1
A-D operation mode
MD2
select bit 1
8/10-bit mode select bit
BITS
Frequency select bit 1
CKS1
Vref connect bit
VCUT
Reserved bit
Note: If the A-D control register is rewritten during A-D conversion, the conversion result is indeterminate.
When reset
03D6
00000XXX
16
2
b2 b1 b0
0 0 0 : AN
is selected
0
0 0 1 : AN
is selected
1
0 1 0 : AN
is selected
2
0 1 1 : AN
is selected
3
1 0 0 : AN
is selected
4
1 0 1 : AN
is selected
5
1 1 0 : AN
is selected
6
1 1 1 : AN
is selected
7
b4 b3
0 0 : One-shot mode
0 1 : Repeat mode
1 0 : Single sweep mode
1 1 : Repeat sweep mode 0
Repeat sweep mode 1
0 : Software trigger
1 : AD
trigger
TRG
0 : A-D conversion disabled
1 : A-D conversion started
0 : f
/4 is selected
AD
1 : f
/2 is selected
AD
When reset
03D7
00
16
16
When single sweep and repeat sweep
mode 0 are selected
b1 b0
0 0 : AN
, AN
0
1
0 1 : AN
to AN
0
1 0 : AN
to AN
0
1 1 : AN
to AN
0
When repeat sweep mode 1 is selected
b1 b0
0 0 : AN
(1 pin)
0
0 1 : AN
, AN
0
1
1 0 : AN
to AN
0
1 1 : AN
to AN
0
0 : Any mode other than repeat sweep
mode 1
1 : Repeat sweep mode 1
0 : 8-bit mode
1 : 10-bit mode
0 : f
/2 or f
/4 is selected
AD
AD
1 : f
is selected
AD
0 : Vref not connected
1 : Vref connected
Always set to "0"
A-D Converter
Function
R
W
(Note 2)
(Note 2)
Function
R
W
(2 pins)
(4 pins)
3
(6 pins)
5
(8 pins)
7
(2 pins)
(3 pins)
2
(4 pins)
3

Advertisement

Table of Contents
loading

Table of Contents