ADCSR—A/D Control/Status Register
H'FFE8
A/D
Bit
7
6
5
4
3
2
1
0
ADF
ADIE
ADST
SCAN
CKS
CH2
CH1
CH0
Initial value
0
0
0
0
0
0
0
0
Read/Write
R/(W)*
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Channel Select
CH2
CH1 CH0
Single mode Scan mode
0
0
0
AN
0
AN
0
0
1
AN
1
AN
0
, AN
1
1
0
AN
2
AN
0
to AN
2
1
1
AN
3
AN
0
to AN
3
1
0
0
AN
4
AN
4
0
1
AN
5
AN
4
, AN
5
1
0
AN
6
AN
4
to AN
6
1
1
AN
7
AN
4
to AN
7
Clock Select
0 Conversion time = 242 states (max)
1 Conversion time = 122 states (max)
Scan Mode
0 Single mode
1 Scan mode
A/D Start
0 A/D conversion is halted.
1 1. Single mode: One A/D conversion is performed, then this bit is automatically cleared to “0.”
2. Scan mode: A/D conversion starts and continues cyclically on all selected channels until “0”
is written in this bit.
A/D Interrupt Enable
0 The A/D interrupt request (ADI) is disabled.
1 The A/D interrupt request (ADI) is enabled.
A/D End Flag
0 Cleared from “1” to “0” when CPU reads ADF = “1,” then writes “0” in ADF.
1 Set to “1” at the following times:
1. Single mode: at the completion of A/D conversion
2. Scan mode: when all selected channels have been converted.
Note: * Software can write a “0” in bit 7 to clear the flag, but cannot write a “1” in this bit.
315
Summary of Contents for H8/326 Series
Page 67: ...58 ...
Page 121: ...112 ...
Page 274: ... 3 Clock Settling Timing Ø VCC RES STBY tOSC1 tOSC1 Figure 14 8 Clock Setting Timing 265 ...
Page 279: ...270 ...