Select the internal program slot for program download.
If no #slot directive is used the program will be downloaded into slot 0.
As the eeprom data memory is shared between each slot it is normal to add a #no_data directive to all slots other than slot 0, so that the eeprom data memory is only programmed during a slot 0 download.
14M2, 18M2+, 20M2 parts -
2 internal slots (0-1)
When the chip is reset, slot 0 automatically runs. Slot 1 can be started with a 'run 1' command within slot 0.
28X2, 40X2 -
4 internal slots (0-3) or 4 i2c program slots (4-7)
When the chip is reset, slot 0 automatically runs. Slot 1 (or any other slot) can be started with a 'run 1' command within slot 0.
Download a program into slot 1 instead of slot 0.
Using two slots
This program uses two slots and jumps between the two slots as it executes. The two programs should be saved in separate source files, for example, "slot0.bas" and "slot1.bas".
Submit Your Own Code!
You must be logged in to submit code examples. Login now.