English
Language : 

SH7147 Datasheet, PDF (674/1108 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 15 A/D Converter (ADC)
15.4.2 Continuous Scan Mode
The following example shows the operation when analog input channels 0, 2, and 3 (AN0, AN2,
AN3) are selected and the A/D_0 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_0 (ADCR_0) to 0.
2. Set all bits ANS0, ANS2, and ANS3 in the A/D analog input channel select register_0
(ADANSR_0) to 1.
3. Set the ADST bit in the A/D control register_0 (ADCR_0) to 1 to start A/D conversion.
4. Channels 0 and 2 (GrA) are sampled simultaneously. As the ANS1 bit in ADANSR_0 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 is started. 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_3 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. 3.00 Oct. 06, 2008 Page 650 of 1080
REJ09B0230-0300