
Rev.2.10 Apr 14, 2006 page 204 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 16. A/D Converter
Figure 16.2 Registers ADCON0 and ADCON1
CH0
CH1
CH2
MD0
MD1
TRG
ADST
CKS0
RW
RW
RW
RW
RW
RW
RW
RW
SCAN0
SCAN1
MD2
BITS
VCUT
OPA0
OPA1
CKS1
Function varies depending on
operating mode
0 0 : One-shot mode
0 1 : Repeat mode
1 0 : Single sweep mode
1 1 : Repeat sweep mode 0 or
Repeat sweep mode 1
0 : Software trigger
1 : ADTRG trigger
0 : A/D conversion disabled
1 : A/D conversion started
Refer to NOTE 2 for ADCON2
Register
Trigger select bit
A/D conversion start flag
Frequency select bit 0
Analog input pin select bits
A/D operating mode
select bits 0
A/D Control Register 0
(1)
b7 b6 b5 b4 b3 b2 b1 b0
Bit Symbol
Bit Name Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
Bit name Function
Bit symbol
RW
Symbol Address After Reset
ADCON1 03D7h 00h
0 : 8-bit mode
1 : 10-bit mode
0 : Any mode other than repeat
sweep mode 1
1 : Repeat sweep mode 1
0 : VREF not connected
1 : VREF connected
Refer to NOTE 2 for ADCON2
Register
Function varies depending on
operating mode
A/D sweep pin select bits
8/10-bit mode select bit
VREF connect bit
(2)
A/D operating mode
select bit 1
External op-amp
connection mode bits
Frequency select bit 1
Function varies depending on
operating mode
b7 b6 b5 b4 b3 b2 b1 b0
A/D Control Register 1
(1)
Symbol Address After Reset
ADCON0 03D6h 00000XXXb
NOTE:
1. If the ADCON0 register is rewritten during A/D conversion, the conversion result will be undefined.
NOTES:
1. If the ADCON1 register is rewritten during A/D conversion, the conversion result will be undefined.
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.
b4 b3
Comentários a estes Manuais