2.1 Data Memory Organization
Data memory in PIC18F57Q43 comprises of three
sections:
- Special Function Registers (SFR space) - Banks 0 through 4
- General Purpose Registers (GPR space) - Banks 5 through 36
- Buffer RAM - Bank 37
Each bank contains 256 bytes of memory. Refer to the “Memory Organization” chapter of the PIC18F57Q43 device data sheet for more details about how the memory is organized.
In this application, two GPR banks are used as ping-pong buffers and buffer RAM is used to write audio samples to either the internal program Flash memory or an external Flash memory.