
WorkHorse H-ADCP Operation Manual
May
2015
EAR-Controlled Technology Subject to Restrictions Contained on the Cover Page.
Page 145
CY - Clear Error Status Word
Purpose
Clears the Error Status Word (ESW) stored in EEPROM on the CPU. The ESW is updated
whenever an error occurs.
Format
CYn
Range
n = 0 (Clear), 1 (Display)
Format
Use the CY1 command to display the ESW value or CY0 to clear the ESW.
Recommended Setting.
Use as needed.
Description
CY1 displays the active ESW value, which is a 32-bit value displayed in Hex ASCII.
Table 20:
Error Status Word
ESW
Description
0x00000001
Bus Error Exception occurred.
0x00000002
Address Error Exception occurred.
0x00000004
Illegal Inst Exception occurred.
0x00000008
Zero Divide Exception occurred.
0x00000010
Emulator Exception occurred.
0x00000020
Unassigned Exception occurred.
0x00000040
Watchdog restart occurred.
0x00000080
Screen Save power down occurred.
0x00000100
Currently pinging.
0x00000200
Unused
0x00000400
Unused
0x00000800
Unused
0x00001000
Unused
0x00002000
Unused
0x00004000
Cold wakeup occurred.
0x00008000
Unknown wakeup occurred.
0x00010000
Clock read failure occurred.
0x00020000
Unexpected Alarm.
0x00040000
Clock jump forward.
0x00080000
Clock jump backward.
0x00100000
Unused
0x00200000
Unused
0x00400000
Unused
0x00800000
Unused
0x01000000
Unused
0x02000000
Unused
0x04000000
Unused
0x08000000
Power Fail (Unrecorded)
0x10000000
Spurious level 4 interrupt (DSP).
0x20000000
Spurious level 5 interrupt (UART).
0x40000000
Spurious level 6 interrupt (CLOCK).
0x80000000
Level 7 interrupt occurred.
In the command mode, the Error Status Word (ESW) codes can be cleared through the CY-command. In
ping mode, the ESW is cleared (set to zero) between each ensemble. The values are logically OR’ed. For
example, if an illegal instruction (xxx4) and a divide by zero error (xxx8) occurred since the last time the
ESW was cleared, a value of “xxxC” would appear as the ESW.
ESW code 0x0000100 can only be seen if the CY-command is issued between CS-commands in
the manual ping mode. This flag is used to determine if on wakeup, whether the H-ADCP was
pinging or not previous to the present power up. A CS-command sets this bit; a <BREAK> resets
the bit. This results in the following consequences:
a) A deployment must be ended with a <BREAK>. If the H-ADCP is pinging, and power is lost,
when power is restored, the H-ADCP will continue to ping.