English
Language : 

M16C6NK Datasheet, PDF (225/404 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
16. A/D Converter
A/D Control Register 0 (1)
b7 b6 b5 b4 b3 b2 b1 b0
00
Symbol
ADCON0
Address
03D6h
After Reset
00000XXXb
Bit Symbol
Bit Name
Function
RW
b2 b1 b0
CH0
0 0 0 : AN0 is selected
RW
0 0 1 : AN1 is selected
0 1 0 : AN2 is selected
CH1
Analog Input Pin Select Bit 0 1 1 : AN3 is selected
RW
1 0 0 : AN4 is selected
1 0 1 : AN5 is selected
CH2
1 1 0 : AN6 is selected
RW
1 1 1 : AN7 is selected (2) (3)
MD0
A/D Operation Mode
b4 b3
RW
MD1
Select Bit 0
0 0 : One-shot mode (3)
RW
TRG
Trigger Select Bit
0 : Software trigger
1 : ADTRG trigger
RW
ADST
A/D Conversion Start Flag
0 : A/D conversion disabled
1 : A/D conversion started
RW
CKS0 Frequency Select Bit 0
Refer to NOTE 2 for ADCON2
Register
RW
NOTES:
1. If the ADCON0 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. AN0_0 to AN_7, and AN2_0 to AN2_7 can be used in same way as AN0 to AN7. Use the ADGSEL1 to ADGSEL0
bits in the ADCON2 register to select the desired pin.
3. After rewriting the MD1 to MD0 bits, set the CH2 to CH0 bits over again using another instruction.
A/D Control Register 1 (1)
b7 b6 b5 b4 b3 b2 b1 b0
1
0
Symbol
ADCON1
Address
03D7h
After Reset
00h
Bit Symbol
Bit Name
Function
RW
SCAN0
RW
A/D Sweep Pin Select Bit Invalid in one-shot mode
SCAN1
RW
MD2
BITS
CKS1
A/D Operation Mode
Select Bit 1
Set to "0" when one-shot mode
is selected
RW
8/10-Bit Mode Select Bit
0 : 8-bit mode
1 : 10-bit mode
RW
Frequency Select Bit 1
Refer to NOTE 2 for ADCON2
Register
RW
VCUT VREF Connect Bit (2)
1 : VREF connected
RW
OPA0
OPA1
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
1 0 : ANEX1 input is A/D converted
1 1 : External op-amp connection mode
RW
NOTES:
1. If the ADCON1 register is rewritten during A/D conversion, the conversion result will be indeterminate.
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 16.4 ADCON0 Register and ADCON1 Register in One-shot Mode
Rev.2.00 Nov 28, 2005 page 207 of 378
REJ09B0124-0200