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

Figure 265: LPAWUR architecture overview diagram. The diagram shows the LPAWUR IP within an SoC. The LPAWUR IP is divided into two power domains: an 'Always-on power domain' (dark grey) and an 'Interruptible power domain' (light grey). The 'Always-on power domain' contains the 'AFE configuration', 'Retained registers', and 'Digital controller'. The 'Interruptible power domain' contains 'APB management', 'Switchable registers', and an 'Interrupt' block. The 'Analog front-end' is outside the LPAWUR IP but connected to it via an 'AFE interface'. The 'Digital controller' has bidirectional connections to the 'AFE interface', 'Retained registers', and 'Switchable registers'. The 'Retained registers' and 'Switchable registers' are connected to 'APB management'. 'APB management' connects to an 'AHB2APB' block, which then connects to the 'SoC bus matrix'. The 'Interrupt' block outputs an 'IRQ'. The 'Digital controller' also outputs 'Wake-up event' and 'Sleep allowance' signals. The 'SoC bus matrix' is connected to the rest of the SoC.
Figure 265: LPAWUR architecture overview diagram. The diagram shows the LPAWUR IP within an SoC. The LPAWUR IP is divided into two power domains: an 'Always-on power domain' (dark grey) and an 'Interruptible power domain' (light grey). The 'Always-on power domain' contains the 'AFE configuration', 'Retained registers', and 'Digital controller'. The 'Interruptible power domain' contains 'APB management', 'Switchable registers', and an 'Interrupt' block. The 'Analog front-end' is outside the LPAWUR IP but connected to it via an 'AFE interface'. The 'Digital controller' has bidirectional connections to the 'AFE interface', 'Retained registers', and 'Switchable registers'. The 'Retained registers' and 'Switchable registers' are connected to 'APB management'. 'APB management' connects to an 'AHB2APB' block, which then connects to the 'SoC bus matrix'. The 'Interrupt' block outputs an 'IRQ'. The 'Digital controller' also outputs 'Wake-up event' and 'Sleep allowance' signals. The 'SoC bus matrix' is connected to the rest of the SoC.

MSv58351V1

As shown in Figure 265, the LPAWUR contains:

28.2 Interfacing with the LPAWUR

The LPAWUR interfaces with several blocks in the SoC in which it is integrated:

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:

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:

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:

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:

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:

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

Diagram of the Wakeup frame format showing the sequence of fields: Bit sync (40 bits, 0x0000000000), Frame sync (8 bits, 0x99), Payload (56 bits), and CRC (16 bits). The CRC field includes initialization (0x0000), polynomial (0x8005), and the polynomial expression (x^16 + x^15 + x^2 + 1). Arrows indicate Manchester encoding for the entire frame and CRC calculation for the Frame sync, Payload, and CRC fields.
Manchester encoding
CRC calculation
Bit syncFrame syncPayloadCRC
40 bits
0x0000000000
8 bits
0x99
56 bits16 bits
Init: 0x0000
Polynomial: 0x8005
(x¹⁶+x¹⁵+x²+1)

MSv58352V1

Diagram of the Wakeup frame format showing the sequence of fields: Bit sync (40 bits, 0x0000000000), Frame sync (8 bits, 0x99), Payload (56 bits), and CRC (16 bits). The CRC field includes initialization (0x0000), polynomial (0x8005), and the polynomial expression (x^16 + x^15 + x^2 + 1). Arrows indicate Manchester encoding for the entire frame and CRC calculation for the Frame sync, Payload, and CRC fields.

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:

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.

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:

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:

Table 101 provides the offset value for the retained and switchable registers:

Table 101. Register sub-group base address

Registers sub-groupOffset versus the register base address
Retained registers0x00
Switchable registers0x40

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:

The ERROR_F status allows more detailed reporting of any error in the RX chain:

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

OffsetRegister NameRegister TitleReset
0x0000FRAME_CONFIG0FRAME_CONFIG0 register0x0207 4012
0x0004FRAME_CONFIG1FRAME_CONFIG1 register0x0002 4669
0x0008FRAME_SYNC_CONFIGFRAME_SYNC_CONFIG register0x0000 9696
0x000CRFIP_CONFIGRFIP_CONFIG register0x0000 0006
0x0010RF_CONFIGRF_CONFIG register0x0001 33EE
0x0014AGC_CONFIGAGC_CONFIG register0x0000 0000
0x001CPAYLOAD_0PAYLOAD_0 register0x0000 0000
0x0020PAYLOAD_1PAYLOAD_1 register0x0000 0000

28.5.1 FRAME_CONFIG0 register (FRAME_CONFIG0)

Address offset: 0x0000

Reset value: 0x0207 4012

