EasyManua.ls Logo

Renesas RL78 Series - Page 10

Renesas RL78 Series
53 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RL78 Family VDE Certified IEC60730/60335 Self Test Library
R01AN0749EG0201 Rev.2.01 Page 10 of 50
Mar 04, 2014
Table 4: Source files: CPU Registers Tests - CS
STL File name Header Files
stl_RL78_registertest_cs.asm stl.h
Test Harness File Names Header Files
main.c
stl_global_data_example.c
stl_main_example_support function.c
stl_peripheralinit.c
main.h
stl_gobal_data_example.h
Syntax
bool stl_RL78_registertest_cs(void)
Description
Test the 8bit code extension (CS) register
The following tests are performed:
1. Write h'05 to the register being tested.
2. Read back and check it is equal.
3. Write h'0A to the register being tested.
4. Read back and check that it is equal.
Please note that the top 4 bit are fixed to “0
It is the calling function’s responsibility to ensure no interrupts occur during this test.
The original register content is restored on completion of the test
The function “indicate_test_result.c” will be called by the test harness control files (main.c) to process the test result
Note Function “indicate_test_result.c “is located in the module stl_main_example_support function.c
Input Parameters
NONE
N/A
Output Parameters
NONE
N/A
Return Values
bool
Test Result Status returned in CPU Register A
0 = Test passed. 1 = Test or parameter check failed

Other manuals for Renesas RL78 Series

Related product manuals