CPC G06F 9/445 (2013.01) | 20 Claims |
1. A method of swapping code execution among multiple code banks of a microcontroller having computer-readable memory, a central processing unit, and an interrupt controller, the method comprising:
executing one or more operating software instructions from a first memory storage location of the computer-readable memory, the one or more operating software instructions comprising an instruction to process a first pointer having stored therein an address location of a first application stored within a first code bank of the computer-readable memory;
executing the first application based on processing the address location of the first application stored within the first pointer;
executing interrupt instructions based on an interrupt event identified by the interrupt controller, wherein executing the interrupt instructions comprises:
interrupting the execution of the first application during execution of the interrupt instructions; and
returning to the execution of the first application in response to terminating the execution of the interrupt instructions;
replacing the address location of the first application stored within the first pointer with an address location of a second application stored with a second code bank of the computer-readable memory; and
executing the second application based on executing the one or more operating software instructions to process the address location of the second application stored within the first pointer without stopping operation of the interrupt controller;
wherein the first memory storage location is located in the first code bank; and
wherein the second code bank is absent operating software instructions.
|