4.3.1 DIAG_CPU_Registers
This API validates CPU Registers for Stuck Bits and Coupling Faults.
The registers are tested in the following order,
- Return value registers: R24, R25.
- Auxiliary registers: R31, R30.
- Stack pointer: SPL, SPH.
- Status register: SREG (except interrupt flag).
- Registers: R0 to R23 and R25 to R29.
Basic 3-step test algorithm followed for register self-test,
- Step-1: The content of the register is pushed to stack,
- Step-2: The register is set to a known value (e.g. 0xAA) and verified (e.g. 0xAA),
- Step-3: The register bits are forced to change state (by writing 0x55) and the register content is verified once more
diag_cpu_result_t DIAG_CPU_Registers(
void
)
Returns
diag_cpu_result_t | DIAG_CPU_REGISTERS_PASS, DIAG_CPU_REGISTERS_FAIL |