Renesas M16C/60 Series Hardware Manual page 203

Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N5 Group
A-D control register 0 (Note 1)
b7
b6
b5
b4
b3
b2
0
1
Note 1: If the ADCON0 register is rewritten during A-D conversion, the conversion result will be indeterminate.
Note 2: AN
to AN
00
07
ADGSEL1 to ADGSEL0 bits to select the desired pin.
Note 3: After rewriting the MD1 to MD0 bits, set the CH2 to CH0 bits over again using another instruction.
A-D control register 1 (Note 1)
b7
b6
b5
b4
b3
b2
1
0
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
starting A-D conversion.
Figure 1.16.5 ADCON0 Register and ADCON1 Register in Repeat Mode
Rev.1.00
2003.05.30
page 189
b1
b0
Symbol
ADCON0
Bit symbol
CH0
Analog input pin select bit
CH1
CH2
MD0
A-D operation mode
select bit 0
MD1
Trigger select bit
TRG
A-D conversion start flag
ADST
Frequency select bit 0
CKS0
, and AN
to AN
can be used in same way as AN
20
27
b1
b0
Symbol
ADCON1
Bit symbol
SCAN0
A-D sweep pin select bit
SCAN1
A-D operation mode
MD2
select bit 1
BITS
8/10-bit mode select bit
Frequency select bit 1
CKS1
V
VCUT
REF
OPA0
External op-amp
connection mode bit
OPA1
unconnected) to "1" (V
REF
Address
After reset
03D6
00000XXX
16
Bit name
b2 b1 b0
0 0 0 : AN
0 0 1 : AN
0 1 0 : AN
0 1 1 : AN
1 0 0 : AN
1 0 1 : AN
1 1 0 : AN
1 1 1 : AN
b4 b3
0 1 : Repeat mode
0 : Software trigger
1 : AD
0 : A-D conversion disabled
1 : A-D conversion started
See Note 2 for the ADCON2
register
to AN
0
Address
After reset
03D7
00
16
Bit name
Invalid in repeat mode
Set to "0" when repeat mode is
selected
0 : 8-bit mode
1 : 10-bit mode
See Note 2 for the ADCON2
register
connect bit (Note 2)
1 : V
REF
b7 b6
0 0 : ANEX0 and ANEX1 are not used
0 1 : ANEX0 input is A-D converted
1 0 : ANEX1 input is A-D converted
1 1 : External op-amp connection mode
connected), wait for 1 µs or more before
REF
A-D Converter
2
Function
is selected
0
is selected
1
is selected
2
is selected
3
is selected
4
is selected
5
is selected (Note 2)
6
is selected (Note 3)
7
(Note 3)
trigger
TRG
. Use the ADCON2 register's
7
16
Function
connected
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6n5

Table of Contents