STMicroelectronics STM32WLEx Reference Manual page 68

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

RM0461
Example
The following example shows how to map bit [2] of the byte located at SRAM1 address
0x2000 0300 to the alias region. The formula is then:
0x2200 6008 = 0x2200 0000 + 0x0300 * 32 + 2 * 4
Writing to address 0x2200 6008 has the same effect as a read-modify-write operation on bit
[2] of the byte at SRAM1 address 0x2000 0300.
Reading address 0x2200 6008 returns the value 0x01 or 0x00 of bit [2] of the byte at
SRAM1 address 0x2000 0300.
For more information on bit-band, refer to the Cortex-M4 programming manual.
68/1306
RM0461 Rev 5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32WLEx and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents