Datasheet
Section 24 A/D Converter
REJ09B0465-0300 Rev. 3.00 Page 823 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
The event link function can be used to set the ADST bit. When the event specified in ELSR10
or ELS11 of the ELC occurs, the corresponding ADST bits (in A/D converter unit 1 or A/D
converter unit 2, respectively) are set and the A/D conversion or comparison starts.
To select AN0 and AN0_2 as the channels for conversion, specify analog input operation for
the pins by setting the PMRA2 and PMRA3 bits.
24.2.3 A/D Control Register (ADCR)
Address:
Bit:
Value after reset:
b7
0
b6
0
b5
SCANE
0
b4
SCANS
0
b3
1
b2
0
b1
ADSTCLR
0
b0
EXTRGS
0
H'FF05F1, H'FF0611
TRGS[1:0] CKS[1:0]
Bit Symbol Bit Name Description R/W
7, 6 TRGS[1:0] Trigger select 1
and 0
b0 b7 b6
0 0 0: A/D conversion start by external trigger is
disabled.
0 0 1: A/D conversion start by external trigger pin
1 (ADTRG1) is enabled.
0 1 0: A/D conversion start by external trigger pin
2 (ADTRG2) is enabled.*
1
0 1 1: A/D conversion start by external trigger
(timer RC) is enabled.*
2
1 0 0: A/D conversion start by external trigger
(timer RD_0) is enabled.
1 0 1: A/D conversion start by external trigger
(timer RD_1) is enabled.*
3
1 1 x: Reserved (setting prohibited)
R/W
5 SCANE
4 SCANS
Channel
selection mode
0x: Single mode
10: Scan mode (A/D conversion is performed
continuously for channels 1 to 4)
11: Scan mode (A/D conversion is performed
continuously for channels 1 to 8.)
R/W
3, 2 CKS[1:0]*
4
Clock select 1
to 0
00: Setting prohibited
01: Setting prohibited
10: A/D conversion time = 84 states (max) (initial
value)
11: A/D conversion time = 43 states (max)
R/W