Hitachi H8S/2215 Series Hardware Manual page 595

Hitachi single-chip microcomputer
Table of Contents

Advertisement

Bit
Bit Name Initial Value
7
ADF
0
6
ADIE
0
5
ADST
0
4
SCAN
0
3
CH3
0
2
CH2
0
1
CH1
0
0
CH0
0
Note: * The write value should always be 0 to clear this flag.
R/W
Description
R/(W)* A/D End Flag
A status flag that indicates the end of A/D conversion.
[Setting conditions]
When A/D conversion ends
When A/D conversion ends on all specified channels
[Clearing conditions]
When 0 is written after reading ADF = 1
When the DTC is activated by an ADI interrupt and
ADDR is read
R/W
A/D Interrupt Enable
A/D conversion end interrupt (ADI) request enabled
when 1 is set
R/W
A/D Start
Clearing this bit to 0 stops A/D conversion, and the A/D
converter enters the wait state.
Setting this bit to 1 starts A/D conversion. In single
mode, this bit is cleared to 0 automatically when
conversion on the specified channel is complete. In scan
mode, conversion continues sequentially on the
specified channels until this bit is cleared to 0 by
software, a reset, or a transition to software standby
mode, hardware standby mode or module stop mode.
R/W
Scan Mode
Selects single mode or scan mode as the A/D
conversion operating mode.
0: Single mode
1: Scan mode
R/W
Channel Select 0 to 3
R/W
Select analog input channels.
R/W
When SCAN = 0 When SCAN = 1
R/W
0000: AN0
0001: AN1
0010: AN2
0011: AN3
01xx: Setting prohibited
10xx: Setting prohibited
11xx: Setting prohibited
1110: AN14
1111: AN15
0000: AN0
0001: AN0 to AN1
0010: AN0 to AN2
0011: AN0 to AN3
01xx: Setting prohibited
1xxx: Setting prohibited
Rev. 3.0, 10/02, page 537 of 686

Advertisement

Table of Contents
loading

Table of Contents