3.2.3.1 DIAG_CPU_SelfTestSubset1()
diag_result_t DIAG_CPU_SelfTestSubset1 (void )
Software Requirement Reference ID: SW_CPU_SELF_TEST_LIB_01
Executes the CPU self-test Subset 1.Functional items covered by Subset 1 are mentioned below:
-
MOV and MOVW instructions are tested
-
Addressing modes tested: Immediate, File Register, Register Direct and Indirect (with Pre-Increment, Post-Increment, Pre-Decrement, Post-Decrement, Literal Offset and Register Offset)
-
All bits of the program memory address bus are toggled
-
All bits of the SRAM data memory address bus are toggled
-
All bits of the SRAM data bus are toggled
-
SWAP instruction is tested
-
All bit manipulation, bit test, compare and bit-compare-skip operations are tested
-
CPU registers tested for read/write operations
This API performs tests to verify the functionality of all the supported instructions mentioned above and updates the diag_result_t which contains the status for this diagnostic test.
None. |