Latch Logic Commands
Overview
The custom logic editor uses the following latch commands:
-
LATCH -
LATCH_NV
LATCH
The LATCH command:
-
Stores a Boolean value (0 or 1) in a temporary register
-
Provides a method for setting and resetting the stored value
-
Saves the clear and set status from the previous scan
|
Arguments |
Representation |
|---|---|
|
1 |
|
|
Input Argument |
Type |
Bit |
Description |
|---|---|---|---|
|
|
|
Bit1 |
Sets the |
|
Bit2 |
Resets the |
|
Output Argument |
Type |
Bit |
Description |
|---|---|---|---|
|
|
|
Bit0 |
State of the latch |
|
Bit3 |
|
||
|
Bit4 |
|
LATCH_NV
The LATCH_NV command:
-
Stores a Boolean value (0 or 1) in a non-volatile register
-
Provides a method for setting and resetting the stored value
-
Saves the clear and set status from the previous scan
Use the LATCH_NV command,
instead of the LATCH command, to retain
the latch state during a power cycle.
|
Arguments |
Representation |
|---|---|
|
1 |
|
|
Input Argument |
Type |
Bit |
Description |
|---|---|---|---|
|
|
|
Bit1 |
Sets the |
|
Bit2 |
Resets the |
|
Output Argument |
Type |
Bit |
Description |
|---|---|---|---|
|
|
|
Bit0 |
State of the latch |
|
Bit3 |
|
||
|
Bit4 |
|