| cmdPCTR_SET | Index |
Command Code:
The Packet:
| 0 | 1 | 2 | 3 | 4 | ||||
| address | 3 | cmdPCTR_SET | CtrID | SPXCT |
| CtrID - | Index of the counter. Range is 0-7. |
| SPXCT - | Scratch pad index of 2-byte count. |
Description:
This command sets the 2-byte value for a counter. It retrieves the new count value from the scratch pad. An ID that is out of range will generate an error message. There is no reply packet.
This BrainStem module has eight 2-byte counters. Reflexes may use these counters to record events. A counter generates a raw input when the count reaches zero after a decrement or increment operation.
See the discussion of Scratch Pad usage for more details.