
SH7080 Group
A/D Conversion in Single-cycle Scan Mode
REJ06B0699-0100/Rev.1.00 January 2008 Page 13 of 19
5.4.3 A/D Conversion Settings
(1) A/D Control/Status Register _0 (ADCSR_0)
Function: Controls A/D conversion and sets A/D conversion time.
Set value: H'0013
Bit Bit Name Set Value Description
15 ADF 0
A/D end flag
A status flag which indicates the end of A/D conversion.
[Setting conditions]
• When A/D conversion on all channels is completed in scan mode.
[Clearing conditions]
• When 0 is written after reading it as 1.
• When DMAC/DTC is activated by an ADI interrupt and ADDR is
read.
14 ADIE 0
A/D interrupt (ADI) enable
When set to 1, generation of an ADI interrupt by ADF is enabled.
13, 12 All 0
Reserved
11 TRGE 0
Trigger enable
When TRGE = 0, the A/D conversion trigger is disabled.
10 0
Reserved
9 CONADF 0
ADF control
Controls ADF operation in 2-channel scan mode.
8 STC 0
State control
Sets A/D conversion time (50 states for this sample application).
7, 6 CKSL[1:0] 00
Clock select bits 1 and 0
Set A/D conversion time (Pφ/4 for this sample application).
5, 4 ADM[1:0] 01
A/D mode bits 1 and 0
Select A/D conversion mode (4-channel scan mode for this sample
application).
3 ADCS 0
A/D continuous scan (single-cycle scan mode for this sample
application)
2 to 0 CH[2:0] 011
Channel select bits 2 to 0
Select analog input channels for A/D conversion (channels AN0 to
AN3 for this sample application).
Komentarze do niniejszej Instrukcji