24-Channel TTL/CMOS I/O
Edit this on GitLab
TTL/CMOS SF
Introduction
This module manual provides information about the North Atlantic Industries, Inc. (NAI) TTL/CMOS SF Function Module: TL1 and the variants TL3, TL5 and TL7, which provide different TTL strapping options. This module is compatible with all NAI Generation 5 motherboards. The TL1 and its variants, TTL/CMOS 32-Bit modules provide 24 individual channels, which are programmable as either inputs or outputs. The transistor-transistor logic (TTL) employs transmitters with multiple emitters in gates having more than one input. TTL offers high switching speed and relative immunity to noisy systems. CMOS sensors provide image sensing technology by converting light waves into signals that are small bursts of current. These waves can be light or other electromagnetic radiation.
The differences between TL1 and each variant, are listed in the table that follows. Otherwise, the modules are identical.
|Designation | Type |Default Power-On / Description
TL1 |
TTL I/O |
Internal VCC, Input with 100k pull-downs |
TL3 |
TTL with: EXT-VCC strapped to Internal +5 V |
Internal VCC , Input with 100k pull-downs |
TL5 |
TTL with: Input pull-ups |
Internal VCC, Input with 100k pull-ups |
TL7 |
TTL with: Input pull-ups, EXT-VCC strapped to Internal +5 V |
Internal VCC, Input with 100k pull-ups |
Features
-
24 channels available as inputs or outputs
-
Programmable debounce circuitry with selectable time delay eliminates false signals resulting from relay contact bounce
-
Built-in test runs in background constantly monitoring system health for each channel
TTL INPUT
Input levels | TTL and CMOS compatible, single ended inputs. Each channel incorporates a 100 kΩ pull-down resistor (contact factory regarding special configurations requiring inputs with 100 kΩ pull-up resistor(s)). |
---|---|
V in L |
≤ 0.8 V = “0” |
V in H |
≥ 2.0 V = “1” |
V in Max. |
5.5 V |
I in |
± 50µA |
Read Delay |
300 ns (pending characterization) |
Debounce |
Programmable from 0 to 32.36 sec.; LSB=8 ns. (pending characterization) |
TTL OUTPUT
Output Levels |
TTL/CMOS, single ended outputs (internal or external Vcc selectable) |
Drive Capability |
V out L: 0.55 V max. Low level output current: 24 mA (sink) V out H: 2.4 V min. High level output current 24 mA (source) |
Rise/Fall Time |
10 ns into a 50pf load |
Write Delay |
|
300 ns (pending characterization) |
Power |
5 VDC @ 75 mA unloaded (max. 650 mA, with all channels at full source) (pending characterization) |
Ground |
All grounds are common and connected/referenced to system ground |
Weight |
Specifications are subject to change without notice.
Principle of Operation
TL1 and its variants, provide up to 24 individual digital TTL/CMOS I/O channels, depending on platform and I/O connector pin availability. TL1 channels 1 through 24 may be set as inputs or outputs. Status and/or interrupts are enabled for each channel to indicate transition on rising edge or transition on falling edge as well as current state. Each TTL/CMOS channel has an internal 100 K-ohm pull-down resistor, which is hardware configurable for 100K pull-up. All inputs are continually hardware scanned as a background operation. Debounce circuits for each channel offer a selectable time delay to eliminate false signals resulting from contact bounce commonly experienced with mechanical relays and switches.
When programmed as outputs, the channels can be set to output the commanded state from either an internally generated 3.3V power supply, or from an externally provided VCC supply (up to 5.5 V max). If an overcurrent condition is detected, the channel will be reset to input mode. All outputs are continually scanned “real-time”, for present status.
The input thresholds are fixed and ratiometric with the VCC supply. If the external VCC supply is configured, the effective input threshold will be dependent on the supplied VCC.
Note: See TTL Strapping Configurations by Module for strapping options.
Automatic Background Built-In Test (BIT)/Diagnostic Capability
The module contains automatic background BIT testing that verifies channel processing (data read or write logic), tests for overcurrent conditions and provides status for threshold signal transitioning. Any failure triggers an Interrupt (if enabled) with the results available in status registers. The testing is totally transparent to the user, requires no external programming and has no effect on the operation of this card. It continually checks that each channel is functional. This capability is accomplished by an additional test comparator that is incorporated into each module. The test comparator checks each channel and is compared against the operational channel. Depending upon the configuration, the Input data read or Output logic written of the operational channel and test comparator must agree or a fault is indicated with the results available in the associated status register. Low-to-High and High-to-Low logic transitions are indicated. There is no independent overcurrent detection. Instead, the BIT detection circuitry is used to infer an overcurrent condition if the output state setting doesn’t match the readback value seen by the input circuitry. For example, a shorted output, causing the read state to be opposite from the expected value would trigger this. If the fault persists beyond the BIT interval stabilization time, the overcurrent protection will kick in and reset the drive output by returning the transceiver to input mode. To reset this condition, a reset command needs to be issued to the Overcurrent Clear register, which will restore drive output and allow the latched status to be reset. This is separate from the reset for the Interrupt Enable Overcurrent register on this module. It is recommended that a reset command is done whenever status is cleared to avoid a non-apparent output reset condition.
Register Descriptions
The register descriptions provide the register name, Register Offset, Type, Data Range, Read or Write information, Initialized Value, a description of the function and, in most cases, a data table.
I/O Format
Function: Sets channels as inputs or outputs.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0x 0000 0000
Operational Settings: Write 0 for input (default), 1 for output
Notes:
-
Power-on default or reset is configured for input. Bit-mapped per channel.
I/O Format
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Read I/O
Function: Reads High (1) or Low (0) inputs or outputs as defined by internal TTL channel threshold values. Bitmapped by channel.
Type: binary word (32-bit)
Read/Write: R
Initialized Value: NA
Operational Settings: NA
Read I/O
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Write Outputs
Function: Output modes only − Sets data outputs High (1) or Low (0). Bit-mapped per channel.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: Write 1 for High output; write 0 for Low. Notes: • Each bit corresponds to one of 24 channels.
Write Outputs
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
VCC Select
Function: Enables user selection of external VCC source or internal 3.3 V source for each Channel Bank (6 channels per bank), for applications requiring output voltages other than the internal voltage.
Type: binary word (32-bit)
Data Range: 0x 0000 0000 to 0x 0000 000F
Read/Write: R/W
Initialized Value: 0x 0000 000F
Operational Settings: Write 0 for external VCC source or 1 for internal (3.3 V) for each bank.
Notes:
-
Normal operating range for external VCC must be within the range between 1.2 V and 5.5 V (-0.35 V to 6.0 V absolute max. short-term tolerance) with a maximum current source of 30 mA.
-
For special strapping option; whereby the external VCC is tied to the internal +5 V supply or special internal voltage configurations, contact factory.
Vcc Select
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
n/a |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
n/a |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
4 |
3 |
2 |
1 |
Bank |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
19-24 |
13-18 |
7-12 |
1-6 |
Channel(s) |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D=DATA BIT |
Debounce
Function: When the I/O Format register is set for Input mode, the input signal will have the debounce filtering applied based on this programmed value. This is selectable for each channel.
Type: binary word (32-bit)
Data Range: 0x 0000 0000 to 0x FFFF FFFF
Read/Write: R/W
Initialized Value: 0x10
Operational Settings: The Debounce register, when programmed for a non-zero value, is used with channels programmed as input to “filter” or “ignore” expected application spurious initial transitions. Enter required debounce time into appropriate channel registers. LSB weight is 8 ns/bit (register may be programmed from 0 (debounce filter inactive) through a maximum of 32.36s (full scale w/ 8 ns resolution). Once a signal level is a logic voltage level period longer than the debounce time (Logic High and Logic Low ), a logic transition is validated. Signal pulse widths less than programmed debounce time are filtered. Once valid, the transition status register flag is set for the channel and the output logic changes state. Enter a value of 0 to disable debounce filtering. Debounce defaults to 0080h upon reset.
Read VCC Bank
Function: Read the VCC bank for a group of six channels.
Type: binary word (32-bit)
Data Range: 0x0000 0000 to 0x0000 0FFF
Read/Write: R
Initialized Value: N/A
Operational Settings: The Read VCC Bank register reflects the Vcc voltage of a bank. The voltage can be calculated using the following equation: Vcc = (0.001221 * register_value) / 0.91.
Status and Interrupt Registers
The registers may be set for any or all channels and will latch if a transition is detected on a channel or channels. Each channel(s) will remain latched until the channel is cleared. Multiple channels may be cleared simultaneously, if desired. Each channel bit in the register is polled for a read status. Any subsequent channel(s) transition, if detected, will propagate through to be read (rolling-latch).
Once the status register has been read, the act of writing a 1 back to the applicable status register to any specific bit (channel) location (bit mapped per channel), will “clear” the bit (set the bit to 0) if the actual interruptible event condition has cleared. If the interruptible condition “event” is still persistent while clearing, this may retrigger the interrupt.
There is a corresponding Interrupt Enable and vector associated with each “Latched” Status. Each status type may be “polled” (at any time), or is “interruptible” when interrupts are enabled and the associated Interrupt Service Routine (ISR) vectors are programmed accordingly. When programmed for “interruptible” status, interrupts are typically generated and flagged with the programmed vector available as data. The host or single board computer (SBC) typically services the interrupt by a general or specific ISR, which reads the (typically) unique programmed vector (identifier of which status generated the interrupt), reads the associated status register to determine which channel in the status register was “flagged” and then “clears” the status register. This essentially resets the interrupt mechanism, which is now ready to be triggered by the next status register detected event “flag”. Unless otherwise specified, all status or fault indications are bit set per channel.
BIT Dynamic Status
Function: Channels set for Inputs – BIT Dynamic Status is set when a redundant measurement is inconsistent with the input measurement level detected. Channels set for Outputs – BIT Dynamic Status is set when a dedicated measurement circuit compares the commanded level with the actual output level and the measurement is inconsistent with the commanded level.
Type: binary word (32-bit)
Read/Write: R
Initialized Value: 0
Operational Settings: 1 is read when a fault is detected. 0 indicates no fault detected.
Notes: Considered “momentary” during the actual event when detected. Associated channel(s) bit set to 1) within 10 ms (pending characterization).
|Bit Dynamic Status
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
BIT Latched Status
Function: Channels set for Inputs – BIT Latched Interrupt Status is set when a redundant measurement is inconsistent with the input measurement level detected. Channels set for Outputs – BIT Latched Interrupt Status is set when a dedicated measurement circuit compares the commanded level with the actual output level and the measurement is inconsistent with the commanded level.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: 1 is written when a fault is detected. 0 indicates no fault detected.
Notes: • Faults are detected (associated channel(s) bit set to 1) within 10 ms (pending characterization).
BIT Latched Status
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
BIT Interrupt Enable
Function: When enabled, interrupts are generated for each channel when the BIT Interrupt Enable register indicates a fault. (See BIT Error Interrupt Interval register.)
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: Write a 1 to enable interrupts. Write a 0 to disable interrupts.
Notes
-
A programmed valid Interrupt Vector should be assigned for typical ISR handling.
|BIT Interrupt Enable
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
BIT Set Edge/Level Interrupt
Function: When the BIT Interrupt Enable register is enabled, this register determines whether the interrupt will be generated for either “sense on edge” or “sense on level” event detection. Sense on “edge” requires a change from “no-go” to “go” state to trigger the status detection, while sense on “level” is independent of the previous state.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: Write a 1 to sense on level and a 0 to sense on edge.
|BIT Set Edge/Level Interrupt
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Overcurrent Dynamic Status
Function: Outputs only – senses an overcurrent or overload condition for each channel and provides real-time status. The output channel is also immediately disabled at time of overcurrent sensed condition.
Type: binary word (32-bit)
Read/Write: R
Initialized Value: 0
Operational Settings: 1 is read when overcurrent or overload condition transition is sensed. 0 indicates normal status.
Notes: • Status is indicated (associated channel(s) bit set to 1, based on BIT status), within 80 ms (pending characterization).
|Overcurrent Dynamic Status
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Overcurrent Latched Status
Function: Outputs only – senses an overcurrent or overload condition for each channel and provides status. The output channel is also immediately disabled at time of overcurrent sensed condition.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: 1 is written when overcurrent or overload condition transition is sensed. 0 indicates no status.
Notes: • Status is indicated (associated channel(s) bit set to 1, based on BIT status), within 40 µs (pending characterization). • Channel(s) shut down by overcurrent sensed can be reset by writing to the Overcurrent Clear register
Overcurrent Interrupt Enable
Function: When enabled, interrupts are generated for each channel when the Overcurrent Latched Interrupt Status register senses an overcurrent or overload condition for any channel.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: Write a 1 to enable interrupts. Write a 0 to disable interrupts.
Notes: • A programmed valid Interrupt Vector should be assigned for typical ISR handling.
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Overcurrent Set Edge/Level Interrupt
Function: This register controls whether the Overcurrent Latched Interrupt Status register will trigger on an edge or a level.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: Write a 1 to sense on level and a 0 to sense on edge.
|Overcurrent Set Edge/Level Interrupt
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Overcurrent Reset
Function: Resets disabled channels in Overcurrent Latched Status register following an overcurrent condition. Bit-mapped per channel.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: 1 is written to reset disabled channels. Processor will write a 0 back to the Overcurrent Reset register when reset process is complete.
|Overcurrent Reset
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Hi-Lo Transition Dynamic Status
Function: Inputs only – senses High to Low transitions for each channel and provides real-time status.
Type: binary word (32-bit)
Read/Write: R
Initialized Value: 0
Operational Settings: 1 is read when a rising edge transition is sensed. 0 indicates no status.
Notes:
-
Considered “momentary” during the actual event when detected. Programmable for level or edge sensing, status is indicated (associated channel(s) bit set to 1) within 40 ns (pending characterization).
|Hi-Lo Transition Dynamic Status
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Hi-Lo Transition Latched Status
Function: Inputs only – senses High to Low transitions for each channel and provides status.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: 1 is written when a falling edge transition is sensed. 0 indicates no status.
Notes:
-
Programmable for level or edge sensing, status is indicated (associated channel(s) bit set to 1) within 40 ns (pending characterization).
|Hi-Lo Transition Latched Status
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Hi-Lo Transition Interrupt Enable
Function: When enabled, interrupts are generated for each channel when the Hi-Lo Transition Latched Status register senses a High to Low transition for any channel.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: Write a 1 to enable interrupts. Write a 0 to disable interrupts.
Notes:
-
A programmed valid Interrupt Vector should be assigned for typical ISR handling.
|Hi-Lo Transition Interrupt Enable
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Hi-Lo Transition Set Edge/Level Interrupt
Function: This register controls whether the Hi-Lo Transition Latched Status register will trigger on an edge or a level.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: Write a 1 to sense on level and a 0 to sense on edge.
|Hi-Lo Transition Set Edge/Level Interrup
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Lo-Hi Transition Dynamic Status
Function: Inputs only – senses Low to High transitions for each channel and provides real-time status.
Type: binary word (32-bit)
Read/Write: R
Initialized Value: 0
Operational Settings: 1 is read when a rising edge transition is sensed. 0 indicates no status.
Notes: • Considered “momentary” during the actual event when detected. Programmable for level or edge sensing, status is indicated (associated channel(s) bit set to 1) within 40 ns pending characterization).
|Lo-Hi Transition Dynamic Status
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Lo-Hi Transition Latched Status
Function: Inputs only – senses Low to High transitions for each channel and provides status.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: 1 is written when a rising edge transition is sensed. 0 indicates no status.
Notes:
-
Programmable for level or edge sensing, status is indicated (associated channel(s) bit set to 1) within 100 ns (pending characterization).
|Lo-Hi Transition Latched Status
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Lo-Hi Transition Interrupt Enable
Function: When enabled, interrupts are generated for each channel when the Lo-Hi Transition Latched Interrupt Status register senses a Low to High transition for any channel.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
*Operational Settings: *Write a 1 to enable interrupts. Write a 0 to disable interrupts.
Notes • A programmed valid Interrupt Vector should be assigned for typical ISR handling.
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Lo-Hi Transition Set Edge/Level Interrupt
Function: This register controls whether the Lo-Hi Transition Latched Status register will trigger on an edge or a level.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: Write a 1 to sense on level and a 0 to sense on edge.
|Lo-Hi Transition Set Edge/Level Interrupt
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
General Purpose Status Functions
BIT Error Interrupt Interval
Function: Sets up a threshold requirement of “successive” events to accumulate before a BIT Error is generated. Accumulated successive fault detections add +2 to the count and no-fault detections subtract 1 from the count to filter BIT errors prior to an actual interrupt generation. Once the count exceeds this register’s value, a BIT error is generated.
Type: binary word (32-bit)
Data Range: 0x0000 0000 to 0xFFFF FFFF
Read/Write: R/W
Initialized Value: 0x 0000 0003
Operational Settings: Write a threshold to filter BIT errors prior to generating a BIT Error.
Notes: • Advantageous in “noisy”/unstable application environments or for general filtering purposes.
BIT Error Interrupt Interval D: [1 = Interrupt; 0 = No Errors Detected]
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
BIT Count Error Clear
Function: Clears the BIT error.
Type: binary word (32-bit)
Read/Write: R/W
Initialized Value: 0
Operational Settings: Write a 1 to clear BIT errors.
BIT Count Error Clear
D31 |
D30 |
D29 |
D28 |
D27 |
D26 |
D25 |
D24 |
D23 |
D22 |
D21 |
D20 |
D19 |
D18 |
D17 |
D16 |
FUNCTION |
X |
X |
X |
X |
X |
X |
X |
X |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
Channel |
X |
X |
X |
X |
X |
X |
X |
X |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
D15 |
D14 |
D13 |
D12 |
D11 |
D10 |
D9 |
D8 |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
FUNCTION |
16 |
15 |
16 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
Channel |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D |
D=DATA BIT |
Function Register Map
0x208C |
Debounce Time Ch.1 |
R/W |
0x210C |
Debounce Time Ch.2 |
R/W |
0x218C |
Debounce Time Ch.3 |
R/W |
0x220C |
Debounce Time Ch.4 |
R/W |
0x228C |
Debounce Time Ch.5 |
R/W |
0x230C |
Debounce Time Ch.6 |
R/W |
0x238C |
Debounce Time Ch.7 |
R/W |
0x240C |
Debounce Time Ch.8 |
R/W |
0x248C |
Debounce Time Ch.9 |
R/W |
0x250C |
Debounce Time Ch.10 |
R/W |
0x258C |
Debounce Time Ch.11 |
R/W |
0x260C |
Debounce Time Ch.12 |
R/W |
0x268C |
Debounce Time Ch.13 |
R/W |
0x270C |
Debounce Time Ch.14 |
R/W |
0x278C |
Debounce Time Ch.15 |
R/W |
0x280C |
Debounce Time Ch.16 |
R/W |
0x288C |
Debounce Time Ch.17 |
R/W |
0x290C |
Debounce Time Ch.18 |
R/W |
0x298C |
Debounce Time Ch.19 |
R/W |
0x2A0C |
Debounce Time Ch.20 |
R/W |
0x2A8C |
Debounce Time Ch.21 |
R/W |
0x2B0C |
Debounce Time Ch.22 |
R/W |
0x2B8C |
Debounce Time Ch.23 |
R/W |
0x2C0C |
Debounce Time Ch.24 |
R/W |
0x1000 |
Read I/O |
R |
0x101C |
BIT Error Interrupt Interval |
R/W |
0x1014 |
BIT Count Error Clear |
R/W |
0x1020 |
Vcc Select |
R/W |
0x1024 |
Write Outputs |
R/W |
0x1038 |
Input/Output Format |
R/W |
0x1100 |
Overcurrent Reset |
R/W |
Status Registers
BIT Status
0x0800 |
BIT Dynamic Status |
R |
0x0804 |
BIT Latched Status |
R/W |
0x0808 |
BIT Interrupt Enable |
R/W |
0x080C |
BIT Set Edge/Level Interrupt |
R/W |
Transition Status
0x0810 |
Lo-Hi Transition Dynamic Status |
R |
0x0814 |
Lo-Hi Transition Latched Status |
R/W |
0x0818 |
Lo-Hi Transition Interrupt Enable |
R/W |
0x081C |
Lo-Hi Transition Set Edge/Level Interrupt |
R/W |
Overcurrent Status
0x0830 |
Overcurrent Dynamic Status |
R |
0x0834 |
Overcurrent Latched Status |
R/W |
0x0838 |
Overcurrent Interrupt Enable |
R/W |
0x083C |
Overcurrent Set Edge/Level Interrupt |
R/W |
STATUS AND INTERRUPTS
Edit this on GitLab
Status registers indicate the detection of faults or events. The status registers can be channel bit-mapped or event bit-mapped. An example of a channel bit-mapped register is the BIT status register, and an example of an event bit-mapped register is the FIFO status register.
For those status registers that allow interrupts to be generated upon the detection of the fault or the event, there are four registers associated with each status: Dynamic, Latched, Interrupt Enabled, and Set Edge/Level Interrupt.
Dynamic Status: The Dynamic Status register indicates the current condition of the fault or the event. If the fault or the event is momentary, the contents in this register will be clear when the fault or the event goes away. The Dynamic Status register can be polled, however, if the fault or the event is sporadic, it is possible for the indication of the fault or the event to be missed.
Latched Status: The Latched Status register indicates whether the fault or the event has occurred and keeps the state until it is cleared by the user. Reading the Latched Status register is a better alternative to polling the Dynamic Status register because the contents of this register will not clear until the user commands to clear the specific bit(s) associated with the fault or the event in the Latched Status register. Once the status register has been read, the act of writing a 1 back to the applicable status register to any specific bit (channel/event) location will “clear” the bit (set the bit to 0). When clearing the channel/event bits, it is strongly recommended to write back the same bit pattern as read from the Latched Status register. For example, if the channel bit-mapped Latched Status register contains the value 0x0000 0005, which indicates fault/event detection on channel 1 and 3, write the value 0x0000 0005 to the Latched Status register to clear the fault/event status for channel 1 and 3. Writing a “1” to other channels that are not set (example 0x0000 000F) may result in incorrectly “clearing” incoming faults/events for those channels (example, channel 2 and 4).
Interrupt Enable: If interrupts are preferred upon the detection of a fault or an event, enable the specific channel/event interrupt in the Interrupt Enable register. The bits in Interrupt Enable register map to the same bits in the Latched Status register. When a fault or event occurs, an interrupt will be fired. Subsequent interrupts will not trigger until the application acknowledges the fired interrupt by clearing the associated channel/event bit in the Latched Status register. If the interruptible condition is still persistent after clearing the bit, this may retrigger the interrupt depending on the Edge/Level setting.
Set Edge/Level Interrupt: When interrupts are enabled, the condition on retriggering the interrupt after the Latch Register is “cleared” can be specified as “edge” triggered or “level” triggered. Note, the Edge/Level Trigger also affects how the Latched Register value is adjusted after it is “cleared” (see below).
-
Edge triggered: An interrupt will be retriggered when the Latched Status register change from low (0) to high (1) state. Uses for edgetriggered interrupts would include transition detections (Low-to-High transitions, High-to-Low transitions) or fault detections. After “clearing” an interrupt, another interrupt will not occur until the next transition or the re-occurrence of the fault again.
-
Level triggered: An interrupt will be generated when the Latched Status register remains at the high (1) state. Level-triggered interrupts are used to indicate that something needs attention.
Interrupt Vector and Steering
When interrupts are enabled, the interrupt vector associated with the specific interrupt can be programmed with a unique number/identifier defined by the user such that it can be utilized in the Interrupt Service Routine (ISR) to identify the type of interrupt. When an interrupt occurs, the contents of the Interrupt Vector registers is reported as part of the interrupt mechanism. In addition to specifying the interrupt vector, the interrupt can be directed (“steered”) to the native bus or to the application running on the onboard ARM processor.
Interrupt Trigger Types
In most applications, limiting the number of interrupts generated is preferred as interrupts are costly, thus choosing the correct Edge/Level interrupt trigger to use is important.
Example 1: Fault detection
This example illustrates interrupt considerations when detecting a fault like an “open” on a line. When an “open” is detected, the system will receive an interrupt. If the “open” on the line is persistent and the trigger is set to “edge”, upon “clearing” the interrupt, the system will not regenerate another interrupt. If, instead, the trigger is set to “level”, upon “clearing” the interrupt, the system will re-generate another interrupt. Thus, in this case, it will be better to set the trigger type to “edge”.
Example 2: Threshold detection
This example illustrates interrupt considerations when detecting an event like reaching or exceeding the “high watermark” threshold value. In a communication device, when the number of elements received in the FIFO reaches the high-watermark threshold, an interrupt will be generated. Normally, the application would read the count of the number of elements in the FIFO and read this number of elements from the FIFO. After reading the FIFO data, the application would “clear” the interrupt. If the trigger type is set to “edge”, another interrupt will be generated only if the number of elements in FIFO goes below the “high watermark” after the “clearing” the interrupt and then fills up to reach the “high watermark” threshold value. Since receiving communication data is inherently asynchronous, it is possible that data can continue to fill the FIFO as the application is pulling data off the FIFO. If, at the time the interrupt is “cleared”, the number of elements in the FIFO is at or above the “high watermark”, no interrupts will be generated. In this case, it will be better to set the trigger type to “level”, as the purpose here is to make sure that the FIFO is serviced when the number of elements exceeds the high watermark threshold value. Thus, upon “clearing” the interrupt, if the number of elements in the FIFO is at or above the “high watermark” threshold value, another interrupt will be generated indicating that the FIFO needs to be serviced.
Dynamic and Latched Status Registers Examples
The examples in this section illustrate the differences in behavior of the Dynamic Status and Latched Status registers as well as the differences in behavior of Edge/Level Trigger when the Latched Status register is cleared.
Figure 1. Example of Module’s Channel-Mapped Dynamic and Latched Status States
No Clearing of Latched Status |
Clearing of Latched Status (Edge-Triggered) |
Clearing of Latched Status (Level-Triggered) |
||||
Time |
Dynamic Status |
Latched Status |
Action |
Latched Status |
Action |
Latched |
T0 |
0x0 |
0x0 |
Read Latched Register |
0x0 |
Read Latched Register |
0x0 |
T1 |
0x1 |
0x1 |
Read Latched Register |
0x1 |
0x1 |
|
Write 0x1 to Latched Register |
Write 0x1 to Latched Register |
|||||
0x0 |
0x1 |
|||||
T2 |
0x0 |
0x1 |
Read Latched Register |
0x0 |
Read Latched Register |
0x1 |
Write 0x1 to Latched Register |
||||||
0x0 |
||||||
T3 |
0x2 |
0x3 |
Read Latched Register |
0x2 |
Read Latched Register |
0x2 |
Write 0x2 to Latched Register |
Write 0x2 to Latched Register |
|||||
0x0 |
0x2 |
|||||
T4 |
0x2 |
0x3 |
Read Latched Register |
0x1 |
Read Latched Register |
0x3 |
Write 0x1 to Latched Register |
Write 0x3 to Latched Register |
|||||
0x0 |
0x2 |
|||||
T5 |
0xC |
0xF |
Read Latched Register |
0xC |
Read Latched Register |
0xE |
Write 0xC to Latched Register |
Write 0xE to Latched Register |
|||||
0x0 |
0xC |
|||||
T6 |
0xC |
0xF |
Read Latched Register |
0x0 |
Read Latched |
0xC |
Write 0xC to Latched Register |
||||||
0xC |
||||||
T7 |
0x4 |
0xF |
Read Latched Register |
0x0 |
Read Latched Register |
0xC |
Write 0xC to Latched Register |
||||||
0x4 |
||||||
T8 |
0x4 |
0xF |
Read Latched Register |
0x0 |
Read Latched Register |
0x4 |
Interrupt Examples
The examples in this section illustrate the interrupt behavior with Edge/Level Trigger.
Figure 2. Illustration of Latched Status State for Module with 4-Channels with Interrupt Enabled
Time |
Latched Status (Edge-Triggered – Clear Multi-Channel) |
Latched Status (Edge-Triggered – Clear Single Channel) |
Latched Status (Level-Triggered – Clear Multi-Channel) |
|||
Action |
Latched |
Action |
Latched |
Action |
Latched |
|
T1 (Int 1) |
Interrupt Generated Read Latched Registers |
0x1 |
Interrupt Generated Read Latched Registers |
0x1 |
Interrupt Generated Read Latched Registers |
0x1 |
Write 0x1 to Latched Register |
Write 0x1 to Latched Register |
Write 0x1 to Latched Register |
||||
0x0 |
0x0 |
Interrupt re-triggers Note, interrupt re-triggers after each clear until T2. |
0x1 |
|||
T3 (Int 2) |
Interrupt Generated Read Latched Registers |
0x2 |
Interrupt Generated Read Latched Registers |
0x2 |
Interrupt Generated Read Latched Registers |
0x2 |
Write 0x2 to Latched Register |
Write 0x2 to Latched Register |
Write 0x2 to Latched Register |
||||
0x0 |
0x0 |
Interrupt re-triggers Note, interrupt re-triggers after each clear until T7. |
0x2 |
|||
T4 (Int 3) |
Interrupt Generated Read Latched Registers |
0x1 |
Interrupt Generated Read Latched Registers |
0x1 |
Interrupt Generated Read Latched Registers |
0x3 |
Write 0x1 to Latched Register |
Write 0x1 to Latched Register |
Write 0x3 to Latched Register |
||||
0x0 |
0x0 |
Interrupt re-triggers Note, interrupt re-triggers after each clear and 0x3 is reported in Latched Register until T5. |
0x3 |
|||
Interrupt re-triggers Note, interrupt re-triggers after each clear until T7. |
0x2 |
|||||
T6 (Int 4) |
Interrupt Generated Read Latched Registers |
0xC |
Interrupt Generated Read Latched Registers |
0xC |
Interrupt Generated Read Latched Registers |
0xE |
Write 0xC to Latched Register |
Write 0x4 to Latched Register |
Write 0xE to Latched Register |
||||
0x0 |
Interrupt re-triggers Write 0x8 to Latched Register |
0x8 |
Interrupt re-triggers Note, interrupt re-triggers after each clear and 0xE is reported in Latched Register until T7. |
0xE |
||
0x0 |
Interrupt re-triggers Note, interrupt re-triggers after each clear and 0xC is reported in Latched Register until T8. |
0xC |
||||
Interrupt re-triggers Note, interrupt re-triggers after each clear and 0x4 is reported in Latched Register always. |
0x4 |
USER WATCHDOG TIMER MODULE MANUAL
Edit this on GitLab
User Watchdog Timer Capability
The User Watchdog Timer (UWDT) Capability is available on the following modules:
-
AC Reference Source Modules
-
AC1 - 1 Channel, 2-115 Vrms, 47 Hz - 20kHz
-
AC2 - 2 Channels, 2-28 Vrms, 47 Hz - 20kHz
-
AC3 - 1 Channel, 28-115 Vrms, 47 Hz - 2.5 kHz
-
-
Differential Transceiver Modules
-
DF1/DF2 - 16 Channels Differential I/O
-
-
Digital-to-Analog (D/A) Modules
-
DA1 - 12 Channels, ±10 VDC @ 25 mA, Voltage or Current Control Modes
-
DA2 - 16 Channels, ±10 VDC @ 10 mA
-
DA3 - 4 Channels, ±40 VDC @ ±100 mA, Voltage or Current Control Modes
-
DA4 - 4 Channels, ±80 VDC @ 10 mA
-
DA5 - 4 Channels, ±65 VDC or ±2 A, Voltage or Current Control Modes
-
-
Digital-to-Synchro/Resolver (D/S) or Digital-to-L( R )VDT (D/LV) Modules
-
(Not supported)
-
-
Discrete I/O Modules
-
DT1/DT4 - 24 Channels, Programmable for either input or output, output up to 500 mA per channel from an applied external 3 - 60 VCC source.
-
DT2/DT5 - 16 Channels, Programmable for either input voltage measurements (±80 V) or as a bi-directional current switch (up to 500 mA per channel).
-
DT3/DT6 - 4 Channels, Programmable for either input voltage measurements (±100 V) or as a bi-directional current switch (up to 3 A per channel).
-
-
TTL/CMOS Modules
-
TL1-TL8 - 24 Channels, Programmable for either input or output.
-
Principle of Operation
The User Watchdog Timer is optionally activated by the applications that require the module’s outputs to be disabled as a failsafe in the event of an application failure or crash. The circuit is designed such that a specific periodic write strobe pattern must be executed by the software to maintain operation and prevent the disablement from taking place.
The User Watchdog Timer is inactive until the application sends an initial strobe by writing the value 0x55AA to the UWDT Strobe register. After activating the User Watchdog Timer, the application must continually strobe the timer within the intervals specified with the configurable UWDT Quiet Time and UWDT Window registers. The timing of the strobes must be consistent with the following rules:
-
The application must not strobe during the Quiet time.
-
The application must strobe within the Window time.
-
The application must not strobe more than once in a single window time.
A violation of any of these rules will trigger a User Watchdog Timer fault and result in shutting down any isolated power supplies and/or disabling any active drive outputs, as applicable for the specific module. Upon a User Watchdog Timer event, recovery to the module shutting down will require the module to be reset.
The Figure 1 and Figure 2 provides an overview and an example with actual values for the User Watchdog Timer Strobes, Quiet Time and Window. As depicted in the diagrams, there are two processes that run in parallel. The Strobe event starts the timer for the beginning of the “Quiet Time”. The timer for the Previous Strobe event continues to run to ensure that no additional Strobes are received within the “Window” associated with the Previous Strobe.
The optimal target for the user watchdog strobes should be at the interval of [Quiet time + ½ Window time] after the previous strobe, which will place the strobe in the center of the window. This affords the greatest margin of safety against unintended disablement in critical operations.
Figure 1. User Watchdog Timer Overview
Figure 2. User Watchdog Timer Example
Figure 3. User Watchdog Timer Failures
Register Descriptions
The register descriptions provide the register name, Type, Data Range, Read or Write information, Initialized Value, and a description of the function.
User Watchdog Timer Registers
The registers associated with the User Watchdog Timer provide the ability to specify the UWDT Quiet Time and the UWDT Window that will be monitored to ensure that EXACTLY ONE User Watchdog Timer (UWDT) Strobe is written within the window.
UWDT Quiet Time
Function: Sets Quiet Time value (in microseconds) to use for the User Watchdog Timer Frame.
Type: unsigned binary word (32-bit)
Data Range: 0 µsec to 2^32 µsec (0x0 to 0xFFFFFFFF)
Read/Write: R/W
Initialized Value: 0x0
Operational Settings: LSB = 1 µsec. The application must NOT write a strobe in the time between the previous strobe and the end of the Quiet time interval. In addition, the application must write in the UWDT Window EXACTLY ONCE.
UWDT Window
Function: Sets Window value (in microseconds) to use for the User Watchdog Timer Frame.
Type: unsigned binary word (32-bit)
Data Range: 0 µsec to 2^32 µsec (0x0 to 0xFFFFFFFF)
Read/Write: R/W
Initialized Value: 0x0
Operational Settings: LSB = 1 µsec. The application must write the strobe once within the Window time after the end of the Quiet time interval. The application must write in the UWDT Window EXACTLY ONCE. This setting must be initialized to a non-zero value for operation and should allow sufficient tolerance for strobe timing by the application.
UWDT Strobe
Function: Writes the strobe value to be use for the User Watchdog Timer Frame.
Type: unsigned binary word (32-bit)
Data Range: 0x55AA
Read/Write: W
Initialized Value: 0x0
Operational Settings: At startup, the user watchdog is disabled. Write the value of 0x55AA to this register to start the user watchdog timer monitoring after initial power on or a reset. To prevent a disablement, the application must periodically write the strobe based on the user watchdog timer rules.
Status and Interrupt
The modules that are capable of User Watchdog Timer support provide status registers for the User Watchdog Timer.
User Watchdog Timer Status
The status register that contains the User Watchdog Timer Fault information is also used to indicate channel Inter-FPGA failures on modules that have communication between FPGA components. There are four registers associated with the User Watchdog Timer Fault/Inter-FPGA Failure Status: Dynamic, Latched, Interrupt Enable, and Set Edge/Level Interrupt.
User Watchdog Timer Fault/Inter-FPGA Failure Dynamic Status |
||
User Watchdog Timer Fault/Inter-FPGA Failure Latched Status |
||
User Watchdog Timer Fault/Inter-FPGA Failure Interrupt Enable |
||
User Watchdog Timer Fault/Inter-FPGA Failure Set Edge/Level Interrupt |
||
Bit(s) |
Status |
Description |
D31 |
User Watchdog Timer Fault Status |
0 = No Fault 1 = User Watchdog Timer Fault |
D30:D0 |
Reserved for Inter-FPGA Failure Status |
Channel bit-mapped indicating channel inter |
Function: Sets the corresponding bit (D31) associated with the channel’s User Watchdog Timer Fault error.
Type: unsigned binary word (32-bit)
Data Range: 0x0000 0000 to 0xFFFF FFFF
Read/Write: R (Dynamic), R/W (Latched, Interrupt Enable, Set Edge/Level Interrupt)
Initialized Value: 0
Interrupt Vector and Steering
When interrupts are enabled, the interrupt vector associated with the specific interrupt can be programmed (typically with a unique number/identifier) such that it can be utilized in the Interrupt Service Routine (ISR) to identify the type of interrupt. When an interrupt occurs, the contents of the Interrupt Vector registers is reported as part of the interrupt mechanism.
In addition to specifying the interrupt vector, the interrupt can be directed (“steered”) to the native bus or to the application running on the onboard ARM processor.
Note
|
the Interrupt Vector and Interrupt Steering registers are mapped to the Motherboard Common Memory and these registers are associated with the Module Slot position (refer to Function Register Map). |
Interrupt Vector
Function: Set an identifier for the interrupt.
Type: unsigned binary word (32-bit)
Data Range: 0 to 0xFFFF FFFF
Read/Write: R/W
Initialized Value: 0
Operational Settings: When an interrupt occurs, this value is reported as part of the interrupt mechanism.
Interrupt Steering
Function: Sets where to direct the interrupt.
Type: unsigned binary word (32-bit)
Data Range: See table
Read/Write: R/W
Initialized Value: 0
Operational Settings: When an interrupt occurs, the interrupt is sent as specified:
Direct Interrupt to VME |
1 |
Direct Interrupt to ARM Processor (via SerDes) (Custom App on ARM or NAI Ethernet Listener App) |
2 |
Direct Interrupt to PCIe Bus |
5 |
Direct Interrupt to cPCI Bus |
6 |
Function Register Map
Key
Bold Underline |
= Measurement/Status/Board Information |
Bold Italic |
= Configuration/Control |
User Watchdog Timer Registers
0x01C0 |
UWDT Quiet Time |
R/W |
0x01C4 |
UWDT Window |
R/W |
0x01C8 |
UWDT Strobe |
W |
Status Registers
User Watchdog Timer Fault/Inter-FPGA Failure
0x09B0 |
Dynamic Status |
R |
0x09B4 |
Latched Status* |
R/W |
0x09B8 |
Interrupt Enable |
R/W |
0x09BC |
Set Edge/Level Interrupt |
R/W |
Interrupt Registers
The Interrupt Vector and Interrupt Steering registers are mapped to the Motherboard Memory Space and these addresses are absolute based on the module slot position. In other words, do not apply the Module Address offset to these addresses.
0x056C |
Module 1 Interrupt Vector 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x066C |
Module 1 Interrupt Steering 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x076C |
Module 2 Interrupt Vector 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x086C |
Module 2 Interrupt Steering 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x096C |
Module 3 Interrupt Vector 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0A6C |
Module 3 Interrupt Steering 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0B6C |
Module 4 Interrupt Vector 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0C6C |
Module 4 Interrupt Steering 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0D6C |
Module 5 Interrupt Vector 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0E6C |
Module 5 Interrupt Steering 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0F6C |
Module 6 Interrupt Vector 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x106C |
Module 6 Interrupt Steering 28 - User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
Interrupt Vector and Steering
Edit this on GitLab
When interrupts are enabled, the interrupt vector associated with the specific interrupt can be programmed (typically with a unique number/identifier) such that it can be utilized in the Interrupt Service Routine (ISR) to identify the type of interrupt. When an interrupt occurs, the contents of the Interrupt Vector registers is reported as part of the interrupt mechanism. In addition to specifying the interrupt vector, the interrupt can be directed (“steered”) to the native bus or to the application running on the onboard ARM processor.
Note
|
The Interrupt Vector and Interrupt Steering registers are mapped to the Motherboard Common Memory and these registers are associated with the Module Slot position (refer to Function Register Map). |
Interrupt Vector
Function: Set an identifier for the interrupt.
Type: unsigned binary word (32-bit)
Data Range: 0x0000 0000 to 0xFFFF FFFF
Read/Write: R/W
Initialized Value: 0
Operational Settings: When an interrupt occurs, this value is reported as part of the interrupt mechanism.
Interrupt Steering
Function: Sets where to direct the interrupt.
Type: unsigned binary word (32-bit)
Data Range: See table Read/Write: R/W
Initialized Value: 0
Operational Settings: When an interrupt occurs, the interrupt is sent as specified:
Direct Interrupt to VME |
1 |
Direct Interrupt to ARM Processor (via SerDes) (Custom App on ARM or NAI Ethernet Listener App) |
2 |
Direct Interrupt to PCIe Bus |
5 |
Direct Interrupt to cPCI Bus |
6 |
1.3.3 Function Register Map
Key: Bold Italic = Configuration/Control Bold Underline = Status
*When an event is detected, the bit associated with the event is set in this register and will remain set until the user clears the event bit. Clearing the bit requires writing a 1 back to the specific bit that was set when read (i.e. write-1-toclear, writing a ‘1' to a bit set to ‘1' will set the bit to ‘0').
1.3.3.1 User Watchdog Timer Registers
0x01C0 |
UWDT Quiet Time |
R/W |
0x01C4 |
UWDT Window |
R/W |
0x01C8 |
UWDT Strobe |
W |
1.3.3.2 Status Registers
User Watchdog Timer Fault/Inter-FPGA Failure*
0x09B0 |
Dynamic Status |
R |
0x09B4 |
Latched Status* |
R/W |
0x09B8 |
Interrupt Enable |
R/W |
0x09BC |
Set Edge/Level Interrupt |
R/W |
1.3.3.3 Interrupt Register
The Interrupt Vector and Interrupt Steering registers are mapped to the Motherboard Memory Space and these addresses are absolute based on the module slot position. In other words, do not apply the Module Address offset to these addresses.
0x056C |
Module 1 Interrupt Vector 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x076C |
Module 2 Interrupt Vector 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x096C |
Module 3 Interrupt Vector 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0B6C |
Module 4 Interrupt Vector 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0D6C |
Module 5 Interrupt Vector 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0F6C |
Module 6 Interrupt Vector 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x066C |
Module 1 Interrupt Steering 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x086C |
Module 2 Interrupt Steering 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0A6C |
Module 3 Interrupt Steering 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0C6C |
Module 4 Interrupt Steering 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x0E6C |
Module 5 Interrupt Steering 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
0x106C |
Module 6 Interrupt Steering 28 – User Watchdog Timer Fault/Inter-FPGA Failure |
R/W |
NAI Cares
North Atlantic Industries (NAI) is a leading independent supplier of Embedded I/O Boards, Single Board Computers, Rugged Power Supplies, Embedded Systems and Motion Simulation and Measurement Instruments for the Military, Aerospace and Industrial Industries. We accelerate our clients' time-to-mission with a unique approach based on a Custom-on-Standard Architecture™ (COSA®) that delivers the best of both worlds: custom solutions from standard COTS components.
We have built a reputation by listening to our customers, understanding their needs, and designing, testing and delivering board and system-level products for their most demanding air, land and sea requirements. If you are experiencing any problems with our products, we urge you to contact us as soon as possible.
Please visit us at: www.naii.com or select one of the following for immediate assistance: