3.1.3.3.1 DIAG_CPU_Program_Counter()

diag_pc_status_t DIAG_CPU_Program_Counter (void )

The program counter (PC) test implements the functional tests H.2.16.5 defined by the IEC 60730 standard. The Program Counter test is a functional test of the PC. The PC holds the address of the next instruction to be executed. This API performs the functional test as follows:

  • The Program Counter test invokes functions that are located in Flash memory at different addresses.

  • These functions decrement the value of the PC TestFlag

  • TestFlag value decrements to 0 when PC tests complete successfully.

Parameters:
None