Scratchpad Memory is used to store 8 user defined bytes of data. Scratchpad Memory can be used for anything, such as a location, serial number, or other type of identifier. The values stored do not affect the operation of the controller, as this memory is specifically for user-defined purposes. Please note, the controller MUST be set to Configuration mode to write to Scratchpad Memory. The following commands will demonstrate reading and writing data from scratchpad memory. Memory Location (L) and the return Value (V) are identified in the table below:
L = Memory Location (01-08)V = Value (00-FF)
CK = Checksum (00-FF)
TX: | 2 | 3 | 4 | L | CK | Function: | RX: | 2 | V | CK |
---|---|---|---|---|---|---|---|---|---|---|
AA | 03 | FE | 33 | 01 | DF | Read Location 1 | AA | 01 | 01 | AC |
AA | 03 | FE | 33 | 02 | E0 | Read Location 2 | AA | 01 | 02 | AD |
AA | 03 | FE | 33 | 03 | E1 | Read Location 3 | AA | 01 | 03 | AE |
AA | 03 | FE | 33 | 04 | E2 | Read Location 4 | AA | 01 | 04 | AF |
AA | 03 | FE | 33 | 05 | E3 | Read Location 5 | AA | 01 | 05 | B0 |
AA | 03 | FE | 33 | 06 | E4 | Read Location 6 | AA | 01 | 06 | B1 |
AA | 03 | FE | 33 | 07 | E5 | Read Location 7 | AA | 01 | 07 | B2 |
AA | 03 | FE | 33 | 08 | E6 | Read Location 8 | AA | 01 | 08 | B3 |
The following commands demonstrate how to write data to Scratchpad Memory. Memory Location (L) has a possible value of 1 through 8 while Data (V) has a possible value of 0 to 255 (8-Bit).
L = Memory Location (01-08)V = Value (00-FF)
CK = Checksum (00-FF)
TX: | 2 | 3 | 4 | L | V | CK | Function: | RX: | 2 | 3 | CK |
---|---|---|---|---|---|---|---|---|---|---|---|
AA | 04 | FE | 34 | 01 | 01 | E1 | Write Location 1 | AA | 01 | 55 | 00 |
AA | 04 | FE | 34 | 02 | 02 | E2 | Write Location 2 | AA | 01 | 55 | 00 |
AA | 04 | FE | 34 | 03 | 03 | E3 | Write Location 3 | AA | 01 | 55 | 00 |
AA | 04 | FE | 34 | 04 | 04 | E4 | Write Location 4 | AA | 01 | 55 | 00 |
AA | 04 | FE | 34 | 05 | 05 | E5 | Write Location 5 | AA | 01 | 55 | 00 |
AA | 04 | FE | 34 | 06 | 06 | E6 | Write Location 6 | AA | 01 | 55 | 00 |
AA | 04 | FE | 34 | 07 | 07 | E7 | Write Location 7 | AA | 01 | 55 | 00 |
AA | 04 | FE | 34 | 08 | 08 | E8 | Write Location 8 | AA | 01 | 55 | 00 |