| cmdPWINDOW | Index |
Command Code:
The Packet:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | ||||||
| address | 5 | cmdPWINDOW | OFFSET | INPUT | SPXMIN | SPXMAX |
| OFFSET - | Reflex vector offset |
| INPUT - | Input parameter |
| SPXMIN - | Scratch pad index of Minimum threshold |
| SPXMAX - | Scratch pad index of Maximum threshold |
Description:
This command compares an input parameter to a minimum and maximum threshold. The minimum and maximum threshold come from the scratch pad. There is no reply packet. It generates a raw input based on the result:
OFFSET+0 -- input in window
OFFSET+1 -- input less than minimum threshold
OFFSET+2 -- input greater than maximum threshold
OFFSET+3 -- null
When the minimum is less than the maximum the command acts as a dual comparator with hysteresis. There is a "dead zone" between the two thresholds where the result is "null". When the minimum is greater than the maximum, the command acts as a standard window comparator.
See the discussion of Scratch Pad usage for more details.