EasyManuals Logo
Home>Renesas>Computer Hardware>RL78 Series

Renesas RL78 Series Application Note

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
Page #7 background imageLoading...
Page #7 background image
RL78 Family VDE Certified IEC60730/60335 Self Test Library
R01AN0749EG0201 Rev.2.01 Page 7 of 50
Mar 04, 2014
2.1.1 CPU Register Tests - Software API
Table 1: Source files: CPU Working Registers Tests
STL File name Header Files
stl_RL78_registertest.asm None
Test Harness File Names Header Files
main.c
stl_global_data_example.c
stl_main_example_support function.c
stl_peripheralinit.c
stl.h
main.h
stl_gobal_data_example.h
Syntax
bool stl_RL78_registertest(void)
Description
This module tests the RL78 working registers and accumulators.
Registers AX, HL, DE, BC in all three register banks (Banks 0, 1, 2, 3)
These registers are tested as16bit registers.
The following tests are performed for each register:
1. Write h'5555 to the register being tested.
2. Read back and check they are equal.
3. Write h'AAAA to the register being tested.
4. Read back and check they are equal.
It is the calling function’s responsibility to ensure no interrupts occur during this test.
The original register contents are 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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78 Series and is the answer not in the manual?

Renesas RL78 Series Specifications

General IconGeneral
BrandRenesas
ModelRL78 Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals