In-Circuit Serial Programming is short for ICSP, and the controller is programmed via RB6,RB7 pin
我們的方案
Write sequential vectors of RB6,RB7 to programming the controller
挑戰二
Special address of the controller flash
我們的方案
A device Reset will clear the PC and set the address to‘0’. The ‘Increment Address’ command will increment the PC. The ‘Load Configuration’ command will set the PC to 0x2000
挑戰三
The data is programmed with 14-bit word forma
我們的方案
This is Intel hex format, take the first data (0x0130)as example. The binary format is 0000 0001 0011 0000,the first 2 bits of high byte should be discarded. So the order into the flash is 1000 0000 0000 11