5 Flash Program Memory
The dsPIC33CK256MC006 family devices contain internal Flash program memory for storing and executing application code. The memory is readable, writable and erasable during normal operation over the entire VDD range.
Flash memory can be programmed in three ways:
- In-Circuit Serial Programming™ (ICSP™) programming capability
- Enhanced In-Circuit Serial Programming (Enhanced ICSP)
- Run-Time Self-Programming (RTSP)
Enhanced In-Circuit Serial Programming uses an on-board bootloader, known as the Programming Executive, to manage the programming process. Using an SPI data frame format, the Programming Executive can erase, program and verify program memory. For more information on Enhanced ICSP, see the device programming specification.
RTSP is accomplished using TBLRD (Table Read) and TBLWT
(Table Write) instructions. With RTSP, the user application can write program memory data
by double program memory words or by blocks (rows) of 128 instructions (256 addressable
bytes). RTSP can erase program memory in blocks (pages) of 1024 instructions (2048
addressable bytes) at a time.
