Atomic access

PIC32 Special Function Registers (SFRs) can be accessed like ordinary variables in C but there can be read-modify-write problems associated with code that wants to change individual bits in these registers. To get around this problem, virtually all registers have an alternate register set, using the primary register name appended with SET, CLR, or INV. […]

Read More

PIC32 Memory

PIC32 memory sizes are specified in bytes, but it stores 32bit words. Addressing is byte based, incrementing by 4 for each 32bit instruction. PIC32’s implement two address schemes: virtual and physical. All hardware resources (program memory, data memory and peripherals) are located at their respective physical addresses. Virtual addresses are exclusively used by the CPU […]

Read More