SPRUIY2 November 2024 F29H850TU , F29H859TU-Q1
The Direct Addressing type allows direct read or write access to any location in the 32-bit memory space with the immediate address provided in the instruction.
The typical use case is for accessing fixed address locations (such as peripheral registers) or variables that are at fixed memory locations (at build time).
Drawbacks of the type include that this addressing mode is only available on 48-bit instructions and so code that extensively uses this type of addressing mode uses more space.
Benefits of the type include that this addressing mode does not require any addressing pointer. If the values being accessed are few and randomly dispersed in the user program, this type of addressing mode can be more efficient than trying to initialize a pointer and use pointer addressing.
LD.U16 D0,@ADC2.ResultReg5 ; Load register D0 with the location of
; ADC2 peripheral result register 5