SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Assume the interrupt enable1 (or enable2) register (or the data-output register) contains the binary value 0b0000 0001 0000 0000 and bits 15, 3, 2, and 1 are to be set.
With the set instruction feature, the user has only to write 0b1000 0000 0000 1110 at the address of the GPIO_SETDATAOUT register. After this write operation, a reading of the GPIO_SETDATAOUT register returns 0b1000 0001 0000 1110: bits 15, 3, 2, and 1 have been set.
Although the general-purpose interface registers are 32 bits wide, only the 16 LSBs are represented in this example.
Figure 27-14 is an example of a set instruction.
The set wake-up-enable register offers the same feature with the wake-up-enable register.