Logo
MSP430IEC60730SWPackage
Pc_test_api

Functions

uint8_t IEC60730_PC_TEST_testPcRegister (void)
 

Detailed Description

Function Documentation

uint8_t IEC60730_PC_TEST_testPcRegister ( void  )

Tests Program Counter register for stuck at bits

This function tests the Program Counter register for stuck at bits. The routine call two test functions that return their addresses. Their return values are compared to the PC test function address. If the value matches, the function passes, if not it fails. The PC test functions need to reside in separate memory locations such that ,by the time all of them are called, all the Program Counter register bits are set or cleared. Thus indirectly testing the PC register for stuck at bits. The user must define two sections named "pc_test_section_1", "pc_test_section_2"

Modified registers are REGISTER_1, REGSITER_2, and REGISTER_3

Returns
None