R01UH0823EJ0100 Rev.1.00
Page 1537 of 1823
Jul 31, 2019
RX23W Group
44. 12-Bit A/D Converter (S12ADE)
44.2.2
A/D Self-Diagnosis Data Register (ADRD)
ADRD is a 16-bit read-only register that stores the A/D conversion results based on the 12-bit A/D converter’s self-
diagnosis. In addition to the A/D-converted value, the self-diagnosis status is included in. In the ADRD register, the
different formats are used depending on the conditions below.
Settings of the A/D data register format select bit (ADCER.ADRFMT) (flush-right or flush-left)
The A/D-converted value addition mode and A/D-converted value average mode cannot be applied to the A/D self-
diagnosis function. For details of self-diagnosis, see
section 44.2.11, A/D Control Extended Register (ADCER)
.
The data formats for each given condition are shown below.
Flush-right format
The A/D-converted value is stored in bits 11 to 0. The self-diagnosis status is stored in bits 15 and 14.
Bits 13 and 12 are read as 0.
Flush-left format
The A/D-converted value is stored in bits 15 to 4. The self-diagnosis status is stored in bits 1 and 0.
Bits 3 and 2 are read as 0.
Note:
For details of self-diagnosis, see section 44.2.11, A/D Control Extended Register (ADCER).
Address(es): S12AD.ADRD 0008 901Eh
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
Value after reset:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Table 44.4
Self-Diagnosis Status Description
Bits 15 and 14 for flush-right format setting
Bits 1 and 0 for flush-left format setting
Self-diagnosis status
00b
Self-diagnosis has never been executed since power-on.
01b
Self-diagnosis using the voltage of 0 V has been executed.
10b
Self-diagnosis using the reference voltage × 1/2 has been executed.
11b
Self-diagnosis using the reference voltage has been executed.