Download AN819
Transcript
AN819 A typical bootloader using the Boot RAM performs the following steps: 1. 2. 3. 4. Disable Boot RAM. Transfer the programmer routine of the bootloader program from the external program memory to the Boot RAM, using TBLRD and MOVWF instructions. Enable the Boot RAM. Execute the programmer routine as a data block is received. DS00819A-page 2 5. 6. 7. 8. Perform the necessary programming on the external memory by either executing the necessary TBLRD and TBLWT instructions, or by switching the system bus to I/O ports. Continue to execute the programmer routine from Boot RAM as data blocks are received. Jump to a known valid external program memory location. Reset the system when all data is programmed. 2001 Microchip Technology Inc.