R01UH0822EJ0100 Rev.1.00
Page 825 of 1041
Jul 31, 2019
RX13T Group
26. 12-Bit A/D Converter (S12ADF)
starts at the fixed voltage value.
The DIAGLD bit should be set while the ADCSR.ADST bit is 0.
DIAGM Bit (Self-Diagnosis Enable)
The DIAGM bit enables or disables self-diagnosis.
Self-diagnosis is used to detect a failure of the 12-bit A/D converter. Specifically, one of the internally generated voltage
values 0, the reference power supply × 1/2, and the reference power supply is converted. When conversion is completed,
information on the converted voltage and the conversion result is stored into the self-diagnosis data register (ADRD).
ADRD can then be read out by software to determine whether the conversion result falls within the normal range
(normal) or not (abnormal). Self-diagnosis is executed once at the beginning of each scan, and one of the three voltages
is converted. When self-diagnosis is selected in group scan mode, self-diagnosis is separately executed in groups A, B, and C.
The DIAGM bit should be set while the ADCSR.ADST bit is 0.
ADRFMT Bit (A/D Data Register Format Select)
The ADRFMT bit specifies flush-right or flush-left for the data to be stored in ADDRy, ADDBLDR, ADDBLDRA,
ADDBLDRB, ADOCDR, or ADRD.
The ADRFMT bit should be set while the ADCSR.ADST bit is 0.
For details on the format of each data register, see
section 26.2.1, A/D Data Registers y (ADDRy) (y = 0 to 7), A/D
, and