GET location,variable,variable,WORD wordvariable...
Location - is a variable/constant specifying a scratchpad address. Valid values are:
0 to 127 for X1 parts 0 to 127 for 20X2 parts 0 to 1023 for all other X2 parts
Variable - is a byte variable where the data is returned. To use a word variable the keyword WORD must be used before the wordvariable name)
The function of the put/get commands is to store temporary byte data in the microcontrollers scratchpad memory.
This allows the general purpose variables (b0, b1 etc) to be re-used in calculations. Put and get have no effect on the scratchpad pointer and so the address next used by the indirect pointer (ptr) will not change during these commands.
When word variables are used (with the keyword WORD) the two bytes of the word are saved/retrieved in a little endian manner (ie low byte at address, high byte at address + 1)
- Applies To:
- 20X2, 28X1, 28X2, 40X1, 40X2
- See Also:
- Related Create:
Submit Your Own Code!
You must be logged in to submit code examples. Login now.