This is a theoretical question.
I know that there are 4 program slots on a 28x2. Slot 0 is the default. I also know that you can store additional programs on a memory chip (24LC512, lets say) and then run them using the i2c bus.
The problem is that when you do this, the i2c bus is "locked down" and can only be used to read and run the remote program. If you have other i2c devices, they cannot be accessed while this program is running. So, my question is this:
So here's the scenario:
slot 0 contains the "main" program that always run when you power the device up (think LCD, LED display manager)
slot 1 contains a program to make variable changes (think setup program)
slot 2 contains a program that will go through 6 or 7 different sensors and record data into EPROM #1
slot 3 is what I'm calling a "cratch" slot. It doesn't contain a 'fixed' program.
on EPROM #2, there are 4more slots (or more, with a 512, yes. I know)
slot 0 on eprom #2 contains a program to modify something
slot 1 on eprom #2 contains a program to calibrate sensors
slot 2 on eprom #2 contains a program that is essentially a keyboard manager.
slot 3 on eprom #2 contains a some other program...
and so on...
using this configuration, would it be possible to (from the 'main' program lets say) read the program in slot 0 of EPROM 2, and put it into slot 3 of the picaxe using the i2c bus. Then run slot3 on the picaxe, thereby releasing the i2c bus for use with other devices (sensors, clock etc..).
Essentially, you're re-programming slot 3 on the picaxe when you need to run a remote program.
is there a way to do this?
I know that there are 4 program slots on a 28x2. Slot 0 is the default. I also know that you can store additional programs on a memory chip (24LC512, lets say) and then run them using the i2c bus.
The problem is that when you do this, the i2c bus is "locked down" and can only be used to read and run the remote program. If you have other i2c devices, they cannot be accessed while this program is running. So, my question is this:
So here's the scenario:
slot 0 contains the "main" program that always run when you power the device up (think LCD, LED display manager)
slot 1 contains a program to make variable changes (think setup program)
slot 2 contains a program that will go through 6 or 7 different sensors and record data into EPROM #1
slot 3 is what I'm calling a "cratch" slot. It doesn't contain a 'fixed' program.
on EPROM #2, there are 4more slots (or more, with a 512, yes. I know)
slot 0 on eprom #2 contains a program to modify something
slot 1 on eprom #2 contains a program to calibrate sensors
slot 2 on eprom #2 contains a program that is essentially a keyboard manager.
slot 3 on eprom #2 contains a some other program...
and so on...
using this configuration, would it be possible to (from the 'main' program lets say) read the program in slot 0 of EPROM 2, and put it into slot 3 of the picaxe using the i2c bus. Then run slot3 on the picaxe, thereby releasing the i2c bus for use with other devices (sensors, clock etc..).
Essentially, you're re-programming slot 3 on the picaxe when you need to run a remote program.
is there a way to do this?