English
Language : 

M306H7MG-XXXFP Datasheet, PDF (170/329 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with DATA ACQUISITION CONTROLLER
M306H7MG-XXXFP/MC-XXXFP/FGFP
12. A/D CONVERTER
A/D control register 0 (Note 1)
b7 b6 b5 b4 b3 b2 b1 b0
01
Symbol
ADCON0
Address
03D616
After reset
00000XXX2
Bit symbol
Bit name
CH0
Analog input pin
select bit
CH1
CH2
MD0
MD1
TRG
ADST
A/D operation mode
select bit 0
Trigger select bit
A/D conversion start flag
Function
b2 b1 b0
0 0 0 : AN0 is selected
0 0 1 : AN1 is selected
0 1 0 : AN2 is selected
0 1 1 : AN3 is selected
1 0 0 : AN4 is selected
1 0 1 : AN5 is selected
1 1 0 : AN6 is selected
1 1 1 : AN7 is selected
b4 b3
0 1 : Repeat mode
0 : Software trigger
1 : ADTRG trigger
0 : A/D conversion disabled
1 : A/D conversion started
RW
RW
RW
RW
(Note 2)
RW
(Note 2)
RW
RW
RW
CKS0 Frequency select bit 0
See Note 2 for the ADCON2 register
RW
Note 1: If the ADCON0 register is rewritten during A/D conversion, the conversion result will be indeterminate.
Note 2: After rewriting the MD1 to MD0 bits, set the CH2 to CH0 bits over again using another instruction.
A/D control register 1 (Note)
b7 b6 b5 b4 b3 b2 b1 b0
1 00
Symbol
ADCON1
Address
03D716
After reset
0016
Bit symbol
Bit name
Function
RW
SCAN0 A/D sweep pin
Invalid in repeat mode
RW
select bit
SCAN1
RW
MD2
A/D operation mode
select bit 1
Set to “0” when this mode is selected
RW
(b3)
Reserved bit
Must always be set to “0”
RW
CKS1 Frequency select bit 1 See Note 2 for the ADCON2 register
RW
VCUT Vref connect bit (Note 2) 1 : Vref connected
RW
OPA0
External op-amp
connection mode bit
b7 b6
0 0 : ANEX0 and ANEX1 are not used
RW
0 1 : ANEX0 input is A/D converted
OPA1
1 0 : ANEX1 input is A/D converted
1 1 : External op-amp connection mode
RW
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” (Vref unconnected) to “1” (Vref connected), wait for 1 µs or more before starting
A/D conversion.
Figure 12.5 ADCON0 Register and ADCON1 Register (Repeat Mode)
Rev.2.10 Oct 25, 2006 Page 170 of 326
REJ03B0152-0210