DIAG_CPU_Registers()

diag_cpu_registers_status_t DIAG_CPU_Registers (void )

CPU_REGISTER_TEST implements functional test H.2.16.5, as defined by the IEC 60730 standard.

It detects stuck-at Faults in the CPU registers. Description : The registers are tested in the following order:
  1. 1.

    WREG

  2. 2.

    WREG_SHAD

  3. 3.

    BSR_SHAD

  4. 4.

    FSR0L_SHAD

  5. 5.

    FSR0H_SHAD

  6. 6.

    FSR1L_SHAD

  7. 7.

    FSR1H_SHAD

  8. 8.

    BSR

  9. 9.

    FSR

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.

Parameters:
None
Returns:

DIAG_CPU_REGISTERS_PASS, DIAG_CPU_REGISTERS_FAIL