4.4.2.1 DIAG_CPU_Registers

Software Requirement Reference ID : SW_CPU_REGISTER_TEST_01.

This API validates CPU Registers for Stuck Bits and Coupling Faults.

Description : The registers are tested in the following order:
  1. WREG
  2. TBLPTRL
  3. TBLPTRH
  4. TBLPTRU
  5. TABLAT
  6. PRODH
  7. PRODL
  8. FSR0L
  9. FSR0H
  10. FSR1L
  11. FSR1H
  12. FSR2L
  13. FSR2H
  14. RCON
  15. INTCON
  16. INTCON2
  17. INTCON3
  18. TOSU
  19. TOSH
  20. TOSL
  21. STKPTR

This test checks the integrity of the registers by testing for stuck at faults, insuring that the bits in the registers are not stuck at a value. The test can be done successively doing a write, read and check of 0x55 and 0xAA value into the CPU registers. The register is saved into RAM before the test is performed and restored after the test is done. Input : None

diag_cpu_registers_status_t DIAG_CPU_Registers(
    void
)

Returns

diag_cpu_registers_status_t DIAG_CPU_REGISTERS_PASS, DIAG_CPU_REGISTERS_FAIL