What’s new on the X2?
Well what I can see a couple of things that excite me.
Updating program slots from i2c EEPROM and running additional code from external i2c EEPROM.
Booti2c
Readrevision
Run slot
#slot number
Select the internal program slot (1-4) or i2c program slot (5-8) on X2 parts.
#revision number
Set the user program version (1-254) on X2 parts.
#slot1file “filename” Programming Editor Only
#slot2file “filename” Programming Editor Only
etc.
Include the filename of other slots (1 to 8) for simulations (X2 parts).
Example: #slot1file “c:\test.bas”
And these additions to name a few.
HSERSETUP
Mode is a variable/constant whose bits specify special functions:
bit0 - background receive serial data to the scratchpad
bit1 - invert serial output data (0 = ‘T’, 1 = “N”)
bit 2 - invert serial input data (0 = “T”, 1 = “N”) (X2 parts only)
flag0 hint0flag X2 only - interrupt on B.0
flag1 hint1flag X2 only - interrupt on B.1
flag2 hint2flag X2 only - interrupt on B.2
flag3 hintflag X2 only - occurs when any of 0,1,2 has occurred
PICAXE-28X2, 40X2 parts have 1024 scratchpad bytes (0-1023)
Well what I can see a couple of things that excite me.
Updating program slots from i2c EEPROM and running additional code from external i2c EEPROM.
Booti2c
Readrevision
Run slot
#slot number
Select the internal program slot (1-4) or i2c program slot (5-8) on X2 parts.
#revision number
Set the user program version (1-254) on X2 parts.
#slot1file “filename” Programming Editor Only
#slot2file “filename” Programming Editor Only
etc.
Include the filename of other slots (1 to 8) for simulations (X2 parts).
Example: #slot1file “c:\test.bas”
And these additions to name a few.
HSERSETUP
Mode is a variable/constant whose bits specify special functions:
bit0 - background receive serial data to the scratchpad
bit1 - invert serial output data (0 = ‘T’, 1 = “N”)
bit 2 - invert serial input data (0 = “T”, 1 = “N”) (X2 parts only)
flag0 hint0flag X2 only - interrupt on B.0
flag1 hint1flag X2 only - interrupt on B.1
flag2 hint2flag X2 only - interrupt on B.2
flag3 hintflag X2 only - occurs when any of 0,1,2 has occurred
PICAXE-28X2, 40X2 parts have 1024 scratchpad bytes (0-1023)