28. Low power autonomous wakeup radio IP (LPAWUR)
The STM32WL33xx embeds a Low power wakeup radio (LPAWUR) IP. LPAWUR is not available in the STM32WL30xx and STM32WL31xx.
The Low power wakeup radio (LPAWUR) IP is a digital low-power RF IP that controls the RF wakeup analog front-end (AFE). It uses the reception of a specific frame to trigger the wake up of a system.
The LPAWUR is a small RF IP that is dedicated to this wake-up feature only.
28.1 LPAWUR architecture overview
Figure 265. LPAWUR architecture overview

MSv58351V1
As shown in Figure 265, the LPAWUR contains:
- • an always-on power domain (dark grey):
- – The digital Controller interfacing with the AFE and both registers blocks
- – The retained registers
- • an Interruptible power-domain (light grey):
- – The switchable registers
- – An APB management interfacing with the Soc Bus Matrix and the registers blocks.
28.2 Interfacing with the LPAWUR
The LPAWUR interfaces with several blocks in the SoC in which it is integrated:
- • CPU through interrupts
- • power controller block (PWR) to manage the power supplies
- • reset and clock controller block (RCC) to manage the clocks and their dedicated resets.
28.2.1 LPAWUR interrupt lines to the CPU
The LPAWUR IP provides a single interruption line to the CPU, issued by the Registers block.
This interrupt line is dedicated to the wakeup framing, it allows the RFIP to indicate to the SW what the framing detection/ completion status is.
The management of the interrupts is done through the IRQ_ENABLE switchable register which allows to enable an interrupt among the different existing status detailed in the STATUS switchable register.
28.2.2 LPAWUR interface with the power controller (PWR)
The RFIP_CONFIG retained register defines a WAKEUP_LEVEL[1:0] bit field to allow a wakeup event depending on different root causes.
28.2.3 LPAWUR interface with the reset and clock controller (RCC)
The LPAWUR IP receives two Clocks from the SoC:
- • an RFIP system clock at 16 MHz
- • a slow clock (named 32 kHz clock in this document) that needs to be in the always-on power domain as it is the clock used when the system is in low power mode.
The LPAWUR IP is mainly used while the system is in low power mode. This means that the slow clock is used most of the time. The 16 MHz system clock is only used for interfacing with the CPU.
Note: The LPAWUR IP supports only 16 MHz as its system clock. The SoC must manage the prescaling on the APB path if the SoC system runs faster (that is, at 32 MHz or 64 MHz). Configuration with a SoC system clock slower than the RFIP 16 MHz is not supported.
Slow clock limitation
The slow clock internal RC oscillator frequency varies from 24 kHz to 49 kHz.
The RF wakeup analog front-end provides information on the rising edge of clk_slow_32k at around 2 kHz, meaning that the information is repeated:
- • for 12 clock cycles when clk_slow_32k frequency is 24000 Hz
- • for 16 clock cycles when clk_slow_32k frequency is 32000 Hz
- • for 24 clock cycles when clk_slow_32k frequency is 48000 Hz
In order to catch the data properly, the LPAWUR IP embeds a retained register which stores the number of expected cycles per encoded bit
FRAME_CONFIG0[25:21].SLOW_CLK_CYCLE_PER_BIT_CNT. This information is provided by the SoC once the slow clock has been measured by means of the dedicated MR_SubG feature.
The slow-clock internal oscillator frequency deviation over conditions (temperature and so on) is lower than 10%.
28.3 Packet and protocol construction
The LPAWUR IP is in charge of triggering a wakeup event to the SoC once a specific frame is received and decoded.
The Wakeup frame is a specific frame that can be configured with a set of registers. The following sections detail the packet format, and the registers to be configured.
This IP is not only able to manage the specific Wakeup frame; it can also decode another kind of Wakeup frame with the same format (Bit sync, Frame Sync, Payload and CRC), but with a variable bit width and/or data rate.
28.3.1 Data modulation and encoding
The LPAWUR IP uses OOK modulation only (on/off keying modulation). This modulation is simple:
- • on the air, a bit '1' results in the presence of the carrier frequency
- • on the air, a bit '0' results in the absence of the carrier frequency
In addition, Manchester encoding is applied to the data that is received by the LPAWUR IP. This encoding consists of representing each bit of the packet as a transition between two symbols:
- • A raw bit '0' results in a transition from low to high
- • A raw bit '1' results in a transition from high to low
Note: By default throughout this document, and unless otherwise indicated, the packet (number of bits, data rate) is described without considering Manchester encoding. A prefix "raw" or "decoded" means that we do not consider the Manchester encoding. This is also explicitly indicated to avoid any misunderstanding.
When a bit, data, a frame, or a packet must be considered with Manchester encoding, "with Manchester encoding" is indicated.
28.3.2 Data rate
The default data rate, for a typical slow clock of 32 kHz is of 2 kbit/s seen by the antenna for a packet with Manchester encoding. Because a Manchester encoded data is a couple of two symbols at a different level, this means that a data rate of 2 kbit/s with Manchester encoding represents a data rate of 1 kbit/s for the raw data.
28.3.3 Frame format
The frame format is a specific frame as described below, with a few bit fields that are configurable in order to expand the use of the LPAWUR IP.
The specific frame is composed of:
- • a Bit Sync of 40 bits defined at '0'
- • a Frame Sync of 8 bits corresponding to the pattern 0x99
- • a Payload of 56 bits
- • a CRC defined on 16 bits, and calculated on the payload only
This specific Wakeup frame format is “static”, it represents a total of 120 bits. The whole frame is then encoded with a Manchester algorithm and sent over the air, to be received by the LPAWUR IP. This means that from 120 bits, the complete encoded frame reaches 240 Manchester symbols, thus all 240 symbols are received by the IP (not only 120).
With a typical data rate of 2 kbit/s (Manchester OOK), it represents a duration of 120 ms to receive the 240 symbols.
Figure 266. Wakeup frame format

