104 testrtcalarm, 104testrtcalarm, Testrtcalarm – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual

Page 192: Motload commands

Advertising
background image

MOTLoad Commands

MOTLoad Firmware Package User’s Manual (6806800C24D)

192

3.1.104 testRtcAlarm

Name

testRtcAlarm—assures proper addressability of the RTC device. The test proceeds as follows:
(1) Clear the interrupt counter used by the RTC interrupt handler. (2) Enable the RTC interrupt
function in the RTC device. (3) Set the RTC ALARM function to generate interrupts once a
second. (4) Sleep the test application for a preset amount of time (seconds). This allows the
RTC interrupt handler time to collect interrupts and increment the interrupt counter. (5) When
the test application wakes up, immediately turn off the RTC interrupt function. (6) Get the
interrupt counter value and compare it with the number of seconds the test application was
asleep. If the comparison is outside an expected range, the test has failed. (7) Disable the RTC
ALARM function.

Synopsis

testRtcAlarm [-d]

Parameters

-d Ps: Device Name (Default = /dev/rtc)

Example

The following example indicates a typical display when using the testRtcAlarm command.

MOTLoad> testRtcAlarm

See Also

testRtcRollOver

,

testRtcTick

,

testRtcReset

Advertising