PreviousNext
PeripheralMemoryMapping
Help > Custom DPA Handler > Examples > PeripheralMemoryMapping

This example implements the bidirectional mapping of several MCU peripherals to the peripheral RAM. It allows controlling LEDs, reading the button’s state, and reading temperature values. It utilizes peripheral RAM.

 

→ Self-study tip: Currently the example always controls both LEDs or reads buttons & temperature sensors regardless of the part of RAM peripheral memory space that was written to or read from respectively. Modify the code so it will work with the peripheral(s) that correspond to the peripheral memory range that was read from or written to.