FRAME_CONFIG0 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.SLOW_CLK_CYCLE_PER_BIT_CNT[4:0]Res.PAYLOAD_LENGTH[3:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
SYNC_THRESHOLD_COUNT[5:0]Res.SYNC_LENGTHPREAMBLE_THRESHOLD_COUNT[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

28.5.2 FRAME_CONFIG1 register (FRAME_CONFIG1)

Address offset: 0x0004

Reset value: 0x0002 4669

FRAME_CONFIG1 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TREC_LOOP_ALGO_SELPREAMBLE_ENABLERes.
rwrw
1514131211109876543210
FRAME_SYNC_COUNTER_TIMEOUT[7:0]KP[3:0]KI[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

31302928272625242322212019181716
FRAME_SYNC_PATTERN_H[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FRAME_SYNC_PATTERN_L[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.WAKEUP_LEVEL[1:0]LPAWUR_ENABLE
rwrwrw

Bits 31:3 Reserved, must be kept at reset value.

Bits 2:1 WAKEUP_LEVEL[1:0]:

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

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LPF3_CALED_ICAL[2:0]AGC_HIGH_LVL[3:2]
rwrwrwrwrwrw
1514131211109876543210
AGC_HIGH_LVL[1:0]ED_DC_CTRLAGC_LOW_LVL[1:0]Res.Res.Res.Res.Res.Res.CLKDIV[3:0]ED_SWITCH
rwrwrwrwrwrwrwrwrwrw

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

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_RESET_MODEAGC_HOLD_MODEAGC_MODE[1:0]
rwrwrwrw

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

31302928272625242322212019181716
PAYLOAD_0[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
PAYLOAD_0[15:0]
rrrrrrrrrrrrrrrr

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

31302928272625242322212019181716
PAYLOAD_1[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
PAYLOAD_1[15:0]
rrrrrrrrrrrrrrrr

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

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000RETAINED_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_LENGTHPREAMBLE_THRESHOLD_COUNT[7:0]
Reset value10000001110100000000010010
0x004RETAINED_REG_BLOCK_FR
AME_CONFIG1
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TREC_LOOP_ALGO_SELPREAMBLE_ENABLEFRAME_SYNC_COUNTER_TIMEOUT[7:0]KP[3:0]KI[3:0]
Reset value010100011001101001
0x008RETAINED_REG_BLOCK_FR
AME_SYNC_CONFIG
FRAME_SYNC_PATTERN_H[15:0]FRAME_SYNC_PATTERN_L[15:0]
Reset value00000000000000001001011010010110
0x00CRETAINED_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 value110
0x010RETAINED_REG_BLOCK_RF
_CONFIG
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LPF3_CALED_ICAL[2:0]AGC_HIGH_LVL[3:0]ED_DC_CTRLAGC_LOW_LVL[1:0]Res.Res.Res.Res.Res.Res.CLKDIV[3:0]ED_SWITCH
Reset value0000010011001110

Table 103. LPAWUR retained register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x014RETAINED_REG_BLOCK_AGC_CONFIGRes.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_MODEAGC_HOLD_MODEAGC_MODE[1:0]
Reset value0000
0x018Reserved
0x01CRETAINED_REG_BLOCK_PAYLOAD_0PAYLOAD_0[31:0]
Reset value00000000000000000000000000000000
0x020RETAINED_REG_BLOCK_PAYLOAD_1PAYLOAD_1[31:0]
Reset value00000000000000000000000000000000
ST logo
ST logo

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

OffsetRegister NameRegister TitleReset
0x0000RFIP_VERSIONRFIP_VERSION register0x0000 1100
0x0004IRQ_ENABLEIRQ_ENABLE register0x0000 0000
0x0008STATUSSTATUS register0x0000 0000

28.6.1 LPAWUR switchable register descriptions RFIP_VERSION register (RFIP_VERSION)

Address offset: 0x0000

Reset value: 0x0000 1100

RFIP_VERSION register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
PRODUCT[3:0]VERSION[3:0]REVISION[3:0]Res.Res.Res.Res.
rrrrrrrrrrrr

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.

ST logo
ST logo

28.6.2 IRQ_ENABLE register (IRQ_ENABLE)

Address offset: 0x0004

Reset value: 0x0000 0000

IRQ_ENABLE register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FRAME_VALID_EFRAME_COMPLETE_EFRAME_SYNC_COMPLETE_EBIT_SYNC_DETECTED_E
rwrwrwrw

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

31302928272625242322212019181716
ERROR_F[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rc_w1rc_w1
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FRAME_VALID_FFRAME_COMPLETE_FFRAME_SYNC_COMPLETE_FBIT_SYNC_DETECTED_F
rc_w1rc_w1rc_w1rc_w1

Bits 31:30 ERROR_F[1:0]:

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
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000SWITCHABLE_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 value000100010000
0x004SWITCHABLE_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_EFRAME_COMPLETE_EFRAME_SYNC_COMPLETE_EBIT_SYNC_DETECTED_E
Reset value0000
0x008SWITCHABLE_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_FFRAME_COMPLETE_FFRAME_SYNC_COMPLETE_FBIT_SYNC_DETECTED_F
Reset value000000

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:

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.

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:

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:

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.

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.

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: