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,
  1. Return value registers: R24, R25.
  2. Auxiliary registers: R31, R30.
  3. Stack pointer: SPL, SPH.
  4. Status register: SREG (except interrupt flag).
  5. 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