Error Register
The internal error register shows the error status of the CT-BOX device that
may have occurred during normal device operation. Reading this register
allows identifying the actual error(s) of the device. It is read with
ERR:? and cleared with ERR:CLR.
The register has the following structure:
Bit # |
Bit name |
Description |
|---|---|---|
|
SD mount error |
Error in mounting the SD card |
|
SD open error |
Error in opening the SD card |
|
SD write error |
Error in writing on the SD card |
|
SD sync error |
Error in sync operation on the SD card |
|
SD close error |
Error in closing operation on the SD card |
|
SD full error |
Error that occurs when the SD card is full |
|
SD read error |
Error in reading the SD card |
|
Reserved |
For internal or future use |
|
DCCT error |
Indicates that the DCCT is not connected or is not working properly |
|
Reserved |
For internal or future use |
|
Buffer overflow error |
A buffer overflow occurred; to solve this problem it is suggested to reduce the acquisition frequency |
|
DCCT match error |
Indicates that the DCCT is not connected, or that it is not the matched DCCT |
|
Reserved |
For internal or future use |
Important
The bits of this register act as latches: when an error occurs, the
corresponding bit remains high until the general error clear command
ERR:CLR is sent to the unit. If the errors have been solved, the relative
bits remain 0 after the error clear; otherwise the error bits return high
at the next error check, within about 1 s.
The Error condition bit (#2) of the
Status Register is a logical OR of the bits of the Error
Register, so it is high when one or more bits of the Error Register are high.
Example:
The value 0X00010001 indicates that an SD mount error occurred (bit #1 is
high) and that a buffer overflow occurred (bit #17 is high):
ERR:?
0X00010001
ERR:CLR
ACK
ERR:?
0X00000000