English
Language : 

M16C62_M Datasheet, PDF (438/615 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
A-D Converter
Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Selecting sample and hold
b7
b0
A-D control register 2 [Address 03D416]
1 ADCON2
A-D conversion method select bit
1 : With sample and hold
Setting A-D control register 0 and A-D control register 1
b7
0 0 00
b0
b7
A-D control register 0 [Address 03D616]
1
ADCON0
Analog input pin select bit (Note)
b2 b1 b0
0 0 0 : AN0 is selected(ANEX0)
0 0 1 : AN1 is selected(ANEX1)
One-shot mode is selected (Note)
Trigger select bit
0 : Software trigger
A-D conversion start flag
0 : A-D conversion disabled
Frequency select bit 0
0 : fAD/4 is selected
1 : fAD/2 is selected
Note: Rewrite to analog input pin select bit after changing A-D operation mode.
0
b0 A-D control register 1 [Address 03D716]
ADCON1
Invalid in one-shot mode
A-D operation mode select bit 1 (Note)
0 (Must always be “0” in one-shot mode)
8/10-bit mode select bit
0 : 8-bit mode
1 : 10-bit mode
Frequency select bit 1
0 : fAD/2 or fAD/4 is selected
1 : fAD is selected
Vref connect bit
1 : Vref connected
External op-amp connection mode bit
b7 b6
0 1 : ANEX0 input is A-D converted
1 0 : ANEX1 input is A-D converted
Setting A-D conversion start flag
b7
1
b0
A-D control register 0 [Address 03D616]
ADCON0
A-D conversion start flag
1 : A-D conversion started
Reading conversion result
(b15)
b7
(b8)
b0 b7
Start A-D conversion
Stop A-D conversion
b0
A-D register 0 [Address 03C116, 03C016] AD0
A-D register 1 [Address 03C316, 03C216] AD1
Eight low-order bits of A-D conversion result
During 10-bit mode
Two high-order bits of A-D conversion result
During 8-bit mode
When read, the content is indeterminate
Figure 2.7.10. Set-up procedure of one-shot mode, with expanded analog input pin selected
2-121