2.4 Memory
The SRAM memories are accessed at their address in a memory space for both reads and writes at any granularity (byte, half word, or word). No special controller is needed to access the SRAM memory.
Flash memories are accessed for read at their address in memory space. Read granularity is byte, half word, or word. FC erases and writes the Flash memories. The following table lists the Flash memory access of different devices.
Device | Page | |||
---|---|---|---|---|
Read Word (Bytes) | Write Word (Bytes) | Size (Bytes) | Rows per Page | |
PIC32CX-BZ3 | 16 | 4 | 1024 | 4 |
PIC32CX-BZ6 | 32 | 8 | 1024 | 4 |
Note: The information on the PIC32CX-BZ3 is provided for comparison and reference purposes.
|
The FC supports erase for the entire Program Flash Memory (PFM), or page erase for the unprotected pages. The following table lists the programming of different devices.
Devices | Single Program | Quad Program | Row Program with Built-in DMA for Reading Data from SRAM |
---|---|---|---|
PIC32CX-BZ3 | word (4 bytes) | 8 words (32 bytes) | 4 / 8 word buffer |
PIC32CX-BZ6 | 2 words (8 bytes) | 16 words (64 bytes) | 4 / 8 word buffer |
Note: The information on the PIC32CX-BZ3 is provided for comparison and reference purposes.
|
- One page is allocated to Factory Test Memory
- One page is allocated to Cal Space (called OTP page)
- One page is allocated to Boot/Device Configuration (BCFG)
The following table lists the NVR pages of different devices.
Devices | NVR Total Size | NVR Total Pages | NVR Pages for User Boot Code |
---|---|---|---|
PIC32CX-BZ3 | 32 KB | 8 | 5 |
PIC32CX-BZ6 | 76 KB | 19 | 16 |
Note: The information on the PIC32CX-BZ3 is provided for comparison and reference purposes.
|
Each NVR page has write-protect capability. Factory Test Memory is not programmable by the user.
Partial writes are supported, but on partial write only bits that are
‘1
’ can be set to ‘0
’. The user can erase the entire Flash
memory except the OTP and Factory test memory pages using a dedicated FC command.
Refer to the device data sheet for Flash and SRAM memory size and the memory map of a specific device variant.