ADIS16204_07 AD [Analog Devices], ADIS16204_07 Datasheet - Page 18

no-image

ADIS16204_07

Manufacturer Part Number
ADIS16204_07
Description
Programmable High-g Digital Impact Sensor and Recorder
Manufacturer
AD [Analog Devices]
Datasheet
ADIS16204
STATUS Conditions
The STATUS register contains the following error-condition
flags: alarm conditions, self-test status, SPI communication
failure, capture buffer full, control register update failure, and
power supply out of range. See Table 27 and Table 28 for the
appropriate register access and bit assignment for each flag.
The bits assigned for checking power supply range automati-
cally reset to zero when the error condition no longer exists.
Clearing the remaining error-flag bits requires a single write
command to the COMMAND register (write a 1 to Bit 4).
See Table 8 and Table 9 for the configuration details of the
COMMAND register. If the error condition still exists after
exercising the COMMAND register to clear the bits, the appro-
priate error flag bit returns to 1 during the next sampling cycle.
All bits in the STATUS register are volatile.
Table 27. STATUS Register Definition
Address
0x3D, 0x3C
Table 28. STATUS Bit Descriptions
Bit
15:13
12
11:10
9
8
7:6
5
4
3
2
1
0
ALARM DETECTION AND EVENT CAPTURE
The ADIS16204 provides alarm detection and event capture
functions, which monitor critical internal and external
operating conditions. Six factory standard alarms monitor
the AIDS16204 for normal operation. Two programmable
alarms provide monitoring for system-critical conditions,
which reduces external processing burden for this function.
Alarm monitoring includes both software (STATUS register)
Description
Not used
Capture buffers full
Not used
Alarm 2 status
Alarm 1 status
Not used
Self-test diagnostic error flag
Not used
SPI communications failure
Flash update failed
Power supply above 3.625 V
Power supply below 2.975 V
1 = active, 0 = inactive
1 = active, 0 = inactive
1 = error condition, 0 = normal operation
1 = error condition, 0 = normal operation
1 = error condition, 0 = normal operation
1 = above 3.625 V, 0 = below 2.975 V (normal)
1 = below 2.975 V, 0 = above 2.975 V (normal)
Default
0x0000
Format
N/A
Access
R only
Rev. 0 | Page 18 of 24
and hardware options (DIO1 and DIO2 configuration,
ALM_CTRL register). In addition, the programmable alarms
can trigger an event capture function, which provides time
recording, much like a single event capture function on a digital
oscilloscope. Table 29 provides a summary of the functions
available for configuring the alarms.
Alarm Configuration
Mark, I am just realizing this now, but I cannot bold normal
text just for
1. Program The Output Data To Monitor.
Essentially, this establishes the trigger source, by configuring
the upper byte of the ALM_CTRL register. See Table 31 for the
proper bit assignments. For example, the following pseudo code
establishes X acceleration as the trigger for Alarm 2 and Y accel-
eration as the trigger for Alarm 1:
2. Program The Trigger Levels And Polarity.
This requires two write commands for each alarm, to the
ALM_MAG1 and ALM_MAG2 registers. For example, use
the following pseudo code to establish greater than 7.4 g as
the trigger threshold for both channels:
The ALM_MAG1 and ALM_MAG2 values are calculated by:
Bit 15 in both registers must be set to 1 in order to denote
greater than polarity.
3. Set Up A Digital I/O Line As An Alarm Indicator.
This step requires configuration of the lower byte in the
ALM_CTRL. If software monitoring, using the STATUS
register, is the preferred alarm-checking method, then this
step is not required. The following pseudo code establishes
Digital I/O Line 2 as a positive signal, alarm indicator:
See Table 31 for the configuration options available for this
function. As noted earlier, the digital I/O lines are shared, so
use of them as an alarm indicator requires that it not be in use
as a data-ready or general-purpose I/O pin.
Write 0x23 to Address 0x29 [ALM_CTRL].
Write 0x81 to Address 0x21 [ALM_MAG1].
Write 0xB0 to Address 0x20 [ALM_MAG1].
Write 0x83 to Address 0x23 [ALM_MAG2].
Write 0x70 to Address 0x22 [ALM_MAG2].
X = 7.4 g = 432 codes = 00 0001 1011 0000 (Bit 0 to Bit 13)
Y = 7.4 g = 880 codes = 00 0011 0111 0000 (Bit 0 to Bit 13)
Write 0x07 to Address 0x28 [ALM_CTRL].

Related parts for ADIS16204_07