Section 22 A/D Converter
Rev. 3.00 Jan 25, 2006 page 704 of 872
REJ09B0286-0300
22.4
DTC Comparator Scan
The DTC should be set as shown in table 22.3 to scan CIN7 to CIN0 using the DTC comparator
scan function.
Table 22.3 CIN7 to CIN0 Scan by DTC Comparator Scan Function
Register
Bit
Bit Name
Description
7, 6
SM1, SM0
00: SAR is fixed
5, 4
DM1, DM0
00: DAR is fixed
3, 2
MD1, MD0
01: Repeat mode
1
DTS
0: Destination area is repeat area
MRA
0
Sz
1: Word-size transfer
7
CHNE
0: Chain transfer is not performed
MRB
6
DISEL
0: An interrupt request is generated when the specified
number of data transfers are performed
SAR
23 to 0
—
H'(FF)FFE0: ADDRA
DAR
23 to 0
—
Optional RAM address. Lower four bits should be 0.
Conversion results of CIN0 to CIN7 are written to eight
words leading from this address.
CRAH
7 to 0
—
H'FF
CRAL
7 to 0
—
H'FF
DTCERA
3
DTCEA3
1: Enables DTC activation by the A/D converter
4
SCANE
1: Enables comparator scan function
KBCOMP
3
KBADE
1: Sets CIN7 to CIN0 as A/D converter input channel 0
6
ADIE
1: Enables an interrupt request generated by A/D
conversion end
4
SCAN
1: Selects scan mode
ADCSR
2 to 0
CH2 to CH0
000: Selects input channel 0
ADCR
7, 6
TRGS1,
TRGS0
00: Disables A/D conversion start according to an
external trigger
RAM
—
—
(DAR): CIN0 conversion result
(DAR) + 2: CIN1 conversion result
(DAR) + 4: CIN2 conversion result
(DAR) + 6: CIN3 conversion result
(DAR) + 8: CIN4 conversion result
(DAR) + 10: CIN5 conversion result
(DAR) + 12: CIN6 conversion result
(DAR) + 14: CIN7 conversion result
Summary of Contents for H8S/2158
Page 10: ...Rev 3 00 Jan 25 2006 page viii of lii...
Page 36: ...Rev 3 00 Jan 25 2006 page xxxiv of lii B Product Lineup 863 C Package Dimensions 864 Index 865...
Page 47: ...Rev 3 00 Jan 25 2006 page xlv of lii Appendix Figure C 1 Package Dimensions TBP 112A 864...
Page 54: ...Rev 3 00 Jan 25 2006 page lii of lii...
Page 70: ...Section 1 Overview Rev 3 00 Jan 25 2006 page 16 of 872 REJ09B0286 0300...
Page 118: ...Section 3 MCU Operating Modes Rev 3 00 Jan 25 2006 page 64 of 872 REJ09B0286 0300...
Page 126: ...Section 4 Exception Handling Rev 3 00 Jan 25 2006 page 72 of 872 REJ09B0286 0300...
Page 198: ...Section 6 Bus Controller Rev 3 00 Jan 25 2006 page 144 of 872 REJ09B0286 0300...
Page 326: ...Section 10 8 Bit PWM Timer PWM Rev 3 00 Jan 25 2006 page 272 of 872 REJ09B0286 0300...
Page 440: ...Section 15 Watchdog Timer WDT Rev 3 00 Jan 25 2006 page 386 of 872 REJ09B0286 0300...
Page 606: ...Section 17 I 2 C Bus Interface IIC Rev 3 00 Jan 25 2006 page 552 of 872 REJ09B0286 0300...
Page 742: ...Section 19 Multimedia Card Interface MCIF Rev 3 00 Jan 25 2006 page 688 of 872 REJ09B0286 0300...
Page 750: ...Section 21 D A Converter Rev 3 00 Jan 25 2006 page 696 of 872 REJ09B0286 0300...
Page 768: ...Section 22 A D Converter Rev 3 00 Jan 25 2006 page 714 of 872 REJ09B0286 0300...
Page 770: ...Section 23 RAM Rev 3 00 Jan 25 2006 page 716 of 872 REJ09B0286 0300...
Page 824: ...Section 26 Clock Pulse Generator Rev 3 00 Jan 25 2006 page 770 of 872 REJ09B0286 0300...
Page 844: ...Section 27 Power Down Modes Rev 3 00 Jan 25 2006 page 790 of 872 REJ09B0286 0300...
Page 878: ...Section 28 List of Registers Rev 3 00 Jan 25 2006 page 824 of 872 REJ09B0286 0300...
Page 926: ...Index Rev 3 00 Jan 25 2006 page 872 of 872 REJ09B0286 0300...