Testing the security bit, Software timer test, Interrupt test – Maxim Integrated 71M6513H Power Meter IC Family Software User Manual
Page 93: Rtc test, Lcd test

71M651x Software User’s Guide
The Keil project file is RESET_PULSES_DIO7.UV2.
5.15.6.Testing the Security Bit
This Test Module is written in 8051 assembler and is executed after processor reset. It sets the security bit and then
displays the security bit on DIO_7. It is useful to test the behavior of the security bit under various system conditions.
The Keil project file is RESET_READ_SE.UV2.
5.15.7.Software Timer Test
This project, consisting of several files, demonstrates the use and test of the software timer using a hardware timer
that is multiplexed into many slower timers.
The Keil project file is stmtest.uv2.
5.15.8.Interrupt Test
This Test Module is written in 8051 assembler and can be used for testing the function of the INT0, INT1, TMR0, and
TMR1 control using DIO_Rx. When the code is run it configures all possible DIO pins as DIO input pins. When testing,
a breakpoint should be set on the vector for one of INT0, INT1, TMR0, TMR1. Also, one of the I/O RAM registers
DIO_R0...DIO_R11 should be set to the resource code for that vector. When the DIO pin under test is probed with
GND or V3P3, the programmed interrupt is generated.
The code sets up DIO 4, 5, 6 and 7 for one each of four interrupts.
The Keil project file is inttest.uv2.
5.15.9.RTC Test
This test module, consisting of rtctest.uv2 and rtctest.c implement a digital clock/calendar on a Demo Board,
using the real-time-clock. To set the clock, just press the button on the Debug Board. A decimal point will then appear
next to the leftmost digit. Release the button, and the decimal point will move to the right until it gets to the digit that
needs to be set. Hold the button to cause the selected digit to be incremented until the digit is right. To set the
seconds, set the minute one minute ahead, then hold the button on the seconds until the next minute starts.
For 6511 and 6513 Demo Boards, the button is SW2 on the Debug Board. For 6521 Demo Boards the WAKE
pushbutton is used.
5.15.10.LCD Test
This test module, consisting of lcdtest.uv2 and lcdtest.c builds a simple test of the LCD driver. The test
module sends the texts or numbers "HELLO", "CE OFF", "-8888888", "- 00.001", "- 10.000", "00000000",
"11111111"... "99999999" in a loop.
Revision 2.4
TERIDIAN Proprietary
93 of 137
© Copyright 2005-2006 TERIDIAN Semiconductor Corporation