R01UH0822EJ0100 Rev.1.00
Page 824 of 1041
Jul 31, 2019
RX13T Group
26. 12-Bit A/D Converter (S12ADF)
26.2.9
A/D Control Extended Register (ADCER)
ADCER sets self-diagnosis mode, format of A/D data registers y (ADDRy), and automatic clearing of A/D data registers.
ACE Bit (A/D Data Register Automatic Clearing Enable)
The ACE bit enables or disables automatic clearing (all 0) of ADDRy, ADRD, ADDBLDR, ADDBLDRA,
ADDBLDRB, or ADOCDR after any of these registers have been read by the CPU and DTC. Automatic clearing of the
A/D data register is enabled to detect a failure which has not been updated in the A/D data register.
DIAGVAL[1:0] Bits (Self-Diagnosis Conversion Voltage Select)
The DIAGVAL[1:0] bits select the voltage value used in self-diagnosis voltage fixed mode. For details, refer to the
descriptions of the ADCER.DIAGLD bit.
Self-diagnosis should not be executed by setting the ADCER.DIAGLD bit to 1 when the ADCER.DIAGVAL[1:0] bits
are set to 00b.
DIAGLD Bit (Self-Diagnosis Mode Select)
The DIAGLD bit selects whether the three voltage values are rotated or the fixed voltage is used in self-diagnosis.
Setting this bit (ADCER.DIAGLD) to 0 allows conversion of the voltages in rotation mode where 0, the reference power
supply × 1/2, and the reference power supply are converted in this order. When self-diagnosis rotation mode is selected
after a reset, self-diagnosis is performed from 0 V. When self-diagnosis voltage fixed mode is selected, the fixed voltage
specified by the ADCER.DIAGVAL[1:0] bits is converted. In self-diagnosis voltage rotation mode, the self-diagnosis
voltage value does not return to 0 when scan conversion is completed. When scan conversion is restarted, therefore,
rotation starts at the voltage value following the previous value. If fixed mode is switched to rotation mode, rotation
Address(es): S12AD.ADCER 0008 900Eh
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
ADRFM
T
—
—
—
DIAGM DIAGL
D
DIAGVAL[1:0]
—
—
ACE
—
—
—
—
—
Value after reset:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b4 to b0
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
b5
A/D Data Register Automatic Clearing
Enable
0: Disables automatic clearing.
1: Enables automatic clearing.
R/W
b7, b6
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
b9, b8
Self-Diagnosis Conversion Voltage
Select
b9 b8
0 0: Setting prohibited in self-diagnosis voltage fixed
mode
0 1: Uses the voltage of 0 V for self-diagnosis.
1 0: Uses the voltage of reference power supply ×
1/2 for self-diagnosis.
1 1: Uses the voltage of reference power supply for
self-diagnosis.
R/W
b10
Self-Diagnosis Mode Select
0: Rotation mode for self-diagnosis voltage
1: Fixed mode for self-diagnosis voltage
R/W
b11
Self-Diagnosis Enable
0: Disables self-diagnosis of 12-bit A/D converter.
1: Enables self-diagnosis of 12-bit A/D converter.
R/W
b14 to b12 —
Reserved
These bits are read as 0. The write value should be 0.
R/W
b15
A/D Data Register Format Select
0: Flush-right is selected for the A/D data register
format.
1: Flush-left is selected for the A/D data register format.
R/W