The SOF (Segment Offset) operator returns the 16-bit offset
of operand from the base address of the 64K segment in which
it is defined. SOF may not be applied to group names.
The primary use for the SOF operator is loading the
peripheral event controller (PEC) source and destination addresses.
The PEC unit works with linear addresses and does not use DPP
register for memory access. Therefore, the SOF operator must
be used to obtain linear addresses.
The operand must be the name of a variable, section,
special function register (SFR), or register bank. If SOF is
used on system names (SFRs), the result is the absolute offset
relative to segment 0.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.