| Manchester encoding | |||
| CRC calculation | |||
| Bit sync | Frame sync | Payload | CRC |
| 40 bits 0x0000000000 | 8 bits 0x99 | 56 bits | 16 bits Init: 0x0000 Polynomial: 0x8005 (x¹⁶+x¹⁵+x²+1) |
MSv58352V1
The frame is sent (and thus received) in the same order as shown in Figure 266, with bit sync first, then Frame sync, Payload and CRC last.
Each field of the frame is transmitted over-the-air, and thus received by the LPAWUR IP, with the most-significant byte (MSB) first.
In addition, each byte is transmitted over-the-air, and is thus received by the LPAWUR IP, with the Most Significant bit (MSb) first.
This means that from the LPAWUR IP reception point-of-view, once the bit sync is detected, the first bit seen is the most-significant bit of the most-significant byte of the Frame Sync. The last bit seen is the least-significant bit (LSb) of the least-significant byte (LSB) of the CRC.
Bit Sync
The Bit Sync is a static field in the specific Wakeup frame, it is a sequence of ‘0’s defined on 40 bits. This bit field is not configurable, for any frame it is always this 40-bit sequence of ‘0’s.
Once Manchester coded, the Bit Sync is seen by the antenna as an 80-bit sequence of alternate ‘0’s and ‘1’s. (This is a classic preamble in RF systems.)
Frame Sync
The Frame Sync is a static field in the specific Wakeup frame, it is defined on 8 bits and always has the value 0x99. It is the default frame if the user does not manage any register to configure a proprietary frame.
The frame sync length is configured through the SYNC_LENGTH[8] bit field of the FRAME_CONFIG0 register (FRAME_CONFIG0) retained register:
- • ‘0’ (default value) - standard Wakeup frame sync on 8 bits before encoding
- • ‘1’ frame sync defined on 16 bits before encoding
The frame sync by default of 0x99 becomes 0x9696 once Manchester encoded. This means that the Sync detection, which is done before the decoding, compares the income frame sync to 0x9696.
This comparison value is not hard written, it is located in the FRAME_SYNC_CONFIG register (FRAME_SYNC_CONFIG) retained register, in order to be free to change this sync word. This register is composed of two bit fields:
[15:0]: FRAME_SYNC_PATTERN_L. Contains lower part of the frame sync pattern value stored by the SW (default value is 0x9696)
[31:16]: FRAME_SYNC_PATTERN_H. Contains the higher part of the frame sync pattern value stored by the SW (default value is 0x0000).
By default, only FRAME_SYNC_PATTERN_L is used because the frame sync is defined on 8 bits (16 after encoding). However, if the user decides to use a frame sync length of 16 bits by configuring SYNC_LENGTH = 1, the pattern, once encoded, becomes a pattern on 32 bits, thus the extra 16 higher bits have to be compared to a value which is stored in FRAME_SYNC_PATTERN_H.
Payload
The payload of the specific Wakeup frame has a static length of maximum 8 bytes (56 bits by default), this is the default frame if the user does not manage a register to configure a proprietary frame.
The payload length is configured through the PAYLOAD_LENGTH[19:16] bit field of the FRAME_CONFIG0 register (FRAME_CONFIG0) retained register.
The length is provided in number of bytes. The default value is 7, meaning an expected payload of 56 bits, once decoded.
Note: Only values from 1 to 8 included are allowed in the PAYLOAD_LENGTH[19:16] bit field. Any other configuration must not be used, as the LPAWUR IP behavior would no longer be guaranteed.
The payload is received as a Manchester-encoded Bit sync and Frame sync. Once received by the LPAWUR RX block, it is first decoded, and the number of payload bits received is then compared to the expected length configured in the previous register.
Once decoded, the data is stored bit per bit into the PAYLOAD_x retained registers with the Least Significant Byte First.
- • If the payload length is less than, or equal to 32 bits, only the PAYLOAD_0 retained register is filled
- • If the payload is greater than 32 bits, the PAYLOAD_1 retained register is also filled.
CRC
The CRC of the Wakeup frame is defined on 16 bits, it is only calculated on the payload (excluding Bit Sync and Frame Sync). This CRC uses the CRC-16/ARC algorithm with the following polynomial: 0x8005(x¹⁶+x¹⁵+x²+1).
The LPAWUR RX block computes each decoded payload bit to generate the CRC at reception in order to compare it with the received CRC.
The CRC starts being received once the expected number of payload bytes, PAYLOAD_LENGTH[19:16] is received.
Once the complete CRC is received, it is compared to the computed CRC to determine whether the frame is valid, or if there is an error:
- • If the comparison is TRUE, then the ERROR_F[31:30] bit field of the STATUS switchable register is equal to “00”, meaning that no error occurred. Thus the received frame is valid.
- • If the comparison is FALSE, then the ERROR_F[31:30] bit field of the STATUS switchable register is equal to “11” to indicate that a CRC error occurred. Thus the received frame is not valid.
28.4 LPAWUR IP register overview
The register block of the LPAWUR IP manages the different sets of registers used to configure the wakeup feature, to store the received payload and to generate the interrupts dedicated to the CPU.
All the registers are accessible through an APB interface to allow the SW to control the LPAWUR.
The LPAWUR IP configuration is done through the registers, before the wakeup feature is enabled.
28.4.1 Register organization
The registers of the LPAWUR IP are divided in two categories:
- • Retained registers: these registers keep their content when the SoC is in low power mode. They are used to configure the LPAWUR IP, enable it once it is ready to be used, and to store the payload.
- • Switchable registers: these registers are solely dedicated to the interactions between the LPAWUR IP and the Software, meaning that they are only used when the CPU is running, that is, when the SoC is in active mode. There are both status registers, which are “read / write 1 to clear”, and the interrupt enables, which allow the generation of CPU interrupts.
Table 101 provides the offset value for the retained and switchable registers:
Table 101. Register sub-group base address
| Registers sub-group | Offset versus the register base address |
|---|---|
| Retained registers | 0x00 |
| Switchable registers | 0x40 |
IRQ management
The LPAWUR IP contains one IRQ line, which is fully managed by the switchable register block. The switchable registers are located in the switchable power domain, meaning that they are only supplied when the SoC is in Run mode, and with the 16 MHz clock in order to communicate between the CPU and the registers.
There are four existing interrupts which are described in the IRQ_ENABLE register (IRQ_ENABLE) switchable register, with the according status defined in the STATUS register (STATUS) switchable register:
- • BIT_SYNC_DETECTED_E/F to inform that the Bit Sync (or preamble) have been correctly detected.
- • FRAME_SYNC_COMPLETE_E/F to inform that the frame sync has been detected, without any information on the payload.
- • FRAME_COMPLETE_E/F to inform that the payload and CRC have been received but with an error in the framing or in the CRC. The detail is provided by the ERROR_F status.
- • FRAME_VALID_E/F to inform that the payload and CRC have been received without any error (CRC check is valid).
The ERROR_F status allows more detailed reporting of any error in the RX chain:
- • “00”: No Error. The frame has been correctly received, the payload length is valid, and the CRC has been checked.
- • “01”: Sync Error. The bit sync has correctly been received but there is an issue on the reception of the sync word, which is either not received in the timeout, or does not match with the expected.
- • “10”: Framing Error. The received payload or CRC is not valid because of a Manchester decoding issue, or the number of bits is not correct.
- • “11”: CRC Error. The received CRC is different than the CRC which has been computed with the received payload.
All the fields of the STATUS register (STATUS) register are Read/Write-1-to-clear, meaning that they are readable at any moment, and it is necessary to Write a ‘1’ in the interrupt source we want to clear.
28.5 LPAWUR retained register descriptions
The RETAINED_REG_BLOCKBaseAddress keyword is used as the base address of all Retained registers. Each register address is built by adding an offset to this base address. It is defined by the SoC when integrating the LPAWUR IP.
Note: RETAINED_REG_BLOCKBaseAddress is 0x4900_1000 in the STM32WL33xx product
Table 102. LPAWUR retained register list
| Offset | Register Name | Register Title | Reset |
|---|---|---|---|
| 0x0000 | FRAME_CONFIG0 | FRAME_CONFIG0 register | 0x0207 4012 |
| 0x0004 | FRAME_CONFIG1 | FRAME_CONFIG1 register | 0x0002 4669 |
| 0x0008 | FRAME_SYNC_CONFIG | FRAME_SYNC_CONFIG register | 0x0000 9696 |
| 0x000C | RFIP_CONFIG | RFIP_CONFIG register | 0x0000 0006 |
| 0x0010 | RF_CONFIG | RF_CONFIG register | 0x0001 33EE |
| 0x0014 | AGC_CONFIG | AGC_CONFIG register | 0x0000 0000 |
| 0x001C | PAYLOAD_0 | PAYLOAD_0 register | 0x0000 0000 |
| 0x0020 | PAYLOAD_1 | PAYLOAD_1 register | 0x0000 0000 |
28.5.1 FRAME_CONFIG0 register (FRAME_CONFIG0)
Address offset: 0x0000
Reset value: 0x0207 4012
FRAME_CONFIG0 register

| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | SLOW_CLK_CYCLE_PER_BIT_CNT[4:0] | Res. | PAYLOAD_LENGTH[3:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SYNC_THRESHOLD_COUNT[5:0] | Res. | SYNC_LENGTH | PREAMBLE_THRESHOLD_COUNT[7:0] | ||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |

- Bits 31:26 Reserved, must be kept at reset value.
- Bits 25:21 SLOW_CLK_CYCLE_PER_BIT_CNT[4:0]: The number of expected slow clock cycle per each manchester coded bit.
Default value 0x10 for 16 slow clock cycles. Allowed values are in the range from 0x0C up to 0x18 (respectively for a slow clock at 24 kHz and 48 kHz). - Bit 20 Reserved, must be kept at reset value.
- Bits 19:16 PAYLOAD_LENGTH[3:0]: The number of data bytes in the payload (decoded).
Only the values 1 to 8 included are supported, other values are not supported and shall not be used.
Default value is 7 bytes / 56 bits - Bits 15:10 SYNC_THRESHOLD_COUNT[5:0]: detection threshold when receivng the Frame sync ( Manchester encoded). The frame sync detection uses a correletor to detect the address.
if SYNC_LENGTH=0, recommended threshold is 16 (0x10), if SYNC_LENGTH=1, recommended threshold is 32 (0x20)
Default value is 16 - Bit 9 Reserved, must be kept at reset value.
- Bit 8 SYNC_LENGTH: Frame sync pattern length ( Manchester encoded ).
- If sync_len=0, a 16-bits frame sync is used, the Low word (FRAME_SYNC_PATTERN_L) is describing the frame sync pattern value. (default)
- If sync_len=1, a 32-bits frame sync is used, both Low (FRAME_SYNC_PATTERN_L) and High (FRAME_SYNC_PATTERN_H) words are storing the pattern value. - Bits 7:0 PREAMBLE_THRESHOLD_COUNT[7:0]: The number of transitions for preamble detection when receiving the manchester encoded preamble.
Default value is 18
28.5.2 FRAME_CONFIG1 register (FRAME_CONFIG1)
Address offset: 0x0004
Reset value: 0x0002 4669
FRAME_CONFIG1 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TREC_LOOP_ALGO_SEL | PREAMBLE_ENABLE | Res. |
| rw | rw | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| FRAME_SYNC_COUNTER_TIMEOUT[7:0] | KP[3:0] | KI[3:0] | |||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:19 Reserved, must be kept at reset value.
Bit 18 TREC_LOOP_ALGO_SEL: Timing recovery loop algorithm selection.
0: The timing recovery loop algorithm is a second order loop with a defined leakage (0.98) (default)
1: The timing recovery loop algorithm is with two steps. First order loop until preamble detected and second order loop after
Bit 17 PREAMBLE_ENABLE: Preamble detection enable
1: WAKEUP_LEVEL The sync detection starts after the preamble found, (default)
0: The sync detection starts when the LPAWUR RX is enabled
The timeout works coherently. i.e if pd_en is set to 1 after the pd_found the timeout start to count the symbols. If pd_en is set to 0, the timeout parameters must be set to 0 which means no count
Bit 16 Reserved, must be kept at reset value.
Bits 15:8 FRAME_SYNC_COUNTER_TIMEOUT[7:0]: The timeout in manchester encoded bits for the Frame Sync, it represents the number of samples after which in case the frame sync is not detected a sync_error is raised. The default value is 70 (0x46)
Bits 7:4 KP[3:0]: kp gain value for the timing recovery loop. ( default value = 6)
Bits 3:0 KI[3:0]: ki gain value for the timing recovery loop. ( default value = 9), (Note that if Ki gain is set to 0 the loop is configured as a first order loop)
28.5.3 FRAME_SYNC_CONFIG register (FRAME_SYNC_CONFIG)
Address offset: 0x0008
Reset value: 0x0000 9696
FRAME_SYNC_CONFIG register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FRAME_SYNC_PATTERN_H[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| FRAME_SYNC_PATTERN_L[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 FRAME_SYNC_PATTERN_H[15:0]: The value of the frame sync pattern, High word, Manchester encoded, used only when the frame sync length is 32 bits (default 0x0000)
Bits 15:0 FRAME_SYNC_PATTERN_L[15:0]: The value of the frame sync pattern, Low word, Manchester encoded, used when the frame sync length is 16 bit (default 0x9696 which represents a frame sync value of 0x99)
28.5.4 RFIP_CONFIG register (RFIP_CONFIG)
Address offset: 0x000C
Reset value: 0x0000 0006
RFIP_CONFIG register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | WAKEUP_LEVEL[1:0] | LPAWUR_ENABLE | |||||||||||||
| rw | rw | rw | |||||||||||||
Bits 31:3 Reserved, must be kept at reset value.
Bits 2:1 WAKEUP_LEVEL[1:0]:
- 00: the bit Sync has been detected
- 01: Frame sync detected
- 10: Frame_complete detected
- 11: Frame_Valid detected (default)
Bit 0 LPAWUR_ENABLE:
Enable (start) or Disable (stop) the LPAWUR feature (0: disabled by default)
28.5.5 RF_CONFIG register (RF_CONFIG)
Address offset: 0x0010
Reset value: 0x0001 33EE
RF_CONFIG register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | LPF3_CAL | ED_ICAL[2:0] | AGC_HIGH_LVL[3:2] | |||
| rw | rw | rw | rw | rw | rw | ||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| AGC_HIGH_LVL[1:0] | ED_DC_CTRL | AGC_LOW_LVL[1:0] | Res. | Res. | Res. | Res. | Res. | Res. | CLKDIV[3:0] | ED_SWITCH | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||||
Bits 31:22 Reserved, must be kept at reset value.
Bit 21 LPF3_CAL: None
Bits 20:18 ED_ICAL[2:0]: Current versus VBAT calibration for ED
000: VBAT=1.7 .. 2.0 V (default)
001: VBAT=2.0 .. 2.25V
010: VBAT=2.25 .. 2.5V
011: VBAT=2.5 .. 2.75V
100: VBAT=2.75 .. 3.0 V
101: VBAT=3.0 V .. 3.25V
110: VBAT=3.25V ..3.5V
111: VBAT=3.5..3.7V
Bits 17:14 AGC_HIGH_LVL[3:0]: AGC level (High) (default value: 0x4)
Bits 12:11 AGC_LOW_LVL[1:0]: AGC level (Low) (default value: 0x2)
Bit 13 ED_DC_CTRL: DC current subtraction enabling signal (default value: 0x1)
Bits 10:5 Reserved, must be kept at reset value.
Bits 4:1 CLKDIV[3:0]: Calibrate 4 kHz clock (programmable divider used by the analog part of the IP)
0000: Divide by 1
...
0111: Divide by 8 (default)
...
1110: Divide by 15
1111: Off
Bit 0 ED_SWITCH:
0: Normal operation (default)
1: Use ED as input switch (test mode)
28.5.6 AGC_CONFIG register (AGC_CONFIG)
Address offset: 0x0014
Reset value: 0x0000 0000
AGC_CONFIG register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | AGC_RESET_MODE | AGC_HOLD_MODE | AGC_MODE[1:0] | |
| rw | rw | rw | rw | ||||||||||||
Bits 31:4 Reserved, must be kept at reset value.
Bit 3 AGC_RESET_MODE: The AGC reset behavior when the AGC is working in ON or HOLD mode
0: reset the AGC after the complete frame detection (default)
1: the AGC is never reset
Bit 2 AGC_HOLD_MODE: The behavior when the AGC is ON and is working in HOLD mode
0: hold after the preamble detection (default)
1: hold after the sync detection
Bits 1:0 AGC_MODE[1:0]: Define the working mode of the AGC:
00: AGC MAX: the AGC is ON and is always operating at maximum value (default)
01: AGC OFF: the AGC is OFF
10: AGC ON: the AGC is ON
11: AGC HOLD: the AGC is ON and its value is frozen during the frame detection, depending of the AGC_HOLD_MODE configuration after a preamble or after the frame sync.
28.5.7 PAYLOAD_0 register (PAYLOAD_0)
Address offset: 0x001C
Reset value: 0x0000 0000
PAYLOAD_0 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| PAYLOAD_0[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| PAYLOAD_0[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 PAYLOAD_0[31:0]: First part of the payload (Least significant Byte First)
28.5.8 PAYLOAD_1 register (PAYLOAD_1)
Address offset: 0x0020
Reset value: 0x0000 0000
PAYLOAD_1 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| PAYLOAD_1[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| PAYLOAD_1[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 PAYLOAD_1[31:0]: Second part of the payload (Least significant Byte First)
28.5.9 LPAWUR retained register summary
Table 103. LPAWUR retained register map and reset values
| Offset | Register name reset value | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x000 | RETAINED_REG_BLOCK_FR AME_CONFIG0 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SLOW_CLK_CYCLE_PER_BIT_CNT[4:0] | Res. | PAYLOAD_LENGTH[3:0] | SYNC_THRESHOLD_COUNT[5:0] | Res. | SYNC_LENGTH | PREAMBLE_THRESHOLD_COUNT[7:0] | ||||||||||||||||||
| Reset value | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | |||||||
| 0x004 | RETAINED_REG_BLOCK_FR AME_CONFIG1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TREC_LOOP_ALGO_SEL | PREAMBLE_ENABLE | FRAME_SYNC_COUNTER_TIMEOUT[7:0] | KP[3:0] | KI[3:0] | ||||||||||||||
| Reset value | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | |||||||||||||||
| 0x008 | RETAINED_REG_BLOCK_FR AME_SYNC_CONFIG | FRAME_SYNC_PATTERN_H[15:0] | FRAME_SYNC_PATTERN_L[15:0] | ||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | |
| 0x00C | RETAINED_REG_BLOCK_RFI P_CONFIG | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WAKEUP_LEVEL[1:0] | LPAWUR_ENABLE | ||
| Reset value | 1 | 1 | 0 | ||||||||||||||||||||||||||||||
| 0x010 | RETAINED_REG_BLOCK_RF _CONFIG | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | LPF3_CAL | ED_ICAL[2:0] | AGC_HIGH_LVL[3:0] | ED_DC_CTRL | AGC_LOW_LVL[1:0] | Res. | Res. | Res. | Res. | Res. | Res. | CLKDIV[3:0] | ED_SWITCH | |||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | |||||||||||||||||
Table 103. LPAWUR retained register map and reset values
| Offset | Register name reset value | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x014 | RETAINED_REG_BLOCK_AGC_CONFIG | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | AGC_RESET_MODE | AGC_HOLD_MODE | AGC_MODE[1:0] | |
| Reset value | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x018 | Reserved | ||||||||||||||||||||||||||||||||
| 0x01C | RETAINED_REG_BLOCK_PAYLOAD_0 | PAYLOAD_0[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x020 | RETAINED_REG_BLOCK_PAYLOAD_1 | PAYLOAD_1[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |

28.6 LPAWUR switchable register descriptions
The SWITCHABLE_REG_BLOCKBaseAddress keyword is used as the base address of the whole Switchable registers, each register address is built by adding an offset to this base address. It is defined by the SoC when integrating the LPAWUR IP.
Note: SWITCHABLE_REG_BLOCKBaseAddress is 0x4900_1040 in the STM32WL33xx product. The 0x40 offset is due to the fact the Switchable registers mapping is following the Retained registers mapping, which has a size of 0x40.
Table 104. LPAWUR register list
| Offset | Register Name | Register Title | Reset |
|---|---|---|---|
| 0x0000 | RFIP_VERSION | RFIP_VERSION register | 0x0000 1100 |
| 0x0004 | IRQ_ENABLE | IRQ_ENABLE register | 0x0000 0000 |
| 0x0008 | STATUS | STATUS register | 0x0000 0000 |
28.6.1 LPAWUR switchable register descriptions RFIP_VERSION register (RFIP_VERSION)
Address offset: 0x0000
Reset value: 0x0000 1100
RFIP_VERSION register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| PRODUCT[3:0] | VERSION[3:0] | REVISION[3:0] | Res. | Res. | Res. | Res. | |||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | ||||
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:12 PRODUCT[3:0]: Used for major upgrades (new protocols support / new features)
Bits 11:8 VERSION[3:0]: Version of the RFIP (to be used for cut upgrades)
Bits 7:4 REVISION[3:0]: Revision of the RFIP (to be used for metal fixes)
Bits 3:0 Reserved, must be kept at reset value.

28.6.2 IRQ_ENABLE register (IRQ_ENABLE)
Address offset: 0x0004
Reset value: 0x0000 0000
IRQ_ENABLE register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FRAME_VALID_E | FRAME_COMPLETE_E | FRAME_SYNC_COMPLETE_E | BIT_SYNC_DETECTED_E |
| rw | rw | rw | rw |
Bits 31:4 Reserved, must be kept at reset value.
Bit 3 FRAME_VALID_E: Frame ( payload + CRC) received without error (the CRC has been checked and is matching with the received CRC).
The content of the PAYLOAD_X registers is valid.
Bit 2 FRAME_COMPLETE_E: Frame ( payload + CRC) received, the content of the PAYLOAD_X registers is valid.
Note: the frame may have been received with CRC or Framing error.
Bit 1 FRAME_SYNC_COMPLETE_E: Frame Sync has been detected, the content of the PAYLOAD_X registers is not yet valid.
Bit 0 BIT_SYNC_DETECTED_E: Preamble has been detected, the content of the PAYLOAD_X registers is not yet valid.
28.6.3 STATUS register (STATUS)
Address offset: 0x0008
Reset value: 0x0000 0000
STATUS register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ERROR_F[1:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |
| rc_w1 | rc_w1 | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FRAME_VALID_F | FRAME_COMPLETE_F | FRAME_SYNC_COMPLETE_F | BIT_SYNC_DETECTED_F |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | ||||||||||||
Bits 31:30 ERROR_F[1:0]:
- 11: CRC error
- 10: Framing error
- 01: Sync Error
- 00: No Error
Bits 29:4 Reserved, must be kept at reset value.
Bit 3 FRAME_VALID_F: Frame ( payload + CRC) received without error (the CRC has been checked and is matching with the received CRC).
The content of the PAYLOAD_X registers is valid.
Bit 2 FRAME_COMPLETE_F: Frame ( payload + CRC) received, the content of the PAYLOAD_X registers is valid.
Note: the frame may have been received with CRC or Framing error. The ERROR_F is describing the status of the reception.
Bit 1 FRAME_SYNC_COMPLETE_F: Frame Sync has been detected, the content of the PAYLOAD_X registers is not yet valid.
Bit 0 BIT_SYNC_DETECTED_F: Preamble has been detected, the content of the PAYLOAD_X registers is not yet valid.
28.6.4 LPAWUR register summary
Table 105. LPAWUR register map and reset values| Offset | Register name reset value | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x000 | SWITCHABLE_REG_BLOCK_ RFIP_VERSION | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRODUCT[3:0] | VERSION[3:0] | REVISION[3:0] | Res. | Res. | Res. | Res. | |||||||||
| Reset value | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | |||||||||||||||||||||
| 0x004 | SWITCHABLE_REG_BLOCK_ IRQ_ENABLE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FRAME_VALID_E | FRAME_COMPLETE_E | FRAME_SYNC_COMPLETE_E | BIT_SYNC_DETECTED_E |
| Reset value | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x008 | SWITCHABLE_REG_BLOCK_ STATUS | ERROR_F[1:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FRAME_VALID_F | FRAME_COMPLETE_F | FRAME_SYNC_COMPLETE_F | BIT_SYNC_DETECTED_F | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
28.7 Radio controller
The radio controller is in charge of managing the correct behavior of the whole LPAWUR IP, it is the sequencer of the IP.
Its main tasks are to:
- • enable and control the analog front-end (AFE)
- • enable the LPAWUR RX and get feedback to raise status flags
- • notify the SoC about the availability of the
- • LPAWUR IP to go in sleep mode.
28.7.1 Radio controller sequencing
The radio controller is triggered by the software who has to use the LPAWUR_ENABLE bit from the RFIP_CONFIG register (RFIP_CONFIG) retained register.
Once the LPAWUR IP enabled, the radio controller reads the RF_CONFIG register (RF_CONFIG) and AGC_CONFIG register (AGC_CONFIG) retained registers to check the configurations of the AFE.
The analog part is enabled first in order to allow time for the precharge. This ensures that the radio is ready to receive some data over-the-air.
Once the precharge done, the radio controller enables the LPAWURRX block.
At this moment, each block works autonomously, the radio controller only waits for input signals to determine how to handle the next operations.
It may choose to trigger a wakeup event, or even a sleep allowance, as described in Section 28.7.2: Wakeup event management and Section 28.7.3: Sleep management.
However, it may also choose to restart a reception, or even to internally shut down the LPAWUR RX block.
- • If the WAKEUP_LEVEL is defined as “bit sync level” (“00”), and the LPAWUR RX sent an error report, such as a sync error, the detection is disabled.
- • If the WAKEUP_LEVEL is different of “bit sync level” (“00”), and the LPAWUR RX sent an error report, such as a sync error, the detection is restarted internally
- • If the WAKEUP_LEVEL is different of “frame valid level (“11”), and the LPAWUR RX indicated an end of frame report, the detection is disabled.
- • If the WAKEUP_LEVEL is equal to “frame valid level (“11”), and the LPAWUR RX raised a FRAME_COMPLETE without any error, the wakeup frame detection is stopped
- • If the WAKEUP_LEVEL is equal to “frame valid level (“11”), and the LPAWUR RX raised a FRAME_COMPLETE with an error, the frame detection is restarted from the beginning.
28.7.2 Wakeup event management
The wakeup event consists in rising a wakeup pulse to the PWR (Power and Reset Controller) of the SoC to indicate that the LPAWUR IP requires the SoC to be in Run mode. The IP does not know in what mode the SoC is running:
- • If the SoC is already in Run mode, nothing happens. This means that the 16 MHz clock is already available, and the SoC is probably performing an operation
- • If the SoC is in SLEEP mode, the PWR wakes up the whole system, but the RFIP does not see any feedback from the SoC.
Basically, a wakeup event may be desired when a wakeup frame has been received and is valid. This means that a transmitter wanted to establish a connection, and probably expects a feedback from the LPAWUR IP.
Different wakeup levels are defined in the WAKEUP_LEVEL bitfield of the RFIP_CONFIG register (RFIP_CONFIG) retained register:
- • WAKEUP_LEVEL = “00” (Bit sync detected)
- – the wakeup event is raised once the preamble is detected
- • WAKEUP_LEVEL = “01” (Frame sync detected)
- – the wakeup event is raised once the frame sync is detected
- • WAKEUP_LEVEL = “10” (Frame complete)
- – the wakeup event is raised once the whole frame is detected, considering both the payload plus the CRC
- • WAKEUP_LEVEL = “11” (Frame valid)
- – the wakeup event is raised once the whole frame is detected without any error, meaning that the CRC has been checked and is matching with the received CRC.
Note: The wakeup events on a bit sync detected and a frame sync detected are not intended to be used in a functional point of view, it is for test purpose only.
28.7.3 Sleep management
Most of the time, the LPAWUR IP works in sleep mode of the SoC, with the always-on power domain only to use the retained registers or to receive and decode a frame.
However, there is a wakeup event which allows the switchable power domain to be enabled, typically for accessing the APB registers. Thus, there is also a sleep allowance signal which allows the IP to warn the SoC that it is currently working or that is ready to return to a sleep mode.
When the sleep allowance is set at 1, the RFIP is allowing the system to enter in sleep mode, when the sleep allowance is set at 0, the IP does not allow the system to enter sleep mode.
- • By default, the sleep is allowed, so it is also the case when the LPAWUR IP is reset.
- • When a preamble is detected by the LPAWUR RX, the sleep allowance signal is cleared
- • When a Sync Error is detected by the LPAWUR RX while it is trying to detect a frame sync, the sleep allowance signal is asserted
- • When an end of frame is detected by the LPAWUR RX while it is waiting for receiving a payload, the sleep allowance signal is asserted.
This signal may only be active when the SoC is in Run mode, thus it is based on the clk_sys_16m and not the slow clock as the other signals.
Note: A wakeup event may have been sent at the same time as a sleep allowed information. In this case, it is the role of the PWR (Power and Reset Controller) of the SoC to manage the point.
28.7.4 Recommended register values
This section gives some recommended values to be programmed for the LPAWUR IP registers in order to optimize the wakeup frame detection performance.
The following register default values should be modified by the Firmware:
- • FRAME_CONFIG1 register (FRAME_CONFIG1) retained register. The recommended value of this register is: 0x6466A
- • RF_CONFIG register (RF_CONFIG) retained register. The recommended value of this register is: 0x2123EE