English
Language : 

SH7211 Datasheet, PDF (807/1228 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family
Section 17 A/D Converter (ADC)
17.4.2 Continuous Scan Mode
The following example shows the operation when analog input 0, 2, and 3 (AN0, AN2, AN3) are
selected and the A/D conversion is performed in continuous scan mode using the three channels.
This operation also applies to the A/D_1 conversion.
1. Set the ADCS bit in the A/D control register (ADCR) to 0.
2. Set all bits of ANS0, ANS2, and ANS3 in the A/D analog input channel select register
(ADANSR) to 1.
3. Set the ADST bit in the A/D control register (ADCR) to 1 to start A/D conversion.
4. Channels 0 and 2 (GrA) are sampled simultaneously. As the ANS1 bit in ADANSR is set to 0,
channel 1 is not sampled. After this, offset canceling processing (OFC) is performed. Then the
A/D conversion on channel 0 is started. Upon completion of the A/D conversion, the A/D
conversion result is transferred to ADDR0. In the same way, channel 2 is converted and the
A/D conversion result is transferred to ADDR2. The A/D conversion is not performed on
channel 1.
5. The A/D conversion of channel 3 starts. Upon completion of the A/D conversion, the A/D
conversion result is transferred to ADDR3.
6. When the A/D conversion ends on all the specified channels (AN0 to AN3), the ADF bit is set
to 1. At this time, if the ADIE bit is set to 1, an ADI interrupt is generated after the A/D
conversion.
7. Steps 4 to 6 are repeated as long as the ADST bit remains set to 1. When the ADST bit is
cleared to 0, the A/D conversion stops. After this, if the ADST bit is set to 1, the A/D
conversion starts again and repeats steps 4 to 6.
Rev. 2.00 May. 08, 2008 Page 783 of 1200
REJ09B0344-0200