29. Sub-GHz radio IP (MRSUBG)
29.1 Overview
The MR_SubG IP is the digital part of a Sub-GHz radio working in association with the analog RFSUBG IP.
The MR_SubG IP:
- • controls the analog RF block
- • offers the possibility to create customized protocols by choosing modulation type, data rate, frequency deviation, packet format, and so on
- • embeds a sequencer, allowing an applicative scenario to be built with minimum interference of the CPU.
29.1.1 MR_SubG IP overview
Figure 267. MR_SubG IP block diagram

The diagram illustrates the architecture of the MR_SubG IP within an SoC. It is divided into two main sections: the RFSUBG (Analog RF IP) and the MR_SUBG (Digital RF IP).
- RFSUBG (Analog RF IP): This section handles the analog signal processing. It includes an RX analog chain for receiving signals, a TX PA (Power Amplifier) for transmitting signals, a FREQ SYNTH (Frequency Synthesizer) for generating the carrier frequency, and a Power control block. The RX path also includes a 2x PA block.
- MR_SUBG (Digital RF IP): This section contains the digital logic for radio control. It includes a Radio FSM (Finite State Machine), Global Registers, Radio Registers, and RRM (Radio Resource Management). The core of the digital IP is the DATA LINK LAYER, which coordinates the flow of data between the RX and TX paths. It includes a RECEIVE block, a PA INTERFACE, and a TRANSMIT block. The DATA LINK LAYER is connected to a Data Buffer Manager, which in turn interfaces with the SoC AHB Interface and SoC RAM. Other digital blocks include a Sequencer, Radio Control, Time Management, and Wakeup / Sleep Management. The Wakeup / Sleep Management block provides wakeup request and sleep allowance signals to the SoC.
- Interfaces and Control: The MR_SUBG is connected to the SoC via the SoC APB Interface and the SoC AHB Interface. It also has a dedicated SoC RAM. The Global Registers and Radio Registers are connected to the RRM. The Sequencer and Radio Control blocks provide interrupts to the SoC. The Time Management block is connected to the Wakeup / Sleep Management block.
- External Signals: The SoC is connected to external Sub-GHz signals: SUBG_RX_CLK, SUBG_RX_DATA, SUBG_TX_CLK, and SUBG_TX_DATA.
As shown in Figure 267: MR_SubG IP block diagram, the MR_SubG IP contains:
- • Global registers block
- • A Radio controller
- • A RRM (Radio Registers Manager) block containing:
- – a UDRA: mainly used after a low power mode exit to restore some Radio registers (if needed) through a command link list located in retention RAM
Note: This sub-block is an AHB master
- – a Direct Radio Register Access allowing read/write access to radio registers through APB.
- • A Radio register block
- – to configure the analog radio parameters
- – to configure some digital modulator/demodulator parameters
Note: Most of the radio registers contained the correct settings by default.
- • A Radio FSM controlling the RFSUBG analog radio.
- • a transmitter block containing:
- – the framer
- – the modulator
- • a receive block containing:
- – the demodulator
- – the deframer
- – the AGC controller
- – the I/Q compensation
- – the AFC controller
- • a data buffer manager to manage read / write of data to transmit / received data in the SoC RAM
- • a sequencer
- • a wakeup block managing sleep allowance and wakeup request, including a wakeup timer
- • Some small blocks used for calibrations, PA control, PLL control, and RX data path interface (AGC, FIFO ADC) and so on.
The MR_SubG IP supports only one system clock frequency: 16 MHz.
Note: Ensure that MRSUBG is clocked before enabling the APB2 clock.
29.1.2 Miscellaneous feature: control of an external components through pads of the SoC
Control an external power amplifier (PA)
The MR_SubG IP is able to control an external Power Amplifier (located on the board to increase the Tx power) through a signal provided to the SoC (TX_SEQUENCE) to be connected directly on an external GPIO or to be managed with additional logical mechanism. The external PA can be useful to extend the TX power.
Hence this provided signal is raised when the transmitter device starts putting power on the antenna (Radio FSM is EN_PA and TX states).
Control an external LNA
In the same idea, the MR_SubG IP is able to control an external LNA through a signal provided to the SoC (RX_SEQUENCE) to be connected directly on an external GPIO or to be managed with additional logical mechanism.
The timing / sequence to raise this signal has been taken from the existing RX state information provided by the S2-LP product.
So this provided signal is raised when the receiver device starts the analog RX chain (Radio FSM is EN_RX, EN_LNA and RX states), knowing the capacity to decode received information is only available from state RX.
Control an antenna switching block (2 antennas)
The MR_SubG IP embeds an antenna selection feature. When enabled, the RX_Top tries two antennas and select the one with the higher measured RSSI. To select one antenna or the other, the MR_SubG IP provides an rfip_antenna_switch signal to the SoC to be connected directly on an external GPIO (ANTENNA_SWITCH in the STM32WL30xx/31xx/33xx) or to be managed with additional logical mechanism.
Refer to chapter Section 29.11.6: Antenna switching for details on the feature.
29.2 Interfacing with the MR_SubG IP
The MR_SubG IP interfaces with several blocks in the system:
- • CPU through interrupts
- • RAM through AHB interface either initiated by the RRM, the DBM or the sequence
- • Power controller block and clock and reset controller block
29.2.1 Interrupt lines to the CPU
The MR_SubG IP provides several interruption lines to the CPU, issued by different sub-blocks:
- • 1 interrupt line dedicated to the RF sequences grouping all status flag from the global RFSEQ_IRQ_STATUS register (active only if the associated bit(s) in RFSEQ_IRQ_ENABLE register is also set)
- – this interrupt is linked to Radio IP transfers and actions
- – In STM32WL30xx/31xx/33xx devices: mapped on interrupt line 21
- • 1 interrupt line from the wakeup block for CPU wakeup event:
- – this interrupt is raised when the wakeup timer reaches the programmed value in CPU_WAKEUPTIME register
- – In STM32WL30xx/31xx/33xx devices: mapped on interrupt line 23
- • 1 interrupt line from the wakeup block for RFIP wakeup event
- – In STM32WL30xx/31xx/33xx devices: mapped on interrupt line 24
The interrupt features associated to TX_SEQUENCE, RX_SEQUENCE, rfip_busy and rfip_ahb_busy are managed at system controller (SYSCFG) level.
29.2.2 Interface with the RAM embedded in the SoC
The MR_SubG IP is a multi AHB masters on the bus matrix as the CPU or the DMA.
Note: At SoC level, an intermediate 4-to-1 bus matrix is used so that there is only one AHB master for the MR_SubG IP on the SoC bus matrix
The AHB masters accessing the RAM of the system are:
- • the RRM UDRA block to get commands structure in RAM, used to program the Radio registers while the CPU is not available (potentially rebooting after a low power mode),
- • the DBM to read data to transmit or write received data
29.2.3 Interface with the power, clock and reset controllers
The MR_SubG IP receives two clocks from the SoC:
- • an RFIP system clock at 16 MHz
- • a slow clock (called 32 kHz clock in this document), available in the always-on power domain as it corresponds to the clock used to wake-up the device from low power mode.
The fast clock (16 MHz) must be accurate when the radio is used (for the transmission/reception) which means low ppm. The SW is responsible to configure the SoC clock tree on the accurate clock to use the radio.
The SW is also responsible to configure properly the clock ratio between the system and the digital radio IP and to program the AHB UP/DOWN converters through the RCC of the SoC.
The MR_SubG IP is implemented into two power domains:
- • an always-on 1.2 V power domain: reduced to 1.0 V during low power mode
- • a switchable 1.2 V power domain: OFF when the SoC is in low power mode.
Only the Wakeup block and the retained registers are in the always-on power domain. The rest of the radio is in the switchable area.
The MR_SubG IP communicates with the power controller of the system:
- • to indicate when it allows the device going into low power modes
- • to request a wakeup of the system.
A SOC_WAKEUP_OFFSET[7:0] bit field allows programming a delay to anticipate the SoC wakeup request versus the associated CPU interrupt. This delay is supposed to let the power and clock tree being established before to generate the event on the CPU.
29.2.4 Interface with the SoC for busy information
The MR_SubG IP provides 2 status signals to indicate when it is busy. Those signals can be then used by the soc different ways (to generate interrupts on falling/rising/both edges, make the signal value readable in a register). There are two signals:
o_rfip_busy:
- • this signal indicates when the RFIP can be considered as busy meaning not IDLE
- • the RFIP is considered as busy when at least one of the conditions below is true:
- – the Radio FSM is not in IDLE mode
- – an RRM UDRA command is under execution
o_rfip_ahb_busy:
- • this signal is a bit more restrictive than the general busy previously described as it is set only when the RFIP is in conditions that could lead to AHB master accesses
- • this signal is set if at least one of the conditions below is true:
- – the Radio FSM is in RX state or in TX state
- – an RRM UDRA command is under execution,
- – an AHB DBM access is ongoing
the DBM due to an early RAM prefetch at the very beginning of a TX sequence done by the DBM/
- • In STM32WL30xx/31xx/33xx devices, this signal is used to generate interruption, programmable in the SYSCFG block of the SoC.
29.2.5 Signals connected to SoC GPIOs
The MR_SubG IP provides some signals that can be connected to pads in the SoC.
Some signals are mandatorily routed to SoC pads to use the “Direct through GPIO” TX/RX modes (see sections Direct through GPIO and Direct through GPIO mode for details):
- • When the transmission uses the Direct through GPIO mode
- – TX_DATA input signal to provide serialized bits to be modulated on the antenna by the radio
- – TX_CLOCK output signal providing a data rate clock to indicate when a new TX_DATA bit must be provided
- • When the reception uses the Direct through GPIO mode
- – RX_DATA output signal providing the serialized demodulated bits
- – RX_CLOCK output signal providing a data rate clock to sample the RX_DATA
Some signals can be optionally provided on SoC GPIOs or kept only internally for status and/or interrupt purpose:
- • TX_SEQUENCE: set when the Radio FSM is in EN_PA and TX states (see Control an external power amplifier (PA) for details)
- • RX_SEQUENCE: set when the Radio FSM is in EN_RX, EN_LNA and RX states (see Control an external LNA for details)
- • ANTENNA_SWITCH: used to control an external antenna switching component, this output signal toggles during the antenna selection process and then stays on selected one (see Control an antenna switching block (2 antennas) for details)
Note: In STM32WL30xx/31xx/33xx devices, all of these signals are available on GPIOs, if the corresponding Alternate Function is programmed.
29.3 Packet and protocol construction
The MR_SubG IP and the associated analog IP provides a great flexibility in protocol building and support by offering a lot of programmable parameters such as:
- • the packet format
- • the modulation type
- • the data rate
The aim of this product is to build customized / home-made protocols. In parallel, it has been tuned to support few standards like:
- • Sub-GHz 802.15.4
- • W-MBUS
- • Sigfox™ (Transmitter only)
29.3.1 Packet structure
Packet elements
In any protocol, a packet contains a structure with many common elements.
PREAMBLE
The MR_SubG IP offers several format and length of PREAMBLE to the user:
- • the PREAMBLE length is programmable from 0 to 2046 bits, with a granularity of 2-bit
- • the PREAMBLE pattern can be chosen among a selection of pattern:
Table 106. PREAMBLE pattern selection
| PREAMBLE_SEQ[1:0] | In 2-(G)FSK or ASK/OOK | In 4-(G)FSK |
|---|---|---|
| 00 | 0101.. | 0111.. |
| 01 | 1010.. | 0010.. |
| 10 | 0011.. (not recommended) | 1101.. |
| 11 | 1100.. (not recommended) | 1000.. |
Note: The pattern is transmitted as leftmost bit first
2 patterns are mentioned as “not recommended” for 2-(G)FSK and ASK/OOK as they are not the most convenient for the receiver.
Both length and pattern choice are programmable in the Global static register called PCKT_CONFIG (see PCKT_CONFIG register (PCKT_CONFIG) for details).
The preamble is essential for locking the frequency and timing recovery algorithms. At least 8/16 preamble bits are required for reliable detection (more bits are better).
SYNC (synchronization word)
The MR_SubG IP can support up to two synchronization words: a primary (SYNC) and a secondary (SEC_SYNC) word. All configuration parameters (except the value of the word itself) are shared by both on SYNC and SEC_SYNC.
Even if the programming allows selecting no SYNC in the frame, a SYNC word is expected to be present in Normal buffer mode.
The synchronization words can be configured as follow:
- • indicate if a synchronization word is present or not in the frame using the SYNC_PRESENT bit,
- • define the size (in bit) of the SYNC word,
- • the SECONDARY_SYNC_SEL bit can be set to indicate a secondary SYNC word has to be managed. When set:
- – in TX mode: the SEC_SYNC is sent instead of the SYNC on the frame
- – in RX mode: the receiver enables the SEC_SYNC detection in parallel of the SYNC word (so frames using one or the other SYNC word are detected by the receiver).
Note: In reception, whatever the SECONDARY_SYNC_SEL bit value:
- • the SYNC word is always detected,
- • when the packet format is defined as 802.15.4, the secondary SYNC word is automatically searched.
The size of the SYNC word(s) is defined with a 1-bit granularity in the SYNC_LEN[3:0] bit field and can be programmed from 1-bit long to 32-bit long .
Note: The (SEC_)SYNC is transmitted as leftmost bit first (SEC_)SYNC[31] bit first.
All bit fields to configure the synchronization words are programmable in the Global static register called PCKT_CONFIG (see PCKT_CONFIG register (PCKT_CONFIG) for details).
Note: If the SYNC word is too close to the PREAMBLE pattern, the receiver may not manage to detect a valid SYNC word.
LENGTH
The length of the packets can be configured as follow:
- • Length is defined in bytes unit (in the PCKTLEN_CONFIG register (PCKTLEN_CONFIG))
- • the length can be defined in a bit field with a size of 1 or 2 bytes (through the LEN_WIDTH bit field)
- • 2 length modes can be selected using the FIX_VAR_LEN bit:
- – FIXED length mode:
- no LENGTH field added inside the transmitted frame and the receiver does not try to decode a LENGTH field on received frame.
- Both receiver and transmitter use the value defined in the PCKTLEN_CONFIG register to know the length of the frame.
- – VARIABLE length mode:
- in TX mode, the device adds the LENGTH information inside the transmitted frame using the PCKTLEN and the LEN_WIDTH bit fields information.
- in RX mode, the device decodes the LENGTH information in the received frame using the LEN_WIDTH bit field information.
- – FIXED length mode:
The packet length information located in the PCKTLEN_CONFIG register has different meanings depending on the selected RX mode or TX mode.
In TX mode:
- • when Normal Buffer mode (both FIXED and VARIABLE length modes): the PCKTLEN bit field represents the number of payload bytes to transmit.
- • when Direct through buffer mode: the PCKTLEN bit field represents the number of bytes to transmit before to stop the transmission.
Note: If PCKTLEN=0, then the transmission continues until a SABORT command is issued by the SW.
In RX mode:
- • when Normal Buffer mode:
- – if FIXED length mode: the PCKTLEN bit field represents the number of payload bytes
- – if VARIABLE length mode:
- the PCKTLEN bit field represents the maximum receive size in bytes.
- If the receiver decodes in the frame a LENGTH value greater than the PCKTLEN bit field value, it stops the on-going reception.
For all other RX/TX modes, the PCKTLEN bit field is not used.
Note: In a special case of a transmission in Normal mode with PCKTLEN=0, the TX_Top fetches one byte in RAM at the beginning of the transmission:
- • if the Data Buffer size is not null, then the RAM is prefetched early (at the TX command start) knowing the read byte is not used
- • if the Data Buffer size is null, no RAM access is done in the SoC but the DBM raises a FIFO error flag as the TX_Top requests a data not available inside the DBM.
PAYLOAD
The payload represents the data to be provided by the SW through the Data Buffers when the Normal Buffer mode is used for transmission or reception.
In the direct through buffer, direct through GPIO or I/Q sampling RX modes, the framer / deframer of the MR_SubG IP does not insert/decode any PREAMBLE, SYNC word, LENGTH, CRC, and so on, and use only the provided data as raw data.
The payload size corresponds to the PCKTLEN value. It can be from 0 to 65 535 bytes.
CRC
The MR_SubG IP implements error detection by means of Cyclic Redundancy Check codes.
The CRC is calculated over all the frame fields except the PREAMBLE, the SYNC word.
The MR_SubG IP supports several CRC length and polynomials through CRC_MODE[2:0] bit field in PCKT_CONFIG register (PCKT_CONFIG) static register:
- • mode 0: no CRC
- • mode 1: CRC 8-bit with poly x⁸+x²+x+1 (0x07)
- • mode 2: CRC 16-bit with poly x¹⁶+x¹⁵+x²+1 (0x8005)
- • mode 3: CRC-16-bit with poly x¹⁶+x¹²+x⁵+1 (0x1021) (802.15.4 compliant)
- • mode 4: CRC 24-bit with poly \(x^{24}+x^{23}+x^{18}+x^{17}+x^{14}+x^{11}+x^{10}+x^7+x^6+x^5+x^4+x^3+x+1\) (0x864CFB)
- • mode 5: CRC 32-bit with poly \(x^{32}+x^{26}+x^{23}+x^{22}+x^{16}+x^{12}+x^{11}+x^{10}+x^8+x^7+x^5+x^4+x^2+x+1\) (0x04C11DB7) (802.15.4 compliant)
For all CRC modes:
- • the CRC initialization is programmable through the CRC_INIT register (CRC_INIT) register,
- • no reflection is applied (RefIn = RefOut = false)
- • no XOR on output (XORout = all 0s)
- – except for CRC mode5 when PCKT_CTRL[0] = PCKT_FORMAT = 1 (802.15.4): XORout = all 1s so CRC is inverted versus CRC mode5 with PCKT_FORMAT = 0 =Basic
Note: CRC versus coding:
- • the CRC is calculated before whitening,
- • the CRC is calculated on clear data when Manchester and FEC coding are selected,
- • the CRC is calculated on the encoded data when 3oo6 coding is selected.
POSTAMBLE
The packet POSTAMBLE allows inserting a certain number of ‘01’ or ‘10’ bit pairs at the end of the data packet. The number of POSTAMBLE pairs of bits can be set from 0 to 63 by the POSTAMBLE_LENGTH bit field of the PCKT_CONFIG register (PCKT_CONFIG). The type of POSTAMBLE bit sequence (‘01’ or ‘10’) is selected by the POSTAMBLE_SEQ bit field of the PCKT_CONFIG register according on the following values:
- • 00: POSTAMBLE sequence = 01 01 01 01 01 ......
- • 01: POSTAMBLE sequence = 10 10 10 10 10 ......
- • 10: POSTAMBLE sequence depends on last payload/CRC bit:
- – last payload/CRC bit is 0: POSTAMBLE sequence = ‘10’
- – last payload/CRC bit is 0: POSTAMBLE sequence = ‘01’
The POSTAMBLE configuration concerns only the transmission to add a POSTAMBLE at the end of the frame (as required by some protocols like the W-MBUS). The POSTAMBLE is not considered when in reception (the receiver stops the reception after the CRC without considering additional postamble bits to be received).
Packet formats
At HW level, the MR_SubG IP supports 2 sorts of packet:
Basic packet
The Basic format packet can be used to build any home-made protocol by playing with all options of configuration for all bit fields.
Figure 268. Basic packet format

The diagram shows the Basic packet format structure comprising horizontally arranged fields: Preamble (0..2046 bits), Sync (0..32 bits), Length (0..2 bytes), Payload (0..65535 bytes), CRC (0..4 bytes), and Postamble (0..126 bits). Double-headed arrows above and below denote spans: 'FEC, Manchester, Whitening calculation fields' spans from Length to CRC; 'CRC calculation fields' spans Length and Payload; 'Packet length' spans Length and Payload. Reference label: MSv58302V1.
802.15.4 packet
The 802.15.4 packet format allows activating few additional HW treatment / options to fit the 802.15.4 standard.
Figure 269. 802.15.4 packet format

The diagram illustrates the 802.15.4 packet format. It consists of a sequence of fields: Preamble (0..2046 bits), Sync (0..32 bits), PHR (2 bytes), MHR + MAC Payload (2..2047 bytes), and CRC (2 or 4 bytes). Above the packet fields, three horizontal double-headed arrows indicate the extent of calculation fields: 'FEC calculation fields' spans from the start of the Preamble to the end of the MHR + MAC Payload; 'Whitening calculation fields' spans from the start of the Sync to the end of the MHR + MAC Payload; and 'CRC calculation fields' spans from the start of the PHR to the end of the MHR + MAC Payload. Below the packet fields, three more horizontal double-headed arrows indicate packet components: 'SHR' (Service Header) spans the Preamble and Sync; 'PSDU' (Plaintext Service Data Unit) spans the PHR and MHR + MAC Payload; and 'Packet length' spans the PHR and MHR + MAC Payload. The label 'MSv58303V1' is located in the bottom right corner of the diagram area.
The PREAMBLE and SYNC word (primary and secondary) are managed according to the programmed configuration.
Refer to section 802.15.4 for details on registers configurations to manage an 802.15.4 standard RF transfer with the MR_SubG IP.
PHR: The PHR (physical header) field is specific for the 802.15.4g packet format and is automatically built by the packet handler block based on current register configuration.
Table 107. PHR frame
| Bit string index | 0 | 1-2 | 3 | 4 | 5-15 |
|---|---|---|---|---|---|
| Bit mapping | MS | R1-R0 | FCS | DW | L10-L0 |
| Field name | Mode Switch | Reserved | FCS type | Data Whitening | Frame Length |
In particular:
- • MS is always set to 0b (mode switch not supported)
- • R₁-R₀ are always set to 00b
- • FCS is set to:
- – 1b if CRC mode 3 is selected
- – 0b if CRC mode 5 is selected
- • DW is set to:
- – 0b if whitening is disabled (WHIT_EN bit = 0 in the PCKT_CTRL register (PCKT_CTRL))
- – 1b if whitening is enabled (WHIT_EN bit = 1 in the PCKT_CTRL register (PCKT_CTRL))
- • L₁₀-L₀:
- – in Transmission: represents the PCKTLEN[11:0] bit field of the PCKTLEN_CONFIG register (PCKTLEN_CONFIG)
- – in Reception: decoded on the fly to know the packet length and stored in the RX_PCKTLEN_OUT[15:0] bit field in the RX_INFO_REG status register.
Note: The packet length represents MHR + MAC Payload + CRC.
The CRC is calculated on MHR + MAC Payload bit fields and appended to the end of the payload in transmission or calculated and compared to the CRC part of the frame in reception.
As mentioned previously, the CRC is included in the length of the packet. For this reason:
- • If CRC mode 3 (2-bytes):
- – the MR_SubG IP uses packet length – 2 bytes from/to the RAM Data Buffers. The 2-bytes CRC are built on the fly and appended to the frame in transmission and decoded/checked in reception but not written into RAM)
- • If CRC mode 5 (4-bytes):
- – the MR_SubG IP uses packet length – 4 bytes from/to the RAM Data Buffers. The 4-bytes CRC are built on the fly and appended to the frame in transmission and decoded/checked in reception but not written into RAM)
- – if the payload length is less than 4 bytes, the payload is zero-padded to reach a minimum length of 4-bytes. The padded bits are internally used to compute the CRC but not transmitted on the air. The reverse operation is performed on receiver side.
- • If CRC mode 0 (no CRC): the MR_SubG IP uses packet length bytes from/to the RAM Data Buffers. In this case no CRC calculation nor management is done at HW level and it is the responsibility of MAC layer to process it.
29.3.2 Sequence transformation and data coding
The MR_SubG IP embeds several options that impact the payload format.
Some options modify the sequence to help building a home-made protocol (byte swap) or to make the transfer more robust (whitening).
Other options are linked to coding algorithms. The MR_SubG IP supports 3 exclusive coding options.
Whitening
The data whitening algorithm aims at preventing repeating runs of 0's or 1's on the antenna, which would create spectral lines which may complicate symbol tracking at the receiver or interfere with other transmissions.
Data whitening is implemented with a maximum length LFSR generating a pseudo-random binary sequence used to XOR data before entering the encoding chain. The length of the LSFR is set to 9 bits.
The pseudo-random sequence is initialized with the value present in the WHIT_INIT[8:0] bit field of the PCKT_CTRL register (PCKT_CTRL).
When enabled through WHIT_EN bit in the PCKT_CTRL register, the data are scrambled before being transmitted in such a way that long sequences of zeros or ones become very unlikely and physical layer algorithms perform better.
At the receiver end, the data are XOR-end with the same pseudo-random sequence. Whitening is applied according to the following LFSR implementation. Data whitening is always recommended.
For Basic packet format:
- • the data whitening is applied on all fields excluding the PREAMBLE, the SYNC word and the POSTAMBLE
- • The data whitening is enabled / disabled through the WHIT_EN bit for both transmission and reception
- • the scheme is the following:
Figure 270. Data whitening scheme for Basic packets
![Diagram of the data whitening scheme for Basic packets. It shows two 8-bit shift registers. The top register is the LFSR, with bits 8 down to 0. Bit 8 is the output of an XOR gate that combines bit 8 and bit 0. The bottom register is the data register, with bits 7 down to 0. TX_DATA is shifted into bit 7. The output of the LFSR (bit 8) is XORed with the output of the data register (bit 7) to produce TX_OUT[7:0]. The diagram also shows the internal connections between the shift registers and the XOR gates.](/RM0511-STM32WL30-31-33/5305d06ef8748277e14eb6410a3bef07_img.jpg)
The first TX_DATA byte is shifted in before doing the XOR-operation providing the first TX_OUT[7:0] byte. The second TX_DATA byte is then shifted in before doing the XOR-operation providing the second TX_OUT[7:0] byte.
TX_OUT[7:0]
For 802.15.4 packet format:
- • the data whitening is applied to all fields following the PHR field
- • the data whitening is enabled through the WHIT_EN bit in transmission but decoded on inside the PHR field of the received frame in reception
- • the scheme is the following:
Figure 271. Data whitening scheme for 802.15.4 packets

The diagram illustrates the data whitening scheme. An input signal enters a feedback loop. The signal is split: one path goes through a series of ten delay elements (labeled 'D') in sequence. The output of the tenth delay element is fed back to the input of the first delay element. The output of the fourth delay element is connected to one input of an XOR gate (represented by a circle with a '+'). The other input of the XOR gate is connected to the output of the tenth delay element. The output of the XOR gate is fed back to the input of the first delay element. The label 'PN9' is placed below the fourth delay element, indicating the polynomial used for the whitening process.
Byte swapping
This feature allows swapping the MSbit-LSbit endianness inside the data to transmit.
This feature when enabled applies only on the PAYLOAD and LENGTH (when VARIABLE length mode is used) part of the frame. PREAMBLE, SYNC, CRC and POSTAMBLE are not impacted by the swapping action.
Note: Msbbit-Lsbit inversion is performed on a single byte basis for the PAYLOAD, while it is performed on a full-field basis for the LENGTH. This means the swap transmits the 16 bit value LENGTH[15]...LENGTH[0] as LENGTH[0]..LENGTH[15] when the LENGTH field is 2 bytes long.
The feature is managed through the BYTE_SWAP bit in the PCKT_CTRL register (PCKT_CTRL):
- • 0: byte swap is disabled, bytes are transmitted MSB first
- • 1: byte swap is enabled, bytes are transmitted LSB first
Note: This feature is dedicated to Basic format packet and MUST NOT be enabled for the configuration that selects the 802.15.4 format packet.
Coding
The MR_SubG IP supports several types of coding that can be selected through the CODING_SEL[1:0] bit field in the PCKT_CTRL register (PCKT_CTRL) (static register):
- • 00: none
- • 01: convolutional encoding (FEC) in TX / Viterbi decoder in RX
- • 10: 3-out-of-6 coding (applies only on payload)
- • 11: Manchester coding / decoding
Note: As those coding types are exclusive, the bit field to program for selection allows enabling only one at a time.
FEC coding
The MR_SubG IP provides hardware support for error correction and detection.
The error correction can be enabled or disabled according to the link reliability and power consumption needs.
Convolution coding (rate 1/2) and interleaving can optionally be applied to the data.
FEC / Viterbi can be enabled by setting “01” in the CODING_SEL[1:0] bit field of the PCKT_CTRL register. When FEC is enabled the number of transmitted bits is roughly doubled hence the on-air packet duration in time is also roughly doubled.
Convolutional coding for Basic packet format:
- • the FEC is applied to LENGTH (when present), PAYLOAD and CRC (when present). The PREAMBLE, the SYNC word and the POSTAMBLE are excluded.
- • the convolutional coding scheme is the following:
Figure 272. FEC scheme for Basic packet format

The diagram illustrates a parallel feed-forward implementation of a convolutional encoder. The input \(b_i(n)\) is split into four parallel paths that converge at two adders. The paths are: a direct connection, a z⁻¹ delay, a z⁻¹+z⁻² delay combination, and a z⁻¹+z⁻²+z⁻³ delay combination. The top adder (+) produces the output s₀(n), and the bottom adder (+) produces the output s₁(n). The diagram is labeled MSv58306V1 in the bottom right corner.
Convolutional coding for 802.15.4 packet format:
- • the FEC is applied to all fields except the PREAMBLE and the SYNC word
- • two different coding schemes can be selected depending on the FEC_TYPE_4G bit value in the PCKT_CTRL register (shown in Figure 273: FEC schemes for 802.15.4 packets):
- – Non-Recursive Non-Systematic Coding (NRNSC) when FEC_TYPE_4G = 0
Note: The NRNSC encoder for the 802.15.4 packet is the same as the one used for Basic packet with logical inversion of the output symbols.
- – Recursive Systematic Coding (RSC) when FEC_TYPE_4G = 1
- • when FEC is enabled:
- – in transmission: the secondary SYNC word is automatically transmitted
- – in reception: the detection of the SEC_SYNC word automatically enables the FEC coding regardless the CODING_SEL[1:0] bit field value (and regardless the SECONDARY_SYNC_SEL bit value)
Figure 273. FEC schemes for 802.15.4 packets

The diagram illustrates two FEC encoder schemes for 802.15.4 packets:
Non-Recursive Non-Systematic Encoder for 802.15.4g
This encoder takes input bits \(\{b_i\}\) and inserts padding bits and tail bits \(T_i\). The combined input is split into two parallel paths. Each path consists of three consecutive memory blocks labeled M₀,M₁,M₂ with associated shift registers \(b_{i-1}, b_{i-2}, b_{i-3}\). The outputs of these memory blocks are combined using XOR gates to produce two output symbols, \(u_i^1\) and \(u_i^0\).
Recursive Systematic Encoder for 802.15.4g
This encoder takes an input bit \(b_i\) and inserts tail bits \(T_i\) and pad bits. The input is fed into a feedback loop containing three memory blocks M₀,M₁,M₂ with shift registers \(b_{i-1}, b_{i-2}, b_{i-3}\). The output of the feedback loop is combined with the input bit \(b_i\) to produce the systematic output \(u_i^0\). The feedback loop also produces two parity outputs, \(u_i^1\) and \(u_i^0\), which are combined using XOR gates.
Interleaving:
In order to improve the effectiveness of the convolutional encoding, an interleaving matrix can be applied to the encoded data at the output of the convolutional encoder.
As shown on the figure below, the symbols from the output of the encoder are:
- • written row-wise into a 4 x 4 matrix buffer starting from the upper-left cell
- • read column-wise starting from the lower-right cell
Each pair of encoded symbols (corresponding to one single encoded bit) is packed into a single matrix cell. For each encoded symbol pair, s₀(n) is transmitted first on the air and s₁(n) is transmitted second.
Figure 274. Interleave scheme

The diagram illustrates the interleaving process. On the left, the 'Interleaver write order' shows data symbols being written into a 4x6 grid in a row-by-row fashion. The input sequence is { s(0), s(1), ..., s(15), ... }. On the right, the 'Interleaver read order' shows the data being read out of the grid in a column-by-column fashion. The output sequence is { s(15), s(11), s(7), ..., s(4), s(0), ... }. A large blue arrow points from the input sequence to the output sequence. The grid itself is a 4x6 matrix of blue squares. The read order arrows start from the bottom of each column and point upwards. The write order arrows start from the top of each row and point to the right.
MSv58308V1
Note: For Basic packet: interleave is always enabled together with FEC
for 802.15.4 packet: interleave is enabled / disabled using the INT_EN_4G bit in the PCKT_CTRL register (PCKT_CTRL).
Manchester coding
The Manchester coding can be enabled by setting “11” in the CODING_SEL[1:0] bit field of the PCKT_CTRL register.
Note: The SW is not supposed to select this coding:
For the 802.15.4 packets (planned to work only with Basic packet format).
For 4-(G)FSK modulation type.
The Manchester coding type is configurable through the MANCHESTER_TYPE bit in the PCKT_CTRL register:
- • MANCHESTER_TYPE = 0:
- – bit ‘1’ is transmitted as ‘10”
- – bit ‘0’ is transmitted as ‘01”
- • MANCHESTER_TYPE = 1:
- – bit ‘1’ is transmitted as ‘01”
- – bit ‘0’ is transmitted as ‘10”
The Manchester encoding is applied to LENGTH (when present), PAYLOAD and CRC (when present). The PREAMBLE, the SYNC word and the POSTAMBLE are excluded.
3 out of 6 coding
The three-out-of-six coding can be selected by setting “10” in the CODING_SEL[1:0] bit field of the PCKT_CTRL register.
Note: The SW is not supposed to select this coding for the 802.15.4 packets. It is planned to work only with Basic packet format for compatibility with W-MBUS protocol.
The 3oo6 cannot be used in parallel of whitening HW option.
Note: From cut 2:
- • the 3oo6 coding can be used with 4-(G)FSK
- • the 3oo6 coding applies on LENGTH + PAYLOAD + CRC instead of PAYLOAD only which means it can be used whatever the CRC_MODE and FIX_VAR_LEN bit fields values.
The coding is done according to Table 108:
Table 108. 3-out-of-6 coding table
| 4-bit not coded pattern | 6-bit code | Number of transitions | ||
|---|---|---|---|---|
| In hexadecimal | In decimal | In hexadecimal | In decimal | |
| 0000 | 0 | 010110 | 22 | 4 |
| 0001 | 1 | 001101 | 13 | 3 |
| 0010 | 2 | 001110 | 14 | 2 |
| 0011 | 3 | 001011 | 11 | 3 |
| 0100 | 4 | 011100 | 28 | 2 |
| 0101 | 5 | 011001 | 25 | 3 |
| 0110 | 6 | 011010 | 26 | 4 |
| 0111 | 7 | 010011 | 19 | 3 |
| 1000 | 8 | 101100 | 44 | 3 |
| 1001 | 9 | 100101 | 37 | 4 |
| 1010 | 10 | 100110 | 38 | 2 |
| 1011 | 11 | 100011 | 35 | 2 |
| 1100 | 12 | 110100 | 52 | 3 |
| 1101 | 13 | 110001 | 49 | 2 |
| 1110 | 14 | 110010 | 50 | 3 |
| 1111 | 15 | 101001 | 41 | 4 |
29.3.3 Protocols
Frequency modulations
The user can select the wanted modulation through the MOD0_CONFIG[22:20] = MOD_TYP[2:0] bit field:
- • MOD_TYP = 000: 2-FSK
- • MOD_TYP = 001: 4-FSK
- • MOD_TYP = 010: 2-GFSK
- • MOD_TYP = 011: 4-GFSK
Figure 275. Transmission path for 2-(G)FSK modulation

Figure 276. Transmission path for 4-(G)FSK modulation

In transmission the user must configure:
- • PA_MODE = 00 or 10 (in the PA_CONFIG register (PA_CONFIG) register)
- • (Recommended) PA_CONFIG[14] = PA_RAMP_EN to have a power ramp-up at the beginning of the Tx and a PA ramp down at the end of the TX
Note: To achieve reliable performance in reception, the PREAMBLE and the SYNC word should always be mapped on outer constellation points (+FDEV / -FDEV). Refer to the Symbol mapping paragraph concerning SYNC word additional option.
Frequency deviation
For frequency modulation 2-(G)FSK and 4-(G)FSK, the frequency deviation can be tuned in wide range that depends on the \(f_{xo}\) (XTAL frequency) according the following formula:
Equation 1 - Frequency deviation in (G)FSK modulation
with:
B:
- – 4 for the high band (corresponding to SYNTH_FREQ[30] = BS = 0)
- – 8 for the low band (corresponding to SYNTH_FREQ[30] = BS = 1)
FDEV_E and FDEV_M are bit fields of the dynamic MOD1_CONFIG register (MOD1_CONFIG).
Note: Recommendation for FDEV range (to provide a rough rule to help the user):
- • for data rate (DR) ≥ 3kbit/s, use FDEV = DR / 2
- • for data rate (DR) < 3kbit/s, use FDEV = DR
Symbol mapping
The frequency deviation programmed corresponds to the deviation of the outer constellation symbols.
For the 4-(G)FSK modulation, the deviation of the inner symbols is 1/3 and 4 options are available.
Furthermore, since the payload is normally arranged in bytes, the arrangement can change the mapping for both 2-(G)FSK and 4-(G)FSK modulations, by using the FOUR_GFSK_CONST_MAP (in the MOD0_CONFIG register (MOD0_CONFIG) register), in the following way:
Table 109. Constellation mapping for 2-(G)FSK
| Format | Symbol | FOUR_GFSK_CONST_MAP | |||
|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | ||
| 2-(G)FSK | 0 | -FDEV | -FDEV | +FDEV | +FDEV |
| 1 | +FDEV | +FDEV | -FDEV | -FDEV | |
Table 110. Constellation mapping for 4-(G)FSK
| Format | Symbol | FOUR_GFSK_CONST_MAP | |||
|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | ||
| 4-(G)FSK | 00 | -FDEV/3 | -FDEV | +FDEV/3 | +FDEV |
| 01 | -FDEV | -FDEV/3 | +FDEV | +FDEV/3 | |
| 10 | +FDEV/3 | +FDEV | -FDEV/3 | -FDEV | |
| 11 | +FDEV | +FDEV/3 | -FDEV | -FDEV/3 | |
This mapping is not optimal since the resulting SYNC word is very short and this may cause several false detection problems. For this reason, a specific control bit allows selecting a 2-(G)FSK like treatment on SYNC word mapping by using only +/-Fdev, keeping the rest of the frame in 4-(G)FSK mapping. This option is activated by setting the PCKT_CTRL[31] = FORCE_2FSK_SYNC_WORD bit.
Example: a 16-bit SYNC = 0x8888 is output by the transmitter (and decoded by the receiver) as 11010101 11010101 11010101 11010101 when the option is active and the selected constellation mapping is 0.
Furthermore, an option to swap the symbols is available for the 4-(G)FSK modulation using the FOUR_FSK_SYM_SWAP bit in the PCKT_CTRL register (PCKT_CTRL) as follows:
- • FOUR_FSK_SYM_SWAP = 0:
- – S₀ = ⟨b₇b₆⟩
- – S₁ = ⟨b₅b₄⟩
- – S₂ = ⟨b₃b₂⟩
- – S₃ = ⟨b₁b₀⟩
- • FOUR_FSK_SYM_SWAP = 1:
- – S₀ = ⟨b₆b₇⟩
- – S₁ = ⟨b₄b₅⟩
- – S₂ = ⟨b₂b₃⟩
- – S₃ = ⟨b₀b₁⟩
Note: The symbol swapping applies only on the PAYLOAD of the frame (PREAMBLE, SYNC, LENGTH when present, CRC and POSTAMBLE are not swapped).
Gaussian filter
In 2-GFSK or 4-GFSK mode, the Gaussian filter BT product can be set by using the register BT_SEL to 1 or 0.5, using the BT_SEL bit in the dynamic MOD0_CONFIG register (MOD0_CONFIG).
The Gaussian filtering is implemented by poly-phase filtering with eight taps per symbol time. In order to further smooth the filter shape and improve spectral shaping, the output of the filter can be linearly interpolated by setting the register MOD_INTERP_EN in the PCKT_CTRL register (PCKT_CTRL).
The mathematical interpolation factor applied to each sample of the Gaussian filter output depends on the DATARATE_E[3:0] bit field in the MOD0_CONFIG register (MOD0_CONFIG):
- • DATARATE_E ≤ 5: x 64,
- • 6 ≤ DATARATE_E ≤ 10: automatically scaled as
- • 11 ≤ DATARATE_E: interpolation is disabled
Note: The actual interpolation factor achieved may be limited by the minimal frequency resolution of the frequency synthesizer.
ISI cancellation for 4-(G)FSK
Since the 4-(G)FSK modulation format strongly suffers from the effect of inter symbol interference, an ISI cancellation equalizer has been introduced in the demodulator. An equalizer can be enabled, by using AS_EQU_CTRL[1:0] bit field in the AS_QI_CTRL register (AS_QI_CTRL) register, with two modes: single pass equalization and dual pass equalization. The best performance is normally achieved using the dual pass equalizer.
Direct Sequence Spectrum Spreading (DSSS)
The Direct Sequence Spectrum Spreading aims at reducing overall signal interference. The principle is to make the transmitted signal bandwidth wider than the information bandwidth. The information bandwidth is restored in the receiver while the unintentional and intentional interference is reduced.
The MR_SubG IP embeds a DSSS mode with several spread factors and associated code sequences as described in the table below. This mode can be used only for the 2-(G)FSK transfers.
Note: The DSSS must not be activated with another coding feature (managed through PCKT_CTRL[22:21] = CODING_SEL[1:0]).
Table 111. DSSS codes
| Code | Binary sequence | Spread Factor (SF) | Spread exponent | Correlation gain |
|---|---|---|---|---|
| 0x03 | 0011 | 4 | 2 | 4 |
| 0x8D | 1000 1101 | 8 | 3 | 8 |
| 0x6BC4 | 0110 1011 1100 0100 | 16 | 4 | 16 |
| 0x0A60E457B | 1010 0110 0000 1110 0100 0101 0111 1011 | 32 | 5 | 32 |
| 0x540FBCEB0B8DA44D | 0101 0100 0000 1111 1011 1100 1110 1011 0000 1011 1000 1101 1010 0100 0100 1101 | 64 | 6 | 56 |
For each data bit, the complete spreading code is used to multiple (XORed) the data, so for each data bit, the spread or expanded signal consists of n bits where n is the spreading factor (the n-bit signal is called chip).
In transmission, the spreading is done LSB first regarding the binary sequence value in the table above. In reception, the despreading is done MSB first.
Example of transmission using SF=8 with data rate programmed to be 38.4ksps:
- • '0' is sent on the air as 1-0-1-1-0-0-0-1
- • '1' is sent on the air as 0-1-0-0-1-1-1-0
- • each binary sequence coded bit is sent every 26.04 μs (38.4 kbit/s rate) so one bit (before coding) is transmitted in 8 x 26.04 μs which means the original message is transmitted with DR = programmed data rate and SF= spread factor
Note: The chip coding sequence is not standard: when the DSSS mode is enabled on a transmission on the MR_SubG IP, the user needs a MR_SubG IP to be able to decode it on receiver side.
The feature can be enabled through the DSSS_EN bit in the Global static DSSS_CTRL register.
On transmitter side, when DSSS_CTRL[7] = DSSS_EN = 1:
- • the only programmable parameter is the Spreading Factor through DSSS_CTRL[6:4] = SPREADING_EXP[2:0] bit field
On receiver side, when DSSS_CTRL[7] = DSSS_EN = 1, several parameters must be programmed:
- • the Spreading Factor through DSSS_CTRL[6:4] = SPREADING_EXP[2:0] bit field
- • the Acquisition window through DSSS_CTRL[3:0] = ACQ_WINDOW[3:0] bit field
- • the Acquisition threshold through DSSS_CTRL[15:10] = ACQ_THR[5:0] bit field
- • the Acquisition hits through DSSS_CTRL[9:8] = ACQ_HITS[1:0] bit field
During the acquisition process the received signal preamble is correlated with the expected spreading sequence to determine the correct alignment between the received signal and the local sequence.
The two sequences are considered aligned when the correlation is strictly above a programmable threshold. Since the maximum correlation is equal to the spreading factor, the value of ACQ_THR[5:0] must be ≤ SF-1.
Setting ACQ_THR[5:0] at a lower value (for example, SF-3) may help the acquisition process in case of very low signal-to-noise ratio allowing for some chip errors in the correlation.
Two additional parameters are used to confirm the acquisition: ACQ_HITS[1:0] and ACQ_WINDOW[3:0]; in particular, in order to declare the acquisition valid, there must be ACQ_HITS[1:0]+1 valid correlation peaks in an observation window of (ACQ_WINDOW[3:0] + 1) x SF received chips
Amplitude modulation (ASK/OOK)
The user can select the wanted modulation through the MOD0_CONFIG[22:20] = MOD_TYP[2:0] bit field:
- • MOD_TYP = 101:ASK/OOK
The ASK or OOK selection (at transmission level) depends on the value chosen for the PA_LEVEL0 bit field:
- • if PA_LEVEL0[7:0] = 0, then OOK modulation
- • if PA_LEVEL0[7:0] > 0, then ASK modulation
The 0/1 mapping can be reversed by setting the MOD0_CONFIG[25:24] = FOUR_GFSK_CONST_MAP bit field to any value other than zero.
For transmission
Figure 277. Transmission path for ASK/OOK modulation

Control signal for PA { bit 0: turn off the PA (OOK) or turn on with a defined minimum power (ASK)
bit 1: turn the PA on with a defined maximum power
data → Digital modulator → PA →
FREQ SYNTH
Control signal for SYNTH = keep constant frequency
MSv58311V1
The analog power amplifier embeds a filter with a cut-off frequency that can be programmed depending on the data rate through the PA_FC[1:0] bit field in the ADDITIONAL_CTRL register (ADDITIONAL_CTRL).
Table 112. PA Bessel filter programming
| PA_FC[1:0] | Cut-Off frequency (kHz) | Max Data Rate (kbit/s) |
|---|---|---|
| 00 | 12.5 | 16 |
| 01 | 25 | 32 |
| 10 | 50 | 62.5 |
| 11 | 100 | 125 |
PA_MODE = 01
The PA controller can be programmed in FIR mode. This mode has been created especially for the ASK/OOK modulation in order to reduce bandwidth occupancy.
- • set the PA_CONFIG[7] = ASK_OOK_EN
- • program the PA_LEVEL0[7:0] and the PA_LEVEL7[7:0] bit fields to indicate respectively power value for symbol = 0 and for symbol = 1
- • ensure the PA_CONFIG[6] = PA_INTERP_EN = 0
- • (recommended) set the PA_CONFIG[14] = PA_RAMP_EN to activate the power ramp down feature (adds one 0 symbol at the end of the transmission to manage a power ramp down)
The FIR can be programmed in 3 different configurations through the PA_REG register (PA_REG):
- • filtering (default): filtering mode between PA_LEVEL0 and PA_LEVEL7
- • ramping: ramping from “internal computed level1” to PA_LEVEL7 by repeating twice “internal computed level1” and PA_LEVEL7
- • switching: direct switching between PA_LEVEL0 and PA_LEVEL7 (no smooth transition)
PA_MODE = 00 or 10
The PA controller can be programmed in Spirit1 Legacy mode (00) or in Linear mode (10). The only difference between those 2 options is the unit to program the PA power steps:
- • PA_MODE = 00 (Spirit1 Legacy): the PA power values associated to each step must be entered in dBm unit using a value between 0 and 0x51 using the PA_LEVELx[7:0] bit fields (0x51 is the max power, then each -1 corresponds to -0.5 dB)
- • PA_MODE = 10 (Linear mode): the PA power values associated to each step must be entered in linear unit using a value between 0 and 0xFF using the PA_LEVELx[7:0] bit fields
Then for those 2 modes:
- • (Recommended) PA_CONFIG[14] = PA_RAMP_EN to have a power ramp-up at the beginning of the Tx and a PA ramp down at the end of the TX
- • (Recommended) PA_CONFIG[6] = PA_INTERP_EN to improve the spectral emission mask. When set, the power values specified in the PA_LEVELx bit fields are linearly interpolated by the modulator before being applied to the PA. See the note below.
- • Configure the intermediary step of power ramping through PA_LEVEL_3_0 register (PA_LEVEL_3_0) and PA_LEVEL_7_4 register (PA_LEVEL_7_4). It is also possible to tune:
- – the number of steps can be customized through the PA_CONFIG[4:2] = PA_LEVEL_MAX_INDEX bit field
- – the step width through the PA_CONFIG[1:0] = PA_RAMP_STEP_WIDTH bit field.
Note: The interpolation factor of each ramp step is:
- • 64 when MOD0_CONFIG[19:16] = DATARATE_E < 5,
- • automatically scaled to \(64 / 2^{(DATARATE\_E - 5)}\) when \(5 \leq MOD0\_CONFIG[19:16] = DATARATE\_E < 11\)
- • automatically disabled when \(MOD0\_CONFIG[19:16] = DATARATE\_E \geq 11\)
For reception
The OOK/ASK demodulation is controlled by the OOK_PEAK_DECAY parameter in the RSSI_FLT register (RSSI_FLT) radio register. This parameter controls the speed at which the measured signal peak decays, the recommended value is 3.
Direct Polar TX mode
The user can select the Direct Polar TX modulation through the MOD0_CONFIG[22:20] = MOD_TYP[2:0] bit field:
- • MOD_TYP = 110: Polar TX
This function is suitable to implement differential binary phase shift keying modulation (DBPSK) as shown in the figure below:
Figure 278. DBPSK modulation emulation through Polar TX mode

For this reason, this mode allows driving the SYNTH and the PA at a very low level.
Figure 279. Transmission path for Polar TX modulation

The modulator samples byte couples from the RAM Data Buffer with a rate related to the programmed Data Rate (sampling rate = 8 x DATARATE).
The first byte of the RAM Data Buffer couple drives the frequency synthesizer to obtain an instantaneous output frequency deviation.
Equation 2 - Frequency deviation in polar mode
with:
- • \(f_{\text{dev\_programmed}}\) = frequency deviation programmed through FDEV_M[7:0] and FDEV_E[3:0] bit field of the MOD1_CONFIG register (MOD1_CONFIG) register.
- • \(f_{\text{dev\_fifo\_sample}}\) = first byte of the couple sampled in the RAM data buffer. The \(f_{\text{dev\_fifo\_sample}}\) is interpreted as a 2-complement 8-bit number, thus it can be either a positive or a negative value.
Equation 3 - Instantaneous frequency in polar mode
The second byte of the RAM Data Buffer couple drives the PA giving an instantaneous output power. The output power is generated according to the PA_LEVELx values following the same codes as for other modulations.
The user must program the PA_MODE to “00” or “10” (depending on wish to control PA in log scale or linear scale).
Test modes
Some additional modes are embedded in the MR_SubG IP to be used for test and validation purposes.
Continuous Wave
The device can be programmed to generate a continuous wave carrier without any modulation. In this way, the carrier is continuously transmitted until a SABORT command is sent to the device.
The user can select the CW mode through the MOD0_CONFIG[22:20] = MOD_TYP[2:0] bit field:
- • MOD_TYP = 111: CW
Warning: this MOD_TYP programming must be associated with a “free-running” TX mode , that is, a TX mode running until a SABORT command is issued like for instance direct through GPIO, PN mode or direct through buffer with PCKTLEN = 0.
PN mode
PN mode TX mode is mainly intended to perform spectrum measurement in the lab without the need of an external data source. Refer to the description of PN mode in Section 29.3.5: Transmission modes for details.
Frequencies and data rates
The digital part digital and the analog Radio IP together support several bands of frequencies and a large window of data rates.
Frequency bands
Table 113. Frequency bands
| Frequency bands (MHz) | VCO frequency (MHz) |
|---|---|
| 413 - 479 | 3304 - 3822 |
| 826 - 958 | |
| 398 - 464 | 3184 - 3712 |
| 159.2 - 185.6 |
The frequency carrier (\(f_c\)) is programmable through the SYNTH_FREQ register (SYNTH_FREQ) and the ADDITIONAL_CTRL register (ADDITIONAL_CTRL) register (dynamic registers) according to the following formula:
Equation 4 - Frequency carrier formula
with:
where \(f_{ref}\) = XO frequency (48 or 50 MHz, nominal = 48 MHz)
and B =
4 for the high band (corresponding to BS = 0 in the SYNTH_FREQ register (SYNTH_FREQ))
8 for the low band (corresponding to BS = 1 in the SYNTH_FREQ register (SYNTH_FREQ))
20 for the 169 MHz band device (associated to BS = 0 in the SYNTH_FREQ register (SYNTH_FREQ))
CH_SPACING[7:0] and CH_NUM[7:0] are bit field in the ADDITIONAL_CTRL register (ADDITIONAL_CTRL). Those 2 bit fields allow easy management of channel hopping around a targeted frequency carrier.
Data rates
The data rate specified in this section always applies to the on-the-air transmitted data (regardless coding selection).
The radio supports different data rates ranges depending on the chosen modulation as shown in the following table.
Table 114. Data rate range versus modulation
| Modulation | Data rate (kbit/s) | |
|---|---|---|
| Min | Max | |
| 2-(G)FSK | 0.1 | 300 |
| 4-(G)FSK | 0.2 | 600 |
| ASK/OOK | 0.1 | 125 |
| TX Polar mode | 0.1 | 100 |
(*): the data rate in this table is presented in kbits/s. So for 4-(G)FSK, it corresponds to a window from 0.1 to 300 ksymbols/s (unit of programming in the register).
The data rate is programmable through the dynamic MOD0_CONFIG register (MOD0_CONFIG) according to the following formula:
Equation 5 - Data rate programming formula (in ksps)
if DATA_RATE_E = 0
if DATA_RATE_E > 0
if DATA_RATE_E = 15 (jitter free mode)
with \(f_{\text{sys}}\) = digital fast clock provided by the SoC (16 MHz nominal)
RX channel filter bandwidth
The channel filter is the very last stage of the decimation filtering. The CHF is in charge to remove excess bandwidth to fine adjusting spectral occupation and optimize noise performance for the incoming demodulator block. The channel filter is to be intended as double-sided band.
The bandwidth of the receiver channel filter is programmable from 1.04 kHz to 1600 kHz. The configuration is programmed through the CHFLT_E[3:0] (represented by E in the table
below) and CHFLT_M[3:0] (represented by M in the table below) bit fields of the dynamic MOD1_CONFIG register (MOD1_CONFIG) according to the following table.
Table 115. Channel filter bandwidth (in kHz) programming
| M | E=0 | E=1 | E=2 | E=3 | E=4 | E=5 | E=6 | E=7 | E=8 | E=9 |
|---|---|---|---|---|---|---|---|---|---|---|
| M=0 | 1600 | 800 | 400 | 200 | 100 | 50 | 25 | 12.5 | 6.125 | 3.125 |
| M=1 | 1510 | 755 | 377 | 188 | 94.4 | 47.2 | 23.6 | 11.8 | 5.91 | 2.94 |
| M=2 | 1422 | 711 | 355 | 178 | 88.9 | 44.4 | 22.2 | 11.1 | 5.55 | 2.78 |
| M=3 | 1332 | 666 | 333 | 166 | 83.3 | 41.6 | 20.8 | 10.4 | 5.2 | 2.6 |
| M=4 | 1244 | 622 | 311 | 155 | 77.8 | 38.9 | 19.4 | 9.7 | 4.87 | 2.4 |
| M=5 | 1154 | 577 | 288 | 144 | 72.2 | 36.1 | 18.1 | 9 | 4.5 | 2.2 |
| M=6 | 1066 | 533 | 266 | 133 | 66.7 | 33.3 | 16.6 | 8.3 | 4.1 | 2.1 |
| M=7 | 976 | 488 | 244 | 122 | 61.1 | 30.5 | 15.3 | 7.6 | 3.8 | 1.9 |
| M=8 | 888 | 444 | 222 | 111 | 55.6 | 27.8 | 13.9 | 6.9 | 3.5 | 1.7 |
| M=9 | 800 | 400 | 200 | 100 | 50 | 25 | 12.5 | 6.25 | 3.12 | 1.56 |
| M=10 | 755.6 | 377.8 | 188.9 | 94.4 | 47.2 | 23.6 | 11.8 | 5.9 | 2.95 | 1.48 |
| M=11 | 711.1 | 355.6 | 177.8 | 88.9 | 44.4 | 22.2 | 11.1 | 5.56 | 2.78 | 1.39 |
| M=12 | 666.7 | 333.3 | 166.7 | 83.3 | 41.7 | 20.8 | 10.42 | 5.21 | 2.60 | 1.3 |
| M=13 | 622.2 | 311.1 | 155.6 | 77.8 | 38.9 | 19.4 | 9.72 | 4.86 | 2.43 | 1.22 |
| M=14 | 577.8 | 288.9 | 144.4 | 72.2 | 36.1 | 18.06 | 9.03 | 4.51 | 2.26 | 1.13 |
| M=15 | 533.3 | 266.7 | 133.3 | 66.7 | 33.3 | 16.67 | 8.33 | 4.17 | 2.08 | 1.04 |
| Output sample frequency (FS) out of the complete chain (in kHz) | ||||||||||
| - | 2000 | 1000 | 500 | 250 | 125 | 62.5 | 31.25 | 15.625 | 7.8125 | 3.90625 |
The bandwidth values are intended as double-sided.
The actual filter bandwidth corresponds to a MR_SubG IP clock at 16 MHz. For any other digital clock frequency, \(f_{clk}\), the channel filter bandwidth can be calculated by multiplying the values in the table above by the factor \(f_{clk}/16000000\).
The channel filter bandwidth must be adapted to the targeted data rate (and FDEV for frequency modulations).
Guideline values for CHF (to provide a rough rule to help the user) are:
- • in (G)FSK modulations: CHF = 2 × FDEV+DR (in kbit/s)
- • in ASK/OOK modulation: CHF = 3 × DR (in kbit/s)
Intermediate frequency
The intermediate frequency (IF) can be programmed through the IF_CTRL register (IF_CTRL) register according to the following formula:
Equation 6 - Intermediate frequency formula
with
_xx: _ANA or _DIG
\(f_{SYS}\): digital fast clock provided by the SoC, supposed to be XO frequency / 3 (16 MHz nominal)
However, the user is supposed to limit the usage to 2 reference values depending on the channel filter bandwidth:
- • IF = 300 kHz (recommended when CHF < 400 kHz)
- • IF = 600 kHz (recommended when CHF > 400 kHz)
The register offers the possibility to program separately:
- • the IF_OFFSET_ANA: used by the SYNTH interface block to generate the VCO frequency when in reception
- • the IF_OFFSET_DIG: used by the demodulator
Note: The formula for IF_OFFSET_DIG is the same for any band.
However, this is planned for the AAF calibration operation and in the normal applicative usage of the device, both values are supposed to be aligned.
In addition, the IF_CTRL register (IF_CTRL) contains an IF_MODE bit used by the RFSUBG analog IP to select the AAF filter bandwidth:
- • IF_MODE = 0: AAF bandwidth = 684 kHz -> to be selected when IF = 300 kHz
- • IF_MODE = 1: AAF bandwidth = 1.55 MHz -> to be selected when IF = 600 kHz
29.3.4 Transmission and reception modes
The MR_SubG IP proposes several modes for transmission and reception. These modes are exclusive and are described in the following sections.
29.3.5 Transmission modes
The TX mode selection is done through the TX_MODE[1:0] bit field in the PCKT_CTRL register (PCKT_CTRL).
The table below summarizes the available modes.
Table 116. TX mode summary
| TX_MODE[1:0] | Mode name | Description | TX ending |
|---|---|---|---|
| 00 | Normal mode | Only payload is provided through RAM buffers Rest of the frame built from configuration registers (PREAMBLE, SYNC, CRC...) | Automatic |
| 01 | Direct through buffers | Full bit stream (including PREAMBLE, SYNC, CRC...) to be provided through RAM buffers | If PCKTLEN ≠ 0: Automatic (except if TX Polar modulation) If PCKTLEN = 0: SABORT command needed |
| 10 | Direct through GPIO | Full bit stream (including PREAMBLE, SYNC, CRC...) to be provided serially through the TX DATA GPIO | SABORT command needed |
| 11 | PN mode | Internal PN generator sends a polynomial bit stream on the antenna. Test purpose mode to perform spectrum measurement in the lab. | SABORT command needed |
Normal mode
This mode is selected with TX_MODE[1:0] = “00”.
In Normal mode:
- the framer builds the PREAMBLE, the SYNC word, the LENGTH (if VARIABLE length mode) and the CRC using the information from the configuration registers and sends them on the air,
- the PAYLOAD is read from the RAM through the DBM block,
- the TX command stops automatically when all the elements of the frame have been transmitted.
Note: This mode is the only one supposed to be used with 802.15.4 packet format.
Even if PCKTLEN=0, the radio automatically prefetches 4 words in RAM (that won't be used).
Direct through buffer mode
This mode is selected with TX_MODE[1:0] = “01”.
In Direct through buffer mode:
- • the framer does not build any element of the frame sent on the antenna,
- • all the bits sent on the air come from the RAM through the DBM block,
- • the TX command:
- – stops automatically when the number of bytes sent correspond to the PCKTLEN bit field value if not null
- – must be stopped using a SABORT command when the PCKTLEN bit field is null
Note: If the chosen modulation is TX Polar, only a SABORT can stop the TX, whatever the PCKTLEN value.
In this mode, the SW is responsible to provide the full bit stream including a PREAMBLE, SYNC word, CRC, LENGTH (if to be added on the frame) in the RAM.
The direct modes intended to completely bypass the automatic packet handler, in order to give the user a maximum flexibility in the choice of frame formats. This allows building a homemade protocol that may not be achieved despite all the programmable options.
Direct through GPIO mode
This mode is selected with TX_MODE[1:0] = “10”.
In Direct through GPIO mode:
- • the framer does not build any element of the frame sent on the antenna,
- • all the bits sent on the air comes from an I/O of the device. The external world has to provide serially the bits to transmit on an I/O. In parallel an output TX clock signal is provided on another I/O of the device to indicate when to provide a new bit.
- • data are sampled by the device on the rising edge of the provided TX clock; it is the responsibility of the external data source to provide a stable input on the rising edge.
- • the TX command must be stopped using a SABORT command
In this mode, the SW is responsible to inject the full bit stream including a PREAMBLE, SYNC word, CRC, LENGTH (if needed in the frame) through the TX GPIO.
This mode allows a bypass of the automatic packet handler and offers a maximum flexibility to transmit a homemade protocol generated from an external processor / device.
PN mode
This mode is selected with TX_MODE[1:0] = “11”.
PN TX mode is mainly intended to perform spectrum measurement in the lab without the need of an external data source. When this mode is enabled, the framer block is bypassed and an internal PRBS9 or PRBS15 generator is used to feed the digital modulator.
In this mode, these data are continuously modulated until a SABORT command is sent to the device.
The selection of the PRBS polynomial is done through PN_SEL bit in the static PCKT_CTRL register (PCKT_CTRL).
The polynomial generators are:
- • for PN9: x⁹+x⁵+x⁰ with the initial state equal to 0x1FF
- • for PN15: x¹⁵+x¹⁴+1 with initial state equal to 0x7FFF
29.3.6 Reception modes
The RX mode selection is done through the RX_MODE[2:0] bit field in the PCKT_CTRL register (PCKT_CTRL) register.
Table 117 summarizes the available RX modes.
Table 117. RX mode summary
| RX_MODE[2:0] | Mode name | Description | RX ending |
|---|---|---|---|
| 000 | Normal mode | Only payload is stored into the RAM buffers. CRC and packet length are readable in dedicated status registers. | Automatic |
| 001 | Direct through buffers | Full bit stream (including noise when no signal on antenna, PREAMBLE, SYNC, CRC...) is stored into the RAM buffers. | SABORT command needed |
| 010 | Direct through GPIO | Full bit stream (including noise when no signal on antenna, PREAMBLE, SYNC, CRC...) is provided serially through the RX DATA GPIO | SABORT command needed |
| 011 | I/Q sampling | Raw I/Q sampling taken at the output of the Channel filter inside the demodulator are stored in RAM. PREAMBLE and SYNC word detections are active in parallel. | SABORT command needed |
| 100 | frequency/amplitude detector sampling | Raw data taken at the output of the frequency/amplitude detector inside the demodulator (detection of the instantaneous frequency/amplitude changes) are stored in RAM. | SABORT command needed |
| 101 | soft bits sampling | Raw data taken at the output of the clock recovery and frequency correction blocks are stored in RAM. | SABORT command needed |
The following figure represents a simplified RX data path showing where the different reception mode pick-up the samples
Figure 280. Simplified RX data path

graph LR
Antenna((Antenna)) --> RF[RF Front End]
RF --> ADC[IF ADC]
ADC --> F1[Fixed filtering and decimation stage (1/4)]
F1 --> DM[Digital Mixer]
DM --> F2[Fixed filtering and decimation stage (1/2)]
F2 --> F3[Variable filtering and decimation stages (1/2^CHFILTER_E)]
F3 --> CF[Channel Filter]
CF --> IQ[I/Q Samples]
CF --> FD[Frequency Detector]
FD --> STA[Symbol Timing & AFC]
STA --> SoftBits[Soft Bits]
SoftBits --> FEC[Slicing / FEC]
FEC --> PFD[Packed Fields Decoding]
PFD --> NormalMode[Normal mode]
STA --> DirectBuffer[Direct to Buffer]
A few pieces of information can be extracted/summarized from the figure above concerning the different modes:
- • I/Q samples are zero-IF “raw” data
- • Frequency/amplitude detector samples provide the instantaneous frequency/amplitude measured deviation of the received signal
- • Soft bits go through the clock recovery and AFC block: those samples provide the optimal sampling point as determined by the clock recovery block and, in case of (G)-FSK modulation, the measured frequency deviation is (ideally) centered around zero thanks to the AFC correcting the Carrier Frequency Offset.
- • Direct through Buffer or Direct through GPIO modes samples do not cross the Viterbi/FEC decoding block: if received samples are FEC coded, then SW post-processing has to manage the decoding.
- • Normal mode samples are fully managed by the RX digital chain and can be used directly by the SW.
Normal mode
This mode is selected with RX_MODE[2:0] = “000”.
In Normal mode:
- • the demodulator starts a PREAMBLE detection and once detected, a SYNC word detection
- • the deframer manages the length information and computes the CRC (if CRC mode is not 0) with comparison between the received CRC and the calculated CRC
- • the PAYLOAD is written into the RAM through the DBM block
- • the RX command stops automatically when all the elements of the frame have been received or on a RX timeout if activated.
Note: This mode is the only one supposed to be used with 802.15.4 packet format.
Direct through buffer mode
This mode is selected with RX_MODE[2:0] = “001”.
In Direct through buffer mode:
- • the demodulator does not try to detect any PREAMBLE nor SYNC word and provides all received bits
- • the deframer does not treat any length nor CRC information
- • all the received bits are written into the RAM through the DBM block once RX state is effective
- • the RX command must be stopped using a SABORT command.
In this mode, the SW is responsible to post-process the bit stream stored in RAM to detect if the frame is valid, if this device is the targeted recipient, etc.
The direct modes intended to completely bypass the automatic packet handler, in order to give the user a maximum flexibility in the choice of frame formats. This allows building a homemade protocol that may not be achieved despite all the programmable options.
Note: No Viterbi/FEC decoding is applied even if PCKT_CTRL[22:21] = CODING_SEL[1:0] = 01.
Direct through GPIO
This mode is selected with RX_MODE[2:0] = “010”.
In Direct through GPIO mode:
- • the demodulator does not try to detect any PREAMBLE nor SYNC word and provides all received bits
- • the deframer does not treat any length nor CRC information
- • all the bits received from the air are sent to an I/O of the device once RX state is effective. In parallel an output RX clock (toggling at data rate) is provided on a GPIO to allow the synchronization of an external sink
- • data are updated by the device on the rising edge of the provided RX clock signal
- • the RX command must be stopped using a SABORT command.
In this mode, the PREAMBLE, SYNC word, CRC, LENGTH (if present in the frame) are also provided through the RX GPIO.
This mode allows a bypass of the automatic packet handler and offers a maximum flexibility to receive a homemade protocol generated that is post-process by an external processor / device.
Note: No Viterbi/FEC decoding is applied even if PCKT_CTRL[22:21] = CODING_SEL[1:0] = 01.
I/Q sampling mode
This mode is selected with RX_MODE[2:0] = “011”.
This mode allows writing in RAM some raw I/Q sampling taken at the output of the Channel filter inside the demodulator.
In I/Q sampling mode:
- • the demodulator provides all received bits once RX is effective
- • in parallel, the demodulator starts a PREAMBLE detection and once detected, a SYNC word detection
- • the deframer does not treat any length nor CRC information
- • the I/Q samples are taken just after the channel filter of the demodulator as zero-IF signed data
- • the I/Q samples are written in RAM as 16-bit I and 16-bit Q:
- – in cut 1.x, RAM word filled as byte0 = I[15:8], byte1 = I[7:0], byte2= Q[15:8], byte3 = Q[7:0]
- – in cut 2: RAM word filled as byte0 = I[7:0], byte1 = I[15:8], byte2= Q[7:0], byte3 = Q[15:8]
- • the samples are produced at a rate that depends on the selected channel filter according to the following formula
- • the SW is responsible to post-process those raw data
- – the value is linked to the received signal power through a scaling factor which depends on the current AGC gain setting and on an additional internal scale factor. Conversion to μV is not possible since this latter scaling factor is not accessible to the SW.
- • the RX command must be stopped using a SABORT
As the data has a 32-bit granularity (= 16-bit of I + 16-bit of Q), the Data Buffer size must be a multiple of 4. In any case, the HW writes 32-bit so if the Data Buffer size is not modulo 4, the rest of the RAM address after the Data Buffer is overwritten by the Radio.
Note: The AGC activity may impact the amplitude result in this mode when enabled:
- • the amplitude may do some 6 dB step down/up when the received RF signal cross an AGC threshold step,
- • with default setting, the AGC locks (stop to adapt to the signal power) once the SYNC word is detected.
Frequency detector direct mode
This mode is selected with RX_MODE[2:0] = “100”.
This mode allows writing in RAM the instantaneous frequency deviation of the received signal when the receiver is configured in any FSK mode or the instantaneous amplitude of the received signal when the receiver is configured in OOK/ASK.
In Frequency detector direct mode:
- • the demodulator provides all received bits once RX is effective
- • in parallel, the demodulator starts a PREAMBLE detection and once detected, a SYNC word detection
- • the deframer does not treat any length nor CRC information
- • each frequency/amplitude sample is coded as 2's complement byte
- • the samples are produced at a rate that depends on the selected channel filter according to the following formula
- • the SW is responsible to post-process those raw data
- • the RX command must be stopped using a SABORT
For FSK modulations, the numerical value of the samples stored in RAM is linked to the actual frequency deviation as:
Which means:
For ASK modulation, the situation is similar to the IQ samples: there is an internal scaling function that adapts the dynamic range at the receiver input to the dynamic range on 8 bits so cannot be converted directly to μV or dBm. The user can refer to the shape and to min/max values to extract the 0 or 1 bit estimation.
Note: The AGC activity may impact the amplitude result in this mode when enabled:
- • the amplitude may do some 6 dB step down/up when the received RF signal cross an AGC threshold step,
- • with default setting, the AGC locks (stop to adapt to the signal power) once the SYNC word is detected.
Soft symbols direct mode
This mode is selected with RX_MODE[2:0] = "101".
This mode allows writing in RAM the “soft” bits at the output of the demodulator. The “soft” bits values represent the demodulated signal at the output of the clock recovery and frequency correction blocks before hard decision or FEC decoding.
In soft symbols direct mode:
- • the demodulator provides all received bits once RX is effective
- • in parallel, the demodulator starts a PREAMBLE detection and once detected, a SYNC word detection
- • the deframer does not treat any length nor CRC information
- • each soft bit is coded as a 2's complement byte
- • the samples are produced at symbol rate
- • the SW is responsible to post-process those raw data
- • the RX command must be stopped using a SABORT
For FSK modulations, the numerical value of the samples stored in RAM is linked to the actual frequency deviation and is similar to the frequency detector mode, that is:
Which means:
The main difference with frequency detector RX mode is that:
- • the frequency deviation is provided at the optimised sampling point thanks to clock recovery algorithm
- • the frequency deviation values are centered around zero thanks to the Carrier Frequency Offset correction done by the AFC algorithm (when AFC is enabled)
For ASK modulation, the situation is similar to the IQ samples: there is an internal scaling function that adapts the dynamic range at the receiver input to the dynamic range on 8 bits so cannot be converted directly to μV or dBm. The user can refer to the shape and to min/max values to extract the 0 or 1 bit estimation.
Note: The AGC activity may impact the amplitude result in this mode when enabled: the amplitude may do some 6 dB step down/up when the received RF signal cross an AGC threshold step, with default setting, the AGC locks (stop to adapt to the signal power) once the SYNC word is detected.
29.3.7 TX power control and configuration information
The Sub-GHz radio can be configured to optimize the efficiency of the power amplifier for three different the output power levels: +10 dBm, 14 dBm and +20 dBm for long distance emission. Each is frozen with a dedicated BOM configuration on the board:
- the chosen / implemented topology must be specified in the PA_CONFIG[9:8] = PA_DRV_MODE[1:0] bit field
- PA_DRV_MODE[1:0] = “01” → TX→ up to 10 dBm
- PA_DRV_MODE[1:0] = “10” → TX HP→ up to 14/16 dBm
- PA_DRV_MODE[1:0] = “11” → TX + TX HP→ up to 20 dBm with VBatt ≥ 2.4V
Note: For PA_DRV_MODE[1:0]=11 and frequency modulation, it is recommended to set the PA_REG[3] = PA_DEGEN_ON bit to improve the power consumption and efficiency. This configuration is not adapted for amplitude modulation.
The figures below show the three topologies and the associated connections to make on the board.
Figure 281. TX and TX HP pin connections, TX PA drive mode, VBATT > 1.7 V

The diagram illustrates the power supply and output configuration for the TX drive mode when VBATT > 1.7 V. It shows a power management chain starting from VBATT > 1.7 V, which feeds into an SMPS (Switched Mode Power Supply) with an efficiency η=90%. The output of the SMPS is VSMPS = 1.4 V. This voltage is used to power an LDO RF, which provides VDD=1.2 V to the DRIVE x1 block. The DRIVE x1 block contains an LVT (Low Voltage Transistor) and is connected to a Common power control 3.3 V block. The output of DRIVE x1 is connected to the TX pin, which is then connected to a BOM (Board of Materials) block, resulting in a 10 dBm output. The DRIVE x2 block, also containing an LVT, is shown with its TXHP outputs in HiZ (High Impedance) and not connected. Extra diodes are indicated near the DRIVE x2 block. The diagram is labeled MSv58433V1.
Figure 282. TX and TX HP pin connections, TX + TX HP PA drive mode, VBATT > 2.4 V

TX + TX HP drive mode
VBATT > 2.4 V
SMPS η = 90%
VSMPS = 2.2 V
LDO RF
VDD = 1.2 V
Common power control 3.3 V
DRIVE x1
LVT
TX
DRIVE x2
LVT
TXHP
Extra diodes
BOM HP+
20 dBm
MSv58435V1
Figure 283. TX and TX HP pin connections, TX HP PA drive mode, VBATT = 3.3 V

TX HP drive mode
VBATT = 3.3 V
SMPS η = 90%
LDO RF
VDD = 1.2 V
Common power control 3.3 V
DRIVE x1
LVT
TX output in HiZ
Not connected
DRIVE x2
LVT
TXHP
Extra diodes
BOM HP
14/16 dBm
MSv58436V1
29.3.8 Guidelines on registers configuration for standard RF
The MR_SubG IP offers a lot of flexibility to build any custom RF transfer. However, some HW implementation has been added to make some RF standard easy to build. This sub-chapter provides some guidelines on registers configuration to help building those RF standards with this radio IP.
802.15.4
This is the list of registers programming concerned/impacted by the 802.15.4 standard usage:
Packet format:
- • Select 802.15.4 format in PCKT_CTRL[0] = PCKT_FORMAT bit
SYNC word:
- • in Transmission:
- – if the FEC is enabled (see Coding/Interleave below): the HW sends the specified secondary SEC_SYNC word,
- – else, the HW sends the specified primary SYNC word.
- • in Reception:
- – the receiver detects / searches a match on both SYNC and SEC_SYNC words
Note: In both TX and RX, PCKT_CONFIG[3] = SECONDARY_SYNC_SEL bit is not considered by the HW when packet format is 802.15.4.
Length of the packet (excludes the PHR length and includes the CRC length):
- • in Transmission
- – the packet length is programmed in PCKTLEN_CONFIG[11:0] = PCKTLEN[11:0]
- • in Reception:
- – the packet length is decoded in the PHR of the received frame, the HW does not consider the PCKTLEN_CONFIG[11:0] = PCKTLEN[11:0] bit field
Note: In both TX and RX, PCKT_CONFIG[10] = LEN_WIDTH and PCKT_CONFIG[11] = FIX_VAR_LEN bits are not considered by the HW when packet format is 802.15.4
The CRC is calculated on MHR + MAC Payload bit fields and appended to the end of the payload in transmission or calculated and compared to the CRC part of the frame in reception.
The programming for CRC generation (in TX) / decode on the fly (in RX) follows the rules:
- • in Transmission
- – if CRC_MODE[1:0] = 0: no CRC inserted in the frame
- – else: CRC inserted in the frame depends on PCKT_CTRL[27] = FCS_TYP_4G bit
- FCS_TYP_4G = '0', then 32-bit CRC mode5
- FCS_TYP_4G = '1', then 13-bit CRC mode3
- – PCKT_CTRL[27] = FCS_TYP_4G
- defines the FCS bit value that is inserted in the PHR of the frame, regardless the CRC_MODE[1:0] bit field value
- – CRC_INIT static register must be programmed according to chosen CRC to fit the standard:
- if 2-byte CRC: CRC_INIT = 0x00000000
- if 4-byte CRC: CRC_INIT = 0xFFFFFFFF
- • in Reception
- – if CRC_MODE[1:0] = 0: no CRC checked in the received frame
- – else: CRC check depends on the FCS bit value in the frame
- FCS = '0', then 32-bit CRC mode5 expected
- FCS = '1', then 13-bit CRC mode3 expected
- – CRC_INIT static register must be programmed according to chosen CRC to fit the standard:
- if 2-byte CRC: CRC_INIT = 0x00000000
- if 4-byte CRC: CRC_INIT = 0xFFFFFFFF
- • Coding/Interleave:
- – In TX:
- Select FEC coding through PCKT_CTRL[22:21] = CODING_SEL[1:0]
- Select RSC or NRSC encoder through PCKT_CTRL[26] = FEC_TYPE_4G
- Enable or not interleave through PCKT_CTRL[25] = INT_EN_4G (this choice is considered by the HW only for frame with FEC active)
- – In RX:
- the receiver decides by HW if the FEC is active or not according to decoded synchro word (no FEC active if detected synchro word matches with the one defined in SYNC register / FEC active if the detected synchro word matches the one defined in the SEC_SYNC register)
- Select RSC or NRSC encoder through PCKT_CTRL[26] = FEC_TYPE_4G
- Enable or not interleave through PCKT_CTRL[25] = INT_EN_4G (this choice is considered by the HW only for frame with FEC active)
- – In TX:
Note: PCKT_CTRL[22:21] = CODING_SEL[1:0] bit field is not considered by the receiver
Whitening:
- – In TX: enable or not the whitening through PCKT_CTRL[11] = WHIT_EN
- – In RX: the receiver decodes the whitening information on the received PHR (DW bit) ; it does not consider the PCKT_CTRL[11] information.
- – Warning: the seed of the whitening PN9 algorithm is programmable in the PCKT_CTRL[20:12] = WHIT_INIT bit field.
in 802.15.4 standard, this initialization seed must be programmed to 0x1FF.
In any case (whatever the chosen seed), the SW is in charge to program the expected initialization value in the device in TX or in RX. - – Endianness:
The SYNC/SEC_WORD is output MSB first (bit 31 first of the register)
The PHR described in section 802.15.4 packet is output on the antenna as b0 first (MS bit) and b15 (L0 bit) last
MHR+MAC Payload: the bytes are read from the RAM and sent MSbit first (bit7 first on the antenna and bit0 last)
CRC: the CRC is output MSbit first.
Sigfox transmission
This sub-chapter indicates the registers programming concerned/impacted to manage a Sigfox TX transfer.
Modulation:
- • Select the TX Polar modulation in MOD0_CONFIG[22:20] = MOD_TYPE[2:0] bit field
PA configuration:
- • Select the PA configuration to be Spirit1 legacy or linear mode through PA_CONFIG[11:10] = PA_MODE[1:0] bit field
Packet format:
- • Select Basic format in PCKT_CTRL[0] = PCKT_FORMAT bit
CRC:
- • Select mode0 (no CRC) in PCKT_CONFIG[2:0] =CRC_MODE[2:0] bit field
Data management:
- • Build the Sigfox bits through RAM Data buffers, using the direct control of RF PLL and PA as described in section Direct Polar TX mode.
W-MBUS
This sub-chapter indicates the registers programming concerned/impacted to manage a W-MBUS RF transfer.
Figure 284. W-MBUS frame format

The diagram illustrates the W-MBUS frame format as a horizontal sequence of four colored blocks. From left to right, they are: a light blue block labeled 'Preamble', a dark blue block labeled 'Access Address', a medium blue block labeled 'Payload', and a magenta block labeled 'Postamble'.
Packet format:
- • Select Basic format in PCKT_CTRL[0] = PCKT_FORMAT bit
Access Address:
- • Define the access address value in the SYNC register
- • and its characteristics through PCKT_CONFIG[9] = SYNC_PRESENT and PCKT_CONFIG[8:4] = SYNC_LEN
CRC:
- • The recommendation is to compute the CRC at SW level and not to use the HW CRC.
- • Select mode0 in PCKT_CONFIG[2:0] = CRC_MODE[2:0]
Note: Main reason is that, if 3oo6 coding is selected, the CRC is calculated on encoded data and not on clear data
POSTAMBLE:
- • Define a POSTAMBLE through
- – PCKT_CONFIG[31:30] = POSTAMBLE_SEQ bit field
- – and PCKT_CONFIG[29:24] = POSTAMBLE_LENGTH bit field
Coding:
- • If needed, the 3oo6 coding can be enabled in PCKT_CTRL[22:21] = CODING_SEL[1:0]
The rest of the W-MBUS standard constraints must be built in SW.
29.4 Global registers
The Global registers block manages all the registers needed for the MR_SubG control except a few sets of registers targeting specific features like analog RF IP control and debug and test configuration (refer to Section 29.10: Radio register descriptions for details).
All the registers are accessible through an APB interface.
The Global registers block is also in charge of generating the MR_SubG IP interrupt as it contains the interrupt status register.
29.4.1 Register organization
The Global registers are grouped in several categories:
- • Static Configuration registers: read / write registers used to configure the radio transfer (modulation, preamble format...)
- • Dynamic Configuration registers: read / write registers used to configure the radio transfer (packet length, command to execute...)
- • Status registers: read-only registers providing status information linked to the radio blocks.
Note: Interrupt status registers are “read / write 1 to clear” instead of read-only.
- • Misc registers: registers to manage features not directly link to the RF transfer (for example, slow clock period measurement).
- • Retained registers: registers keeping their content under low power mode sequences (so not to be restored at wakeup).
Table 118. Global registers sub-groups base address
| Global register sub-group | Offset versus the Global register base address |
|---|---|
| Static registers | 0x000 |
| Dynamic registers | 0x100 |
| Status registers | 0x200 |
| Misc registers | 0x300 |
| Retained registers | 0x380 |
Note: The global registers base address has an offset of 0x400 versus the Radio registers that represents the base address of the MR_SubG IP inside the SoC.
The Static and Dynamic configuration registers have the specificity to have two masters that can write them:
- • the CPU using the MR_SubG IP APB interface,
- • the sequencer through a direct internal access when starting a sequence
Note: The sequencer has the priority to write in the static or dynamic registers:
The Sequencer fills the Static and the Dynamic registers by burst and keep the access until the concerned category is fully written. So, if the CPU tries to do a write access to a static register while the Sequence is in a burst write to the Static registers, the CPU accesses is
delayed until the Sequencer access is over through a low HREADY (means CPU is stuck and cannot process any other action until the current request is served).
There is a separate lock for Static and Dynamic group so the CPU can do a write access in parallel of the Sequencer writing in the Static group.
Having the Sequencer writing in those registers implies the Automatic mode has been selected and the SW is not supposed to modify those two groups of registers in addition of the Sequencer.
29.5 STATIC_REG_BLOCK register descriptions
The STATIC_REG_BLOCKBaseAddress keyword used for all registers base address information corresponds to Global registers base address decided by the SoC when integrating the IP.
Note: STATIC_REG_BLOCKBaseAddress is 0x4900_0400 in the STM32WL30xx/31xx/33xx.
The 0x400 offset is due to the fact the Radio Registers mapping corresponds to the first kByte of the APB mapping and Global registers to the second Kbyte.
Table 119. STATIC_REG_BLOCK register list
| Offset | Register Name | Register Title | Reset |
|---|---|---|---|
| 0x0000 | PCKT_CONFIG | PCKT_CONFIG register | 0x0001 03F1 |
| 0x0004 | SYNC | SYNC register | 0x2323 2323 |
| 0x0008 | SEC_SYNC | SEC_SYNC register | 0x0000 0000 |
| 0x000C | CRC_INIT | CRC_INIT register | 0x0000 0000 |
| 0x0010 | PCKT_CTRL | PCKT_CTRL register | 0x0000 0000 |
| 0x0014 | DATABUFFER0_PTR | DATABUFFER0_PTR register | 0x0000 0000 |
| 0x0018 | DATABUFFER1_PTR | DATABUFFER1_PTR register | 0x0000 0000 |
| 0x001C | DATABUFFER_SIZE | DATABUFFER_SIZE register | 0x0000 0000 |
| 0x0020 | PA_LEVEL_3_0 | PA_LEVEL_3_0 register | 0x230B 0100 |
| 0x0024 | PA_LEVEL_7_4 | PA_LEVEL_7_4 register | 0x5147 3B2F |
| 0x0028 | PA_CONFIG | PA_CONFIG register | 0x0000 015C |
| 0x002C | IF_CTRL | IF_CTRL register | 0x04CD 04CD |
| 0x0030 | AS_QI_CTRL | AS_QI_CTRL register | 0x5800 8028 |
| 0x0034 | IQC_CONFIG | IQC_CONFIG register | 0xC000 0000 |
| 0x0038 | DSSS_CTRL | DSSS_CTRL register | 0x0000 0000 |
29.5.1 PCKT_CONFIG register (PCKT_CONFIG)
Address offset: 0x0000
Reset value: 0x0001 03F1
PCKT_CONFIG register

| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| POSTAMBLE_SEQ[1:0] | POSTAMBLE_LENGTH[5:0] | PREAMBLE_SEQ[1:0] | PREAMBLE_LENGTH[9:4] | ||||||||||||
| 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 |
| PREAMBLE_LENGTH[3:0] | FIX_VAR_LEN | LEN_WIDTH | SYNC_PRESENT | SYNC_LEN[4:0] | SECONDARY_SYNC_SEL | CRC_MODE[2:0] | |||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:30 POSTAMBLE_SEQ[1:0]: Packet postamble control: postamble bit sequence selection
Possible patterns:
00: 010101...
01: 101010...
10: depends on last payload/CRC bit
=> If 0: 101010...
=> If 1: 010101...
Bits 29:24 POSTAMBLE_LENGTH[5:0]: Length of the POSTAMBLE in pair of bits (0 to 126 bits)
Bits 23:22 PREAMBLE_SEQ[1:0]: Select the PREAMBLE pattern to be applied
Possible patterns in 2-(G) FSK and ASK/OOK (leftmost bit is transmitted first):
00: 0101...
01: 1010...
10: 0011
11: 1100
Possible patterns in 4-(G) FSK (leftmost bit is transmitted first):
00: 0111...
01: 0010...
10: 1101
11: 1000
Bits 21:12 PREAMBLE_LENGTH[9:0]: Length of the PREAMBLE in pairs of bits (0 to 2046)
Bit 11 FIX_VAR_LEN: Select the length mode
0: FIXED length mode (no LENGTH field added in the frame in TX and no decode in RX)
1: VARIABLE length mode (LENGTH field put in the frame in TX and decoded in RX)
Note: this bit is considered/relevant only for Basic packets (PCKT_FORMAT=0)
- Bit 10 LEN_WIDTH: Indicates if the LENGTH field is defined on 1 byte or 2 bytes
0: LENGTH bit field is defined on 1 byte
1: LENGTH bit field is defined on 2 bytes
Note: this bit field is considered/relevant only if FIX_VAR_LEN=1 (VARIABLE length mode).
Note: this bit field is considered/relevant only if FIX_VAR_LEN=1 (VARIABLE length mode) and Basic packets (PCKT_FORMAT=0). - Bit 9 SYNC_PRESENT: Indicate if a SYNC word is present on the frame or not (null length)
0: no SYNC word on the frame (equivalent to SYNC word length=0)
1: a SYNC word is present on the frame (length in SYNC_LEN bit field) - Bits 8:4 SYNC_LEN[4:0]: Length of the SYNC (and secondary) SYNC word in 1-bit granularity
00000: 1-bit wide
00001: 2-bit wide
-
11111: 32-bit wide (default) - Bit 3 SECONDARY_SYNC_SEL: In TX mode, this bit selects which synchro word is sent on the frame between SYNC and SEC_SYNC.
In RX mode: it enables the detection of SEC_SYNC in parallel of SYNC word.
Note: the SYNC is always detected. - Bits 2:0 CRC_MODE[2:0]: CRC type (0, 8, 16, 16 802.15.4 compatible, 24, 32 bits)
000: no CRC
001: 8-bit CRC (x⁸+x²+x+1)
010: 16-bit CRC (x¹⁶+x¹⁵+x²+1)
011: 16-bit CRC (x¹⁶+x¹²+x⁵+1) 15.4g compatible
100: 24-bit CRC (\(x^{24}+x^{23}+x^{18}+x^{17}+x^{14}+x^{11}+x^{10}+x^7+x^6+x^5+x^4+x^3+x+1\))
101: 32-bit CRC
(\(x^{32}+x^{26}+x^{23}+x^{22}+x^{16}+x^{12}+x^{11}+x^{10}+x^8+x^7+x^5+x^4+x^2+x+1\))
11x: Reserved for future used
Note: the init value of the CRC polynomial is programmable in CRC_INIT register
29.5.2 SYNC register (SYNC)
Address offset: 0x0004
Reset value: 0x2323 2323
SYNC register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SYNC[31:16] | |||||||||||||||
| 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 |
| SYNC[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 SYNC[31:0]: Synchro word.
Note: in transmission, the SYNC word is read from MSB. So if SYNC_LEN is less than 32-bit, used value is MSB part, for example, SYNC_LEN = 17 means SYNC[31:15] is sent from bit31 to bit15 on the air.
29.5.3 SEC_SYNC register (SEC_SYNC)
Address offset: 0x0008
Reset value: 0x0000 0000
SEC_SYNC register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SEC_SYNC[31:16] | |||||||||||||||
| 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 |
| SEC_SYNC[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 SEC_SYNC[31:0]: Secondary Synchro word.
Note: in transmission, the SEC_SYNC word is read from MSB. So if SYNC_LEN is less than 32-bit, used value is MSB part, for example, SYNC_LEN = 17 means SEC_SYNC[31:15] is sent from bit31 to bit15 on the air.
29.5.4 CRC_INIT register (CRC_INIT)
Address offset: 0x000C
Reset value: 0x0000 0000
CRC_INIT register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CRC_INIT_VAL[31:16] | |||||||||||||||
| 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 |
| CRC_INIT_VAL[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 CRC_INIT_VAL[31:0]: CRC initialization value
29.5.5 PCKT_CTRL register (PCKT_CTRL)
Address offset: 0x0010
Reset value: 0x0000 0000
PCKT_CTRL register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FORCE_2FSK_SYNC_MODE | Res. | PN_SEL | MOD_INTERP_EN | FCS_TYPE_4G | FEC_TYPE_4G | INT_EN_4G | MANCHESTER_TYPE | Res. | CODING_SEL[1:0] | WHIT_INIT[8:4] | |||||
| 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 |
| WHIT_INIT[3:0] | WHIT_EN | WHIT_BF_FEC | Res. | TX_MODE[1:0] | RX_MODE[2:0] | FOUR_FSK_SYM_SWAP | BYTE_SWAP | Res. | PCKT_FORMAT | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||
Bit 31 FORCE_2FSK_SYNC_MODE: Force SYNC word to be formatted as a 2-(G) FSK bit stream instead of 4-(G)FSK
0: the SYNC word is treated in 4-(G) FSK mapping as the rest of the frame
1: the SYNC word of the frame is mapped as follows:
- '1' is mapped to +Fdev; '0' is mapped to -Fdev for constellation mapping = 0 and 1
- '1' is mapped to -Fdev; '0' is mapped to +Fdev for constellation mapping = 2 and 3
Bit 30 Reserved, must be kept at reset value.
Bit 29 PN_SEL: Select the Pseudo Random Binary Sequence (PRBS) polynomial to apply when the selected transmission mode is PN mode (TX_MODE = "11")
0: PRBS9 ( x⁹+x⁵+1 ) (default)
1: PRBS15 ( x¹⁵+x¹⁴+1 )
Bit 28 MOD_INTERP_EN: Enable frequency interpolator (for 2-GFSK and 4-GFSK)
This feature linearly interpolates the output of the Gaussian filter.
Bit 27 FCS_TYPE_4G: FCS type value in header field for 802.15.4g
0: 32-bit CRC (equivalent to mode5 in PCKT_CONFIG[2:0])
1: 16-bit CRC (equivalent to mode3 in PCKT_CONFIG[2:0])
Bit 26 FEC_TYPE_4G: FEC type for 802.15.4g
0: NRNSC
1: RSC
Bit 25 INT_EN_4G: This field is used as Interleaving enable for 802.15.4g.
Note: considered only for 802.15.4 packets.
- Bit 24 MANCHESTER_TYPE: Select the Manchester encoding polarity
0: '0'is encoded with '01'and '1'is encoded with '10'
1: '0'is encoded with '10'and '1'is encoded with '01' - Bit 23 Reserved, must be kept at reset value.
- Bits 22:21 CODING_SEL[1:0]: Coding / decoding selection
00: none
01: FEC in TX / Viterbi in RX
10: 3oo6 coding
11: Manchester coding (not compliant with 802.15.4 packet format nor 4-(G) FSK modulation type)
Note: Viterbi (FEC decoding) in RX selection is relevant only for RX_MODE = normal mode - Bits 20:12 WHIT_INIT[8:0]: Whitening initialization value.
Note: use 0x1FF to be compliant with the S2-LP behavior. - Bit 11 WHIT_EN: Whitening enable
Note: if the packet format is 802.15.4, this bit is considered only in transmission. - Bit 10 WHIT_BF_FEC: Whitening before FEC feature
0: S2-LP order: FEC then whitening
1: whitening then FEC
Note: this bit must be kept to 0 for 802.15.4 packets - Bit 9 Reserved, must be kept at reset value.
- Bits 8:7 TX_MODE[1:0]: TX mode
00: normal mode,
01: direct mode (through Data Buffer),
10: direct mode through GPIO,
11: PN mode (test purpose)
Note: direct modes are supposed to be used only on Basic packet format (not on 802.15.4 packets) - Bits 6:4 RX_MODE[2:0]: RX mode
000: normal mode,
001: direct mode (through Data Buffer),
010: direct mode through GPIO
011: direct I/Q sampling mode
100: frequency detector direct mode
101: soft symbols direct mode
11x: reserved for future used
Note: direct modes are supposed to be used only on Basic packet format (not on 802.15.4 packets) - Bit 3 FOUR_FSK_SYM_SWAP: Invert bit to symbol mapping for 4-(G) FSK
Note: the swap applies only on the payload (excluding PREAMBLE, SYNC, LENGTH and CRC part of the frame)
Note: the swap is applied only on the payload (exclude PREAMBLE, SYNC, LENGTH and CRC part of the frame)
Bit 2 BYTE_SWAP: Invert MSB-LSB transmission order (bitendianess)
0: bytes are transmitted MSBit first
1: bytes are transmitted LSBit first
Note: this feature can be used only if the packet format is Basic Packet (not for 802.15.4 packet)
Note: the swap is applied only on the payload (exclude PREAMBLE, SYNC, LENGTH and CRC part of the frame)
Bit 1 Reserved, must be kept at reset value.
Bit 0 PCKT_FORMAT: Packet format
0: Basic Packet
1: 802.15.4 packet
29.5.6 DATABUFFER0_PTR register (DATABUFFER0_PTR)
Address offset: 0x0014
Reset value: 0x0000 0000
DATABUFFER0_PTR register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| DATABUFFER0_PTR[29:14] | |||||||||||||||
| 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 |
| DATABUFFER0_PTR[13:0] | Res. | Res. | |||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||
Bits 31:2 DATABUFFER0_PTR[29:0]: Start address to be used by the Data Buffer0
Note: the register value is considered in real-time by the DBM. The SW has the responsibility not to modify the pointer address while the DBM is using it.
Note: As the address programmed in this register must be 32-bit aligned, the 2 LSBit of the register are not writable and is always be considered as 0.
Bits 1:0 Reserved, must be kept at reset value.
29.5.7 DATABUFFER1_PTR register (DATABUFFER1_PTR)
Address offset: 0x0018
Reset value: 0x0000 0000
DATABUFFER1_PTR register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DATABUFFER1_PTR[29:14] | |||||||||||||||
| 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 |
| DATABUFFER1_PTR[13:0] | Res. | Res. | |||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||
Bits 31:2 DATABUFFER1_PTR[29:0]: Start address to be used by the Data Buffer1
Note: the register value is considered in real-time by the DBM. The SW has the responsibility not to modify the pointer address while the DBM is using it.
Note: As the address programmed in this register must be 32-bit aligned, the 2 LSBit of the register are not writable and is always be considered as 0.
Bits 1:0 Reserved, must be kept at reset value.
29.5.8 DATABUFFER_SIZE register (DATABUFFER_SIZE)
Address offset: 0x001C
Reset value: 0x0000 0000
DATABUFFER_SIZE 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 |
| DATABUFFER_SIZE[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 DATABUFFER_SIZE[15:0]: Size of the Data Buffers (Data Buffer0 and Data Buffer1) expressed in byte unit.
Note: this paramater is automatically checked by the DBM whatever the selected TX/RX mode. So when 0, a DBM_FIFO_ERROR_F flag is raised even for modes not using the RAM. In this cases, this flag is meaningless.
Warning: the register value is considered in real-time by the DBM. The SW has the responsibility not to modify the Data Buffer size while the DBM is using it. Especially in RX, decreasing the size on-the-fly may have catastrophic effects in RAM: if the DBM already passed the new size limit, the DBM chains writings incrementing the address without switching the buffers anymore. For a TX in direct modes, in same conditions, garbage is sent on the antenna.
29.5.9 PA_LEVEL_3_0 register (PA_LEVEL_3_0)
Address offset: 0x0020
Reset value: 0x230B 0100
PA_LEVEL_3_0 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| PA_LEVEL3[7:0] | PA_LEVEL2[7: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 |
| PA_LEVEL1[7:0] | PA_LEVEL0[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:24 PA_LEVEL3[7:0]: Output power level for fourth step
(Default value corresponds to Max - 23 dB)
Note: this bit field is not used when PA_MODE="01"
Bits 23:16 PA_LEVEL2[7:0]: Output power level for third step
(Default value corresponds to Max - 35 dB)
Note: this bit field is not used when PA_MODE="01"
Bits 15:8 PA_LEVEL1[7:0]: Output power level for second step
(Default value corresponds to Max - 40 dB)
Note: this bit field is not used when PA_MODE="01"
Bits 7:0 PA_LEVEL0[7:0]: Output power level for first step
(Default value corresponds to no output power)
For all PA_LEVELx bit fields:
- - when PA_MODE = 0x: PA_LEVEL[6:0] only used and value is in dBm
- - when PA_MODE = 10: PA_LEVEL[7:0] fully used and value is linear
29.5.10 PA_LEVEL_7_4 register (PA_LEVEL_7_4)
Address offset: 0x0024
Reset value: 0x5147 3B2F
PA_LEVEL_7_4 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PA_LEVEL7[7:0] | PA_LEVEL6[7: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 |
| PA_LEVEL5[7:0] | PA_LEVEL4[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:24 PA_LEVEL7[7:0]: Output power level for eighth step (Max up to 16 or 20 dBm depending on the BOM)
Note: in units of dBm, 0x51 corresponds to the maximum possible PA power. Any decrement (-1) then represents -0.5 dB
Bits 23:16 PA_LEVEL6[7:0]: Output power level for seventh step.
(Default value corresponds to Max - 5 dB)
Note: this bit field is not used when PA_MODE="01"
Bits 15:8 PA_LEVEL5[7:0]: Output power level for sixth step
(Default value corresponds to Max - 11 dB)
Note: this bit field is not used when PA_MODE="01"
Bits 7:0 PA_LEVEL4[7:0]: Output power level for fifth step
(Default value corresponds to Max - 17 dB)
- When PA_MODE = 0x: PA_LEVELx[6:0] only used and value is in dB
- When PA_MODE = 10: PA_LEVELx[7:0] fully used and value is linear
Warning: dBm coding is inverted versus S2-LP: bigger is the PA_LEVEL_x value, bigger is the power)
Note: this bit field is not used when PA_MODE="01"
29.5.11 PA_CONFIG register (PA_CONFIG)
Address offset: 0x0028
Reset value: 0x0000 015C
PA_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. | PA_RAMP_ENABLE | LIN_NLOG | Res. | PA_MODE[1:0] | PA_DRV_MODE[1:0] | ASK_OOK_EN | PA_INTERP_EN | Res. | PA_LEVEL_MAX_INDEX[2:0] | PA_RAMP_STEP_WIDTH[1:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||
Bits 31:15 Reserved, must be kept at reset value.
Bit 14 PA_RAMP_ENABLE: Enable the power ramping
- - when PA_MODE[1:0] = "x0": enable the (up and down) power ramping
- - when PA_MODE[1:0] = "01": add a delay of 1 symbol before to stop the transmission to consider the FIR latency (to let time to last bit to be issued on the antenna)
Bit 13 LIN_NLOG: Enable/disable the linear-to- log conversion of the PA code output from Safe-ASK calibrator
- 0: PA_CODEMAX[7:0] content is expressed in logarithmic scale
- 1: PA_CODEMAX[7:0] content is expressed in linear scale
Bit 12 Reserved, must be kept at reset value.
Bits 11:10 PA_MODE[1:0]: Configure the Power Amplifier (PA) mode
- 00: SPIRIT1 'legacy' mode (default)
- 01: FIR active (to be used in ASK/OOK modulations only)
- 10: direct linear mode
- 11: reserved for future used
Bits 9:8 PA_DRV_MODE[1:0]: Select the PA topology
- Depends on BOM / board connections choice
- 00: Reserved
- 01: TX pin
- 10: TX HP1 + TX HP2
- 11: TX + TX HP1 + TX HP2
Bit 7 ASK_OOK_EN: Enable the generation of the internal TXDATA signal provided to the FIR.
Needed when PA_MODE[1:0] = 01 (otherwise FIR is excluded, output fixed at level '1')
Bit 6 PA_INTERP_EN: Enable power level interpolator.
When enabled, the PA_POWER registers are linearly interpolated by the modulator before being applied to the PA.
Note: to be kept at '0' when PA_MODE[1:0] = "01"
Bit 5 Reserved, must be kept at reset value.
Bits 4:2 PA_LEVEL_MAX_INDEX[2:0]: Final level for power ramping (that is, number of steps of ramping)
Note: this bit field is not considered when PA_MODE[1:0] = "01"
Bits 1:0 PA_RAMP_STEP_WIDTH[1:0]: Step width (unit: 1/8 of bit period).
00: 1 step duration is 1/8 of bit period
01: 1 step duration is 2/8 of bit period
10: 1 step duration is 3/8 of bot period
11: 1 step duration is 4/8 of bit period
The full PA ramping (up or down) time is (in symbol unit):
\(TRAMP = (PA\_LEVEL\_MAX\_INDEX + 1) \times PA\_RAMP\_STEP\_WIDTH + 1) / 8\)
Note: this bit field is not considered when PA_MODE[1:0] = "01"
29.5.12 IF_CTRL register (IF_CTRL)
Address offset: 0x002C
Reset value: 0x04CD 04CD
IF_CTRL register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| IF_MODE | Res. | Res. | IF_OFFSET_ANA[12:0] | ||||||||||||
| 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 |
| Res. | Res. | Res. | IF_OFFSET_DIG[12:0] | ||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||
Bit 31 IF_MODE: Select the cutoff frequency of the AAF for the analog RFSUBG IP
0 (default): FC=684 kHz (for IF=300 kHz)
1: (extended) FC=1.55 MHz (for IF=600 kHz)
Bits 30:29 Reserved, must be kept at reset value.
Bits 28:16 IF_OFFSET_ANA[12:0]: Intermediate frequency setting for the synthesizer configuration (default: 300 kHz).
Granularity of programming is steps of 244Hz with XO = 48 MHz.
Note: it is recommended to keep IF_OFFSET_ANA = IF_OFFSET_DIG
Bits 15:13 Reserved, must be kept at reset value.
Bits 12:0 IF_OFFSET_DIG[12:0]: Intermediate frequency setting for the digital shift-to-baseband circuits (default: 300 kHz)
Granularity of programming is steps of 244 Hz with XO = 48 MHz.
Note: it is recommended to use only 300 kHz and 600 kHz values. The choice between both is driven by the programming of the channel filter bandwidth.
29.5.13 AS_QI_CTRL register (AS_QI_CTRL)
Address offset: 0x0030
Reset value: 0x5800 8028
AS_QI_CTRL register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| AS_CS_BLANKING | AS_MEAS_TIME[2:0] | AS_EQU_CTRL[1:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SQI_THR[2: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 |
| SQI_EN | CS_MODE[1:0] | PQI_THR[3:0] | RSSI_THR[8:0] | ||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
- Bit 31 AS_CS_BLANKING: Blank received data if signal is below the CS threshold
- 0: the radio may detect PREAMBLE and SYNC when receiving a frame with RSSI under programmed threshold (CS_F flag low)
- 1: the PREAMBLE and the SYNC word detections are gated if RSSI is under threshold (CS_F flag low)
- Bits 30:28 AS_MEAS_TIME[2:0]: Select the RSSI measurement duration during Antenna switching procedure
- Bits 27:26 AS_EQU_CTRL[1:0]: ISI cancellation equalizer
- 00: equalization disabled
- 01: single pass equalization
- 10: dual pass equalization
- 11: reserved for future use
- Bits 25:19 Reserved, must be kept at reset value.
- Bits 18:16 SQI_THR[2:0]: SQI threshold defining the precision requested to detect the SYNC word.
- 0: perfect match is required between detected SYNC word and expected one (SYNC[x:0] with x = SYNC_LEN-1)
- 1: 1 bit error is accepted
- - ...
- - 7: 7 bits of error is accepted
- Bit 15 SQI_EN: SQI enable
- 0: SQI check is disabled
- 1: "SYNC valid" flag is raised when the SQI threshold is passed

Bits 14:13 CS_MODE[1:0]: Carrier Sense mode selection
- 00: static carrier sensing
- 01: dynamic carrier sensing with 6 dB dynamic threshold
- 10: dynamic carrier sensing with 12 dB dynamic threshold
- 11: dynamic carrier sensing with 18 dB dynamic threshold
Bits 12:9 PQI_THR[3:0]: PQI threshold (if 0 then ).
- - When 0, PQI check is disabled.
In this case, the PREAMBLE valid flag is immediately raised at the beginning of a reception (even if no signal on the antenna)
- - else, optionnal configuration to constrain the SYNC word detection to the detection of a valid PREAMBLE
In this case, PREAMBLE_VALID_F is raised as soon as PQI_INFO reaches 4 x PQI_THR
Note: when PQI_THR is non null, the threshold value must be much lower than effective PREAMBLE length sent by the transmitter
Bits 8:0 RSSI_THR[8:0]: Signal detect threshold in 0.5 dB resolution.
Default: 40d which is around -140 dBm
29.5.14 IQC_CONFIG register (IQC_CONFIG)
Address offset: 0x0034
Reset value: 0xC000 0000
IQC_CONFIG register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| IQC_ENABLE | REUSE_CORRECTION | LOAD_IQC_INIT | Res. | Res. | Res. | Res. | Res. | IQC_CORRECT_IN[23:16] | |||||||
| rw | rw | w | rw | rw | rw | rw | rw | rw | rw | rw | |||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| IQC_CORRECT_IN[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bit 31 IQC_ENABLE: Enable IQC
Bit 30 REUSE_CORRECTION: Reuse last correction value
Bit 29 LOAD_IQC_INIT: Action bit.
Loads the IQC_CORRECT_IN[23:0] bit field in the recirculation register when this bit is written to 1.
This bit is cleared by HW (always read back to 0).
Bits 28:24 Reserved, must be kept at reset value.
Bits 23:0 IQC_CORRECT_IN[23:0]: Correction value Input for the IQ compensation engine (to be used as starting point or when the engine is disabled).
This value is loaded in the recirculation by means of the LOAD_IQC_INIT bit.
29.5.15 DSSS_CTRL register (DSSS_CTRL)
Address offset: 0x0038
Reset value: 0x0000 0000
DSSS_CTRL 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 |
| ACQ_THR[5:0] | ACQ_HITS[1:0] | DSSS_EN | SPREADING_EXP[2:0] | ACQ_WINDOW[3:0] | |||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:10 ACQ_THR[5:0]: DSSS acquisition threshold
Bits 9:8 ACQ_HITS[1:0]: DSSS acquisition hits
Bit 7 DSSS_EN: DSSS mode enable
Bits 6:4 SPREADING_EXP[2:0]: DSSS spreading exponent
Bits 3:0 ACQ_WINDOW[3:0]: DSSS acquisition window

29.5.16 STATIC_REG_BLOCK register map
Table 120. STATIC_REG_BLOCK 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 | PCKT_CONFIG | POSTAMBLE_SEQ[1:0] | POSTAMBLE_LENGTH[5:0] | PREAMBLE_SEQ[1:0] | PREAMBLE_LENGTH[9:0] | FIX_VAR_LEN | LEN_WIDTH | SYNC_PRESENT | SYNC_LEN[4:0] | SECONDARY_SYNC_SEL | CRC_MODE[2:0] | ||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | ||
| 0x004 | SYNC | SYNC[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | |
| 0x008 | SEC_SYNC | SEC_SYNC[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 | ||
| 0x00C | CRC_INIT | CRC_INIT_VAL[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 | ||
| 0x010 | PCKT_CTRL | FORCE_2FSK_SYNC_MODE | Res. | PN_SEL | MOD_INTERP_EN | FCS_TYPE_4G | FEC_TYPE_4G | INT_EN_4G | MANCHESTER_TYPE | Res. | CODING_SEL[1:0] | WHIT_INIT[8:0] | WHIT_EN | WHIT_BF_FEC | Res. | TX_MODE[1:0] | RX_MODE[2:0] | FOUR_FSK_SYM_SWAP | BYTE_SWAP | Res. | PCKT_FORMAT | ||||||||||||
| 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 | |||||||
| 0x014 | DATABUFFER0_PTR | DATABUFFER0_PTR[29:0] | Res. | Res. | |||||||||||||||||||||||||||||
| 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 | ||||
| 0x018 | DATABUFFER1_PTR | DATABUFFER1_PTR[29:0] | Res. | Res. | |||||||||||||||||||||||||||||
| 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 | ||||
| 0x01C | DATABUFFER_SIZE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DATABUFFER_SIZE[15:0] | ||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x020 | PA_LEVEL_3_0 | PA_LEVEL3[7:0] | PA_LEVEL2[7:0] | PA_LEVEL1[7:0] | PA_LEVEL0[7:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| 0x024 | PA_LEVEL_7_4 | PA_LEVEL7[7:0] | PA_LEVEL6[7:0] | PA_LEVEL5[7:0] | PA_LEVEL4[7:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | |
Table 120. STATIC_REG_BLOCK 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x028 | PA_CONFIG | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PA_RAMP_ENABLE | LIN_NLOG | Res. | PA_MODE[1:0] | PA_DRV_MODE[1:0] | ASK_OOK_EN | PA_INTERP_EN | Res. | PA_LEVEL_MAX_INDEX[2:0] | PA_RAMP_STEP_WIDTH[1:0] | |||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | |||||||||||||||||||
| 0x02C | IF_CTRL | IF_MODE | Res. | Res. | IF_OFFSET_ANA[12:0] | Res. | Res. | Res. | IF_OFFSET_DIG[12:0] | ||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | ||||||
| 0x030 | AS_QI_CTRL | AS_CS_BLANKING | AS_MEAS_TIME[2:0] | AS_EQU_CTRL[1:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SQL_THR[2:0] | SQL_EN | CS_MODE[1:0] | PQL_THR[3:0] | RSSI_THR[8:0] | ||||||||||||||||
| Reset value | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | ||||||||
| 0x034 | IQC_CONFIG | IQC_ENABLE | REUSE_CORRECTION | LOAD_IQC_INIT | Res. | Res. | Res. | Res. | Res. | IQC_CORRECT_IN[23:0] | |||||||||||||||||||||||
| Reset value | 1 | 1 | 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 | ||||||
| 0x038 | DSSS_CTRL | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ACQ_THR[5:0] | ACQ_HITS[1:0] | DSSS_EN | SPREADING_EXP[2:0] | ACQ_WINDOW[3:0] | |||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||

29.6 DYNAMIC_REG_BLOCK register descriptions
The DYNAMIC_REG_BLOCKBaseAddress keyword used for all registers base address information corresponds to Global registers base address+ 0x100 (with Global registers base address decided by the SoC when integrating the IP).
Note: DYNAMIC_REG_BLOCKBaseAddress is 0x4900_0500 in the STM32WL30xx/31xx/33xx.
Table 121. DYNAMIC_REG_BLOCK register list
| Offset | Register Name | Register Title | Reset |
|---|---|---|---|
| 0x0000 | PCKTLEN_CONFIG | PCKTLEN_CONFIG register | 0x0000 0014 |
| 0x0004 | MOD0_CONFIG | MOD0_CONFIG register | 0x0008 3A93 |
| 0x0008 | MOD1_CONFIG | MOD1_CONFIG register | 0x0040 0435 |
| 0x000C | SYNTH_FREQ | SYNTH_FREQ register | 0x0485 1615 |
| 0x0010 | VCO_CAL_CONFIG | VCO_CAL_CONFIG register | 0x0040 0088 |
| 0x0014 | RX_TIMER | RX_TIMER register | 0x0000 0000 |
| 0x0018 | DATABUFFER_THR | DATABUFFER_THR register | 0x0000 0000 |
| 0x001C | RFSEQ_IRQ_ENABLE | RFSEQ_IRQ_ENABLE register | 0x0000 0000 |
| 0x0020 | ADDITIONAL_CTRL | ADDITIONAL_CTRL register | 0x0003 8800 |
| 0x0024 | FAST_RX_TIMER | FAST_RX_TIMER register | 0x0000 0000 |
| 0x0028 | COMMAND | COMMAND register | 0x0000 0000 |
29.6.1 PCKTLEN_CONFIG register (PCKTLEN_CONFIG)
Address offset: 0x0000
Reset value: 0x0000 0014
PCKTLEN_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 |
| PCKTLEN[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
- Bits 15:0 PCKTLEN[15:0]: This bit field has different meanings/usages:
- When Normal Buffer mode and FIXED length configuration (FIX_VAR_LEN=0): length of packet in bytes for both RX and TX transfers.
- When Normal Buffer mode and VARIABLE length configuration (FIX_VAR_LEN=1):
- - in TX: length of packet in bytes
- - in RX: MaxReceive size in bytes (so the RX_TOP block stops the reception if decoded length is above PCKTLEN value)
- When Direct mode through Buffer:
- - in TX: number of bytes before TX_TOP block stops the transmission (if selected modulation is not Polar TX)
Note: in this case, 0 means infinite TX until a SABORT command is raised. - - in RX: this bit field is not used
- - in TX: number of bytes before TX_TOP block stops the transmission (if selected modulation is not Polar TX)
- For all other use-cases, this bit field is not used.
Note: for 802.15.4 packets (PCKT_FORMAT=1), only the 11 LSBs are considered and only in transmission.

29.6.2 MOD0_CONFIG register (MOD0_CONFIG)
Address offset: 0x0004
Reset value: 0x0008 3A93
MOD0_CONFIG register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PA_CLKON_LOCKONTX | Res. | Res. | Res. | Res. | BT_SEL | CONST_MAP[1:0] | Res. | MOD_TYPE[2:0] | DATARATE_E[3:0] | ||||||
| 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 |
| DATARATE_M[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bit 31 PA_CLKON_LOCKONTX: Enable the clock on analog PA in LOCKONTX state
0: analog PA is clocked only in EN_PA/TX/PA_DOWN_ANA states of the Radio FSM
1: analog PA is also clock during LOCKONTX state
Note: this bit can be used to absorb a potential XO drift due to RF regulator reaction on consumption peak generated by analog PA clocking
Bits 30:27 Reserved, must be kept at reset value.
Bit 26 BT_SEL: Select BT value for GFSK
0: BT = 1
1: BT = 0.5
Bits 25:24 CONST_MAP[1:0]: Also known as FOUR_GFSK_CONST_MAP.
2- and 4-GFSK constellation mapping
Note: in ASK/OOK modulation, any different value from "00" reverse the 0/1 bit generation
Bit 23 Reserved, must be kept at reset value.
Bits 22:20 MOD_TYPE[2:0]: Select the modulation type
000: 2-FSK
001: 4-FSK
010: 2-GFSK
011: 4-GFSK
100: reserved
101: ASK/OOK
110: Polar TX
111: CW
Bits 19:16 DATARATE_E[3:0]: The exponent of the specified data rate (default: 38.4 ksps)
Bits 15:0 DATARATE_M[15:0]: The mantissa of the specified data rate (default: 38.4 ksps)
29.6.3 MOD1_CONFIG register (MOD1_CONFIG)
Address offset: 0x0008
Reset value: 0x0040 0435
MOD1_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. | CHFLT_E[3:0] | CHFLT_M[3:0] | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | FDEV_E[3:0] | FDEV_M[7:0] | ||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
Bits 31:24 Reserved, must be kept at reset value.
Bits 23:20 CHFLT_E[3:0]: Exponent of the channel filter BW (default: 100 kHz)
Bits 19:16 CHFLT_M[3:0]: Mantissa of the channel filter BW (default: 100 kHz)
Bits 15:12 Reserved, must be kept at reset value.
Bits 11:8 FDEV_E[3:0]: Exponent of the frequency deviation (default: 28.29 kHz)
Bits 7:0 FDEV_M[7:0]: Mantissa of the frequency deviation (default: 28.29 kHz)
29.6.4 SYNTH_FREQ register (SYNTH_FREQ)
Address offset: 0x000C
Reset value: 0x0485 1615
SYNTH_FREQ register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | BS | Res. | Res. | SYNTH_INT[7:0] | SYNTH_FRAC[19:16] | ||||||||||
| 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 |
| SYNTH_FRAC[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bit 31 Reserved, must be kept at reset value.
Bit 30 BS: Synthesizer band selector, that is, out-of-loop total divide factor, 4 or 8
0: out-of-loop divider factor is 4 (for 826 MHz - 958 MHz band)
1 (default): out-of-loop divider factor is 8 (for 413MHz - 479MHz)
For devices with the 159 -185 MHz frequency band option only - Synthesizer band selector, that is, out-of-loop total divide factor, 4 or 8
0: out-of-loop divider factor is 20 (for 169 MHz band)
1 (default): out-of-loop divider factor is 8 (for 413 MHz – 479 MHz band)
Bits 29:28 Reserved, must be kept at reset value.
Bits 27:20 SYNTH_INT[7:0]: PLL integer divide factor (default: 868 MHz, XTAL: 48 MHz)
For devices with the 159 -185 MHz frequency band option only - PLL integer divide factor (default: 169 MHz, XTAL: 48 MHz)
Bits 19:0 SYNTH_FRAC[19:0]: Fractional part of the PLL fractional divide factor (default: 868 MHz, XTAL: 48 MHz)
For devices with the 159 -185 MHz frequency band option only - Fractional part of the PLL fractional divide factor (default: 169 MHz, XTAL: 48 MHz)
29.6.5 VCO_CAL_CONFIG register (VCO_CAL_CONFIG)
Address offset: 0x0010
Reset value: 0x0040 0088
VCO_CAL_CONFIG register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| VCO_CALIB_REQ | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VCO_CALFREQ_EXT_SEL | VCO_CALFREQ_EXT[6: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 |
| VCO_CALAMP_EXT_SEL | Res. | VCO_CALAMP_EXT[13:0] | |||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
Bit 31 VCO_CALIB_REQ: Define if the Radio FSM must launch a VCO calibration request after VCO start-up
0:the Radio FSM goes directly from SYNTH_SETUP state to LOCKRXTX state (no new calibration requested, the calibration block provides the last calibration results).
1: the Radio FSM goes through VCO_CALIB state after SYNTH_SETUP to request a new VCO calibration (amplitude and/or frequency).
Note: the VCO_CALFREQ_EXT and VCO_CALAMP_EXT bits can be combined to this bit to recalibrate only amplitude or frequency.
Bits 30:24 Reserved, must be kept at reset value.
Bit 23 VCO_CALFREQ_EXT_SEL: Select the mode to provide an external VCO frequency calibration value through VCO_CALFREQ_EXT bit field
0: the VCO frequency calibration value generated by the VCO calibration block is applied to the VCO
1: the VCO_CALFREQ_EXT[6:0] bit field of this register is applied to the VCO
Bits 22:16 VCO_CALFREQ_EXT[6:0]: VCO Cbank frequency calibration word.
This value is applied to the VCO if VCO_CALFREQ_EXT_SEL=1.
Bit 15 VCO_CALAMP_EXT_SEL: Select the mode to provide an external VCO amplitude calibration value through VCO_CALAMP_EXT bit field
0: the VCO amplitude calibration value generated by the VCO calibration block is applied to the VCO
1: the VCO_CALAMP_EXT[13:0] bit field of this register is applied to the VCO
Bit 14 Reserved, must be kept at reset value.
Bits 13:0 VCO_CALAMP_EXT[13:0]: VCO magnitude calibration word in thermometric code
This value is applied to the VCO if VCO_CALAMP_EXT_SEL=1.
29.6.6 RX_TIMER register (RX_TIMER)
Address offset: 0x0014
Reset value: 0x0000 0000
RX_TIMER register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RX_OR_NAND_SELECT | RX_SQI_TIMEOUT_MASK | RX_PQI_TIMEOUT_MASK | RX_CS_TIMEOUT_MASK | Res. | Res. | Res. | Res. | Res. | RX_TIMEOUT[22:16] | ||||||
| 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 |
| RX_TIMEOUT[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bit 31 RX_OR_NAND_SELECT: Select logical OR or logical AND to apply on CS/PQI/SQI timeout mask
0: AND is applied
1: OR is applied
Bit 30 RX_SQI_TIMEOUT_MASK:
0: SYNC valid flag does not contribute to timeout disabling
1: SYNC valid flag contributes to timeout disabling
Bit 29 RX_PQI_TIMEOUT_MASK:
0: PREAMBLE valid flag does not contribute to timeout disabling
1: PREAMBLE valid flag contributes to timeout disabling
Bit 28 RX_CS_TIMEOUT_MASK:
0: CS flag does not contribute to timeout disabling
1: CS flag contributes to timeout disabling
Bits 27:23 Reserved, must be kept at reset value.
Bits 22:0 RX_TIMEOUT[22:0]: RX timer timeout (relative duration in interpolated absolute time unit)
29.6.7 DATABUFFER_THR register (DATABUFFER_THR)
Address offset: 0x0018
Reset value: 0x0000 0000
DATABUFFER_THR register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TX_ALMOST_EMPTY_THR[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 |
| RX_ALMOST_FULL_THR[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 TX_ALMOST_EMPTY_THR[15:0]: Almost Empty threshold for TX Data Buffers.
TX_ALMOST_EMPTY_F flag is raised when
CURRENT_DATABUFFER_COUNT = TX_ALMOST_EMPTY_THR.
Granularity of the threshold is in byte.
Bits 15:0 RX_ALMOST_FULL_THR[15:0]: Almost Full threshold for RX Data Buffers
RX_ALMOST_FULL_F flag is raised when
CURRENT_DATABUFFER_COUNT = RX_ALMOST_FULL_THR
Granularity of the threshold is in byte.
29.6.8 RFSEQ_IRQ_ENABLE register (RFSEQ_IRQ_ENABLE)
Address offset: 0x001C
Reset value: 0x0000 0000
RFSEQ_IRQ_ENABLE register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AGC_CALIB_DONE_E | SAFEASK_CALIB_DONE_E | Res. | RRM_CMD_END_E | RRM_CMD_START_E | SEQ_E | Res. | HW_ANA_FAILURE_E | Res. | AHB_ACCESS_ERROR_E | TX_ALMOST_EMPTY_1_E | TX_ALMOST_EMPTY_0_E | RX_ALMOST_FULL_1_E | RX_ALMOST_FULL_0_E | DATABUFFER1_USED_E | DATABUFFER0_USED_E |
| 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 |
| Res. | SYNC_VALID_E | PREAMBLE_VALID_E | CS_E | Res. | Res. | COMMAND_REJECTED_E | SABORT_DONE_E | RXTIMER_STOP_CDT_E | Res. | Res. | FAST_RX_TERM_E | RX_CRC_ERROR_E | RX_TIMEOUT_E | RX_OK_E | TX_DONE_E |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bit 31 AGC_CALIB_DONE_E: Enable interrupt on AGC_CALIB_DONE_F flag
Bit 30 SAFEASK_CALIB_DONE_E: Enable interrupt on SAFEASK_CALIB_DONE_F flag
Bit 29 Reserved, must be kept at reset value.
Bit 28 RRM_CMD_END_E: Enable interrupt on RRM_CMD_END_F flag
Bit 27 RRM_CMD_START_E: Enable interrupt on RRM_CMD_END_F flag
Bit 26 SEQ_E: Enable interrupt on SEQ_F flag
Bit 25 Reserved, must be kept at reset value.
Bit 24 HW_ANA_FAILURE_E: Enable interrupt on HW_ANA_FAILURE_F flag
Bit 23 Reserved, must be kept at reset value.
Bit 22 AHB_ACCESS_ERROR_E: Enable interrupt on AHB_ACCESS_ERROR_F flag
Bit 21 TX_ALMOST_EMPTY_1_E: Enable interrupt on TX_ALMOST_EMPTY_1_F flag
Bit 20 TX_ALMOST_EMPTY_0_E: Enable interrupt on TX_ALMOST_EMPTY_0_F flag
Bit 19 RX_ALMOST_FULL_1_E: Enable interrupt on RX_ALMOST_FULL_1_F flag
Bit 18 RX_ALMOST_FULL_0_E: Enable interrupt on RX_ALMOST_FULL_0_F flag
Bit 17 DATABUFFER1_USED_E: Enable interrupt on DATABUFFER1_USED_F flag
Bit 16 DATABUFFER0_USED_E: Enable interrupt on DATABUFFER0_USED_F flag
Bit 15 Reserved, must be kept at reset value.
- Bit 14 SYNC_VALID_E: Enable interrupt on SYNC_VALID_F flag
- Bit 13 PREAMBLE_VALID_E: Enable interrupt on PREAMBLE_VALID_F flag
- Bit 12 CS_E: Enable interrupt on CS_F flag
- Bits 11:10 Reserved, must be kept at reset value.
- Bit 9 COMMAND_REJECTED_E: Enable interrupt on COMMAND_REJECTED flag
- Bit 8 SABORT_DONE_E: Enable interrupt on SABORT command treated and done flag
- Bit 7 RXTIMER_STOP_CDT_E: Enable interrupt on RXTIMER_STOP_CDT_F flag
- Bits 6:5 Reserved, must be kept at reset value.
- Bit 4 FAST_RX_TERM_E: Enable interrupt on FAST_RX_TERM_F flag
- Bit 3 RX_CRC_ERROR_E: Enable interrupt on RX_CRC_ERROR_F flag
- Bit 2 RX_TIMEOUT_E: Enable interrupt on RX_TIMEOUT_F flag
- Bit 1 RX_OK_E: Enable interrupt on RX_OK_F flag
- Bit 0 TX_DONE_E: Enable interrupt on TX_DONE_F flag
29.6.9 ADDITIONAL_CTRL register (ADDITIONAL_CTRL)
Address offset: 0x0020
Reset value: 0x0003 8800
ADDITIONAL_CTRL register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AS_ENABLE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TIME_CAPTURESEL[2:0] | Res. | Res. | PA_FC[1:0] | |||
| rw | rw | rw | rw | rw | rw | ||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| CH_SPACING[7:0] | CH_NUM[7:0] | ||||||||||||||
| r | r | r | r | r | r | r | r | rw | rw | rw | rw | rw | rw | rw | rw |
Bit 31 AS_ENABLE: Enable the antenna switching feature.
Bits 30:23 Reserved, must be kept at reset value.
Bits 22:20 TIME_CAPTURESEL[2:0]: Select the trigger event to capture the interpolated absolute time in the TIME_CAPTURE[31:0] register
000: feature is disabled
001: the absolute time is latched on end of transmission information
010: the absolute time is latched on end of reception information whatever the CRC result (RX OK or CRC error)
011: the absolute time is latched on the SYNC word detection event
1xx: reserved for future used
Bits 19:18 Reserved, must be kept at reset value.
Bits 17:16 PA_FC[1:0]: Power control bandwidth selection according data rate
00: BW: 12.5 kHz
01: BW: 25.0 kHz
10: BW: 50.0 kHz
11: BW: 100 kHz (default)
Bits 15:8 CH_SPACING[7:0]: Channel spacing. From ~732 Hz to ~187 kHz in 732 Hz steps - default: 100 kHz.
Bits 7:0 CH_NUM[7:0]: Channel number. This value is multiplied by the channel spacing and added to the synthesizer base frequency to generate the actual RF carrier frequency
29.6.10 FAST_RX_TIMER register (FAST_RX_TIMER)
Address offset: 0x0024
Reset value: 0x0000 0000
FAST_RX_TIMER 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. | FAST_CS_TERM_EN | FAST_RX_TIMEOUT[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||||
Bits 31:9 Reserved, must be kept at reset value.
Bit 8 FAST_CS_TERM_EN: Enable the Fast RX Termination feature
0: Fast Termination is disabled
1: Fast Termination is enabled
Bits 7:0 FAST_RX_TIMEOUT[7:0]: Fast RX termination timer value (corresponding to the delay to measure the RSSI and to let the HW check CS flag information)
Timer unit is: (2**CHFLT_E x 8) / fsys_freq with fsys = fXO / 3 (typically 16 MHz)

29.6.11 COMMAND register (COMMAND)
Address offset: 0x0028
Reset value: 0x0000 0000
COMMAND register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | BACK2LOCKON | BACK2ACTIVE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| rw | rw | ||||||||||||||
| 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. | COMMAND_ID[3:0] | |||
| rw | rw | rw | rw | ||||||||||||
Bits 31:27 Reserved, must be kept at reset value.
Bit 26 BACK2LOCKON: Request to the Radio FSM to stay in LOCKON state when exiting a RX or a TX
- 0: no request to go to LOCKON state, the Radio FSM has to check the BACK2ACTIVE2 bit.
- 1: Request to go to LOCKON state (BACK2ACTIVE2 bit value is not considered).
Warning: this bit must be set only when a specific use-case requires it. The SW is responsible then to request compatible commands from this default state as the HW does not raise any COMMAND_REJECTED flag (for example, if a TX command is requested from a LOCKONRX state)
Note: if the started command combined with BACK2LOCKON=1 is aborted before to reach LOCKONxX state, the final state of the Radio FSM is ACTIVE2 or IDLE (depending on BACK2ACTIVE2 bit)
Bit 25 BACK2ACTIVE: Select the default/return state for the Radio FSM to be ACTIVE2
- 0: no request to go to / stay in ACTIVE2 state. If BACK2LOCK is also low, then the Radio FSM mechanically goes back to IDLE once ACTIVE2 is reached.
- 1: Request to go in ACTIVE2 state (and stay until the bit is cleared or a new TX/TX/LOCK activity is started).
Note: this bit can be used to bring the Radio FSM from IDLE to ACTIVE2 state without issuing any specific command.
Bits 24:4 Reserved, must be kept at reset value.
Bits 3:0 COMMAND_ID[3:0]: Opcode corresponding to a command:
Possible OpCodes are:
- - NOP = no operation (Opcode = 0x0)
- - TX (OpCode = 0x1)
- - RX (OpCode = 0x2)
- - LOCKRX (OpCode = 0x3)
- - LOCKTX (OpCode = 0x4)
- - SABORT (OpCode = 0x5)
- - RELOAD_RX_TIMER (OpCode = 0x6)
- - CALIB_SAFEASK (OpCode = 0xA)
- - CALIB_AGC (OpCode = 0xB)
29.6.12 DYNAMIC_REG_BLOCK register map
Table 122. DYNAMIC_REG_BLOCK 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 | PCKTLEN_CONFIG | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PCKTLEN[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | |||||||||||||||||
| 0x004 | MOD0_CONFIG | PA_CLKON_LOCKONTX | Res. | Res. | Res. | Res. | Res. | BT_SEL | FOUR_GFSK_CONST_MAP[1:0] | Res. | MOD_TYPE[2:0] | DATARATE_E[3:0] | DATARATE_M[15:0] | ||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | ||||||
| 0x008 | MOD1_CONFIG | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CHFLT_E[3:0] | CHFLT_M[3:0] | Res. | Res. | Res. | Res. | FDEV_E[3:0] | FDEV_M[7:0] | ||||||||||||||||
| Reset value | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | ||||||||||||||
| 0x00C | SYNTH_FREQ | Res. | BS | Res. | Res. | SYNTH_INT[7:0] | SYNTH_FRAC[19:0] | ||||||||||||||||||||||||||
| Reset value | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | ||||
| 0x010 | VCO_CAL_CONFIG | VCO_CALIB_REQ | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VCO_CALFREQ_EXT_SE | VCO_CALFREQ_EXT[6:0] | VCO_CALAMP_EXT_SEL | Res. | VCO_CALAMP_EXT[13:0] | |||||||||||||||||||
| Reset value | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | |||||||||
| 0x014 | RX_TIMER | RX_OR_NAND_SELECT | RX_SQL_TIMEOUT_MASK | RX_PQL_TIMEOUT_MASK | RX_CS_TIMEOUT_MASK | Res. | Res. | Res. | Res. | Res. | RX_TIMEOUT[22: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 | |||||||
| 0x018 | DATABUFFER_THR | TX_ALMOST_EMPTY_THR[15:0] | RX_ALMOST_FULL_THR[15: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 | |

Table 122. DYNAMIC_REG_BLOCK 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x01C | RFSEQ_IRQ_ENABLE | AGC_CALIB_DONE_E | SAFEASK_CALIB_DONE_E | Res. | RRM_CMD_END_E | RRM_CMD_START_E | SEQ_E | Res. | HW_ANA_FAILURE_E | Res. | AHB_ACCESS_ERROR_E | TX_ALMOST_EMPTY_1_E | TX_ALMOST_EMPTY_0_E | RX_ALMOST_FULL_1_E | RX_ALMOST_FULL_0_E | DATABUFFER1_USED_E | DATABUFFER0_USED_E | Res. | SYNC_VALID_E | PREAMBLE_VALID_E | CS_E | Res. | Res. | COMMAND_REJECTED_E | SABORT_DONE_E | RXTIMER_STOP_CDT_E | Res. | Res. | FAST_RX_TERM_E | RX_CRC_ERROR_E | RX_TIMEOUT_E | RX_OK_E | TX_DONE_E |
| 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 | ||||||||
| 0x020 | ADDITIONAL_CTRL | AS_ENABLE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TIME_CAPTURESEL[2:0] | Res. | PA_FC[1:0] | CH_SPACING[7:0] | CH_NUM[7:0] | ||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||
| 0x024 | FAST_RX_TIMER | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FAST_CS_TERM_EN | FAST_RX_TIMEOUT[7:0] | ||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||
| 0x028 | COMMAND | Res. | Res. | Res. | Res. | Res. | BACK2LOCKON | BACK2ACTIVE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | COMMAND_ID[3:0] | ||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||
29.7 READ-ONLY_REG_BLOCK register descriptions
The STATUS_REG_BLOCKBaseAddress keyword used for all registers base address information corresponds to Global registers base address+ 0x200 (with Global registers base address decided by the SoC when integrating the IP).
Note: STATUS_REG_BLOCKBaseAddress is 0x4900_0600 in the STM32WL30xx/31xx/33xx.
Table 123. READ-ONLY_REG_BLOCK register list
| Offset | Register Name | Register Title | Reset |
|---|---|---|---|
| 0x0000 | RFSEQ_IRQ_STATUS | RFSEQ_IRQ_STATUS register | 0x0000 0000 |
| 0x0004 | RFSEQ_STATUS_DETAIL | RFSEQ_STATUS_DETAIL register | 0x0000 0000 |
| 0x0008 | RADIO_FSM_INFO | RADIO_FSM_INFO register | 0x0000 0000 |
| 0x000C | RX_INDICATOR | RX_INDICATOR register | 0x0000 0000 |
| 0x0010 | RX_INFO_REG | RX_INFO_REG register | 0x0000 0000 |
| 0x0014 | RX_CRC_REG | RX_CRC_REG register | 0x0000 0000 |
| 0x0018 | QI_INFO | QI_INFO register | 0x0000 0000 |
| 0x001C | DATABUFFER_INFO | DATABUFFER_INFO register | 0x0000 0000 |
| 0x0020 | TIME_CAPTURE | TIME_CAPTURE register | 0x0000 0000 |
| 0x0024 | IQC_CORRECTION_OUT | IQC_CORRECTION_OUT register | 0x0000 0000 |
| 0x0028 | PA_SAFEASK_OUT | PA_SAFEASK_OUT register | 0x0000 0000 |
| 0x002C | VCO_CALIB_OUT | VCO_CALIB_OUT register | 0x0000 FF40 |
| 0x0030 | SEQ_INFO | SEQ_INFO register | 0x0000 0000 |
| 0x0034 | SEQ_EVENT_STATUS | SEQ_EVENT_STATUS register | 0x0000 0000 |
29.7.1 RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS)
Address offset: 0x0000
Reset value: 0x0000 0000
RFSEQ_IRQ_STATUS register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| AGC_CALIB_DONE_F | SAFEASK_CALIB_DONE_F | Res. | RRM_CMD_END_F | RRM_CMD_START_F | SEQ_F | Res. | HW_ANA_FAILURE_F | Res. | AHB_ACCESS_ERROR_F | TX_ALMOST_EMPTY_1_F | TX_ALMOST_EMPTY_0_F | RX_ALMOST_FULL_1_F | RX_ALMOST_FULL_0_F | DATABUFFER1_USED_F | DATABUFFER0_USED_F |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | |||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | SYNC_VALID_F | PREAMBLE_VALID_F | CS_F | Res. | Res. | COMMAND_REJECTED_F | SABORT_DONE_F | RXTIMER_STOP_CDT_F | Res. | Res. | FAST_RX_TERM_F | RX_CRC_FRROR_F | RX_TIMEOUT_F | RX_OK_F | TX_DONE_F |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bit 31 AGC_CALIB_DONE_F: Valid RSSI value available in the RSSI_RUNNING bit field flag.
This flag is raised after an AGC_AAF_CALIB command to inform the command is over and the RSSI measurement result is available in RX_INDICATOR status register.
Bit 30 SAFEASK_CALIB_DONE_F: End of Safe-ASK PA calibration flag.
This flag is raised after a CALIB_SAFEASK command to inform the command is over and the PA_CODEMAX result is available in PA_SAFEASK_OUT status register.
Bit 29 Reserved, must be kept at reset value.
Bit 28 RRM_CMD_END_F: RRM-UDRA command list execution ended flag.
When set, indicates a Radio register restoring phase has been completed by the RRM UDRA
Bit 27 RRM_CMD_START_F: RRM-UDRA command list execution started flag.
When set, indicates a Radio register restoring phase has been started by the RRM UDRA
Bit 26 SEQ_F: Sequencer completion flag.
When set, indicates the Sequencer has ended a SeqAction (thanks to a next action match or an ActionTimeout event). The end reason can be found in the annex register called RFSEQ_STATUS_DETAIL.
Note: clearing this bit disables the interrupt signal towards the CPU but has no impact on RFSEQ_STATUS_DETAILS bits. The SW must also clear them in parallel.
Bit 25 Reserved, must be kept at reset value.
Bit 24 HW_ANA_FAILURE_F: Analog HW failure flag (PLL lock / unlock error, calibration error)
Complementary information available in the annex register called RFSEQ_STATUS_DETAIL.
Note: clearing this bit disables the interrupt signal towards the CPU but has no impact on RFSEQ_STATUS_DETAILS bits. The SW must also clear them in parallel.
- Bit 23 Reserved, must be kept at reset value.
- Bit 22 AHB_ACCESS_ERROR_F: An AHB transfer issue occurred for one of the AHB masters (RRM, Data Buffer Manager, Sequencer). Details in an annex register = RFSEQ_STATUS_DETAIL.
Note: clearing this bit disables the interrupt signal towards the CPU but has no impact on RFSEQ_STATUS_DETAILS bits. The SW must also clear them in parallel.
Note: in the STM32WL30xx/31xx/33xx, this flag can be set only by the DBM_FIFO_ERROR_F - Bit 21 TX_ALMOST_EMPTY_1_F: Data Buffer1 used (read during a TX) up to programmed threshold flag
- Bit 20 TX_ALMOST_EMPTY_0_F: Data Buffer0 used (read during a TX) up to programmed threshold flag
- Bit 19 RX_ALMOST_FULL_1_F: Data Buffer1 used (written during a RX) up to programmed threshold flag
- Bit 18 RX_ALMOST_FULL_0_F: Data Buffer0 used (written during a RX) up to programmed threshold flag
- Bit 17 DATABUFFER1_USED_F: Data Buffer 1 fully read in TX or fully written in RX flag
- Bit 16 DATABUFFER0_USED_F: Data Buffer 0 fully read in TX or fully written in RX flag
- Bit 15 Reserved, must be kept at reset value.
- Bit 14 SYNC_VALID_F: Valid SYNC word detection flag.
Note: this flag is never raised in Direct through Buffer/GPIO RX modes - Bit 13 PREAMBLE_VALID_F: Valid PREAMBLE detection flag.
Note: this flag is never raised in Direct through Buffer/GPIO RX modes - Bit 12 CS_F: Carrier Sense (RSSI over threshold) flag
- Bits 11:10 Reserved, must be kept at reset value.
- Bit 9 COMMAND_REJECTED_F: Command rejection flag.
Indicates the last requested command has been rejected because not compatible with an already on-going command (or just after a SABORT where the Radio FSM is not yet back to default targeted state = LOCKON, ACTIVE2 or IDLE) - Bit 8 SABORT_DONE_F: SABORT command treated and done flag
- Bit 7 RXTIMER_STOP_CDT_F: Enable interrupt on RXTIMER_STOP_CDT_F flag
- Bits 6:5 Reserved, must be kept at reset value.
- Bit 4 FAST_RX_TERM_F: Fast RX Termination flag
- Bit 3 RX_CRC_FRROR_F: Reception with CRC error flag
- Bit 2 RX_TIMEOUT_F: Reception timeout flag
- Bit 1 RX_OK_F: Reception ended and OK flag
- Bit 0 TX_DONE_F: Transmission done flag
29.7.2 RFSEQ_STATUS_DETAIL register (RFSEQ_STATUS_DETAIL)
Address offset: 0x0004
Reset value: 0x0000 0000
RFSEQ_STATUS_DETAIL 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 |
| SEQ_COMPLETE_F | SEQ_ACTIONTIMEOUT_F | PLL_CALAMP_ERROR_F | PLL_CALFREQ_ERROR_F | PLL_UNLOCK_F | PLL_LOCK_FAIL_F | DBM_FIFO_ERROR_F | |||||||||
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |||||||
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bits 31:16 Reserved, must be kept at reset value.
Bit 15 SEQ_COMPLETE_F: The Sequencer has ended the last defined SeqAction properly(NextAction math or null pointer)
Bit 14 SEQ_ACTIONTIMEOUT_F: The Sequencer has ended because the current SeqAction reached its ActionTimeout.
Bits 13:12 Reserved, must be kept at reset value.
Bit 11 PLL_CALAMP_ERROR_F: VCO amplitude calibration error flag
Bit 10 PLL_CALFREQ_ERROR_F: VCO frequency calibration error flag
Bit 9 PLL_UNLOCK_F: PLL unlock event flag
Bit 8 PLL_LOCK_FAIL_F: PLL lock fail status flag
Bits 7:6 Reserved, must be kept at reset value.
Bit 5 DBM_FIFO_ERROR_F: Data Buffer Manager internal FIFO overflow/underflow flag.
The Data Buffer Manager did not manage to write (for RX) or read (for TX) in RAM on time probably due to lack of bandwidth on the SoC interconnect or the DATABUFFER_SIZE bit field was null when an AHB transfer is requested (for RX or TX)
Bits 4:0 Reserved, must be kept at reset value.
29.7.3 RADIO_FSM_INFO register (RADIO_FSM_INFO)
Address offset: 0x0008
Reset value: 0x0000 0000
RADIO_FSM_INFO 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. | RADIO_FSM_STATE[4:0] | ||||
| r | r | r | r | r | |||||||||||
Bits 31:5 Reserved, must be kept at reset value.
Bits 4:0 RADIO_FSM_STATE[4:0]: State of the Radio FSM
- 0x00: IDLE
- 0x01: ENA_RF_REG
- 0x02: WAIT_ACTIVE2
- 0x03: ACTIVE2
- 0x04: ENA_CURR
- 0x05: SYNTH_SETUP
- 0x06: CALIB_VCO
- 0x07: LOCKRXTX
- 0x08: LOCKONTX
- 0x09: EN_PA
- 0x0A: TX
- 0x0B: PA_DWN_ANA
- 0x0C: END_TX
- 0x0D: LOCKONRX
- 0x0E: EN_RX
- 0x0F: EN_LNA
- 0x10: RX
- 0x11: END_RX
- 0x12: SYNTH_PWDN

29.7.4 RX_INDICATOR register (RX_INDICATOR)
Address offset: 0x000C
Reset value: 0x0000 0000
RX_INDICATOR register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ANT_SELECT | Res. | Res. | Res. | AGC_WORD[3:0] | Res. | Res. | Res. | RSSI_LEVEL_RUN[8:4] | |||||||
| 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 |
| RSSI_LEVEL_RUN[3:0] | Res. | Res. | Res. | RSSI_LEVEL_ON_SYNC[8:0] | |||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | |||
Bit 31 ANT_SELECT: Currently selected antenna
Bits 30:28 Reserved, must be kept at reset value.
Bits 27:24 AGC_WORD[3:0]: AGC word of the received packet.
This bit field indicates the number of steps of attenuation applied on the received packet.
Bits 23:21 Reserved, must be kept at reset value.
Bits 20:12 RSSI_LEVEL_RUN[8:0]: Continuous level of the output of the measured RSSI value
Bits 11:9 Reserved, must be kept at reset value.
Bits 8:0 RSSI_LEVEL_ON_SYNC[8:0]: RSSI level captured at the end of the SYNC word detection of the received packet.
29.7.5 RX_INFO_REG register (RX_INFO_REG)
Address offset: 0x0010
Reset value: 0x0000 0000
RX_INFO_REG 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 |
| RX_PCKTLEN_OUT[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 RX_PCKTLEN_OUT[15:0]: Indicates received packet length in bytes:
- - PCKTLEN_CONFIG[15:0] value for reception in FIXED length mode
- - decoded length (inside the frame) for reception with VARIABLE length mode
29.7.6 RX_CRC_REG register (RX_CRC_REG)
Address offset: 0x0014
Reset value: 0x0000 0000
RX_CRC_REG register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RX_CRC_OUT[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 |
| RX_CRC_OUT[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 RX_CRC_OUT[31:0]: CRC field of the received packet (read-only info)
29.7.7 QI_INFO register (QI_INFO)
Address offset: 0x0018
Reset value: 0x0000 0000
QI_INFO 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. | AFC_CORRECTION[7:0] | |||||||
| r | r | r | r | r | r | r | r | ||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | SQI_SEC | SQI_INFO[5:0] | PQI_INFO[7:0] | ||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | |
Bits 31:24 Reserved, must be kept at reset value.
Bits 23:16 AFC_CORRECTION[7:0]: AFC value frozen at sync reception.
Unit: \(f_{sys}/2^{14}\) = around 976.56Hz with typical 16 MHz
Bit 15 Reserved, must be kept at reset value.
Bit 14 SQI_SEC: Indicate if measured SQI refers to SYNC word or secondary SYNC word
0: SQI value versus the SYNC word
1: SQI value versus the secondary SYNC word
Bits 13:8 SQI_INFO[5:0]: SYNC Quality Indicator (SQI) value of the received packet. Represents the peak value between 0 and 32.
Bits 7:0 PQI_INFO[7:0]: Preamble Quality Indicator (PQI) value of the received packet.
29.7.8 DATABUFFER_INFO register (DATABUFFER_INFO)
Address offset: 0x001C
Reset value: 0x0000 0000
DATABUFFER_INFO register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CURRENT_DATABUFFER | NB_DATABUFFER_USED[14:0] | |||||||||||||||
| 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 | |
| CURRENT_DATABUFFER_COUNT[15:0] | ||||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | ||
Bit 31 CURRENT_DATABUFFER: Indicates which Data Buffer is currently used by the HW
0 = Data Buffer0
1 = Data Buffer1
Bits 30:16 NB_DATABUFFER_USED[14:0]: Provides the number of data buffers which have been fully used
- written during RX
- read during TX
Bits 15:0 CURRENT_DATABUFFER_COUNT[15:0]: Indicates the number of bytes used in the last used DATA BUFFER.
This information has to be added to the (NB_DATABUFFER_USED x DATABUFFER_SIZE) to know the total bytes number read/written in RAM:
- in RX, it corresponds to number of received bytes copied in RAM
- in TX, it represents the number of bytes read from RAM (not necessarily taken by the Transmit block and transmitted on the antenna).
29.7.9 TIME_CAPTURE register (TIME_CAPTURE)
Address offset: 0x0020
Reset value: 0x0000 0000
TIME_CAPTURE register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| TIME_CAPTURE[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 |
| TIME_CAPTURE[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 TIME_CAPTURE[31:0]: Interpolated absolute time value captured on specific programmable event through TIME_CAPTURESEL[2:0] bit field.
29.7.10 IQC_CORRECTION_OUT register (IQC_CORRECTION_OUT)
Address offset: 0x0024
Reset value: 0x0000 0000
IQC_CORRECTION_OUT 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. | IQC_CORRECT_OUT[23:16] | |||||||
| r | r | r | r | r | r | r | r | ||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| IQC_CORRECT_OUT[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:24 Reserved, must be kept at reset value.
Bits 23:0 IQC_CORRECT_OUT[23:0]: Final correction value output from IQC (compensation engine).
This value is updated at the end of a RX sequence or on a LOAD_IQC_INIT command.
Note: this value is not retained so the SW has to copy it in a retained or non-volatile memory to be able to reuse it after a low power mode session.
29.7.11 PA_SAFEASK_OUT register (PA_SAFEASK_OUT)
Address offset: 0x0028
Reset value: 0x0000 0000
PA_SAFEASK_OUT 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. | PA_CODEMAX[7:0] | |||||||
| r | r | r | r | r | r | r | r | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 PA_CODEMAX[7:0]: Safe ASK level (provided after a CALIB_SAFEASK command), indicates the maximum PA Power to program before the PA enters the ohmic zone.
The result format depends on PA_CONFIG[13] = LIN_NLOG bit value.
If LIN_NLOG=0: result is provided in dB
- bit[7] = REACHMAX
- when 0: the calibration detected the PA enters the ohmic zone before it reaches the maximum requested power; the result is less than the PA_LEVEL7[7:0] value
- when 1: the maximum power targeted (PA_LEVEL7[7:0] bit field) has been reached without the PA entering the ohmic zone
- bit[6:0] = Maximum PA power before the PA enters the ohmic zone (expressed logarithmically)
if LIN_NLOG=1: result is provided in linear format
- bit[7:0] = maximum PA power before the PA enters the ohmic zone (expressed linearly)
Note: when expressed in linear scale, only the 8 MSbs out of 9-bits are provided in this register
29.7.12 VCO_CALIB_OUT register (VCO_CALIB_OUT)
Address offset: 0x002C
Reset value: 0x0000 FF40
VCO_CALIB_OUT 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. | VCO_CALAMP_OUT[13:8] | |||||
| r | r | r | r | r | r | ||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| VCO_CALAMP_OUT[7:0] | Res. | VCO_CALFREQ_OUT[6:0] | |||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | |
Bits 31:22 Reserved, must be kept at reset value.
Bits 21:8 VCO_CALAMP_OUT[13:0]: VCO amplitude calibration value currently output by the VCO calibration block (and applied on the VCO when ON)
Note: if VCO_CAL_CONFIG[15]=VCO_CALAMP_EXT=1, the value read here is equal to the value written in VCO_CAL_CONFIG[13:0]=VCO_CALAMP_EXT[13:0]
Bit 7 Reserved, must be kept at reset value.
Bits 6:0 VCO_CALFREQ_OUT[6:0]: VCO frequency calibration value currently output by the VCO calibration block (and applied on the VCO when ON)
Note: if VCO_CAL_CONFIG[23]=VCO_CALFREQ_EXT=1, the value read here is equal to the value written in VCO_CAL_CONFIG[22:16]=VCO_CALFREQ_EXT[6:0]
29.7.13 SEQ_INFO register (SEQ_INFO)
Address offset: 0x0030
Reset value: 0x0000 0000
SEQ_INFO 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. | SEQ_FSM_STATE[4:0] | ||||
| r | r | r | r | r | |||||||||||
Bits 31:5 Reserved, must be kept at reset value.
Bits 4:0 SEQ_FSM_STATE[4:0]: Current state of the Sequencer
- 0x00: WAIT_TRIGGER_W_SLEEP_EN
- 0x01: WAIT_TRIGGER_WO_SLEEP_EN
- 0x02: EXTERNAL_TRIGGER
- 0x03: GLOBALCONFIG_W0_AND_W1
- 0x04: GLOBALCONFIG_STATIC_FIELDS_W2
- 0x05: GLOBALCONFIG_STATIC_FIELDS
- 0x06: ACTIONCONFIG_ACTION1_MASK
- 0x07: ACTIONCONFIG_ACTION2_MASK
- 0x08: ACTIONCONFIG_DYNAMIC_FIELDS_W9
- 0x09: ACTIONCONFIG_DYNAMIC_FIELDS
- 0x0A: ACTIONCONFIG_W8
- 0x0B: ACTIVE_WAIT
- 0x0C: NEXT_ACTION1_TRIGGER
- 0x0D: NEXT_ACTION1_CONTROL_W3
- 0x0E: NEXT_ACTION1_CONTROL_WRITE_W0_AND_W1
- 0x0F: NEXT_ACTION1_CONTROL_W1
- 0x10: NEXT_ACTION2_TRIGGER
- 0x11: NEXT_ACTION2_CONTROL_W7
- 0x12: NEXT_ACTION2_CONTROL_WRITE_W0_AND_W1
- 0x13: NEXT_ACTION2_CONTROL_W5
- 0x14: NEXT_ACTION_TRIGGER_PROGRAM
- 0x15: ABORTING
- 0x16: EXTERNAL_TRIGGER_ABORTING
29.7.14 SEQ_EVENT_STATUS register (SEQ_EVENT_STATUS)
Address offset: 0x0034
Reset value: 0x0000 0000
SEQ_EVENT_STATUS register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SEQ_EVENT_STATUS[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 |
| SEQ_EVENT_STATUS[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 SEQ_EVENT_STATUS[31:0]: Current value of the seq_event_status used by the Sequencer for next action mask comparison. It contains both recorded events (TX_DONE, RX_OK) and real time events (Data buffer flags, RX indicator)
Reminder: the mapping of this bus is aligned on RFSEQ_IRQ_STATUS register.
29.7.15 READ-ONLY_REG_BLOCK register map and reset values
Table 124. READ-ONLY_REG_BLOCK 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 | RFSEQ_IRQ_STATUS | AGC_AAF_CALIB_DONE_F | SAFEASK_CALIB_DONE_F | Res. | RRM_CMD_END_F | RRM_CMD_START_F | SEQ_F | Res. | HW_ANA_FAILURE_F | Res. | AHB_ACCESS_ERROR_F | TX_ALMOST_EMPTY_1_F | TX_ALMOST_EMPTY_0_F | RX_ALMOST_FULL_1_F | RX_ALMOST_FULL_0_F | DATABUFFER1_USED_F | DATABUFFER0_USED_F | Res. | SYNC_VALID_F | PREAMBLE_VALID_F | CS_F | Res. | Res. | COMMAND_REJECTED_F | SABORT_DONE_F | RXTIMER_STOP_CDT_F | Res. | Res. | FAST_RX_TERM_F | RX_CRC_ERROR_F | RX_TIMEOUT_F | RX_OK_F | TX_DONE_F | |
| 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 | |||||||||
| 0x004 | RFSEQ_STATUS_DETAIL | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEQ_COMPLETE_F | SEQ_ACTIONTIMEOUT_F | Res. | Res. | PLL_CALAMP_ERROR_F | PLL_CALFREQ_ERROR_F | PLL_UNLOCK_F | PLL_LOCK_FAIL_F | Res. | Res. | Res. | DBM_FIFO_ERROR_F | Res. | Res. | Res. | Res. | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x008 | RADIO_FSM_INFO | 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. | Res. | Res. | Res. | Res. | |
| Reset value | RADIO_FSM_STATE[4:0] | |||||||||||||||||||||||||||||||||
| 0x00C | RX_INDICATOR | ANT_SELECT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RSSI_LEVEL_RUN[8:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||
| 0x010 | RX_INFO_REG | 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. | Res. | Res. | Res. | Res. | RX_PCKTLEN_OUT[15:0] |
| Reset value | 0 | |||||||||||||||||||||||||||||||||
| 0x014 | RX_CRC_REG | RX_CRC_OUT[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 | 0 | |
Table 124. READ-ONLY_REG_BLOCK 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x018 | QI_INFO | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | AFC_CORRECTION[7:0] | Res. | SQI_SEC | SQI_INFO[5:0] | PQI_INFO[7: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 | ||||||||||
| 0x01C | DATABUFFER_INFO | CURRENT_DATABUFFER | CURRENT_DATABUFFER_COUNT[15: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 | TIME_CAPTURE | TIME_CAPTURE[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 | |
| 0x024 | IQC_CORRECTION_OUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IQC_CORRECT_OUT[23: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 | |||||||||
| 0x028 | PA_SAFEASK_OUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PA_CODEMAX[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x02C | VCO_CALIB_OUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VCO_CALAMP_OUT[13:0] | Res. | VCO_CALFREQ_OUT[6:0] | |||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||
| 0x030 | SEQ_INFO | 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. | SEQ_FSM_STATE[4:0] | |||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x034 | SEQ_EVENT_STATUS | SEQ_EVENT_STATUS[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 | |

29.8 MISC_REG_BLOCK register descriptions
The MISC_REG_BLOCKBaseAddress keyword used for all registers base address information corresponds to Global registers base address+ 0x300 (with Global registers base address decided by the SoC when integrating the IP).
Note: MISC_REG_BLOCKBaseAddress is 0x4900_0700 in the STM32WL30xx/31xx/33xx.
Table 125. MISC_REG_BLOCK register list
| Offset | Register Name | Register Title | Reset |
|---|---|---|---|
| 0x0000 | RFIP_VERSION | RFIP_VERSION register | 0x0000 1200 |
| 0x0004 | RRM_UDRA_CTRL | RRM_UDRA_CTRL register | 0x0000 0000 |
| 0x0008 | SEQUENCER_CTRL | SEQUENCER_CTRL register | 0x0000 0000 |
| 0x000C | ABSOLUTE_TIME | ABSOLUTE_TIME register | 0x0000 0000 |
| 0x0010 | SCM_COUNTER_VAL | SCM_COUNTER_VAL register | 0x0000 0000 |
| 0x0014 | SCM_MIN_MAX | SCM_MIN_MAX register | 0x0000 7FFF |
| 0x0018 | WAKEUP_IRQ_STATUS | WAKEUP_IRQ_STATUS register | 0x0000 0000 |
29.8.1 RFIP_VERSION register (RFIP_VERSION)
Address offset: 0x0000
Reset value: 0x0000 1200
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 MR_SubG (to be used for cut upgrades)
Bits 7:4 REVISION[3:0]: Revision of the MR_SubG (to be used for metal fixes)
Bits 3:0 Reserved, must be kept at reset value.

29.8.2 RRM_UDRA_CTRL register (RRM_UDRA_CTRL)
Address offset: 0x0004
Reset value: 0x0000 0000
RRM_UDRA_CTRL 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. | Res. | Res. | Res. | RRM_CMD_REQ |
| w |
Bits 31:1 Reserved, must be kept at reset value.
Bit 0 RRM_CMD_REQ: Action bit.
Write 1 to request a RRM-UDRA command. The RRM checks the RRM_CMDLIST_PTR[31] = CMDLIST_VALID bit and, if set, starts fetching the command in RAM.
Note: this bit is immediately cleared by HW.

29.8.3 SEQUENCER_CTRL register (SEQUENCER_CTRL)
Address offset: 0x0008
Reset value: 0x0000 0000
SEQUENCER_CTRL 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. | Res. | Res. | DISABLE_SEQ | GEN_SEQ_TRIGGER |
| rw | w |
Bits 31:2 Reserved, must be kept at reset value.
Bit 1 DISABLE_SEQ: Enable/disable the Sequencer
- 0: enable the Sequencer (default). The Sequencer starts in the case of a trigger event
- 1: disable the Sequencer (including a potential on-going sequence) and mask any further trigger events
- This bit is cleared by the HW (Sequencer) once the potential on-going sequence is effectively aborted
- Note: from cut 2, there is no more need to set GEN_SEQ_TRIGGER bit with DISABLE_SEQ (cut 1 bug fixed)
Bit 0 GEN_SEQ_TRIGGER: Action bit.
- Write 1 to generate a trigger event on Sequencer.
- Note: this bit is immediately cleared by HW.

29.8.4 ABSOLUTE_TIME register (ABSOLUTE_TIME)
Address offset: 0x000C
Reset value: 0x0000 0000
ABSOLUTE_TIME register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ABSOLUTE_TIME[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 |
| ABSOLUTE_TIME[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 ABSOLUTE_TIME[31:0]: Indicate the interpolated absolute.
The time value is expressed in 16 x slow clock periods unit (typically 512 kHz).
It is called "interpolated" as it is built with the 28 MSbit based on the slock clock and the 4 LSbit interpolated thanks to the fast system clock.
Warning: this register is
- - read at 0 when the SoC system clock tree is not (/no more) based on accurate clock
- - restored to a meaningful value 3 slow clock cycles after the Soc system clock tree is based (again) on an accurate clock
Reminder: in this document
- - the absolute time represents only the 28 MSbit information (without interpolated part)
- - the interpolated absolute time represents the 32-bit information (with the interpolated part)
29.8.5 SCM_COUNTER_VAL register (SCM_COUNTER_VAL)
Address offset: 0x0010
Reset value: 0x0000 0000
SCM_COUNTER_VAL 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 |
| SCM_COUNTER_CURRVAL[14:0] | |||||||||||||||
| Res. | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:15 Reserved, must be kept at reset value.
Bits 14:0 SCM_COUNTER_CURRVAL[14:0]: Slow Clock Measurement: number of 16 MHz clock cycles contained in 32 slow clock periods.
This bit field is updated every 32 slow clock periods.
29.8.6 SCM_MIN_MAX register (SCM_MIN_MAX)
Address offset: 0x0014
Reset value: 0x0000 7FFF
SCM_MIN_MAX register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| CLEAR_MIN_MAX | SCM_COUNTER_MAXVAL[14:0] | |||||||||||||||
| w | 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 | |
| Res. | SCM_COUNTER_MINVAL[14:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | |
Bit 31 CLEAR_MIN_MAX: Write ‘1’ to clear the SCM_COUNTER_MINVAL and SCM_COUNTER_MAXVAL bit fields.
Note: this bit is immediately cleared by the HW.
Bits 30:16 SCM_COUNTER_MAXVAL[14:0]: Slow Clock Measurement: maximum SCM_COUNTER value seen since the counter is ON and since last clear request.
This bit field is updated every 32 slow clock periods.
Note: 0x0000 in this bit field means no measurement done yet since last reset or last CLEAR_MIN_MAX action
Bit 15 Reserved, must be kept at reset value.
Bits 14:0 SCM_COUNTER_MINVAL[14:0]: Slow Clock Measurement: minimum SCM_COUNTER value seen since the counter is ON and since last clear request.
This bit field is updated every 32 slow clock periods.
Note: 0x7FFF in this bit field means no measurement done yet since last reset or last CLEAR_MIN_MAX action
29.8.7 WAKEUP_IRQ_STATUS register (WAKEUP_IRQ_STATUS)
Address offset: 0x0018
Reset value: 0x0000 0000
WAKEUP_IRQ_STATUS 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. | Res. | Res. | RFIP_WAKEUP_F | CPU_WAKEUP_F |
| rc_w1 | rc_w1 |
Bits 31:2 Reserved, must be kept at reset value.
Bit 1 RFIP_WAKEUP_F: Set when the interpolated absolute time matches the RFIP_WAKEUPTIME while WAKEUP_CTRL.RFIP_WAKEUP_EN=1.
Note: the associated interrupt is always enabled at MR_SubG IP level. The SW must manage the Interrupt enable/disable directly through the NVIC.
Bit 0 CPU_WAKEUP_F: Set when the interpolated absolute time matches the CPU_WAKEUPTIME while WAKEUP_CTRL.CPU_WAKEUP_EN=1.
Note: the associated interrupt is always enabled at MR_SubG IP level. The SW must manage the Interrupt enable/disable directly through the NVIC.
29.8.8 MISC_REG_BLOCK register map
Table 126. MISC_REG_BLOCK 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 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||
| 0x004 | RRM_UDRA_CTRL | 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. | Res. | Res. | Res. | Res. | |
| Reset value | 0 | |||||||||||||||||||||||||||||||||
| 0x008 | SEQUENCER_CTRL | 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. | Res. | Res. | Res. | DISABLE_SEQ | |
| Reset value | 0 | |||||||||||||||||||||||||||||||||
| 0x00C | ABSOLUTE_TIME | ABSOLUTE_TIME[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 | ||
| 0x010 | SCM_COUNTER_VAL | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SCM_COUNTER_CURRVAL[14:0] | ||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x014 | SCM_MIN_MAX | CLEAR_MIN_MAX | SCM_COUNTER_MAXVAL[14:0] | Res. | SCM_COUNTER_MINVAL[14:0] | |||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | ||||
| 0x018 | WAKEUP_IRQ_STATUS | 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. | Res. | Res. | Res. | RFIP_WAKEUP_F | |
| Reset value | 0 | |||||||||||||||||||||||||||||||||
| CPU_WAKEUP_F | ||||||||||||||||||||||||||||||||||
| 0 | ||||||||||||||||||||||||||||||||||

29.9 RETAINED_REG_BLOCK register descriptions
Table 127. RETAINED_REG_BLOCK register list
| Offset | Register Name | Register Title | Reset |
|---|---|---|---|
| 0x0000 | RFIP_WAKEUPTIME | RFIP_WAKEUPTIME register | 0x0000 0000 |
| 0x0004 | CPU_WAKEUPTIME | CPU_WAKEUPTIME register | 0x0000 0000 |
| 0x0008 | WAKEUP_CTRL | WAKEUP_CTRL register | 0x0000 0000 |
| 0x000C | RRM_CMDLIST_PTR | RRM_CMDLIST_PTR register | 0x0000 0000 |
| 0x0010 | SEQ_GLOBALTABLE_PTR | SEQ_GLOBALTABLE_PTR register | 0x0000 0000 |
The RETAINED_REG_BLOCKBaseAddress keyword used for all registers base address information corresponds to Global registers base address+ 0x380 (with Global registers base address decided by the SoC when integrating the IP).
Note: RETAINED_REG_BLOCKBaseAddress is 0x4900_0780 in the STM32WL30xx/31xx/33xx.
29.9.1 RFIP_WAKEUPTIME register (RFIP_WAKEUPTIME)
Address offset: 0x0000
Reset value: 0x0000 0000
RFIP_WAKEUPTIME register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RFIP_WAKEUPTIME[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 |
| RFIP_WAKEUPTIME[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 RFIP_WAKEUPTIME[31:0]: (Absolute) Target time to wakeup the RFIP.
The value to program is in interpolated absolute time.
Note: the HW anticipates the wakeup request to the PWR by subtracting the SOC_WAKEUP_OFFSET value.
This bit field is managed by HW through the Sequencer according to ActionTable info.
29.9.2 CPU_WAKEUPTIME register (CPU_WAKEUPTIME)
Address offset: 0x0004
Reset value: 0x0000 0000
CPU_WAKEUPTIME register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| CPU_WAKEUPTIME[30:15] | |||||||||||||||
| 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 |
| CPU_WAKEUPTIME[14:0] | Res. | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
Bits 31:1 CPU_WAKEUPTIME[30:0]: Absolute target time to wakeup the CPU.
The value to program is in interpolated absolute time.
Note: the HW anticipates the wakeup request to the PWR by subtracting the SOC_WAKEUP_OFFSET value.
Bit 0 Reserved, must be kept at reset value.

29.9.3 WAKEUP_CTRL register (WAKEUP_CTRL)
Address offset: 0x0008
Reset value: 0x0000 0000
WAKEUP_CTRL register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RFIP_WAKEUP_EN | CPU_WAKEUP_EN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| r | rw | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SOC_WAKEUP_OFFSET[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bit 31 RFIP_WAKEUP_EN: Indicates if the wakeup timer has to wakeup the SoC.
(Match on RFIP_WAKEUPTIME[31:4] bit field only) + trigger an event on the Sequencer and set the RFIP_WAKEUP_F in the WAKEUP_IRQ_STATUS Misc register when match on RFIP_WAKEUPTIME[31:0] occurs.
0: no wakeup event to be generated when RFIP_WAKEUPTIME = ABSOLUTE_TIME
1: wakeup event to be generated when RFIP_WAKEUPTIME = ABSOLUTE_TIME
Note: This bit is managed by HW (through the Sequencer according to ActionTable info) and is auto cleared when a RFIP wakeup event occurs (one shot timer).
Warning: There is a latency of 2 slow clock periods between setting this bit and effectiveness of the bit. So the associated wakeup time must be more than current ABSOLUTE_TIME[31:0]+0x20.
Bit 30 CPU_WAKEUP_EN: Indicates if the wakeup timer has to wakeup the SoC.
(Match on CPU_WAKEUPTIME[31:4] bit field only) + set the CPU_WAKEUP_F in the WAKEUP_IRQ_STATUS Misc register when match on CPU_WAKEUPTIME[31:0] occurs.
0: no wakeup event to be generated when CPU_WAKEUPTIME = ABSOLUTE_TIME
1: wakeup event to be generated when CPU_WAKEUPTIME = ABSOLUTE_TIME
Warning: There is a latency of 2 slow clock periods between setting this bit and effectiveness of the bit. So the associated wakeup time must be more than current ABSOLUTE_TIME[31:0]+0x20.
Bits 29:8 Reserved, must be kept at reset value.
Bits 7:0 SOC_WAKEUP_OFFSET[7:0]: Delay to be considered by the Wakeup block to anticipate the wakeup request to the PWR of the SoC versus the target to wakeup the RFIP (or the CPU).
Value to program is time(to_enter_sleep_mode)+ time(to_exit_sleep_mode)
Unit is in slow clock period
Note: the value programmed in this bit field must be at least the duration from a wakeup event up to accurate system clock ready information + 3 slow clock periods (as the TMU needs 3 slow clock periods after the system clock accurate ready information to restore a valid 32-bit interpolated absolute time).
29.9.4 RRM_CMDLIST_PTR register (RRM_CMDLIST_PTR)
Address offset: 0x000C
Reset value: 0x0000 0000
RRM_CMDLIST_PTR register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| CMDLIST_PTR_VALID | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| rw | |||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| CMDLIST_PTR_OFFSET[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bit 31 CMDLIST_PTR_VALID: Indicate if a command list has to be executed or not
0: no need to go in RAM to get commands to execute
1: a command list is present in RAM. The RRM-UDRA can use the CMDLIST_OFFSET[15:0] to fetch the command list in RAM.
Note: for reminder, RRM-UDRA checks this bit on any MR_SubG reset exit or a write 1 in the RRM_COMMAND_REQ action bit.
Bits 30:16 Reserved, must be kept at reset value.
Bits 15:0 CMDLIST_PTR_OFFSET[15:0]: Contain the offset versus the SoC RAM base address where to find the RRM-UDRA command list entry point.
29.9.5 SEQ_GLOBALTABLE_PTR register (SEQ_GLOBALTABLE_PTR)
Address offset: 0x0010
Reset value: 0x0000 0000
SEQ_GLOBALTABLE_PTR 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 |
| SEQ_GLOBALTABLE_PTR[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 SEQ_GLOBALTABLE_PTR[15:0]: Contain the offset versus the SoC RAM base address of the GlobalConfiguration RAM table entry point. This information is used by the Sequencer.
29.9.6 RETAINED_REG_BLOCK register map
Table 128. RETAINED_REG_BLOCK 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 | RFIP_WAKEUPTIME | RFIP_WAKEUPTIME[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 | |
| 0x004 | CPU_WAKEUPTIME | CPU_WAKEUPTIME[30:0] | Res | ||||||||||||||||||||||||||||||
| 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 | ||
| 0x008 | WAKEUP_CTRL | RFIP_WAKEUP_EN | CPU_WAKEUP_EN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SOC_WAKEUP_OFFSET[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||
| 0x00C | RRM_CMDLIST_PTR | CMDLIST_PTR_VALID | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CMDLIST_PTR_OFFSET[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x010 | SEQ_GLOBALTABLE_PTR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEQ_GLOBALTABLE_PTR[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
29.10 Radio register descriptions
The Radio registers are 8-bit registers mainly used to control the RFSUBG analog IP and the Radio FSM. They also allow taking control for validation/test purposes.
They can be accessed through two different mappings:
- as 32-bit APB registers (address incremented by 4 between each register) through RRM Direct Access interface,
- as 8-bit register (address incremented by 1 between each register) through RRM UDRA command list in RAM.
29.10.1 Radio register overview
The Radio registers control the parameters for the analog and few modulator/demodulator features.
The RADIO_REG_BLOCKBaseAddress keyword used for all registers base address information corresponds to Radio registers base address decided by the SoC when integrating the IP.
Note: RADIO_REG_BLOCKBaseAddress is 0x4900_0000 in the STM32WL30xx/31xx/33xx.
Table 129. RADIO_REG_BLOCK register list
| Address Offset | Register Name | Register Title | |
|---|---|---|---|
| RRM UDRA | APB | ||
| 0x00 | 0x0000 | RF_FSM0_TIMEOUT | RF_FSM0_TIMEOUT register |
| 0x01 | 0x0004 | RF_FSM1_TIMEOUT | RF_FSM1_TIMEOUT register |
| 0x02 | 0x0008 | RF_FSM2_TIMEOUT | RF_FSM2_TIMEOUT register |
| 0x03 | 0x000C | RF_FSM3_TIMEOUT | RF_FSM3_TIMEOUT register |
| 0x04 | 0x0010 | RF_FSM4_TIMEOUT | RF_FSM4_TIMEOUT register |
| 0x05 | 0x0014 | RF_FSM5_TIMEOUT | RF_FSM5_TIMEOUT register |
| 0x06 | 0x0018 | RF_FSM6_TIMEOUT | RF_FSM6_TIMEOUT register |
| 0x07 | 0x001C | RF_FSM7_TIMEOUT | RF_FSM7_TIMEOUT register |
| 0x08 | 0x0020 | AFC0_CONFIG | AFC0_CONFIG register |
| 0x09 | 0x0024 | AFC1_CONFIG | AFC1_CONFIG register |
| 0x0A | 0x0028 | AFC2_CONFIG | AFC2_CONFIG register |
| 0x0B | 0x002C | AFC3_CONFIG | AFC3_CONFIG register |
| 0x0C | 0x0030 | CLKREC_CTRL0 | CLKREC_CTRL0 register |
| 0x0D | 0x0034 | CLKREC_CTRL1 | CLKREC_CTRL1 register |
| 0x0E | 0x0038 | DCREM_CTRL0 | DCREM_CTRL0 register |
| 0x0F | 0x003C | DCREM_CTRL1 | DCREM_CTRL1 register |
| 0x10 | 0x0040 | IQC_CTRL0 | IQC_CTRL0 register |
| 0x11 | 0x0044 | IQC_CTRL1 | IQC_CTRL1 register |
| 0x12 | 0x0048 | IQC_CTRL2 | IQC_CTRL2 register |
| 0x13 | 0x004C | IQC_CTRL3 | IQC_CTRL3 register |
| 0x14 | 0x0050 | AGC_ANA_ENG | AGC_ANA_ENG register |
| 0x15 | 0x0054 | AGC0_CTRL | AGC0_CTRL register |
| 0x16 | 0x0058 | AGC1_CTRL | AGC1_CTRL register |
| 0x17 | 0x005C | AGC2_CTRL | AGC2_CTRL register |
| 0x18 | 0x0060 | AGC3_CTRL | AGC3_CTRL register |
| 0x19 | 0x0064 | AGC4_CTRL | AGC4_CTRL register |
Table 129. RADIO_REG_BLOCK register list
| Address Offset | Register Name | Register Title | |
|---|---|---|---|
| RRM UDRA | APB | ||
| 0x1A | 0x0068 | AGC_ATTEN0 | AGC_ATTEN0 register |
| 0x1B | 0x006C | AGC_ATTEN1 | AGC_ATTEN1 register |
| 0x1C | 0x0070 | AGC_ATTEN2 | AGC_ATTEN2 register |
| 0x1D | 0x0074 | AGC_ATTEN3 | AGC_ATTEN3 register |
| 0x1E | 0x0078 | AGC_ATTEN4 | AGC_ATTEN4 register |
| 0x1F | 0x007C | AGC_ATTEN5 | AGC_ATTEN5 register |
| 0x20 | 0x0080 | AGC_ATTEN6 | AGC_ATTEN6 register |
| 0x21 | 0x0084 | AGC_ATTEN7 | AGC_ATTEN7 register |
| 0x22 | 0x0088 | AGC_ATTEN8 | AGC_ATTEN8 register |
| 0x23 | 0x008C | AGC_ATTEN9 | AGC_ATTEN9 register |
| 0x24 | 0x0090 | AGC1_ATTEN_TRIM | AGC1_ATTEN_TRIM register |
| 0x25 | 0x0094 | AGC2_ATTEN_TRIM | AGC2_ATTEN_TRIM register |
| 0x26 | 0x0098 | AGC3_ATTEN_TRIM | AGC3_ATTEN_TRIM register |
| 0x27 | 0x009C | AGC4_ATTEN_TRIM | AGC4_ATTEN_TRIM register |
| 0x28 | 0x00A0 | AGC_PGA_HWTRIM_OUT | AGC_PGA_HWTRIM_OUT register |
| 0x2A | 0x00A8 | PA_REG | PA_REG register |
| 0x2B | 0x00AC | PA_HWTRIM_OUT | PA_HWTRIM_OUT register |
| 0x2F | 0x00BC | RSSI_FLT | RSSI_FLT register |
| 0x32 to 0x39 | 0x00CC to 0x00E4 | Reserved | Reserved |
| 0x3A | 0x00E8 | RXADC_HWDELAYTRIM_OUT | RXADC_HWDELAYTRIM_OUT register |
| 0x3B | 0x00EC | RXADC_SW_DELAYTRIM | RXADC_SW_DELAYTRIM register |
| 0x3C | 0x00F0 | Reserved | Reserved |
| 0x3D | 0x00F4 | RX_AAF_HWTRIM_OUT | RX_AAF_HWTRIM_OUT register |
| 0x3E | 0x00F8 | RX_AAF_SWTRIM | RX_AAF_SWTRIM register |
| 0x3F | 0x00FC | Reserved | Reserved |
| 0x40 | 0x0100 | SINGEN_ANA_ENG | SINGEN_ANA_ENG register |
| 0x41 | 0x0104 | Reserved | Reserved |
| 0x42 | 0x0108 | RF_INFO_OUT | RF_INFO_OUT register |
| 0x49 | 0x0124 | RF_FSM8_TIMEOUT | RF_FSM8_TIMEOUT register |
| 0x4A | 0x0128 | RF_FSM9_TIMEOUT | RF_FSM9_TIMEOUT register |
| 0x4B | 0x012C | RF_FSM10_TIMEOUT | RF_FSM10_TIMEOUT register |
Table 129. RADIO_REG_BLOCK register list
| Address Offset | Register Name | Register Title | |
|---|---|---|---|
| RRM UDRA | APB | ||
| 0x4C to 0x50 | 0x0130 to 0x0140 | Reserved | Reserved |
| 0x51 | 0x0144 | SUBG_DIG_CTRL0 | SUBG_DIG_CTRL0 register |
29.10.2 RF_FSM0_TIMEOUT register (RF_FSM0_TIMEOUT)
Address offset: 0x0000
Reset value: 0x0000 0000
RF_FSM0_TIMEOUT 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. | ENA_RFREG_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 ENA_RFREG_TIMER[7:0]: Timeout for the RF regulator startup (duration in ENA_RF_REG state)
Step = \(16/F_{sys}=1\ \mu s\)
Min timeout = 1 μs
Max timeout=255 μs
(Default value=0 μs as LDO_RF is supposed to be already started for high-speed crystal)
29.10.3 RF_FSM1_TIMEOUT register (RF_FSM1_TIMEOUT)
Address offset: 0x0004
Reset value: 0x0000 0006
RF_FSM1_TIMEOUT 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. | SYNTH_SETUP_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 SYNTH_SETUP_TIMER[7:0]: Timeout management for the RF regulator to stabilize after RF PLL power on
Step = \(16/F_{sys}=1\ \mu s\)
Min timeout = 1 μs
Max timeout=255 μs
(Default value=6 μs)
29.10.4 RF_FSM2_TIMEOUT register (RF_FSM2_TIMEOUT)
Address offset: 0x0008
Reset value: 0x0000 0050
RF_FSM2_TIMEOUT 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. | VCO_CALIB_LOCK_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 VCO_CALIB_LOCK_TIMER[7:0]: Timeout for the RF PLL calibration + RF PLL lock (duration in CALIB_VCO+LOCKRXTX state)
Step = 16/Fsys=1 µs
Min timeout = 27 µs (this value must not be less than a calibration session duration)
Max timeout=255 µs
(Default value=80 µs)
29.10.5 RF_FSM3_TIMEOUT register (RF_FSM3_TIMEOUT)
Address offset: 0x000C
Reset value: 0x0000 0028
RF_FSM3_TIMEOUT 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. | VCO_LOCK_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 VCO_LOCK_TIMER[7:0]: Timeout for the RF PLL lock event when no calibration is requested (duration in LOCKRXTX state)
Step = 16/Fsys=1 µs
Min timeout = 1 µs
Max timeout=255 µs
(Default value=40 µs)
29.10.6 RF_FSM4_TIMEOUT register (RF_FSM4_TIMEOUT)
Address offset: 0x0010
Reset value: 0x0000 000F
RF_FSM4_TIMEOUT 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. | EN_RX_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 EN_RX_TIMER[7:0]: Timeout for the analog RX chain setup (duration in EN_RX state)
Step = 16/Fsys=1 µs
Min timeout = 1 µs
Max timeout=255 µs
(Default value=15 µs)
29.10.7 RF_FSM5_TIMEOUT register (RF_FSM5_TIMEOUT)
Address offset: 0x0014
Reset value: 0x0000 0019
RF_FSM5_TIMEOUT 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. | EN_PA_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 EN_PA_TIMER[7:0]: Timeout for the analog PA (DAC) setup (duration in EN_PA state)
Step = 16/Fsys=1 µs
Min timeout = 1 µs
Max timeout=255 µs
(Default value=25 µs)
29.10.8 RF_FSM6_TIMEOUT register (RF_FSM6_TIMEOUT)
Address offset: 0x0018
Reset value: 0x0000 0019
RF_FSM6_TIMEOUT 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. | PA_DWN_ANA_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 PA_DWN_ANA_TIMER[7:0]: Timeout for the analog PA (DAC) ramp down (duration in PA_DWN_ANA state)
Step = \(16/F_{sys}=1\ \mu s\)
Min timeout = 1 μs
Max timeout=255 μs
(Default value=25 μs)
29.10.9 RF_FSM7_TIMEOUT register (RF_FSM7_TIMEOUT)
Address offset: 0x001C
Reset value: 0x0000 0005
RF_FSM7_TIMEOUT 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. | EN_LNA_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 EN_LNA_TIMER[7:0]: Timeout for the analog RX chain signals settlement once PGA precharge is shut down (duration in EN_LNA state)
Step = \(16/F_{sys}=1\ \mu s\)
Min timeout = 1 μs
Max timeout=255 μs
(Default value=5 μs)
29.10.10 AFC0_CONFIG register (AFC0_CONFIG)
Address offset: 0x0020
Reset value: 0x0000 0025
AFC0_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. | AFC_FAST_GAIN_LOG2[3:0] | AFC_SLOW_GAIN_LOG2[3:0] | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 AFC_FAST_GAIN_LOG2[3:0]: AFC loop gain in fast mode. (2's log.)
Bits 3:0 AFC_SLOW_GAIN_LOG2[3:0]: AFC loop gain in slow mode. (2's log.)
29.10.11 AFC1_CONFIG register (AFC1_CONFIG)
Address offset: 0x0024
Reset value: 0x0000 0018
AFC1_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. | AFC_FAST_PERIOD[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 AFC_FAST_PERIOD[7:0]: Length of the AFC fast period (in number of samples unit)
The recommended setting for this bit is such that the fast period equals the preamble length. Since the algorithm operates typically on 2 samples per symbol, the programmed value should be twice the number of preamble symbols.
29.10.12 AFC2_CONFIG register (AFC2_CONFIG)
Address offset: 0x0028
Reset value: 0x0000 00C8
AFC2_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. | AFC_FREEZE_ON_SYNC | AFC_EN | AFC_MODE | AFC_PD_LEAKAGE[4:0] | ||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bit 7 AFC_FREEZE_ON_SYNC: Freeze AFC correction upon SYNC word detection
Bit 6 AFC_EN: Enable AFC.
Note: this bit can be used for frequency modulation such as 2-(G) FSK and 4-(G)FSK. In ASK/OOK, the AFC algorithm is systematically used by the HW to adjust the amplitude offset before the slicer.
Bit 5 AFC_MODE: Select AFC mode
- 0: slider correction mode (AFC Loop closed on slicer)
- 1: 2nd IF corection mode (AFC Loop closed on 2nd IF conversion stage)
Bits 4:0 AFC_PD_LEAKAGE[4:0]: AFC Peak Detection leakage.
This bit field sets the decay speed of the min/max frequency peak detector
0: no leakage
- ...
- 31: high leakage
Note: the recommended value for this bit field is 4.

29.10.13 AFC3_CONFIG register (AFC3_CONFIG)
Address offset: 0x002C
Reset value: 0x0000 00E8
AFC3_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. | AFC_REINIT_OPTION[1:0] | AFC_TH_SIGN_PERM[3:0] | AFC_SIGN_PERM_CHECK | AFC_INIT_MODE | ||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:6 AFC_REINIT_OPTION[1:0]: Select the AFC reinitialization option:
- 00: No reinitialization allowed
- 01: Reinitialization based on RSSI ramping
- 10: Reinitialization based on abnormal Fdev
- 11: Reinitialization on both RSSI or abnormal Fdev
Bits 5:2 AFC_TH_SIGN_PERM[3:0]: Threshold of chech sign permanence mechanism.
Bit 1 AFC_SIGN_PERM_CHECK: Enable the check of sign permanence of AFC corrected signal.
Bit 0 AFC_INIT_MODE: Control the initialization phase of the AFC and clock recovery algorithms
0: The initial frequency error is estimated based on the average of the frequency deviation of the first 4 received symbols after that the RSSI has passed the threshold level. After the initial estimation, the frequency correction is adjusted in closed loop tracking the frequency error on the received PREAMBLE, SYNC and PAYLOAD symbols.
1: The initial frequency error is estimated simultaneously with the detection of the SYNC word, based on the average frequency deviation of the last 4 PREAMBLE symbols before the SYNC word itself.
When this mode is selected, the clock recovery algorithm is initialized based on the zero crossing points of such PREAMBLE symbols. After the initial estimation, the frequency correction is adjusted in closed loop tracking the frequency error on the packet PAYLOAD symbols.
Note: This option provides better performance in case of packet formats with very short preamble
29.10.14 CLKREC_CTRL0 register (CLKREC_CTRL0)
Address offset: 0x0030
Reset value: 0x0000 00B8
CLKREC_CTRL0 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. | PSTFLT_LEN | CLKREC_P_GAIN_FAST[2:0] | CLKREC_I_GAIN_FAST[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bit 7 PSTFLT_LEN: Control the length of the demodulator post-filter
- 0: 8 symbols,
- 1: 16 symbols
Note: Setting this value to 1 may improve demodulation performance but requires a slower recovery
Bits 6:4 CLKREC_P_GAIN_FAST[2:0]: Clock recovery fast loop gain (log2)
- - in DLL mode: control the convergence speed of the loop
- - in PLL mode: gain coefficient used before the SYNC word detection
Bits 3:0 CLKREC_I_GAIN_FAST[3:0]: Integral fast gain for the clock recovery loop (PLL mode only)
This coefficient is used before the SYNC word detection.

29.10.15 CLKREC_CTRL1 register (CLKREC_CTRL1)
Address offset: 0x0034
Reset value: 0x0000 005C
CLKREC_CTRL1 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. | CLKREC_ALGO_SEL | CLKREC_P_GAIN_SLOW[2:0] | CLKREC_I_GAIN_SLOW[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bit 7 CLKREC_ALGO_SEL: Symbol timing recovery algorithm selection
0: simple first order algorithm is used (shortly referred to as DLL)
1: second order algorithm is used (shortly referred to as PLL)
Bits 6:4 CLKREC_P_GAIN_SLOW[2:0]: Clock recovery slow loop gain (log2)
- in DLL mode: control the convergence speed of the loop
- in PLL mode: gain coefficient used after the SYNC word detection
Bits 3:0 CLKREC_I_GAIN_SLOW[3:0]: Integral slow gain for the clock recovery loop (PLL mode only)
This coefficient is used after the SYNC word detection.
29.10.16 DCREM_CTRL0 register (DCREM_CTRL0)
Address offset: 0x0038
Reset value: 0x0000 00E8
DCREM_CTRL0 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. | TRACK_GAIN | Res. | Res. | START_GAIN[4:0] | ||||
| rw | rw | rw | rw | rw | rw | ||||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bit 7 TRACK_GAIN: Filter gain in track mode for the DC removal block.
This bit field sets the final bandwidth of the filter which is used after the track period.
The recommended value for this parameter is 14.
Bits 6:5 Reserved, must be kept at reset value.
Bits 4:0 START_GAIN[4:0]: Filter gain in start mode for the DC removal block.
This bit field sets the final bandwidth of the filter which is used after the start period.
The recommended value for this parameter is 8.
29.10.17 DCREM_CTRL1 register (DCREM_CTRL1)
Address offset: 0x003C
Reset value: 0x0000 0005
DCREM_CTRL1 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. | Res. | Res. | Res. | Res. |
Bits 31:0 Reserved, must be kept at reset value.
29.10.18 IQC_CTRL0 register (IQC_CTRL0)
Address offset: 0x0040
Reset value: 0x0000 00E3
IQC_CTRL0 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. | SLOW_GAIN[3:0] | FAST_GAIN[3:0] | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 SLOW_GAIN[3:0]: Gain of the correction loop in slow mode.
A lower value corresponds to a larger gain.
Note: setting a large gain makes the loop faster but increases the noise.
Bits 3:0 FAST_GAIN[3:0]: Gain of the correction loop in fast mode.
A lower value corresponds to a larger gain.
Note: setting a large gain makes the loop faster but increases the noise.
29.10.19 IQC_CTRL1 register (IQC_CTRL1)
Address offset: 0x0044
Reset value: 0x0000 0008
IQC_CTRL1 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. | QPD_ATTACK[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 QPD_ATTACK[7:0]: Attack coefficient for QPD:
This bit field controls the QPD detector inside the IQC algorithm.
The recommended value is 8.
29.10.20 IQC_CTRL2 register (IQC_CTRL2)
Address offset: 0x0048
Reset value: 0x0000 0008
IQC_CTRL2 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. | QPD_DECAY[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 QPD_DECAY[7:0]: Decay coefficient for QPD:
This bit field controls the QPD detector inside the IQC algorithm.
The recommended value is 8.
29.10.21 IQC_CTRL3 register (IQC_CTRL3)
Address offset: 0x004C
Reset value: 0x0000 0007
IQC_CTRL3 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. | FAST_TIME[3:0] | |||
| rw | rw | rw | rw | ||||||||||||
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 FAST_TIME[3:0]: Duration of the fast mode.

29.10.22 AGC_ANA_ENG register (AGC_ANA_ENG)
Address offset: 0x0050
Reset value: 0x0000 0000
AGC_ANA_ENG 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. | RFD_RX_PGA_AGC_GAIN[2:0] | RFD_RX_ATTEN_AGC_GAIN[3:0] | FOREC_AGC_GAINS | |||||
| rw | rw | rw | rw | rw | rw | rw | |||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:5 RFD_RX_PGA_AGC_GAIN[2:0]: Attenuation at PGA level by step of 6 dB with binary code
- 000: no attenuation
- 001: -6 dB
- 010: -12 dB
- 011: -18 dB
- 100: -24 dB
- 101: -30 dB
- 11x: -30 dB
Bits 4:1 RFD_RX_ATTEN_AGC_GAIN[3:0]: Attenuation at LNA level by step of 6 dB with thermometric code
- 0000: no attenuation
- 0001: -6 dB
- 0011: -12 dB
- 0111: -18 dB
- 1111: -24 dB
Bit 0 FOREC_AGC_GAINS: Select the test mode for AGC analog part
- 0: the AGC signals are managed by the AGC controller in RX top
- 1: the signals listed above are forced by the associated register bit value

29.10.23 AGC0_CTRL register (AGC0_CTRL)
Address offset: 0x0054
Reset value: 0x0000 0099
AGC0_CTRL 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. | AGC_EN | AGC_START_ONHOLD | AGC_HOLD_TIME[5:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bit 7 AGC_EN: Enable the AGC
0: AGC is disabled
1: AGC is enabled (default)
Bit 6 AGC_START_ONHOLD: Start the AGC with a hold phase.
Bits 5:0 AGC_HOLD_TIME[5:0]: AGC hold time.
Time unit is Fsys (16 MHz) clock cycle.
29.10.24 AGC1_CTRL register (AGC1_CTRL)
Address offset: 0x0058
Reset value: 0x0000 0062
AGC1_CTRL 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. | AGC_MAX_THR[3:0] | AGC_MIN_THR[3:0] | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 AGC_MAX_THR[3:0]: Maximum signal threshold.
Attenuation is increased immediately if the signal goes above this level.
Bits 3:0 AGC_MIN_THR[3:0]: Minimum signal threshold.
Attenuation is reduced if the signal goes below this level for the while measurement time.

29.10.25 AGC2_CTRL register (AGC2_CTRL)
Address offset: 0x005C
Reset value: 0x0000 00AF
AGC2_CTRL 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. | AGC_HIGH_ATTEN_MODE | AGC_FREEZE_ON_STEADY | AGC_FREEZE_ON_SYNC | AGC_START_MAX_ATTEN | AGC_MEAS_TIME[3:0] | |||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
- Bit 7 AGC_HIGH_ATTEN_MODE: Enable the high attenuation mode.
In high attenuation mode 2 attenuation steps is added if the ADC is fully saturated. - Bit 6 AGC_FREEZE_ON_STEADY: Enable the autofreeze feature
- Bit 5 AGC_FREEZE_ON_SYNC: Enable the freeze on SYNC detection feature
- Bit 4 AGC_START_MAX_ATTEN: Start the AGC with maximum attenuation
- Bits 3:0 AGC_MEAS_TIME[3:0]: Measure time.
Time unit is: 16 MHz (Fsys) clock period x 2^(AGC_MEAS_TIME+2).

29.10.26 AGC3_CTRL register (AGC3_CTRL)
Address offset: 0x0060
Reset value: 0x0000 0090
AGC3_CTRL 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. | AGC_MAX_ATTEN[3:0] | AGC_MIN_ATTEN[3:0] | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 AGC_MAX_ATTEN[3:0]: Maximum AGC attenuation.
Limits the maximum attenuation step to this value.
Note: max value is 9 (as maximum 9 steps of attenuation are available in RX chain)
Bits 3:0 AGC_MIN_ATTEN[3:0]: Minimum AGC attenuation.
Limits the minimum attenuation step to this value.
29.10.27 AGC4_CTRL register (AGC4_CTRL)
Address offset: 0x0064
Reset value: 0x0000 0002
AGC4_CTRL 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_FREEZE_THR[3:0] | |||
| rw | rw | rw | rw | ||||||||||||
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 AGC_FREEZE_THR[3:0]: Signal threshold for the autofreeze feature.
The AGC may be frozen if the signal level remains between the max threshold and the freeze threshold for the whole measure time.
29.10.28 AGC_ATTEN0 register (AGC_ATTEN0)
Address offset: 0x0068
Reset value: 0x0000 0000
AGC_ATTEN0 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. | PGA_AGCGAIN_0[2:0] | ATTEN_AGCGAIN_0[3:0] | |||||
| rw | rw | rw | rw | rw | rw | ||||||||||
Bits 31:7 Reserved, must be kept at reset value.
PGA_AGCGAIN_0[2:0]: AGC attenuation control setting for step 0 on PGA point.
- Coded in binary:
- Bits 6:4 000: 0 dB of attenuation
001: 6 dB of attenuation
...
101: 30 dB of attenuation
110 and 111: reserved
ATTEN_AGCGAIN_0[3:0]: AGC attenuation control setting for step 0 for LNA+BOM point.
- Coded with thermometric code as follows:
- Bits 3:0 0000: 0 dB of attenuation
0001: 6 dB of attenuation
0011: 12 dB of attenuation
0111: 18 dB of attenuation
1111: 24 dB of attenuation

29.10.29 AGC_ATTEN1 register (AGC_ATTEN1)
Address offset: 0x006C
Reset value: 0x0000 0010
AGC_ATTEN1 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. | PGA_AGCGAIN_1[2:0] | ATTEN_AGCGAIN_1[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | |||||||||
Bits 31:7 Reserved, must be kept at reset value.
PGA_AGCGAIN_1[2:0]: AGC attenuation control setting for step 1 on PGA point.
Coded in binary:
000: 0 dB of attenuation
Bits 6:4 001: 6 dB of attenuation
...
101: 30 dB of attenuation
110 and 111: reserved
ATTEN_AGCGAIN_1: AGC attenuation control setting for step 1 for LNA+BOM point.
Coded with thermometric code as follows:
0000: 0 dB of attenuation
Bits 3:0 0001: 6 dB of attenuation
0011: 12 dB of attenuation
0111: 18 dB of attenuation
1111: 24 dB of attenuation

29.10.30 AGC_ATTEN2 register (AGC_ATTEN2)
Address offset: 0x0070
Reset value: 0x0000 0020
AGC_ATTEN2 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. | PGA_AGCGAIN_2[2:0] | ATTEN_AGCGAIN_2[3:0] | |||||
| rw | rw | rw | rw | rw | rw | ||||||||||
Bits 31:70 Reserved, must be kept at reset value.
PGA_AGCGAIN_2[2:0]: AGC attenuation control setting for step 2 on PGA point.
Coded in binary:
000: 0 dB of attenuation
Bits 6:4 001: 6 dB of attenuation
...
101: 30 dB of attenuation
110 and 111: reserved
ATTEN_AGCGAIN_2[3:0]: AGC attenuation control setting for step 2 for LNA+BOM point.
Coded with thermometric code as follows:
0000: 0 dB of attenuation
Bits 3:0 0001: 6 dB of attenuation
0011: 12 dB of attenuation
0111: 18 dB of attenuation
1111: 24 dB of attenuation

29.10.31 AGC_ATTEN3 register (AGC_ATTEN3)
Address offset: 0x0074
Reset value: 0x0000 0030
AGC_ATTEN3 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. | PGA_AGCGAIN_3[2:0] | ATTEN_AGCGAIN_3[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | |||||||||
Bits 31:7 Reserved, must be kept at reset value.
PGA_AGCGAIN_3[2:0]: AGC attenuation control setting for step 3 on PGA point.
Coded in binary:
000: 0 dB of attenuation
Bits 6:4 001: 6 dB of attenuation
...
101: 30 dB of attenuation
110 and 111: reserved
ATTEN_AGCGAIN_3[3:0]: AGC attenuation control setting for step 3 for LNA+BOM point.
Coded with thermometric code as follows:
Bits 3:0 0000: 0 dB of attenuation
0001: 6 dB of attenuation
0011: 12 dB of attenuation
0111: 18 dB of attenuation
1111: 24 dB of attenuation

29.10.32 AGC_ATTEN4 register (AGC_ATTEN4)
Address offset: 0x0078
Reset value: 0x0000 0040
AGC_ATTEN4 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. | PGA_AGCGAIN_4[2:0] | ATTEN_AGCGAIN_4[3:0] | |||||
| rw | rw | rw | rw | rw | rw | ||||||||||
Bits 31:7 Reserved, must be kept at reset value.
PGA_AGCGAIN_4[2:0]: AGC attenuation control setting for step 4 on PGA point.
Coded in binary:
000: 0 dB of attenuation
Bits 6:4 001: 6 dB of attenuation
...
101: 30 dB of attenuation
110 and 111: reserved
ATTEN_AGCGAIN_4[3:0]: AGC attenuation control setting for step 4 for LNA+BOM point.
Coded with thermometric code as follows:
0000: 0 dB of attenuation
Bits 3:0 0001: 6 dB of attenuation
0011: 12 dB of attenuation
0111: 18 dB of attenuation
1111: 24 dB of attenuation

29.10.33 AGC_ATTEN5 register (AGC_ATTEN5)
Address offset: 0x007C
Reset value: 0x0000 0041
AGC_ATTEN5 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. | PGA_AGCGAIN_5[2:0] | ATTEN_AGCGAIN_5[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | |||||||||
Bits 31:7 Reserved, must be kept at reset value.
PGA_AGCGAIN_5[2:0]: AGC attenuation control setting for step 5 on PGA point.
- Coded in binary:
- 000: 0 dB of attenuation
- Bits 6:4001: 6 dB of attenuation
- ...
- 101: 30 dB of attenuation
- 110 and 111: reserved
ATTEN_AGCGAIN_5[3:0]: AGC attenuation control setting for step 5 for LNA+BOM point.
- Coded with thermometric code as follows:
- 0000: 0 dB of attenuation
- Bits 3:0001: 6 dB of attenuation
- 0011: 12 dB of attenuation
- 0111: 18 dB of attenuation
- 1111: 24 dB of attenuation

29.10.34 AGC_ATTEN6 register (AGC_ATTEN6)
Address offset: 0x0080
Reset value: 0x0000 0043
AGC_ATTEN6 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. | PGA_AGCGAIN_6[2:0] | ATTEN_AGCGAIN_6[3:0] | |||||
| rw | rw | rw | rw | rw | rw | ||||||||||
Bits 31:7 Reserved, must be kept at reset value.
PGA_AGCGAIN_6[2:0]: AGC attenuation control setting for step 6 on PGA point.
- Coded in binary:
- Bits 6:4
- 000: 0 dB of attenuation
- 001: 6 dB of attenuation
- ...
- 101: 30 dB of attenuation
- 110 and 111: reserved
ATTEN_AGCGAIN_6[3:0]: AGC attenuation control setting for step 6 for LNA+BOM point.
- Coded with thermometric code as follows:
- Bits 3:0
- 0000: 0 dB of attenuation
- 0001: 6 dB of attenuation
- 0011: 12 dB of attenuation
- 0111: 18 dB of attenuation
- 1111: 24 dB of attenuation

29.10.35 AGC_ATTEN7 register (AGC_ATTEN7)
Address offset: 0x0084
Reset value: 0x0000 0047
AGC_ATTEN7 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. | PGA_AGCGAIN_7[2:0] | ATTEN_AGCGAIN_7[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | |||||||||
Bits 31:7 Reserved, must be kept at reset value.
PGA_AGCGAIN_7[2:0]:AGC attenuation control setting for step 7 on PGA point.
- Coded in binary:
- Bits 6:4
- 000: 0 dB of attenuation
- 001: 6 dB of attenuation
- ...
- 101: 30 dB of attenuation
- 110 and 111: reserved
ATTEN_AGCGAIN_7[3:0]: AGC attenuation control setting for step 7 for LNA+BOM point.
- Coded with thermometric code as follows:
- Bits 3:0
- 0000: 0 dB of attenuation
- 0001: 6 dB of attenuation
- 0011: 12 dB of attenuation
- 0111: 18 dB of attenuation
- 1111: 24 dB of attenuation

29.10.36 AGC_ATTEN8 register (AGC_ATTEN8)
Address offset: 0x0088
Reset value: 0x0000 004F
AGC_ATTEN8 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. | PGA_AGCGAIN_8[2:0] | ATTEN_AGCGAIN_8[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | |||||||||
Bits 31:7 Reserved, must be kept at reset value.
PGA_AGCGAIN_8[2:0]: AGC attenuation control setting for step 8 on PGA point.
- Coded in binary:
- 000: 0 dB of attenuation
- Bits 6:4001: 6 dB of attenuation
- ...
- 101: 30 dB of attenuation
- 110 and 111: reserved
ATTEN_AGCGAIN_8[3:0]: AGC attenuation control setting for step 8 for LNA+BOM point.
- Coded with thermometric code as follows:
- 0000: 0 dB of attenuation
- Bits 3:0001: 6 dB of attenuation
- 0011: 12 dB of attenuation
- 0111: 18 dB of attenuation
- 1111: 24 dB of attenuation

29.10.37 AGC_ATTEN9 register (AGC_ATTEN9)
Address offset: 0x008C
Reset value: 0x0000 005F
AGC_ATTEN9 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. | PGA_AGCGAIN_9[2:0] | ATTEN_AGCGAIN_9[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | |||||||||
Bits 31:7 Reserved, must be kept at reset value.
PGA_AGCGAIN_9[2:0]: AGC attenuation control setting for step 9 on PGA point.
- Coded in binary:
- Bits 6:4
- 000: 0 dB of attenuation
- 001: 6 dB of attenuation
- ...
- 101: 30 dB of attenuation
- 110 and 111: reserved
ATTEN_AGCGAIN_9[3:0]: AGC attenuation control setting for step 9 for LNA+BOM point.
- Coded with thermometric code as follows:
- Bits 3:0
- 0000: 0 dB of attenuation
- 0001: 6 dB of attenuation
- 0011: 12 dB of attenuation
- 0111: 18 dB of attenuation
- 1111: 24 dB of attenuation

29.10.38 AGC1_ATTEN_TRIM register (AGC1_ATTEN_TRIM)
Address offset: 0x0090
Reset value: 0x0000 00AF
AGC1_ATTEN_TRIM 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. | AGC1_ATTEN_TRIM_IN[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
AGC1_ATTEN_TRIM_IN[7:0] : AGC ATTEN trim[7:0] (calibration in) for step1 on AGC_ATTENBits 7:0 Note: the RFSUBG analog IP expects 9-bit trim, this value represent trim[7:0], the bit8 is stuck at 0 at HW level inside the MR_SubG.29.10.39 AGC2_ATTEN_TRIM register (AGC2_ATTEN_TRIM)
Address offset: 0x0094
Reset value: 0x0000 00AF
AGC2_ATTEN_TRIM 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. | AGC2_ATTEN_TRIM_IN[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
AGC2_ATTEN_TRIM_IN[7:0] : AGC ATTEN trim[7:0] (calibration in) for step2 on AGC_ATTENBits 7:0 Note: the RFSUBG analog IP expects 9-bit trim, this value represent trim[7:0], the bit8 is stuck at 0 at HW level inside the MR_SubG.29.10.40 AGC3_ATTEN_TRIM register (AGC3_ATTEN_TRIM)
Address offset: 0x0098
Reset value: 0x0000 00AF
AGC3_ATTEN_TRIM 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. | AGC3_ATTEN_TRIM_IN[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
AGC3_ATTEN_TRIM_IN[7:0] : AGC ATTEN trim[7:0] (calibration in) for step3 on AGC_ATTENBits 7:0 Note: the RFSUBG analog IP expects 9-bit trim, this value represent trim[7:0], the bit8 is stuck at 0 at HW level inside the MR_SubG.29.10.41 AGC4_ATTEN_TRIM register (AGC4_ATTEN_TRIM)
Address offset: 0x009C
Reset value: 0x0000 00AF
AGC4_ATTEN_TRIM 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. | AGC4_ATTEN_TRIM_IN[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
AGC4_ATTEN_TRIM_IN[7:0] : AGC ATTEN trim[7:0] (calibration in) for step4 on AGC_ATTEN.Bits 7:0 Note: the RFSUBG analog IP expects 9-bit trim, this value represent trim[7:0], the bit8 is stuck at 0 at HW level inside the MR_SubG.29.10.42 AGC_PGA_HWTRIM_OUT register (AGC_PGA_HWTRIM_OUT)
Address offset: 0x00A0
Reset value: 0x0000 0008
AGC_PGA_HWTRIM_OUT 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_HW_PGA_TRIM[3:0] | |||
| r | r | r | r | ||||||||||||
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 AGC_HW_PGA_TRIM[3:0]: AGC PGA calibration information loaded by HW from the SoC flash.
Default value if flash is empty is 0x8.
29.10.43 PA_REG register (PA_REG)
Address offset: 0x00A8
Reset value: 0x0000 0000
PA_REG 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. | PA_DEGEN_ON | Res. | CFG_FILT[1:0] | |
| rw | rw | rw | |||||||||||||
Bits 31:4 Reserved, must be kept at reset value.
Bit 3 PA_DEGEN_ON: Enable a 'degeneration' mode, which introduces a pre-distortion to linearize the power control curve.
Bit 2 Reserved, must be kept at reset value.
Bits 1:0 CFG_FILT[1:0]: FIR configuration
- 00: filtering
- 01: ramping
- 10: switching
- 11: filtering
29.10.44 PA_HWTRIM_OUT register (PA_HWTRIM_OUT)
Address offset: 0x00AC
Reset value: 0x0000 0088
PA_HWTRIM_OUT 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. | PA_HW_DEGEN_TRIM[3:0] | Res. | Res. | Res. | Res. | |||
| r | r | r | r | ||||||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 PA_HW_DEGEN_TRIM[3:0]: MSB part meaning:
- 00xx: Code threshold: 418
- 01xx: Code threshold: 439
- 10xx: Code threshold: 465 (default when no trimming in flash)
- 11xx: Code threshold: 485
- LSB part meaning
- xx00 => Clamp voltage: 0.40 V (default when no trimming in flash)
- xx01 => Clamp voltage: 0.45 V
- xx10 => Clamp voltage: 0.50 V
- xx11 => Clamp voltage: 0.55 V
Bits 3:0 Reserved, must be kept at reset value.

29.10.45 RSSI_FLT register (RSSI_FLT)
Address offset: 0x00BC
Reset value: 0x0000 00E0
RSSI_FLT 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. | RSSI_FLT[3:0] | FREEZE_ON_SYNC_OOK_PEAK_DECAY | OOK_PEAK_DECAY[2:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 RSSI_FLT[3:0]: Gain of the RSSI filter
Bit 3 FREEZE_ON_SYNC_OOK_PEAK_DECAY: freeze on sync OOK peak decay.
Bits 2:0 OOK_PEAK_DECAY[3:0]: Peak decay control for OOK:
- 000b: OOK peak decay disabled
- 001b: fastest decay
- 111b: slowest decay

29.10.46 RXADC_HWDELAYTRIM_OUT register (RXADC_HWDELAYTRIM_OUT)
Address offset: 0x00E8
Reset value: 0x0000 001B
RXADC_HWDELAYTRIM_OUT 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. | RXADC_HW_DELAYTRIM_Q[2:0] | RXADC_HW_DELAYTRIM_I[2:0] | ||||
| r | r | r | r | r | r | ||||||||||
Bits 31:6 Reserved, must be kept at reset value.
Bits 5:3 RXADC_HW_DELAYTRIM_Q[2:0]: Control bits of the RX ADC loop delay for Q channel (from SoC flash memory).
Default value mentioned here is when empty flash.
Bits 2:0 RXADC_HW_DELAYTRIM_I[2:0]: Control bits of the RX ADC loop delay for I channel (from SoC flash memory).
Default value mentioned here is when empty flash.
29.10.47 RX_AAF_HWTRIM_OUT register (RX_AAF_HWTRIM_OUT)
Address offset: 0x00F4
Reset value: 0x0000 0006
RX_AAF_HWTRIM_OUT 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. | AAF_HW_FCTRIM[3:0] | |||
| r | r | r | r | ||||||||||||
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 AAF_HW_FCTRIM[3:0]: AAF calibration information loaded by HW.
Default value mentioned here is when empty flash.
29.10.48 SINGEN_ANA_ENG register (SINGEN_ANA_ENG)
Address offset: 0x0100
Reset value: 0x0000 0000
SINGEN_ANA_ENG 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. | Res. | RFD_SINGEN_LBE | RFD_SINGEN_DIV2_PUP | RFD_SINGEN_ENA |
| rw | rw | rw |
Bits 31:3 Reserved, must be kept at reset value.
Bit 2 RFD_SINGEN_LBE: This bit value is directly connected to the RFSUBG analog IP pin.
This bit must be set to:
- 1: when the SINGEN is used in the 400-500 MHz band
- 0: else
Bit 1 RFD_SINGEN_DIV2_PUP: This bit value is directly connected to the RFSUBG analog IP pin.
This bit must be set to:
- 1: when the SINGEN is used in the 400-500 MHz band
- 0: else
For devices with the 159 -185 MHz frequency band option only - This bit value is directly connected to the RFSUBG analog IP pin.
This bit must be set to:
- 1: when the SINGEN is used in the 169 MHz band
- 0: else
Bit 0 RFD_SINGEN_ENA: Enable SINGEN signal for the RFSUBGanalog IP.
This bit value is directly connected to the RFSUBG analog IP pin.
29.10.49 RF_INFO_OUT register (RF_INFO_OUT)
Address offset: 0x0108
Reset value: 0x0000 0040 (0x0000 0043 for 169 MHz band part number)
RF_INFO_OUT 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. | RFSUBG_ID[3:0] | FQCY_BAND_ID[3:0] | ||||||
| r | r | r | r | r | r | r | r | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 RFSUBG_ID[3:0]: Indicates the version of the analog RFSUBG IP embedded in the device
0000: cut 1.0
0001: cut 1.1
0100: cut 2.0
Bits 3:0 FQCY_BAND_ID[3:0]: Indicates the version of the RFSUBG IP embedded in the device
0000: standard band
0011: 169 MHz band

29.10.50 RF_FSM8_TIMEOUT register (RF_FSM8_TIMEOUT)
Address offset: 0x0124
Reset value: 0x0000 000A
RF_FSM8_TIMEOUT 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. | SYNTH_PDWN_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 SYNTH_PDWN_TIMER[7:0]: Timeout management for the RF regulator to stabilize after PLL shut down
Step = 16/CLK16M = 1 µs
Min timeout = 1 µs
Max timeout=255 µs
(Default value=10 µs)
29.10.51 RF_FSM9_TIMEOUT register (RF_FSM9_TIMEOUT)
Address offset: 0x0128
Reset value: 0x0000 0006
RF_FSM9_TIMEOUT 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. | END_RX_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 END_RX_TIMER[7:0]: Timeout management for the RF regulator to stabilize after analog RX chain shut down
Step = 16/CLK16M=1 µs
Min timeout = 1 µs
Max timeout=255 µs
(Default value=6 µs)
29.10.52 RF_FSM10_TIMEOUT register (RF_FSM10_TIMEOUT)
Address offset: 0x012C
Reset value: 0x0000 0006
RF_FSM10_TIMEOUT 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. | END_TX_TIMER[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 END_TX_TIMER[7:0]: Timeout management for the RF regulator to stabilize after clock stops on the analog PA block
Step = 16/CLK16M=1 µs
Min timeout = 1 µs
Max timeout=255 µs
(Default value=6 µs)
29.10.53 SUBG_DIG_CTRL0 register (SUBG_DIG_CTRL0)
Address offset: 0x0144
Reset value: 0x0000 0000
SUBG_DIG_CTRL0 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. | Res. | Res. | Res. | FORCE_GPIO_OUTPUT |
| rw |
Bits 31:1 Reserved, must be kept at reset value.
Bit 0 FORCE_GPIO_OUTPUT: Option for the direct GPIO signal output
0 (default): The GPIO signals (RX Clock / RX Data for reception and TX Clock for transmission) are propagated to the SoC only when direct through GPIO mode is selected.
1: The GPIO signals (RX Clock / RX Data for reception and TX Clock for transmission) are propagated to the SoC regardless the RX or TX mode.
29.10.54 RADIO_REG_REG_BLOCK register map
Table 130. RADIO_REG_REG_BLOCK 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 | RF_FSM0_TIMEOUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ENA_RFREG_TIMER[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||
| 0x004 | RF_FSM1_TIMEOUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SYNTH_SETUP_TIMER[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | |||||||||||||||||||||||||
| 0x008 | RF_FSM2_TIMEOUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VCO_CALIB_LOCK_TIMER[7:0] | |||||||
| Reset value | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x00C | RF_FSM3_TIMEOUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VCO_LOCK_TIMER[7:0] | |||||||
| Reset value | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x010 | RF_FSM4_TIMEOUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | EN_RX_TIMER[7:0] | ||||||||
| Reset value | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||
| 0x014 | RF_FSM5_TIMEOUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | EN_PA_TIMER[7:0] | ||||||||
| Reset value | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | |||||||||||||||||||||||||
Table 130. RADIO_REG_REG_BLOCK register map and reset values (continued)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x018 | RF_FSM6_TIMEOUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PA_DWN_ANA_TIMER[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | |||||||||||||||||||||||||
| 0x01C | RF_FSM7_TIMEOUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | EN_LNA_TIMER[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | |||||||||||||||||||||||||
| 0x020 | AFC0_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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x024 | AFC1_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. | AFC_FAST_PERIOD[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x028 | AFC2_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. | AFC_FREEZE_ON_SYNC | AFC_EN | AFC_MODE | AFC_PD_LEAKAGE[4:0] | ||||
| Reset value | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x02C | AFC3_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. | AFC_REINIT_OPTION[1:0] | AFC_TH_SIGN_PERM[3:0] | AFC_SIGN_PERM_CHECK | AFC_INIT_MODE | ||||
| Reset value | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||
Table 130. RADIO_REG_REG_BLOCK register map and reset values (continued)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x030 | CLKREC_CTRL0 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PSTFLT_LEN | CLKREC_P_GAIN_FAST[2:0] | ||||||
| Reset value | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x034 | CLKREC_CTRL1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CLKREC_ALGO_SEL | CLKREC_P_GAIN_SLOW[2:0] | ||||||
| Reset value | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | |||||||||||||||||||||||||
| 0x038 | DCREM_CTRL0 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TRACK_GAIN | |||||||
| Reset value | 1 | 0 | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x03C | DCREM_CTRL1 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x040 | IQC_CTRL0 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SLOW_GAIN[3:0] | |||||||
| Reset value | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | |||||||||||||||||||||||||
| 0x044 | IQC_CTRL1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | QPD_ATTACK[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x048 | IQC_CTRL2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | QPD_DECAY[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Table 130. RADIO_REG_REG_BLOCK register map and reset values (continued)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x04C | IQC_CTRL3 | 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. | FAST_TIME[3:0] | ||||
| Reset value | 0 | 1 | 1 | 1 | |||||||||||||||||||||||||||||
| 0x050 | AGC_ANA_ENG | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RFD_RX_PGA_AGC_GAIN[2:0] | RFD_RX_ATTEN_AGC_GAIN[3:0] | FORCE_AGC_GAINS | |||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x054 | AGC0_CTRL | 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_EN | AGC_HOLD_TIME[5:0] | ||||||
| Reset value | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | |||||||||||||||||||||||||
| 0x058 | AGC1_CTRL | 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_MAX_THR[3:0] | AGC_MIN_THR[3:0] | ||||||
| Reset value | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | |||||||||||||||||||||||||
| 0x05C | AGC2_CTRL | 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_HIGH_ATTEN_MODE | AGC_FREEZE_ON_STEADY | AGC_FREEZE_ON_SYNC | AGC_START_MAX_ATTEN | AGC_MEAS_TIME[3:0] | |||
| Reset value | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||

Table 130. RADIO_REG_REG_BLOCK register map and reset values (continued)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x060 | AGC3_CTRL | 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_MAX_ATTEN[3:0] | AGC_MIN_ATTEN[3:0] | ||||||
| Reset value | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x064 | AGC4_CTRL | 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_FREEZE_THR[3:0] | |||
| Reset value | 0 | 0 | 1 | 0 | |||||||||||||||||||||||||||||
| 0x068 | AGC_ATTEN0 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x06C | AGC_ATTEN1 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x070 | AGC_ATTEN2 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x074 | AGC_ATTEN3 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x078 | AGC_ATTEN4 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x07C | AGC_ATTEN5 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x080 | AGC_ATTEN6 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x084 | AGC_ATTEN7 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x088 | AGC_ATTEN8 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x08C | AGC_ATTEN9 | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
Table 130. RADIO_REG_REG_BLOCK register map and reset values (continued)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x090 | AGC1_ATTEN_TRIM | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x094 | AGC2_ATTEN_TRIM | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x098 | AGC3_ATTEN_TRIM | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x09C | AGC4_ATTEN_TRIM | 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. | Res. | Res. | Res. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x0A0 | AGC_PGA_HWTRIM_OUT | 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. | Res. | Res. | Res. | Res. |
| Reset value | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x0A8 | PA_REG | 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. | Res. | Res. | Res. | Res. |
| Reset value | 0 | PA_DEGEN_ON | Res. | CFG_FILT[1:0] | 0 | ||||||||||||||||||||||||||||
| 0x0AC | PA_HWTRIM_OUT | 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. | Res. | Res. | Res. | Res. |
| Reset value | 1 | 0 | 0 | 0 |
Table 130. RADIO_REG_REG_BLOCK register map and reset values (continued)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x0BC | RSSI_FLT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RSSI_FLT[3:0] | FREEZE ON SYNC OOK PEAK DECAY | ||||||
| Reset value | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x0C8 - 0xD0 | Reserved | ||||||||||||||||||||||||||||||||
| 0x0E8 | RXADC_HWDELA YTRIM_OUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RXADC_HW_DELAYTRIM_Q[2:0] | RXADC_HW_DELAYTRIM_I[2:0] | ||||||
| Reset value | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||
| 0x0F4 | RX_AAF_HWTRIM _OUT | 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. | AAF_HW_FCTRIM[3:0] | |||
| Reset value | 0 | 1 | 1 | 0 | 0 | ||||||||||||||||||||||||||||
| 0x100 | SINGEN_ANA_EN G | 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. | Res. | Res. | Res. | Res. |
| Reset value | 0 | RFD_SINGEN_LBE | RFD_SINGEN_DIV2_PUP | RFD_SINGEN_ENA | 0 | ||||||||||||||||||||||||||||
Table 130. RADIO_REG_REG_BLOCK register map and reset values (continued)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x108 | RF_INFO_OUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RFSUBG_ID[3:0] | Res. | ||||||
| Reset value | 0 | 1 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x124 | RF_FSM8_TIMEO UT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SYNTH_PDWN_TIMER[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | |||||||||||||||||||||||||
| 0x128 | RF_FSM9_TIMEO UT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | END_RX_TIMER[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | |||||||||||||||||||||||||
| 0x12C | RF_FSM10_TIME OUT | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | END_TX_TIMER[7:0] | |||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | |||||||||||||||||||||||||
| 0x144 | SUBG_DIG_CTRL 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. | Res. | Res. | Res. | Res. | Res. | FORCE_GPIO_OUTPUT |
| Reset value | 0 | ||||||||||||||||||||||||||||||||
29.10.55 Notes for 169 MHz configuration
Setting the desired IF (300 kHz) in RX, is delegated to the software instead of the HW RFIP:
- • When transmitting, the dynamic registers configuring the base frequency SYNTH_FREQ.SYNTH_INT and SYNTH_FREQ.SYNTH_FRAC, are programmed to the desired frequency (that is, 169 MHz)
- • When the user wants to switch to an RX operation, this dynamic register must be configured to the desired frequency minus the desired IF (that is, 168.7 MHz)
In addition, the register allowing control of the IF by the RFIP must be adapted to deactivate the hardware switch of the IF between RX and TX, by setting IF_CTRL.IF_OFFSET_ANA to 0 and keeping IF_CTRL.IF_OFFSET_DIG at the desired IF (0x04CD = 300 kHz). This configuration is static and can be used for both RX and TX operations.
Note: This does not impact CHAN_NUM, CHAN_SPACING operations because shifting the base frequency is shifting in the same way all the channels carrier frequencies.
This does not limit the sequencer operations as this register is part of the dynamic registers.
An additional configuration, only required for TX operations, involves the frequency deviation value, that must be multiplied by 5.
The register contents must be reverted to their original values when switching to RX mode.
29.11 Receive block
The Recieve block gets the I/Q data provided by the ADC analog RFSUBG IP and provides the final data to the Data Buffer (for RAM) or to the GPIO (for direct through GPIO mode).
The Recieve block also takes in charge some RX indicator measurements like RSSI.
The Recieve block also offers some reception improvement solution like:
- • an AGC controller,
- • an I/Q compensation (IQC) block,
- • a DC removal block,
- • an Automatic Frequency Compensation (AFC) block,
- • an antenna switching feature.
29.11.1 Automatic gain control (AGC)
The AGC feature is based on:
- • the possibility to attenuate the gain introduced by the RX chain of the RFSUBG analog IP at 2 different locations inside the RX chain,
- • the presence of an AGC controller in the RX_Top block used to monitor and apply/release attenuation when needed.
AGC presentation
The algorithm of the AGC controller is designed to keep the signal amplitude at the input of the IF ADC within a specified range. The attenuation is applied by step of 6 dB (or 12 dB) up to a maximum of 54 dB, starting at a received signal power of about -58 dBm (with default radio register settings).
Figure 285. AGC block diagram

graph LR
subgraph Analog_domain [Analog domain]
AFE[ANALOG FE]
ADC[ADC]
AFE_CTRL[Analog FE CTRL word] --> AFE
AFE --> ADC
end
subgraph Digital_domain [Digital domain]
AGC[AGC]
RSSI[RSSI]
DF[Decimation and Filtering]
end
ADC -- "9bits in" --> AGC
AGC -- "8bits output" --> ADC
AGC -- "4bits output" --> RSSI_INFO[RSSI attenuation info]
RSSI_INFO --> RSSI
ADC --> DF
From an implementation point of view, the (peak) signal amplitude is measured, using the Robertson approximation, in the digital domain after the ADC and compared to a low threshold and a high threshold. The bits used for the comparison are the 7 MSB of the measured level:
- • if the amplitude is above the high threshold, the attenuation is increased sequentially until the amplitude goes below it,
- • if the amplitude is below the low threshold, the attenuation is decreased sequentially until the amplitude goes above it.
Figure 286 shows the AGC attenuation versus the RX useful power (in dBm) for a GFSK modulation case.
Figure 286. AGC attenuation example
![Line graph titled 'AGC CTRL on GFSK 38.4Kbps' showing AGC Analog FE Attenuations (dB) on the y-axis (0 to 60) versus rx useful power(dBm) on the x-axis (-70 to 0). The graph shows a step-wise increase in attenuation as power increases. Two points are highlighted: (X -58, Y 0) and (X -9, Y 54). A legend box contains: GFSK 3.840000e+01 Kbps, fdev 20 KHz, CHF 100 KHz, AGC on [ sync frozen, mtime 5, htime 20].](/RM0511-STM32WL30-31-33/6e495d71e978a2ece79d084788ea2158_img.jpg)
| rx useful power(dBm) | AGC Analog FE Attenuations (dB) |
|---|---|
| -58 | 0 |
| -55 | 6 |
| -52 | 12 |
| -49 | 18 |
| -46 | 24 |
| -43 | 30 |
| -40 | 36 |
| -37 | 42 |
| -34 | 48 |
| -31 | 54 |
| -28 | 60 |
A high attenuation mode is available: when enabled, the steps of attenuation are doubled when the high threshold is exceeded. This high attenuation mode is faster than the normal mode (signal step) in case of short preamble as shown in the next figure (1 byte case and 0 dBm of RX useful power).
Figure 287. AGC high attenuation mode versus normal mode

| samples(at AGC output rate) | attenuation (dB) - high mode on | attenuation (dB) - high mode off |
|---|---|---|
| 0 | 0 | 0 |
| 25 | 12 | 6 |
| 50 | 24 | 12 |
| 75 | 36 | 18 |
| 100 | 48 | 24 |
| 125 | 54 | 30 |
| 150 | 54 | 36 |
| 175 | 54 | 42 |
| 200 | 54 | 48 |
| 225 | 54 | 54 |
| 250 | 54 | 54 |
| 275 | 54 | 54 |
| 300 | 54 | 54 |
AGC configuration
The AGC controller can be configured through different bit fields located in the Radio registers. The main bit fields are listed below but the complete parameters can be directly checked through the all the AGCx Radio registers.
- • AGC enabling:
- – AGC_EN bit in the AGC0_CTRL register (AGC0_CTRL)
- – enabled by default
- • High attenuation mode enabling:
- – AGC_HIGH_ATTEN_MODE bit in the AGC2_CTRL register (AGC2_CTRL)
- – enabled by default
- • Definition of the low and high thresholds:
- – AGC_MIN_THR[3:0] and AGC_MAX_THR[3:0] bit fields in the AGC1_CTRL register (AGC1_CTRL)
- • Selection of the attenuation at start (min or max):
- – AGC_START_MAX_ATTEN bit in the AGC2_CTRL register (AGC2_CTRL)
- – min attenuation selected at start by default
- • Possibility to freeze the attenuation on SYNC word detection event:
- – AGC_FREEZE_ON_SYNC bit in the AGC2_CTRL register (AGC2_CTRL)
- – enabled by default
- • Possibility to freeze the attenuation when the signal goes below the freeze programmable threshold:
- – AGC_FREEZE_ON_STEADY bit in the AGC2_CTRL register (AGC2_CTRL)
- – disabled by default
- • Set the measurement interval during which the signal is determined:
- – AGC_MEAS_TIME[3:0] bit field in the AGC2_CTRL register (AGC2_CTRL)
- – the actual time is
ranging from 250 ns to 8.192 ms,
- – for (G-)FSK modulations, the measurement time is normally set to a few μs in order to achieve a fast settling of the algorithm
- – for ASK/OOK modulations, the measurement time must be larger than the duration of the expected longest train of '0' symbols to avoid unstable behavior
- • Define the interval between two peak measurements (hold time):
- – AGC_HOLD_TIME[5:0] bit field in the AGC0_CTRL register (AGC0_CTRL)
- – sets the interval between two peaks measurements in number of signal samples,
- – the actual time is
- – this time lag is necessary to consider the time propagate the attenuation setting through the RF path and see the impact on the AD data.
The AGCx_ATTEN Radio registers (with x=0 to 9) contains the settings for each step from step0 (= no attenuation) to step 9 (= max attenuation).
The analog RF chain contains two points along the chain to attenuate:
- • attenuation on PGA stage:
- – 5 possible steps at this point,
- – controlled by the PGA_AGCGAIN_x[2:0] bit field in the AGC_ATTENx radio registers,
- – coded in binary format (1 represents 6 dB of attenuation, 5 represents the maximum attenuation, that is, 30 dB)
- • attenuation on LNA+BOM stage:
- – 4 possible steps at this point,
- – controlled by the ATTEN_AGCGAIN_x[3:0] bit field in the AGC_ATTENx radio registers,
- – coded in thermometric format (“0001” represents 6 dB of attenuation, “1111” represents the maximum attenuation, that is, 24 dB)
In addition, the number of steps applied on the RX analog chain can be read in the AGC_WORD[3:0] bit field of the RX_INDICATOR register (RX_INDICATOR) (status register).
29.11.2 DC removal block
The DC block function removes the DC component that may arise in the analog signal path. The bandwidth of the DC block filter can be programmed according to the following table.
Table 131. DC attenuation per sample versus the filter order n (for FSYS=16 MHz)
| n (start or track gain) | Bandwidth (in kHz) | DC attenuation per sample |
|---|---|---|
| 0 | 541 | -Inf |
| 1 | 498 | -24.08 |
| 2 | 455 | -18.06 |
| 3 | 414 | -14.54 |
| 4 | 372 | -12.04 |
| 5 | 332 | -10.10 |
| 6 | 294 | -8.52 |
| 7 | 257 | -7.18 |
| 8 | 221 | -6.02 |
| 9 | 187 | -5.00 |
| 10 | 156 | -4.08 |
| 11 | 126 | -3.25 |
| 12 | 97 | -2.50 |
| 13 | 71 | -1.80 |
| 14 | 45 | -1.16 |
| 15 | 22 | -0.56 |
Note: If the system clock is not 16 MHz, the actual bandwidth of the DC filter can be obtained by multiplying the values in the above table by the factor \(f_{CLK} / 16e6\).
In order to achieve the both a fast settling time and a small signal degradation, the band of the filter is set to a relatively large value for a short time and then narrowed.
The DC filter is controlled by the following parameters in the Radio registers:
- • Start gain:
- – START_GAIN[3:0] bit field in the DCREM_CTRL0 register (DCREM_CTRL0) register,
- – sets the initial bandwidth of the filter, which is used during the start period,
- – default value is the recommended value (8).
- • Track gain:
- – TRACK_GAIN[3:0] bit field in the DCREM_CTRL0 register (DCREM_CTRL0)
- – sets the final bandwidth of the filter, which is used after the start period,
- – default value is the recommended value (14 = 0xE).
29.11.3 I/Q mismatch compensation
The MR_SubG IP embeds an adaptive digital algorithm that could compensate I/Q mismatch on the analog signal path. Since the I/Q mismatch is expected to be quite constant on the short term, the calculated compensation value can be reused for a next reception (to speed up the correction).
I/Q mismatch compensation presentation
The IQC correction can be used with different configurations:
- • no compensation calculated nor applied during the reception,
- • I/Q mismatch compensation calculated during a reception with initialization value for the algorithm:
- – equal to 0
- – equal to last compensation result,
- – equal to a value provided by the SW
- • I/Q mismatch compensation applied using a static value (no dynamic adjustment) coming from a recirculation register:
- – can be the last compensation result
- – can be a value provided by the SW.
As the RX_Top (and so the IQC block) are put under reset between each reception, there is a need to record the correction result at the end of a RX to be able to reuse it as initialization value for the next calculation. The Radio controller takes in charge this role by implementing a recirculation register allowing to store either the last calculation result or an external value provided by the SW through the LOAD_IQC_INIT action bit and the IQC_CORRECT_IN[23:0] bit field in the IQC_CONFIG static register.
Note: The Radio Controller stores the IQC block results only at the end of RX including if the ending is generated by a SABORT command (to cover the direct through GPIO/Buffers modes use-cases).
The recirculation register content:
- • is visible in the IQC_CORRECTION_OUT register (IQC_CORRECTION_OUT) (status register)
- • is applied to the IQC block correction input (to be used by the algorithm if REUSE_CORRECTION bit is set)
- • is loaded with the IQC block output result on a RX ending if IQC_ENABLE bit is set,
- • is loaded with IQC_CORRECT_IN[23:0] bit field on write 1 action in the IQC_LOAD_INIT bit.
Note: The IQC_CORRECT_OUT register is updated only:
- • at the end of a RX (normal RX end in normal mode or SABORT for other RX modes)
- • on a LOAD_IQC_INIT command (then updated with the IQC_CORRECT_IN[23:0] value)
The IQ compensation can be used with different configuration (managed through the IQC_CORRECTION_OUT register (IQC_CORRECTION_OUT) (status register), summarized in Table 132.
Table 132. IQC correction available configurations
| IQC_ENABLE | REUSE_CORRECTION | Associated behavior |
|---|---|---|
| 0 | 0 | The I/Q correction is effectively disabled: no compensation is applied. |
| 1 | 0 | The I/Q adaptive correction is initialized with 0 for each packet. |
| 1 | 1 | The I/Q adaptive correction is initialized with the value present in the recirculation register (result of last received packet or IQC_CORRECT_IN[23:0] value loaded through IQC_INIT_LOAD action bit). |
| 0 | 1 | The I/Q correction is performed using the value provided by the recirculation register and is NOT adaptively adjusted. |
IQC block algorithm configuration
The IQC block algorithm is controlled by the following parameters:
- • Adaptation enabling:
- – IQC_ENABLE bit in the IQC_CONFIG static register
- – enables the adaptive I/Q compensation algorithm
- • Start the coefficient adaptation from a specified value (previous calibration result / SW loaded value):
- – REUSE_CORRECTION bit in the IQC_CONFIG static register,
- – when set, the algorithm coefficient starts on the value provided by the recirculation register
- • Gain configuration for fast period
- – FAST_GAIN[3:0] bit field in the IQC_CTRL0 register (IQC_CTRL0) (radio register)
- – sets the gain of the correction loop in fast mode
- – a lower value corresponds to a larger gain
- – setting a larger gain makes the loop faster but increases the noise
- • Gain configuration for slow period
- – SLOW_GAIN[3:0] bit field in the IQC_CTRL0 register (IQC_CTRL0) (radio register),
- – sets the gain of the correction loop in slow mode
- – a lower value corresponds to a larger gain
- – setting a larger gain makes the loop faster but increases the noise
- • Fast period duration:
- – FAST_TIME[3:0] bit field in the IQC_CTRL3 register (IQC_CTRL3) (radio register)
- – duration of the fast mode
- – the actual time is
- • QPD attack parameter:
- – QPD_ATTACK[7:0] bit field in the IQC_CTRL1 register (IQC_CTRL1) (radio register)
- – attack coefficient for the QPD detector
- – default value is the recommended one (8)
- • QPD decay parameter:
- – QPD_DECAY[7:0] bit field in the IQC_CTRL2 register (IQC_CTRL2) (radio register)
- – decay coefficient for the QPD detector,
- – default value is the recommended one (8)
29.11.4 RSSI
The Received Signal Strength Indicator is a measure of the received signal power at the antenna measured in the channel filter bandwidth.
The measured power is reported in step of 0.5 dB from 0 to 511 and is offset in such a way that 82 corresponds to -120 dBm.
The result of the measured is available in two separate bit fields located in the RX_INDICATOR register (RX_INDICATOR) (status register):
- • RSSI_LEVEL_RUN[8:0]: continuous level of the measured RSSI
- • RSSI_LEVEL_ON_SYNC[8:0]: measured RSSI captured on SYNC word detection event
The conversion from RSSI_LEVEL_xx value to dBm is given below.
Equation 7 – RSSI dBm conversion formula
with \(Gain_{RX\_Chain}\) typically equal to 65
The RSSI measurement takes into account the AGC steps currently applied and integrate the information in the provided result (by adding 6 dB by step). This means the RSSI read in the register already computed this AGC step compensation and can be considered directly as the power on the antenna.
The RSSI estimation is controlled by the following parameter in the Radio registers:
- • Filter coefficient:
- – RSSI_FLT[3:0] bit field in the RSSI_FLT register (RSSI_FLT)
- – sets the bandwidth of a low IIR pass filter
- – a lower value gives a faster settling of the measurement but a lower precision,
- – the default value is the recommended one (14 = 0xE)
29.11.5 Carrier sense
The carrier sense functionality can be used to detect if any signal is being received. The detection is based on the measured RSSI value.
Two operational mode can be selected for the carrier sensing, controlled through the CS_MODE[1:0] bit field in the AS_QI_CTRL register (AS_QI_CTRL) (static register):
- • static carrier sensing
- – selected when CS_MODE[1:0] = “00”,
- – the carrier sense signal:
- is asserted when the measured RSSI goes above a programmed threshold specified in the RSSI_THR[8:0] bit field of the AS_QI_CTRL register
- is de-asserted when the measured RSSI goes 3 dB below the same programmed threshold
- • dynamic carrier sensing:
- – the carrier sense signal:
- is asserted if the signal is above the programmed threshold and a fast power increase is detected.
- is de-asserted if a power fall of the same amplitude is detected so a fall of:
- – The fast increase and fall amplitude can be:
- 6 dB when CS_MODE[1:0] = “01”
- 12 dB when CS_MODE[1:0] = “10”
- 18 dB when CS_MODE[1:0] = “11”
- – the carrier sense signal:
The rising edge of the carrier sense signal set the CS_F bit in the RFSEQ_IRQ_STATUS register and an associated interrupt is available when enabled.
The carrier sense information is also the criteria used by the Fast RX termination mode (refer Section 29.14.4: Fast RX termination section to for details) and one of the stop condition for the RX Timer (refer to Section 29.14.3: RX Timer section for details).
29.11.6 Antenna switching
The antenna switching feature allows controlling an external switch in order to select the antenna providing the highest measured RSSI among two antennas.
When the antenna switching mode is enabled, the two antennas are repeatedly switched during the reception of the preamble for each packet, until the carrier sense threshold is reached. From this point, the antenna with the highest power is selected and the switch position is frozen.
This feature requires:
- • to have a preamble must be sufficiently long to allow the algorithm choosing the final antenna,
- • to select the static carrier sensing mode (CS_MODE[1:0] = “00” in AS_QI_CTRL register),
- • to have access to the external antenna switch component through a GPIO of the SoC.
The algorithm is controlled by the following parameters:
- • antenna switching enabling
- – AS_ENABLE bit in the dynamic ADDITIONAL_CTRL register (ADDITIONAL_CTRL)
- – disabled by default.
- • measure time
- – AS_MEAS_TIME[2:0] bit field in the AS_QI_CTRL static register,
- – controls the time interval for RSSI measurement
- – the actual measurement time (duration of selection for each antenna) is:
29.11.7 Automatic frequency compensation (AFC)
In the frequency modulation-based modes, the AFC algorithm allows to compensate, within certain limits, a relative frequency error between the transmitting device and the receiving device cause by crystal inaccuracies for instance.
Due to the demodulation algorithm employed, any frequency error results in a DC offset in the demodulated signal before slicing. The basic operating principle of the AFC is to detect the minimum and maximum signal frequencies and to calculate a correction to remove the DC offset.
Such correction supports two modes:
- • slicer correction mode (default mode): applied at the slicer level as an offset compensation
- – this mode allows a quick recovery of the frequency error but does not prevent part of the received signal power to be cut by the channel filter
- – this mode is recommended for the normal operations
- • IF correction mode (optional mode): used to adjust the second IF conversion stage frequency
- – this mode adjusts the signal frequency before entering the channel filter thus avoiding power loss but requires a longer period to settle.
In parallel of applying the correction, the AFC block also provides the estimated frequency error information in the AFC_CORRECTION[7:0] bit field of the QI_INFO register (QI_INFO) (status register).
If the frequency is known to be constant (for example, communication always occurs between the same pair of devices), this value can directly be used to correct the programmed Intermediary Frequency in the IF_OFFSET_xx[12:0] bit fields of the IF_CTRL register (IF_CTRL) (static register, with xx = DIG or ANA).
A further control on the output sign permanence of AFC corrected signal has been implemented to improve the capability to receive long series of 0s or 1s. If a permanence of sign is detected, using a proper counter with a configurable counter threshold, the AFC frequency/amplitude offset is not updated, quite like an opening the loop of the AFC mechanism. If a sign change is detected the AFC return in its normal working mode.
In addition, a reinitialization option has been introduced to improve the AFC behavior on frames with PREAMBLE smaller than 64 bits. The option is controlled through the AFC3_CONFIG Radio register new [7:6] bit field called AFC_REINIT_OPTION[1:0]:
- • “00”: no reinitialization allowed
- • “01”: reinitialization based on RSSI ramping
- • “10”: reinitialization based on abnormal Fdev
- • “11”: reinitialization based on both RSSI and Fdev behaviors (default configuration)
In order to guarantee both fast lock and smooth tracking, the AFC has a fast and slow mode.
The AFC starts in fast mode as soon as the signal threshold is passed and switches to slow
mode after a programmable period.
The AFC is controlled by the following parameters located in Radio registers:
- • AFC enabling:
- – AFC_EN bit in the AFC2_CONFIG register (AFC2_CONFIG)
- – enabled by default.
- • Selection of the AFC mode:
- – AFC_MODE bit in the AFC2_CONFIG register (AFC2_CONFIG)
- – slicer correction mode selected by default.
- • Selection of AFC the start event:
- – AFC_INIT_MODE bit in the AFC3_CONFIG register (AFC3_CONFIG)
- – sets the start event of the AFC:
- when 0: the AFC starts once the measured RSSI is above the programmed threshold
- when 1: the AFC starts after the SYNC word detection and the first estimation of frequency offset is done by the sync correlator
- – RSSI above threshold start mode is selected by default.
- • Possibility to freeze the AFC correction on SYNC word detection event:
- – AFC_FREEZE_ON_SYNC bit in the AFC2_CONFIG register (AFC2_CONFIG)
- – when set, the value of the frequency correction is no more updated after SYNC word detection event
- – set by default.
- • Selection of the fast period duration:
- – AFC_FAST_PERIOD[7:0] bit field in the AFC1_CONFIG register (AFC1_CONFIG)
- – sets the length of the fast period in number of samples
- – if set to 0, the fast period ends with the SYNC word detection, that is, the fast gain is used up to the SYNC word detection and the slow gain is used after the SYNC detection.
- – the recommended value is such that the fast period equals the preamble length. Since the algorithm operates typically on 2 samples per symbol, the programmed value should be twice the number of preamble symbols.
- • AFC fast gain
- – AFC_FAST_GAIN_LOG2[3:0] bit field in the AFC0_CONFIG register (AFC0_CONFIG)
- – sets the loop gain for the fast mode
- • AFC slow gain
- – AFC_SLOW_GAIN_LOG2[3:0] bit field in the AFC0_CONFIG register
(AFC0_CONFIG)
- – sets the loop gain for the slow mode
- • AFC peak detection leakage selection
- – AFC_PD_LEAKAGE[4:0] bit field in the AFC2_CONFIG register
- – sets the decay speed of the min / max frequency peak detector
- – Note: default value is 8 while the recommended value is 4
- • AFC sign permanence check enabling:
- – AFC_SIGN_PERM_CHECK bit in the AFC3_CONFIG register
- – disabled by default
- • AFC sign permanence check mechanism counter threshold:
- – AFC_TH_SIGN_THR[3:0] bit field in the AFC3_CONFIG register
- – default value is 10
In addition, the AFC uses the RSSI threshold (RSSI_THR[8:0] bit field in AS_QI_CTRL static register) information.
29.11.8 Symbol timing recovery
The MR_SubG IP supports two different algorithms for the timing recovery. The selection of the algorithm is done with the CLKREC_ALGO_SEL bit in the CLKREC_CTRL1 register (CLKREC_CTRL1) (radio register):
- • CLKREC_ALGO_SEL = 0: a first order algorithm is used (shortly referred to as DLL)
- • CLKREC_ALGO_SEL = 1: a second order algorithm is used (shortly referred to as PLL)
In addition, the settings of the following parameters affect the behavior of the clock recovery algorithms:
- • Post filter length:
- – PSTFLT_LEN bit in the CLKREC_CTRL0 register (CLKREC_CTRL0) (radio register)
- – controls the length of the demodulator post-filter
- – setting this bit to '1' may improve the demodulation performance but requires a slower recovery
- – default value is the recommended one (0).
- • RSSI threshold:
- – RSSI_THR[8:0] in the static AS_QI_CTRL register (AS_QI_CTRL)
- – sets the minimum signal power above which the timing recovery is started.
DLL mode (default mode)
The DLL algorithm, based on a first order loop, is only able to control the delay of the local bit-timing generator in order to align it to the received bit period. If there is an error between the actual received bit and the nominal one, the relative edges drift over time and the algorithm periodically applies a delay correction to recover. Since in presence of long sequences of zeroes or ones it is not possible to estimate any timing error, the loop ends to lose lock if the period error is large (greater than 3%).
The convergence speed of the loop is controlled by the \(K_P\) parameter with a smaller value yielding a faster loop. This \(K_P\) parameter is defined in CLKREC_P_GAIN_FAST / CLKREC_P_GAIN_SLOW bit field of the CLKREC_CTRL0 / CLKREC_CTRL1 Radio registers.
Recommended value for \(K_P\) for all modulations and data rate is 1 or 2.
PLL mode
The PLL algorithm tracks the phase error of the local timing generator relative to received bit period and controls both frequency and phase to achieve the timing lock. Once the relative period error has been estimated and corrected (for instance during the preamble phase), even in presence of long sequences of zeroes or ones, the loop is able to keep lock.
In order to improve the performance of the algorithm, two sets of gain coefficients (\(K_I\) and \(K_P\)) can be configured to be used before and after the SYNC word detection:
- • CLKREC_I_GAIN_FAST and CLKREC_P_GAIN_FAST: used before the SYNC word detection,
- • CLKREC_I_GAIN_SLOW and CLKREC_P_GAIN_SLOW: used after the SYNC word detection.
29.12 Radio register manager (RRM)
The radio register manager (RRM) is a hardware block managing the radio registers accesses. It is mainly used for the radio register automatic restoration after a low power mode exit.
29.12.1 Overview
The RRM embeds three features:
- • Radio register direct access through APB
- – the SW can directly read and write the Radio Registers as classical APB registers
- • Radio register access through UDRA using RAM link list
- – the HW can restore automatically some Radio Registers values thanks to a link list in RAM
- – this restoring has an interest for low power exit chained with a RF transfer
- • an arbiter to manage concurrent accesses between APB and UDRA
Figure 288. RRM overview

The diagram illustrates the Radio Registers Manager (RRM) architecture. The RRM block is central, containing an Arbiter, Register Access, UDRA (with AHB IF), and APB IF. It is connected to Radio Registers (8-bit bus), sysclk, rst_n, RAM (containing a command list from CMD0 to CMD NULL), and an APB Splitter. An interrupt signal is also shown.
29.12.2 UDRA
The Unified Direct Register Access block is an AHB master that allows the software preparing some commands in a command list located in the retention RAM. Those commands execute read from and write into the radio registers.
The main interest of the UDRA is to restore some specific Radio registers after a Low Power mode sequence to start a RF sequence while the CPU is still booting and not yet available to manage.
Some interruption flags are linked to the UDRA block in the RRM:
- • on a command start event,
- • on a command end event.
UDRA usage
The sequence to use the UDRA is the following:
- • the software writes a command list in the retention RAM,
- • the software provides to the UDRA through the Misc RRM_UDRA_CTRL register (RRM_UDRA_CTRL):
- – a CMDLIST_PTR_OFFSET[15:0] bit field representing the address pointer of this command list (16-bit offset versus SoC RAM base address).
Note:
- There is no 32-bit aligned address constraint on the RRM command list pointer.
- – a CMDLIST_PTR_VALID bit to inform if a command list is present or not in RAM
- • on any MR_SubG IP reset exit, the RRM UDRA checks the CMDLIST_PTR_VALID bit value to start (if 1) or not (if 0) the execution of the command list
- • the SW can also launch the execution of the command list in RAM by writing 1 in the RRM_CMD_REQ action bit located in the Misc. RRM_UDRA_CTRL register (RRM_UDRA_CTRL).
UDRA command list format in RAM
The command list is a group of commands that can be:
- • single Radio register write,
- • burst Radio registers write (registers with consecutive addresses),
- • single Radio register read,
- • burst Radio registers read (registers with consecutive addresses)
Note: As the Radio registers can be read directly through APB by the CPU, the read command can be considered as useless at SW point of view.
The write and read command format is described in Table 133. The SW must take care to always ends the command list by the NULL command. Else, the UDRA behavior is unpredictable.
Note: Radio registers are considered as 8-bit registers on UDRA side. For this reason, the addressing is on 8-bit and address offset between 2 registers is +1 in UDRA mapping. Both address mappings (direct APB and UDRA) are visible in the Table 129: RADIO_REG_BLOCK register list.
For burst read/write, only the first radio register address has to be provided. Then, the address is automatically incremented by 1 at HW level on each new register access inside the burst.
Table 133. UDRA command format in RAM
| Byte number | Address in RAM | Byte value | Description |
|---|---|---|---|
| 1 | command_base_addr | 0x-- | bit7: 1=write / 0=read bit[6:0] = number of data to write or to read. n = number of data for the example in this table. |
| 2 | command_base_addr+1 | 8-bit address | Address of a Radio Register following the 8-bit address mapping (see Table 129: RADIO_REG_BLOCK register list) |
| 3 | command_base_addr+2 | 1st data | If write command: write first 8-bit data to be written. If read command: location where the first 8-bit read data is available at the end of the command execution. |
| 4 | command_base_addr+3 | 2nd data | Optional (depends on number of data to write/read). If write command: write second 8-bit data to be written. If read command: location where the second 8-bit read data is available at the end of the command execution. |
| ... | |||
| n+2 | command_base_addr+(n+1) | nth data | Optional (depends on number of data to write/read). If write command: write nth 8-bit data to be written. If read command: location where the nth 8-bit read data is available at the end of the command execution. |
| n+3 | command_base_addr+n+2 | 0x-- | Optional: possible to chain other commands. bit7: 1=write / 0=read bit[6:0] = number of data to write or to read. |
Table 133. UDRA command format in RAM
| Byte number | Address in RAM | Byte value | Description |
|---|---|---|---|
| n+4 | command_base_addr+n+3 | 8-bit address | Address of a Radio Register following the 8-bit address mapping (see Table 129: RADIO_REG_BLOCK register list) |
| n+5 | command_base_addr+n+4 | 1st data | If write command: write first 8-bit data to be written. If read command: location where the first 8-bit read data is available. |
| ... | |||
| last | command_base_addr+last-1 | 0x00 / 0x80 | MANDATORY. The null command (command with null length) must be added at the end of the command list. This is needed by the state machines of the UDRA to be informed they reach the end of the list. |
Figure 289 shows a visualization of an UDRA command list in a SoC RAM.
Figure 289. Overview of a possible UDRA command list in RAM

| bit 31 | bit 23 | bit 15 | bit 7 | bit 0 |
|---|---|---|---|---|
| RAM case | RAM case | RAM case | RAM case | |
| RAM case | RAM case | RAM case | RAM case | |
| cmd list byte2 | cmd list byte1 | RAM case | ||
| data0 (read result / to write) | First Radio Reg @ | |||
| R/W (1 bit) | cmd length (7 bits) | data2 (read result / to write) | RAM case | ||
| cmd list byte6 | cmd list byte5 | |||
| data3 (read result / to write) | data2 (read result / to write) | RAM case | ||
| cmd list byte10 | cmd list byte9 | |||
| data2 (read result / to write) | data0 (read result / to write) | RAM case | ||
| cmd list byte12 (null) | cmd list byte11 | |||
| R/W (1 bit) | 7'd0 (7 bits) | data3 (read result / to write) | |||
| RAM case | RAM case | RAM case | RAM case | |
Legend:
- Part of the RAM containing the UDRA command list (Red border)
- Rest of the RAM (Grey)
- command 1 (Green)
- command 2 (Yellow)
- null command (Blue)
MSv58323V1
Basic examples:
- - Write AFC1_CONFIG=0x20 and AFC2_CONFIG=0xC4 (consecutive registers):
@command_base_addr = 0x82;Write 2 data
@command_base_addr+1 = 0x09;AFC1_CONFIG_ADDR;
@command_base_addr+2 = 0x20;1st data to write in AFC1_CONFIG
@command_base_addr+3 = 0xC4;2nd data to write in AFC2_CONFIG
@command_base_addr+4 = 0x00;null command
29.12.3 Direct APB access
This block allows the software to do direct read/write in the Radio registers through APB standard accesses. The Radio registers mapping is available in Section 29.10: Radio register descriptions.
The Radio registers control the parameters for the analog and few modulator/demodulator features.
Note: The radio registers are 8-bit only so the APB registers bit field[31:8] part is padded with 0.
29.12.4 RRM arbiter
The RRM embeds a round-robin arbiter to manage concurrent accesses to Radio registers by both APB and UDRA.
After reset, on first conflict arbitration, the arbiter gives the token to the UDRA. Then round-robin mechanism provides alternatively the token to APB and UDRA.
Recommendation:
The software must not write some radio registers through direct APB access if they are also modified through commands in RAM (through UDRA block). In this case, there is a risk of multi drivers in parallel and to lose coherency (no way to know which requester wrote the last).
29.13 Radio FSM
The Radio FSM manages the analog RFSUBG block startup and stop sequences depending on the requested command (TX, RX, calibrations...)
The Radio FSM is the sub-block that generates the PLL_LOCK_FAIL_F flag located in the RFSEQ_IRQ_ENABLE register (RFSEQ_IRQ_ENABLE).
29.13.1 Radio FSM sequence
This paragraph lists the main steps in Radio FSM sequence.
- • Exit IDLE to reach WAIT_ACTIVE2 as soon as a LOCK/RX/TX request is active
- • Switch from WAIT_ACTIVE2 to ACTIVE2 if/when the system clock is confirmed to be on the accurate clock
- • Goes from ACTIVE2:
- – to LOCKONRX (resp. LOCKONTX) state if the active request is a LOCK_RX (resp. LOCK_TX)
- – to TX state if the active request is TX command
- – to RX state if the active request is a RX command
- • At the end of a RX or a TX, the Radio FSM manages several possible scenarios:
- – returns to LOCKONRX or LOCKONTX state to be able to restart a new transfer in the same direction and at the same frequency as the previous one (if BACK2LOCKON bit is set)
- – returns to ACTIVE2 (if BACK2ACTIVE2 bit is set) or IDLE until there is a need to start a new transfer
Note: It is also possible to send the Radio FSM to ACTIVE2 by setting the BACK2ACTIVE2 bit in the dynamic COMMAND register (COMMAND).
The current state information is available in the RADIO_FSM_INFO register (RADIO_FSM_INFO) (status register).
Figure 290 provides an overview of the Radio FSM states sequence.
Some transitions are triggered by hardware signals while others are managed through timeout windows programmable through the Radio registers. The paragraph Timeout durations used by the Radio FSM lists the different timeouts and where to program them. However, the default values should be the already needed ones and are not supposed to be modified.
Figure 290. Radio FSM overview

cmd_active = LOCKTX or TX or LOCKRX or RX or CALIB_SAFEASK or CALIB_AGC_AAF command active
tx_dir_active = TX or CALIB_AGC_AAF command active
rx_dir_active = RX or CALIB_AGC_AAF command active
pll_locked = RF PLL locked
1 Condition checked first
2 Condition checked second
3 Condition checked third
stateDiagram-v2
[*] --> IDLE : reset
IDLE --> IDLE : ~(cmd_active | BACK2ACTIVE2)
IDLE --> ENA_RF_REG : cmd_active | BACK2ACTIVE2
ENA_RF_REG --> ENA_RF_REG : ~(cmd_active | BACK2ACTIVE2)
ENA_RF_REG --> WAIT_ACTIVE2 : (cmd_active | BACK2ACTIVE2) & ena_rf_reg timeout expired
WAIT_ACTIVE2 --> WAIT_ACTIVE2 : ~(cmd_active | i_back2active2)
WAIT_ACTIVE2 --> ACTIVE2 : (cmd_active | BACK2ACTIVE2) & accurate_clock_rdy
ACTIVE2 --> ACTIVE2 : ~accurate_clock_rdy
ACTIVE2 --> ENA_CURR : cmd_active & accurate_clock_rdy
ENA_CURR --> SYNTH_SETUP
SYNTH_SETUP --> SYNTH_SETUP : VCO_CALIB_REQ=1 & synth_setup timeout expired
SYNTH_SETUP --> CALIB_VCO : VCO_CALIB_REQ=0 & synth_setup timeout expired
CALIB_VCO --> CALIB_VCO : VCO calib done
CALIB_VCO --> LOCKRXTX
LOCKRXTX --> LOCKRXTX : (lockrxtx timeout expired & pll_locked) & (rx_dir_active | i_lockrx_active)
LOCKRXTX --> LOCKONRX : ~cmd_active | (lockrxtx_timeout_eq & pll_locked)
LOCKONRX --> LOCKONRX : rx_dir_active & pll_locked
LOCKONRX --> EN_RX : end_rx timeout expired
EN_RX --> EN_RX : ~rx_dir_active
EN_RX --> EN_LNA : en_rxtimeout expired
EN_LNA --> EN_LNA : ~rx_dir_active
EN_LNA --> RX : en_lna timeout expired
RX --> RX : ~rx_dir_active
RX --> SYNTH_PWDN : ~(LOCKRX active | rx_dir_active | BACK2LOCKON) | ~pll_locked
LOCKRXTX --> LOCKONTX : (LOCKTX active | tx_dir_active) & (lockrxtx timeout expired & pll_locked)
LOCKONTX --> LOCKONTX : tx_dir_active & pll_locked
LOCKONTX --> EN_PA : tx_dir_active & en_pa timeout expired
EN_PA --> EN_PA : ~pll_locked | ~tx_dir_active
EN_PA --> TX : tx_dir_active & en_pa timeout expired
TX --> TX : ~(LOCKTX active | tx_dir_active | BACK2LOCKON) | ~pll_locked
TX --> PA_DWN_ANA : ~tx_dir_active
PA_DWN_ANA --> PA_DWN_ANA : pa_dwn_ana timeout expired
PA_DWN_ANA --> END_TX : end_tx timeout expired
END_TX --> END_TX : ~tx_dir_active
END_TX --> SYNTH_PWDN : ~tx_dir_active
SYNTH_PWDN --> SYNTH_PWDN : synth_pwdn timeout expired
SYNTH_PWDN --> IDLE : synth_pwdn timeout expired
MSv58324V1
29.13.2 Radio FSM states overview
This section describes briefly the different states of the Radio FSM:
Table 134. Radio FSM state details
| State | Goal of the state | Event to exit the state | Next state |
|---|---|---|---|
| IDLE | Default state when no RF activity is required | LOCK or TX or RX or calibration or back2active2 request active. | ENA_RF_REG |
| ENA_RF_REG | Enable the RF Regulator | No more command active and back2active2 bit low | IDLE |
| RF_REG timeout expiration (to guarantee the RF_REG is ON) | WAIT_ACTIVE2 | ||
| WAIT_ACTIVE2 | Wait for confirmation the system clock is an accurate clock. | Accurate clock is present and a command or back2active2 is still active | ACTIVE2 |
| No more command active and back2active2 bit low | ENA_RF_REG | ||
| ACTIVE2 | Indicates accurate clock is present | No more accurate clock present | WAIT_ACTIVE2 |
| No more command active and back2active2 bit low | ENA_RF_REG | ||
| Accurate clock is present and a command is active | ENA_CURR | ||
| ENA_CURR | Enable the reference current block | One clock cycle state | SYNTH_SETUP |
| SYNTH_SETUP | Start the PLL analog block and wait for the RF regulator stabilization | SYNTH_SETUP timeout expiration and VCO calibration request is set. | CALIB_VCO |
| SYNTH_SETUP timeout expiration and no VCO calibration is requested (external calibration used). | LOCKRXTX | ||
| CALIB_VCO | Calibration of the PLL | VCO calibration end signal received | LOCKRXTX |
| LOCKRXTX | Wait for the PLL lock information | LOCKRXTX timeout expiration and CALIB_SAFEASK or TX or LOCKTX command active and (PLL locked or RFFSM_IGNORE_PLL_LOCK bit = 1) | LOCKONTX |
| LOCKRXTX timeout expiration and CALIB_AGC_AAF or RX or RX_IQBIST or LOCKRX command active and (PLL locked or RFFSM_IGNORE_PLL_LOCK bit = 1) | LOCKONRX | ||
| No more command active or (PLL not locked at the end of the timeout and RFFSM_IGNORE_PLL_LOCK bit = 0) | SYNTH_PWDN | ||
Table 134. Radio FSM state details (continued)
| State | Goal of the state | Event to exit the state | Next state |
|---|---|---|---|
| LOCKONTX | State with PLL locked. This state can be/ – one clock cycle transition when CALIB_SAFEASK or TX command is active – a final state on LOCKTX request | CALIB_SAFEASK or TX command is active | EN_PA |
| (No more CALIB_SAFEASK or LOCKTX or TX command active and BACK2LOCKON bit = 0) or PLL not locked | SYNTH_PDWN | ||
| EN_PA | Start the PA and wait during the DAC precharge | (PLL no more locked and RFFSM_IGNORE_PLL_LOCK bit = 0) or No more CALIB_SAFEASK or TX command active | PA_DWN_ANA |
| EN_PA timeout expiration and CALIB_SAFEASK or TX command active | TX | ||
| TX | Transmission phase | End of TX or end of Safe-ASK calibration | PA_DWN_ANA |
| PA_DWN_ANA | Delay to absorb the analog DAC discharge | PA_DWN_ANA timeout expiration | END_TX |
| END_TX | Delay to let the RF regulator stabilise after analog PA clock stop | END_TX timeout expiration | LOCKONTX |
| LOCKONRX | State with PLL locked. This state can be – one clock cycle transition when CALIB_AGC_AAF or RX or RX_IQBIST request is active – a final state on LOCKRX request | (PLL no more locked and RFFSM_IGNORE_PLL_LOCK bit = 0) and RX / RX_IQBIST / CALIB_AGC_AAF command active | EN_RX |
| (No more CALIB_AGC_AAF or RX or RX_IQBIST command active and BACK2LOCKON bit = 0) or PLL not locked | SYNTH_PWDN | ||
| EN_RX | Start the analog blocks linked to RX chain (Mixer, RXADC, LNA, etc.) and the PGA precharge | No more CALIB_AGC_AAF or RX or RX_IQBIST command active | SYNTH_PWDN |
| EN_RX timeout expiration | EN_LNA | ||
| EN_LNA | Disable the PGA precharge. Note: the name of this state is no more relevant as LNA is already started in EN_RX state. It is used to let the RX chain stabilize after PGA precharge disable. | No more CALIB_AGC_AAF or RX or RX_IQBIST command active | SYNTH_PWDN |
| EN_LNA timeout expiration | RX |
| State | Goal of the state | Event to exit the state | Next state |
|---|---|---|---|
| RX | Phase of reception | End of RX or AGC/AAF calibration or RX_IQBIST sequences | END_RX |
| END_RX | Delay to let the RF regulator stabilise after analog RX chain stop | END_RX timeout expiration | LOCKONRX |
29.13.3 Timeout durations used by the Radio FSM
The Radio FSM embeds a counter that uses different timeout duration (defined in the radio registers) to exit some states. The different timeouts are listed in the table below.
Table 135. Timeout versus Radio FSM state exit| State to exit | Register / bit field for timeout | Default value |
|---|---|---|
| EN_RF_REG | RF_FSM0_TIMEOUT[7:0] = ENA_RFREG_TIMER | 0x0 = 0 µs |
| WAIT_ACTIVE2 | No timeout. Exit on conditions (refer to Table 134: Radio FSM state details for the list of conditions) | N/A |
| ACTIVE2 | No timeout. Exit on conditions (refer to Table 134: Radio FSM state details for the list of conditions) | N/A |
| ENA_CURR | No timeout. Exit immediately (1 clock cycle duration) | N/A |
| SYNTH_SETUP | RF_FSM1_TIMEOUT[7:0] = SYNTH_SETUP_TIMER | 0x06 = 6 µs |
| CALIB_VCO | No timeout. Exit on end of calibration signal. | N/A |
| LOCKRXTX | If a VCO calibration is done: RF_FSM2_TIMEOUT[7:0] = VCO_CALIB_LOCK_TIMER If no VCO calibration: RF_FSM3_TIMEOUT[7:0] = VCO_LOCK_TIMER | 0x50 = 80 µs 0x28 = 40 µs |
| LOCKONTX | No timeout. Exit on conditions (refer to Table 134: Radio FSM state details for the list of conditions) | N/A |
| EN_PA | RF_FSM5_TIMEOUT[7:0] = EN_PA_TIMER | 0x19 = 25 µs |
| TX | No Timeout. Exit on conditions (refer to Table 134: Radio FSM state details for the list of conditions) | N/A |
| PA_DWN_ANA | RF_FSM6_TIMEOUT[7:0] = PA_DWN_ANA_TIMER | 0x19 = 25 µs |
| TX_END | RF_FSM10_TIMEOUT[7:0] = END_TX_TIMER | 0x06 = 6 µs |
| LOCKONRX | No timeout. Exit on conditions (refer to Table 134: Radio FSM state details for the list of conditions) | N/A |
| EN_RX | RF_FSM4_TIMEOUT[7:0] = EN_RX_TIMER | 0x0A = 10 µs |
| EN_LNA | RF_FSM7_TIMEOUT[7:0] = ENA_LNA_TIMER | 0x05 = 5 µs |
| RX | No timeout. Exit on conditions (refer to Table 134: Radio FSM state details for the list of conditions) | N/A |
| RX_END | RF_FSM9_TIMEOUT[7:0] = END_RX_TIMER | 0x06 = 6 µs |
| SYNTH_PDWN | RF_FSM8_TIMEOUT[7:0] = SYNTH_PDWN_TIMER | 0x0A = 10 µs |
Note: All the default values present in the radio registers about those timeouts are already adapted to the need and must not be modified for normal usage of the radio.
This leads to the following global durations:
- • IDLE to TX: 111 μs if VCO calibration, 71 μs if no VCO calibration
- • ACTIVE2 to TX: 111 μs if VCO calibration, 71 μs if no VCO calibration
- • TX to ACTIVE2: 41 μs
- • IDLE to RX: 101 μs if VCO calibration, 61 μs if no VCO calibration
- • ACTIVE2 to RX: 101 μs if VCO calibration, 61 μs if no VCO calibration
- • RX to ACTIVE2: 16 μs
Note: On cut2, IDLE to ACTIVE2 transition is only few 16 MHz clock cycles (LDO_RF timeout duration reduced to 0 by default)
29.14 Radio controller
The radio controller manages:
- • the commands,
- • the RX Timer,
- • the RFSEQ_IRQ_STATUS flag generation when linked to a RX/TX transfer,
- • the update signal to store the RX information in read-only global registers,
- • the IQC correction value selection,
- • the Time Capture feature.
29.14.1 Commands
The MR_SubG IP supports several commands to launch RF operations (transfers or calibrations).
Any command is launched by the action of writing its opcode in the global dynamic COMMAND register (COMMAND).
The available commands are:
Table 136. Command list
| Command name | Description | Command ID |
|---|---|---|
| NOP | No action This “no” command can be requested at any time, whatever the on-going command or in IDLE. Note: to be used in case an intermediate SeqAction is needed at sequencer level without requesting any command or when the user just wants to send the Radio FSM in ACTIVE2 state by setting the BACK2ACTIVE2 bit sharing the same register. | 0x0 |
| TX | Start a TX sequence | 0x1 |
| RX | Start a RX sequence | 0x2 |
| LOCKTX | Start a RF sequence up to PLL locked based on TX frequency | 0x4 |
| LOCKRX | Start a RF sequence up to PLL locked based on RX frequency | 0x3 |
| SABORT | Stop any on-going RX/TX/LOCKRX/LOCKTX command | 0x5 |
| CALIB_SAFEASK | Launch a PA Safe-ASK calibration to get the max safe PA code to be used | 0xA |
| RELOAD_RX_TIMER | Reload with a new timeout and new stop conditions and restart the RX Timer | 0x6 |
| CALIB_AGC_AAF | Start needed HW features to run an AGC_ATTEN trim or an AAF cut off frequency trim sequence at SW level. | 0xB |
Note: The COMMAND register keeps its content until the SW writes something else. this means the latest requested command Opcode stays readable event after the command is over.
Most of the commands are exclusive and cannot be launched in parallel except for few ones. Launching a new command while the previous one is not completed may lead to a rejected command or an ignored command. The table below provides a summary of the treatment of concurrent command requests.
Table 137. Concurrent command behavior overview
| Active command | New command request | |||||||
|---|---|---|---|---|---|---|---|---|
| LOCKRX | LOCKTX | RX | TX | SABORT | CALIB_AGC_AAF | CALIB_SAFEASK | RELOAD_RX_TIMER | |
| None | executed lockrx_active=1 | executed locktx_active=1 | executed rx_active=1 | executed tx_active=1 | rejected | executed | executed | ignored |
| LOCKRX (lockrx_active=1) | ignored lockrx_active=1 | rejected lockrx_active=1 locktx_active=0 | executed rx_active=1 lockrxactive=0 | rejected lockrx_active=1 tx_active=0 | executed lockrx_active=0 | executed | rejected | ignored |
| LOCKTX (lockrx_active=1) | rejected locktx_active=1 lockrx_active=0 | ignored locktx_active=1 | rejected locktx_active=1 rx_active=0 | executed tx_active=1 rx_active=0 | executed locktx_active=0 | rejected | executed | ignored |
| RX (rx_active=1) | rejected rx_active=1 lockrx_active=0 | rejected locktx_active=0 rx_active=1 | ignored rx_active=1 | rejected rx_active=1 tx_active=0 | executed rx_active=0 | rejected | rejected | executed |
| TX (tx_active=1) | rejected lockrx_active=0 tx_active=1 | rejected tx_active=1 locktx_active=0 | rejected rx_active=0 tx_active=1 | ignored tx_active=1 | executed tx_active=0 | rejected | rejected | ignored |
| SABORT (sabort_req) | rejected | rejected | rejected | rejected | ignored | rejected | rejected | ignored |
| CALIB_AGC_AAF | rejected | rejected | rejected | rejected | executed rx_active=0 calib_agc_aaf_req=0 | ignored | rejected | ignored |
| CALIB_SAFEASK | rejected | rejected | rejected | rejected | executed tx_active=0 calib_ask_req=0 | rejected | ignored | ignored |
| RELOAD_RX_TIMER (reload pulse of A clock cycle) | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A |
Table legend:
- • executed: the new command is considered and executed in parallel of the on-going one.
- • ignored: the new command is not considered, and no specific information is raised towards the SW.
- • rejected: the new command is not considered, and the COMMAND_REJECTED_F flag (associated to an interrupt if enabled) is raised in the RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS) to inform the SW.
TX command
One the APB write with Opcode = 0x1 occurs in the COMMAND dynamic register, the Radio Controller:
- • requests the Radio FSM to in TX state,
- • enables the Data Buffer management block
The user is informed the TX command is over thanks to the TX_DONE_F (and associated interrupt if enabled) available in the RFSEQ_IRQ_STATUS register once the frame has been transmitted.
For specific configurations, the TX command needs the SW interference to stop thanks to the SABORT command. This may happen in the following configurations:
- • transmission in direct through GPIO mode,
- • transmission in Direct through Buffer when PCKTLEN = 0.
In those cases, the HW has no knowledge of the moment to stop and so, waits for a SW decision to abort.
The TX command can only be requested when no other command is active except a LOCKTX command. Otherwise, the TX command is rejected (except in case of concurrency with another on-going TX command in which case it is ignored).
RX command
One the APB write with Opcode = 0x2 occurs in the COMMAND dynamic register, the Radio Controller:
- • requests the Radio FSM to in X state,
- • enables the Data Buffer management block
The user is informed the RX command is over thanks to flags (and associated interrupt if enabled) available in the RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS):
- • RX_OK_F flag
- – when a frame has been received without CRC error,
- • RX_CRC_ERROR_F flag
- – when a frame has been received but a mismatch is detected between the received CRC an the internally calculated CRC,
- • RX_TIMEOUT_F flag
- – when the RX sequence has been stopped by the HW on a RX Timer timeout,
- • FAST_RX_TERM_F flag
- – when the Fast termination mode is enabled and the measured RSSI stays below the programmed threshold during the Fast RX termination window.
For some specific configurations, the RX command needs the SW interference to stop thanks to the SABORT command. This may happen in the following configurations:
- • reception in Normal mode but no RX Timeout programmed (RX_TIMEOUT[22:0]=0). Then, the RX command stays active until a frame is received
- • reception in Direct through GPIO mode
- • reception in Direct through Buffer mode
In these cases, the HW has no knowledge of the moment to stop and waits for a SW decision to abort.
The RX command can only be requested while no other command is active except a LOCKRX command. Otherwise, the RX command is rejected (except in case of concurrency with another on-going RX command in which case it is ignored).
LOCKTX command
Once the APB write with Opcode = 0x3 occurs in the COMMAND dynamic register, the Radio controller requests the Radio FSM to go to LOCKONTX state.
From there, the Radio FSM can be:
- • sent to TX state by a TX command or a CALIB_SAFEASK command,
- • sent back to ACTIVE2 (or IDLE if BACK2ACTIVE2 bit is low) by a SABORT.
The aim of staying in LOCKONTX state can be:
- • to limit the latency to on TX (only PA startup step left before to reach TX),
- • to stabilize the XO frequency versus temperature increase generated by the RF startup by staying long enough in this state.
Note: In LOCKONTX state the power consumption add-on is not transparent as the RF PLL is running.
This command can only be requested while no other command is active, else it is rejected (except for a concurrent LOCKTX command in which case it is ignored).
LOCKRX command
Once the APB write with Opcode = 0x4 occurs in the COMMAND dynamic register, the Radio controller requests the Radio FSM to go to LOCKONRX state.
From there, the Radio FSM can be:
- • sent to RX state by a RX command or a CALIB_AGC_AAF command,
- • sent back to ACTIVE2 (or IDLE if BACK2ACTIVE2 bit is low) by a SABORT.
The aim of staying in LOCKONRX state can be:
- • to limit the latency to on RX (only RX chain startup step left before to reach RX),
- • to stabilize the XO frequency versus temperature increase generated by the RF startup by staying long enough in this state.
Note: In LOCKONRX state the power consumption add-on is not transparent as the RF PLL is running.
This command can only be requested while no other command is active, else it is rejected (except for a concurrent LOCKRX command in which case it is ignored).
SABORT command
The SABORT command (Opcode = 0x5) is used to stop any other active command.
Note: The RELOAD_RX_TIMER command is not concerned as it lasts 1 fast clock period.
The SABORT command informs the SW once it is completed:
- • either by a COMMAND_REJECTED_F flag if no command is active when the SABORT is requested,
- • or by a SABORT_DONE_F flag when the SABORT has been executed.
Note: Launching a second SABORT command before the confirmation of the previous one (rejected or done) leads randomly (depending on the state of the HW when the second command is issued) either to a command rejected or to an ignored command for which the SW never receives any acknowledge.
The SABORT_DONE_F flag indication is raised only once the interrupted command is effectively over. So, a latency is present between the SABORT command request and the done information. The SABORT is considered as done once the Radio FSM goes back to its default state (IDLE or ACTIVE2 or LOCKONxX depending on BACK2ACTIVE and BACK2LOKCON bits).
RELOAD_RX_TIMER command
Writing 0x6 in the COMMAND_ID[3:0] bit field generates a reload on the RX timer if this timer is enabled (corresponding to Radio FSM in RX state).
Before issuing the RELOAD_RX_TIMER command, the SW may:
- • program a new timeout target through the RX_TIMEOUT[22:0] bit field in the dynamic RX_TIMER register,
- • program new stop condition(s) through the RX_TIMER[31:28] bits.
The reload action must be requested while the Radio FSM is in RX state:
- • if the RX Timer is currently active, it is reloaded on-the-fly with a new timeout and/or stop condition targets,
- • if the RX Timer is stopped (due to a previous stop condition match or because initially programmed with 0), it restarts using the new timeout and/or new stop condition targets.
Refer to Section 29.14.3: RX Timer for details.
CALIB_SAFEASK command
The aim of the SafeASK calibration is to detect the operation mode of the output transistor of the class-E PA: linear vs saturation or ron zone vs current source zone. This allows to get the maximum output power on the antenna before PA enters in ohmic zone (or ron zone) causing deleterious AM to PM conversion during the ASK modulation.
The sequence to run a safe ASK calibration is the following:
- 1. Program the radio IP as for as for an ASK/OOK TX in FIR mode:
- – select the ASK/OOK modulation in MOD0_CONFIG[22:20] = MOD_TYPE[2:0],
- – select the FIR mode in PA_CONFIG register (see section PA_MODE = 01)
- 2. Define the calibration window by providing:
- – the minimum power to try in PA_LEVEL_3_0[7:0] = PA_LEVEL0[7:0] bit field
- – the maximum power to target in PA_LEVEL_7_4[31:24] = PA_LEVEL7[7:0] bit field
- 3. Define the result format (dB or linear) through the PA_CONFIG[13] = LIN_NLOG
- 4. Launch the calibration through the CALIB_SAFEASK command (0x0A Opcode):
- – the Radio Controller requests the Radio FSM to go to TX state,
- – once in TX state is reached, a PA SafeASK calibration is launched,
- – the Radio FSM goes back to its default state once it receives the “end of calibration” information from the PA interface block
- 5. The user is informed the CALIB_SAFEASK command is completed thanks to the SAFEASK_CALIB_DONE_F flag (and associated interrupt if enabled) available in the RFSEQ_IRQ_STATUS register.
- 6. The result of the calibration is available in the PA_CODEMAX[7:0] bit field of the PA_SAFEASK_OUT register (PA_SAFEASK_OUT) (status register).
The command can only be requested while no other command is active except a LOCKTX command. Otherwise, the CALIB_SAFEASK command is rejected (except in case of concurrency with another on-going CALIB_SAFEASK command in which case it is ignored).
CALIB_AGC_AAF command
The goal of the CALIB_AGC command is to help the SW in the trimming process of LNA+BOM AGC stage to guarantee 6dB by step.
The AGC calibration is described in a dedicated application note.
The user is informed the CALIB_AGC_AAF command is completed thanks to the AGC_AAF_CALIB_DONE_F flag (and associated interrupt if enabled) available in the RFSEQ_IRQ_STATUS register.
The result of the RSSI measurement is available in the RSSI_LEVEL_RUN[8:0] bit field of the RX_INDICATOR register (RX_INDICATOR) (status register).
The command can only be requested while no other command is active except a LOCKRX command. Otherwise, the CALIB_AGC_AAF command is rejected (except in case of concurrency with another on-going CALIB_AGC_AAF command in which case it is ignored).
29.14.2 BACK2ACTIVE2 and BACK2LOCKON bits
Some complementary bits have been added on MSB part of the dynamic COMMAND register (COMMAND). They offer options about the default state of the Radio FSM in some scenarios.
BACK2ACTIVE2 bit
This bit is used to send the Radio FSM from IDLE to ACTIVE2 even if no command is active. If this bit is high, the default state of the Radio FSM is ACTIVE2 instead of IDLE.
BACK2ACTIVE is useful to reduce the latency on RF command execution by removing the RF regulator settling time defined in the RF_FSM0_TIMEOUT register (RF_FSM0_TIMEOUT) (radio register).
BACK2LOCKON bit
This bit is used to request the Radio FSM:
- • to stay in LOCKONTX state when coming back from TX state,
- • to stay in LOCKONRX state when coming back from RX state.
This bit has no impact on the Radio FSM until it reaches the LOCKONTX or LOCKONRX state.
The BACK2LOCKON bit has been added in case it may help for some specific scenarios that would like to chain RX (respectively TX) sequences at the same frequency with very low latency in between.
Note: If the user wants to switch from RX to TX (resp. from TX to RX) or to have a channel hopping / frequency change, this bit must not be set as in this case the Radio FSM must go back to ACTIVE2 and restart the Sigma delta block and PLL with new frequency target.
Recommendation: this bit must be used as few as possible and only if it brings a real added value to the targeted scenarios.
29.14.3 RX Timer
The RX Timer is used to abort automatically a RX phase if the defined stop condition does not occur before the programmed timeout expires.
The possible stop conditions can be selected in the dynamic RX_TIMER register (RX_TIMER) dynamic register:
- • CS information (RSSI over threshold)
- – the RX timer stops when the carrier_sense (CS) is raised (in parallel this signal also sets the CS_F flag in the RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS))
- – the carrier_sense signal is raised when the RSSI measured in the antenna is greater than the RSSI threshold programmed by the SW (in the AS_QI_CTRL[8:0] = RSSI_THR[8:0])
- – the stop condition is enabled by setting the RX_TIMER[28] = RX_CS_TIMEOUT_MASK bit.
- • PQI information
- – the RX timer stops when the valid preamble information is raised (in parallel this signal also sets the PREAMBLE_VALID_F flag in the RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS))
- – the valid preamble signal is raised when a valid preamble is detected by the demodulator (or if PQI_THR[3:0] bit field is 0 in the AS_QI_CTRL static register),
- – the stop condition is enabled by setting the RX_TIMER[29] = RX_PQI_TIMEOUT_MASK bit.
- • SQI information
- – the RX timer stops when the valid SYNC signal is raised (in parallel this signal also sets the SYNC_VALID_F flag in the RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS))
- – the valid SYNC signal is raised when a valid SYNC word is detected by the demodulator,
- – the stop condition is enabled by setting the RX_TIMER[30] = RX_SQI_TIMEOUT_MASK bit.
- • An additional bit is present to use a combination of the above stop conditions instead of single information: the RX_TIMER[31] = RX_OR_NAND_SELECT:
- – RX_OR_NAND_SELECT = 0: a AND is applied on the enabled stop conditions
For example, if RX_CS_TIMEOUT_MASK and RX_PQI_TIMEOUT_MASK bits are set, the stop condition is raised when both flags are high. - – RX_OR_NAND_SELECT = 1: a OR is applied on the enabled stop conditions
For example, The RX Timer starts as soon as the Radio FSM enters the RX state, except if the timeout duration has been programmed to 0.
- – RX_OR_NAND_SELECT = 0: a AND is applied on the enabled stop conditions
The RX timer stops when it matches a stop condition or on a timeout expiration.
As long as the Radio FSM is in RX state, the RX Timer can be restarted through the RELOAD_RX_TIMER command. This command can also be used while the timer is currently running, to update the timeout target or the stop condition mask.
Concerning the timeout duration:
- • it is programmable through the RX_TIMEOUT[22:0] bit field of the RX_TIMER dynamic register,
- • its time unit is the interpolated absolute time (16 x slow clock frequency).
Table 138. RX Timer duration versus slow clock frequency
| Slow clock frequency | Period unit | Maximum timeout duration |
|---|---|---|
| 24 kHz (min) | 2.6 μs (384 kHz period) | 21.84 s |
| 32 kHz (typ) | 1.95 μs (512 kHz period) | 16.38 s |
| 49 kHz (max) | 1.27 μs (784 kHz period) | 10.7 s |
To disable the RX Timer, the user must program 0 as target timeout duration.
The SW is informed about a RX Timer event as follows:
- • RX_TIMEOUT_F:
- – raised when the RX Timer stops due to a timeout expiration
- – in this case, the reception phase is aborted by HW and the Radio FSM goes back to its requested default state
- • RXTIMER_STOP_CDT_F:
- – raised when the RX Timer stops due to a match with the stop condition(s) mask,
- – in this case, the reception goes on until a valid frame is received
- – the RX Timer can be restarted with the RELOAD_RX_TIMER command if the Radio FSM is still in RX state which may lead to a further timeout event or stop condition match event.
An example of the pair RX Timer / RELOAD_RX_TIMER command could be:
- 1. Launch a RX command with a RX Timer programmed with a duration1 and stop condition based on CS_F
- 2. If the SW receives a RXTIMER_STOP_CDT_F event, the radio has detected power on the antenna but no guarantee it is a valid frame
- 3. the SW relaunches the RX Timer with a new duration2 based on valid PREAMBLE detection stop condition
- 4. if the SW receives a RXTIMER_STOP_CDT_F event, the radio has detected a valid preamble but no guarantee that the coming SYNC word matches
- 5. the SW relaunches the RX Timer with a new duration3 based on valid SYNC word detection stop condition
This allows chained timeout sequences to be proposed.
29.14.4 Fast RX termination
Fast RX termination is a feature allows stopping quickly the reception if no relevant power is measured on the antenna.
The Fast RX Termination mode is enabled through the FAST_CS_TERM_EN bit in the dynamic FAST_RX_TIMER register (FAST_RX_TIMER) register.
When enabled, the behavior is the following:
- • a RX command is requested in the COMMAND register,
- • once the Radio FSM is in RX state, the RX_Top starts an internal timer programmable through the FAST_RX_TIMEOUT[7:0] bit field in the FAST_RX_TIMER register,
- • on fast timer expiration, the Radio Controller checks the carrier sense information:
- – if set, the Radio controller starts the RX Timer and rest of the RX sequence is managed as explained in the RX Timer section
- – if not set, the Radio controller stops the RX sequence and the FAST_RX_TERM_F flag in the RFSEQ_IRQ_STATUS register is set to explain the reason of the RX termination.
This mode can be used for sniff scenarios where the goal is to stop the reception and goes back in low power mode if no relevant power is seen on the antenna at wakeup and to retry later.
Although both fast RX termination and RX timers can be used to keep or stop the radio in RX state, depending on the presence - or otherwise - of power on the antenna, they behave differently.
The fast RX termination timer always runs until the timeout expires before it checks the carrier sense real-time information:
- • If the carrier sense information is high (power on the antenna is higher than programmed threshold): the radio stays in RX state and starts the RX Timer (if enabled).
- • If the carrier sense information is low (no power detected in the antenna): the radio exits the RX state.
Otherwise, the RX Timer stops as soon as it detects a stop condition and makes the radio exit the RX state only if its timeout expires (no stop condition met during the timeout window)
For details on carrier sense signal management, refer to Section 29.11.5: Carrier sense.
29.14.5 Hardware analog failure information
The analog elements may report some dysfunction during a RF sequence that can lead to a status / interrupt information up to a HW abort of the RF transfer, depending on the malfunction.
The malfunctions are reported in the following stats registers:
- • the RFSEQ_STATUS_DETAIL register (RFSEQ_STATUS_DETAIL) providing the exact problem source
- • the RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS) through HW_ANA_FAILURE_F bit which is raised as soon as one of the RFSEQ_STATUS_DETAIL bits linked to an analog issue is raised. This bit is associated to an interrupt if enabled.
Those analog malfunctions can be:
- • PLL lock failure:
- – The Radio FSM monitors the PLL lock information at the end of the LOCKRXTX state and during the LOCKONRX, LOCKONTX and EN_PA states. If the PLL is not locked or unlocks during this monitoring, the Radio FSM aborts the sequence and goes back to its default state.
- – This information is treated by the Radio Controller as a termination of the associated command.
- – The SW is informed of the event:
- by the PLL_LOCK_FAIL_F bit of the RFSEQ_STATUS_DETAIL register,
- by the HW_ANA_FAILURE_F flag in the RFSEQ_IRQ_STATUS register and associated interrupt if enabled.
- • PLL unlock event
- – If the PLL unlocks (PLL lock information falling edge detection):
- the PLL_UNLOCK_F bit of the RFSEQ_STATUS_DETAIL register is raised
- the HW_ANA_FAILURE_F bit of the RFSEQ_IRQ_STATUs register is raised
- – if it occurs outside the LOCKONRX, LOCKONTX and EN_PA Radio FSM states , this event has no impact on the rest of the sequence. It is the responsibility of the SW to interrupt the RF transfer on this information.
- – If the PLL unlocks (PLL lock information falling edge detection):
- • PLL calibration error
- – If the calibrator block indicates a calibration error at the end of the PLL calibration phase:
- the PLL_CALAMP_F bit of the RFSEQ_STATUS_DETAIL register is raised if the calibration error reason comes from the amplitude calibration
- the PLL_CALFREQ_F bit of the RFSEQ_STATUS_DETAIL register is raised if the calibration error reason comes from the frequency calibration
- the HW_ANA_FAILURE_F bit of the RFSEQ_IRQ_STATUS register is raised
- – this event has no impact on the rest of the sequence. It is the responsibility of the SW to decide to interfere or not on the on-going RF sequence.
- – If the calibrator block indicates a calibration error at the end of the PLL calibration phase:
The PLL lock failure is the only event that creates an HW abort reaction from the Radio FSM and so from the Radio Controller.
29.14.6 Time capture feature
The Time Capture feature allows recording the interpolated absolute time in the TIME_CAPTURE[31:0] read-only status register when a specific event is detected.
The enabling of the feature and the selection of the trigger event are done through the ADDITIONAL_CTRL[22:20] = TIME_CAPTURESEL[2:0] bit field as follows:
- • TIME_CAPTURESEL[2:0] = 000:
- – the feature is disabled, no time capture occurs
- • TIME_CAPTURESEL[2:0] = 001:
- – the interpolated absolute time is latched on end of transmission information,
- – the trigger signal is the end of TX information provided by the TX_Top block (before TX done flag is set and the Radio FSM goes back to ACTIVE2/IDLE state)
- • TIME_CAPTURESEL[2:0] = 010:
- – the interpolated absolute time is latched on end of reception information whatever the CRC result (RX OK or CRC error),
- – the trigger signal is the end of reception signal provided by the RX_Top block (before RX done or timeout or CRC error flag is set and the Radio FSM goes back to ACTIVE2/IDLE state)
Note: If the RX is stopped by a SABORT command, no Time Capture occurs in this configuration.
- • TIME_CAPTURESEL[2:0] = 011:
- – the interpolated absolute time is latched on the SYNC word detection event,
- – the trigger signal is the same as the setting the SYNC_VALID flag
- • TIME_CAPTURESEL[2:0] = 1xx:
- – Reserved for future used (no action required)
The trigger selection is exclusive so only one trigger source can be selected at a time.
The TIME_CAPTURE register keeps the recorded time until a new valid Time Capture event occurs.
29.15 Data buffers
The data to transmit (when in TX) and the received data (when in RX) are stored in the RAM of the device embedding the MR_SubG IP. The Data Buffer Manager (DBM) is an AHB master interfacing between the RAM of the device and the TX_Top / RX_Top blocks of the radio.
The Data Buffers are used in transmission or reception except:
- • for direct through GPIO mode for both TX and RX,
- • for PN mode in TX.
29.15.1 Data buffer mechanism
The MR_SubG IP uses the RAM of the device instead of internal FIFOs to manage the data to transmit and received data.
The RAM usage is the following:
- • the MR_SubG IP uses two Data Buffers: DATABUFFER0 and DATABUFFER1,
- • both buffers have a common programmable size (in byte),
- • the location of each Data Buffer in RAM is defined by a programmable 32-bit aligned pointer,
- • the DBM (Data buffer Manager) always does 32-bit RAM accesses:
- – in TX, read only full words in RAM, does not use the extra MSByte if buffer size is not modulo 4,
- – in RX, write full words even if buffer size is not modulo 4 (see associated warning below).
- • the two Data Buffers are used successively, in a rotation way: the DBM always starts a transfer from the DATABUFFER0, then once fully used (read for a TX, written for a RX), switches to the DATABUFFER1. The DBM then switches back to the DATABUFFER0 once the DATABUFFER1 is also fully used.
- • Each time a Data Buffer is used, the SW is informed by status flags (DATABUFFER0_USED_F and DATABUFFER1_USED_F), associated to an interrupt if enabled. An intermediate information can be generated thanks to a programmable threshold to be informed before the “fully used” criteria.
- • It is the responsibility of the SW to treat the used Data buffer content (refill in case of TX, content read in case of RX) before the DBM reuses it. This can also be mitigated by defining the most appropriate size of the buffer to fit the targeted use-case.
Warning: For SW to avoid RAM corruption in reception:
- • The DATABUFFER size can have a byte granularity to switch from one DATABUFFER to another when the exact number of bytes have been reached
- • However, the buffers allocated in RAM must always have a word (32-bit) granularity as the DBM always accesses the RAM word by word. The extra bytes in RAM are dummy but written anyway so these dummy bytes must be allocated in RAM.
29.15.2 Data buffer manager overview
The following figure provides an overview of the DBM.
Figure 291. Data Buffer Manager overview

The diagram illustrates the Data Buffer Manager (DBM) architecture. It is a central block containing a 16-byte internal FIFO (Byte0 to Byte15), a Controller, and a Byte Counter. The DBM is connected to several external components:
- Radio Controller: Provides
sysclk,rst_n,rx_active, andtx_activesignals. - TX_TOP: Exchanges
data_to_framer(8 bits) andcontrol_signal(8 bits). - RX_TOP: Exchanges
data_from_deframer(8 bits) andvalid_data. - Global Registers: Exchanges
TX or RX modes descriptionandData buffers information(Address, Size, Thresholds). It also receivesStatus/IRQsignals:Data buffer being used,Almost empty/full, andfull/empty. The Byte Counter outputsnb_databuffer_used[14:0]andcurrent_databuffer_count[15:0]to the Global Registers. - RAM: Connected via an AHB interface. The RAM contains
@ Data Buffer 0and@ Data Buffer 1.
The DBM:
- • reads the data to transmit in RAM during a transmission,
- • writes the received data into the RAM during a reception,
- • provides status information to the SW like which buffer is currently under used, the number of Data buffers already used, the information the programmed threshold is reached, etc.
The DBM embeds a 16-byte internal FIFO to be able to absorb potential latencies on the AHB traffic without losing bytes. This internal FIFO leads to some specific behaviors described below.
In transmission, the DBM prefetches data in RAM. The first prefetch occurs on TX command request (COMMAND register writing) and its size (up to 16 bytes) depends on selected transmission mode and packet length information, as shown in Table 139.
Table 139. DBM initial internal FIFO prefetch
| Transmission mode (PCKT_CTRL[8:7] = TX_MODE[1:0]) | Packet length PCKLEN_CONFIG[15:0] | Prefetch behavior |
|---|---|---|
| Normal mode | 0 | No prefetch as no payload |
| < 16 | prefetch PCKLEN[15:0] bytes | |
| ≥ 16 | prefetch 16 bytes | |
| Direct through buffers | 0 | prefetch 16 bytes (as infinite TX up to SABORT) |
| < 16 | prefetch PCKLEN[15:0] bytes | |
| ≥ 16 | prefetch 16 bytes | |
| Others (PN and Direct through GPIOs) | Don't care | No prefetch |
Then a new word (4 bytes) is prefetch each time a slot is free in the internal FIFO until the number of bytes defined by the packet length is reached (except for infinite direct through buffers configuration).
29.15.3 Programming procedure
The SW must program the following information before to use the Data Buffers:
- • Data Buffers size (from 0 to 65535 bytes) in the DATABUFFER_SIZE register (DATABUFFER_SIZE)
- • Data buffers location in the DATABUFFER0_PTR register (DATABUFFER0_PTR) and the DATABUFFER1_PTR register (DATABUFFER1_PTR).
Note: The base address of the Data Buffer in RAM must be 32-bit aligned.
Some status bit fields, sometimes associated to an interrupt (if enabled), provide information to the SW about the on-going usage of the Data Buffers:
- • DATABUFFER0_USED_F and DATABUFFER1_USED_F:
- – located in the RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS)
- – associated to an interrupt (if enabled)
- – set each time the DBM has completed the read in TX or the write in RX inside the Data buffer and started reading the other DATABUFFER
- – need to be cleared by SW writing a 1 in the associated bit.
- • CURRENT_DATABUFFER:
- – located in the DATABUFFER_INFO register (DATABUFFER_INFO) (status register)
- – indicates which Data Buffer is currently under read or write by the DBM.
- • NB_DATABUFFER_USED[14:0]:
- – located in the DATABUFFER_INFO register (DATABUFFER_INFO) (status register)
- – indicates the number of Data Buffers already fully used since the beginning of the transfer (on-going or latest if the transfer is over).
- • CURRENT_DATABUFFER_COUNT[15:0]:
- – located in the DATABUFFER_INFO status register,
- – indicates the number of bytes used in the last Data Buffer used (could be 0 if the transfer ended with a number of bytes that is modulo the Data Buffers size).
At the end of the transfer, the SW can determine the number of bytes read or stored in the Data buffers following the formula:
In addition, the SW can define some thresholds (common to both Data Buffers):
- • RX_ALMOST_FULL_THR[15:0]
- – almost full threshold in bytes for the Data buffers on a reception,
- – located in the DATABUFFER_THR register (DATABUFFER_THR)
- – associated to an interrupt if enabled,
- – set when the
CURRENT_DATABUFFER_COUNT[15:0] = RX_ALMOST_FULL_THR[15:0]
- • TX_ALMOST_EMPTY_THR[15:0]:
- – almost empty threshold in bytes for the Data Buffers in transmission,
- – located in the DATABUFFER_THR register,
- – associated to an interrupt if enabled,
- – set when the
CURRENT_DATABUFFER_COUNT[15:0] = TX_ALMOST_EMPTY_THR[15:0]
Warning: Due to the DBM 32-bit accesses only in RAM, if defined less than DATABUFFER_SIZE – 4, the threshold flags may happen simultaneously to the DATABUFFER_USEDx_F flag.
29.15.4 Error handling
The DBM manages a DBM FIFO error.
This error flag can be raised for two different reasons:
- 1. the Data buffers size has been programmed to 0 while:
- – Transmission mode is Normal mode (
TX_MODE[1:0]="00") and packet length is not null - – or Transmission mode is direct through Buffer (
TX_MODE[1:0] = "01")
- – Transmission mode is Normal mode (
- 2. the internal FIFO encounters an overflow (in reception) or an underflow (in transmission).
Regarding the second case: the DBM embeds a 16-bytes internal FIFO to store locally the received data or the next data to transmit in case of high latency on the AHB accesses in the device. The sizing of the FIFO has been studied to fit with the targeted device structure.
However, if the latency generated by the SoC is very too long, it may happen that:
- • in reception: the FIFO is full when the RX_Top block provides a new byte to store (overflow)
- • in transmission: the FIFO is empty when the TX_Top block requests a new byte to transmit (underflow).
In all cases, if the error is detected, the DBM_FIFO_ERROR_F bit is set in the RFSEQ_STATUS_DETAIL register.
When this bit is set, it also sets the AHB_ACCESS_ERROR_F bit in the RFSEQ_IRQ_STATUS register, which can be associated to an interrupt.
29.16 Sequencer
The Sequencer allows autonomous RF transfers management / chaining without CPU interfering.
Some example of scenarios are proposed in Section 29.23: Uses-cases: examples of scenarios with the Sequencer.
29.16.1 Sequencer overview
The role of the Sequencer is to run scenarios prepared by the CPU to achieve some application use-cases like Listen Before Talk, Auto Acknowledge, Auto-Retransmission, and so on.
To build and execute a scenario, the SW must:
- 1. Prepare in RAM a chained list of actions (called SeqActions in this document) through the GlobalConfiguration and ActionConfiguration RAM tables (see Section 29.16.4: Sequencer RAM tables for details).
- 2. Provide the location of the GlobalConfiguration as an offset of the device RAM base address through the retained SEQ_GLOBALTABLE_PTR register (SEQ_GLOBALTABLE_PTR).
- 3. From there, the SW can decide when to start the execution of the sequence by writing 1 in the action bit GEN_SEQ_TRIGGER located in the Misc SEQUENCER_CTRL register (SEQUENCER_CTRL).
- 4. Once the initiator trigger is sent, the Sequencer manages the scenario through the execution of the chained action tables. The sequence mainly consists in:
- – load the static registers with values in the GlobalConfiguration RAM table if requested (automatic after a reset/low power sequence and on SW request through a ForceReload bit in RAM tables)
- – Read the ActionConfiguration table pointed by the GlobalConfiguration table and execute the scenario:
- Load the dynamic registers with ActionConfiguration table content
- Monitor the events versus two enable masks
- When an event enabled by one of the two masks is active, get information about the next SeqAction (new ActionConfiguration table pointer, time interval before execution, low power mode at SoC level allowed or not during this inter-SeqAction interval)
The SW may program some interrupts to be informed on specific steps along the sequence (RX done implying some received data to process, TX done that may imply a low power phase for the device, and so on.)
Figure 292 is a generic representation of RAM tables used in chained sequences.
Figure 292. Sequencer actions list example

The diagram illustrates a chained sequence of RAM configuration tables:
- GlobalConfiguration: Located at RAM Base + offset indicated by the retained
SEQ_GLOBALTABLE_PTRregister field. Contains:- ActionConfigPtr (points via dashed line to ActionConfiguration0)
- GlobalConfigCtrl
- Static Configuration registers values
- ActionConfiguration0: Contains NextAction1Ptr (points via orange arrow to ActionConfiguration1), NextAction1Interval, NextAction1Mask, NextAction1Ctrl, NextAction2Ptr (points via light blue arrow to ActionConfiguration2), NextAction2Interval, NextAction2Mask, NextAction2Ctrl, ActionTimeout, Dynamic Configuration registers values, and Command.
- ActionConfiguration1: Points back to ActionConfiguration3 via NextAction1Ptr (or NextAction2Ptr to ActionConfiguration2). Contains NextAction1Ptr, NextAction1Interval, NextAction1Mask, NextAction1Ctrl, NextAction2Ptr, NextAction2Interval, NextAction2Mask, NextAction2Ctrl, ActionTimeout, Dynamic Configuration registers values, Command.
- ActionConfiguration2: Contains NextAction1Ptr (points via dashed red arrow to next or terminates), NextAction1Interval, NextAction1Mask, NextAction1Ctrl, NextAction2Ptr (dashed cyan line), NextAction2Interval, NextAction2Mask, NextAction2Ctrl, ActionTimeout, Dynamic Configuration registers values, Command.
- ActionConfiguration3: Contains NextAction1Ptr (dashed red arrow), NextAction1Interval, NextAction1Mask, NextAction1Ctrl, Null pointer (hatched background, annotated with 'Means no more action required if Next2 mask matches'), NextAction2Interval, NextAction2Mask, NextAction2Ctrl, ActionTimeout, Dynamic Configuration registers values, Command.
MSv58326V1
29.16.2 Sequence description
In this document, any phase from a trigger event on Sequencer to the end of the selected ActionConfiguration RAM table is called a SeqAction. An application use-case is an assembly of SeqActions through RAM tables configuration and mask definition for future actions.
The Sequencer starts its activity only on a trigger event which could be:
- • an APB write action in the GEN_SEQ_TRIGGER bit (only option to start a scenario as only the Sequencer can modify the RFIP_WAKEUPTIME register (RFIP_WAKEUPTIME) register and RFIP_WAKEUP_EN bit)
- • a RFIP wakeup timer event
- • an internal trigger generated by the Sequencer itself if the next action is requested to be started immediately after the on-going one.
On this trigger event, the Sequencer:
- • gets information from the GlobalConfiguration RAM table:
- – if requested (ForceClearEvents bit is set), resets the internal sequencer event status information,
- – if requested (after a reset or if ForceReload bit is set), loads the Static configuration registers with the values provided at the bottom of the table,
- – gets full address pointer on the ActionConfiguration entity to execute
- • then it gets the sequence information in the pointed ActionConfiguration RAM table containing the following information:
- – Two different next actions are possible depending on the result / status generated by the on-going action. knowing each of the two next actions description is defined symmetrically by:
- An associated ActionConfiguration address pointer,
- A mask based on seq_event_status[31:0] internal bus (respecting RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS) bit mapping) to consider the next action is the selected one.
- A delay to introduce before to execute this next action (done through an HW programming of the RFIP wakeup timer by the Sequencer),
- The ForceClearEvents, ForceReload and SleepEn bits associated to the selected next action configuration are written back in the common GlobalConfiguration RAM table
- – The Dynamic global registers are overwritten by the Sequencer using the values provided in the ActionConfiguration table
- – Two different next actions are possible depending on the result / status generated by the on-going action. knowing each of the two next actions description is defined symmetrically by:
Note: The latest Dynamic register is the COMMAND register: so as soon as the Sequencer overloads this register, the associated command is launched by the Radio Controller (except if NOP opcode is used)
- – a timeout (ActionTimeout) used as a watchdog to limit the waiting window until a match occurs for one or the other next action is managed by the Sequencer; this timeout monitoring is started just after the overload of the Dynamic registers.
- • Once a Next action mask match occurs:
- – The Sequencer updates few bit fields of the GlobalConfiguration (pointer on ActionConfiguration table, ForceClearEvents, ForceReload and SleepEn bits)
- – The Sequencer gets the next pointer address from the selected next action and writes it back in GlobalConfiguration
Note: A null pointer for next action means the sequence is complete (no more chained SeqAction requested). Then the Sequencer returns to the wait trigger state with low power mode allowed (SleepEn=1). Only a manual trigger through the GEN_SEQ_TRIGGER bit restarts a sequence as the Wakeup timer has not been reprogrammed in this case by the Sequencer.
- • The Sequencer checks the delay for next action trigger:
- – if a null interval is requested, the Sequencer generates an internal trigger to restart immediately from the first step (“gets information from the GlobalConfiguration table”)
- – If a non-null interval is requested, the Sequencer reprograms the Wakeup timer for a future trigger event and goes in a “wait for trigger” state. The Sequencer allows the low power mode of the device during this interval or not depending on the NextActionXCtrl.SleepEn bit value (X=1 or 2 depending on matched mask).
- • If the ActionTimeout expires before any Next action mask match occurs, then the Sequencer stops without reprogramming any future trigger and goes in “wait for trigger with sleep enable” state (low power mode allowed).
When the Sequencer completes a SeqAction due to an ActionTimeout event or due to a match on a NextAction pointing on a null address pointer, the SEQ_F status flag (associated to an interrupt if enabled) is raised in RFSEQ_IRQ_STATUS register. A complementary information is available in the RFSEQ_STATUS_DETAIL register to indicate if the SeqAction completed on a next action mask match with null pointer (SEQ_COMPLETE_F flag) or on an ActionTimeout event (SEQ_ACTIONTIMEOUT_F flag).
Figure 293 summarizes the flow of execution by the Sequence of a SeqAction.
Figure 293. SeqAction flow at Sequencer level

graph TD
subgraph " "
direction TB
Wait1[Wait trigger with SLEEP_EN] --> Decision1{Reset (low power mode) occurred since last SeqAction?}
Wait2[Wait trigger without SLEEP_EN] --> Decision1
Decision1 -- No --> Read2[Read GlobalConfiguration.GlobalConfigCtrl[2] = ForceClearEvents]
Read2 -- ForceClearEvents = 1 --> Clear1[Clear internal seq_event_status[31:0]]
Clear1 --> Read3[Read GlobalConfiguration.GlobalConfigCtrl[1] = ForceReload]
Read3 -- ForceReload = 1 --> ReloadStatic[Reload the Static registers from GlobalConfiguration RAM table to Configuration registers]
Read3 -- ForceReload = 0 --> ReadActionPtr[Read ActionConfigurationPtr from GlobalConfiguration RAM table]
Decision1 -- Yes --> ReloadStatic
ReloadStatic --> ReadActionPtr
ReadActionPtr --> ReadMasks[Read NextAction1Mask and NextAction2Mask values from ActionConfiguration RAM table]
ReadMasks --> WaitRRM[Wait for RRM registers ready confirmation]
WaitRRM -- RRM registers ready = 1 --> ReloadDynamic[Reload the Dynamic registers from ActionConfiguration RAM table to Configuration registers]
ReloadDynamic --> ReadTimeout[Read ActionTimeout from ActionConfiguration RAM table and build ActionTimeoutTime by adding current machine time]
ReadTimeout --> WaitMatch((1) Wait for a match on NextAction1Mask or NextAction2Mask (2) (3))
WaitMatch -- NextAction1Mask match --> StoreTime1[Store current machine time as NextActionAnchorTime]
WaitMatch -- NextAction2Mask match --> StoreTime2[Store current machine time as NextActionAnchorTime]
StoreTime1 --> UpdatePtr1[Update GlobalConfiguration.ActionConfigPtr with ActionConfiguration.NextAction1Ptr]
StoreTime2 --> UpdatePtr2[Update GlobalConfiguration.ActionConfigPtr with ActionConfiguration.NextAction2Ptr]
UpdatePtr1 -- else --> UpdateCtrl1[Update GlobalConfiguration.GlobalConfigCtrl[0] with ActionConfiguration.NextAction1Ctrl (SleepEn information)]
UpdatePtr2 -- else --> UpdateCtrl2[Update GlobalConfiguration.GlobalConfigCtrl[0] with ActionConfiguration.NextAction2Ctrl (SleepEn information)]
UpdateCtrl1 --> ReadInterval1[Read the value of ActionConfiguration.NextAction1Interval]
UpdateCtrl2 --> ReadInterval2[Read the value of ActionConfiguration.NextAction2Interval]
ReadInterval1 --> UpdateWakeup1[Update Wakeup RFIP_WAKEUPTIME with NextActionAnchorTime + NextAction1Interval]
ReadInterval2 --> UpdateWakeup2[Update Wakeup RFIP_WAKEUPTIME with NextActionAnchorTime + NextAction2Interval]
UpdateWakeup1 --> IsSleepEn{Is SleepEn = 1?}
UpdateWakeup2 --> IsSleepEn
IsSleepEn -- Yes --> Wait1
IsSleepEn -- No --> Wait2
endMSv58327V1
29.16.3 Next action mask management
The sequence is based on chained SeqActions.
Each SeqAction can select the next SeqAction among a list of two depending on the current SeqAction effects / consequences. The criteria to select the next SeqAction is based on a mask called NextActionXMask with X=1 or 2.
This principle of this mask is to be mapped bit by bit on an internal seq_event_status bus using the same bit mapping as the RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS). A mask match is valid if at least one event enabled by the mask is at 1 in the internal seq_event_status bus.
Figure 294. NextActionxMask mechanism overview (with x = 1 or 2)

A mask match event occurs as soon as:
- • a seq_event_status bit is 1
- • and its associated bit in NextActionxMask mapping is also 1
Note: A null mask is considered as always match
If a match occurs simultaneously on both NextAction1Mask and NextAction2Mask, the NextAction1Mask is selected
The seq_event_status bus is built inside the Sequencer according to the following rules:
- • some events are not applicable
- • some events are real-time events: the current state is used so the event can be active at a moment and no more active later without any clear action (for instance the CS flag
- indicating if there is a power on the antenna dynamically rises or falls according to current power received by the antenna)
- • some events are recorded and stay high even if the conditions have changed. In this case, the event bit is cleared:
- – on a SeqAction exit due to an ActionTimeout event,
- – on a SeqAction entry if the ForceClearEvents bit is set in the Control word of the GlobalConfiguration RAM table,
- – on a mask match event only if the associated bit in the matching mask (NextAction1Mask or NextAction2Mask) is set.
Note: The event recording is always active, except when the Sequencer is disabled or in “wait trigger with sleep enable” state.
The table below summarizes the bit mapping of the seq_event_status bus and the treatment associated to each bit.
Table 140. Sequencer internal events bus overview
| Bit position | Name / Feature | Treatment |
|---|---|---|
| 31 | AGC_AAF calibration done | Recorded |
| 30 | SAFE-ASK Calibration done | Recorded |
| 29 | Reserved, no event associated | Not applicable |
| 28 | RRM command end | Recorded |
| 27 | RRM command started | Recorded |
| 26 | Reserved, no event associated | Not applicable |
| 25 | Reserved, no event associated | Not applicable |
| 24 | HW Analog failure | Recorded |
| 23 | Reserved, no event associated | Not applicable |
| 22 | AHB Access Error (DATABUFFER_SIZE=0 or DBM internal FIFO overflow/underflow) | Real-time event |
| 21 | TX almost empty DATABUFFER1 | Real-time event |
| 20 | TX almost empty DATABUFFER0 | Real-time event |
| 19 | RX almost full DATABUFFER1 | Real-time event |
| 18 | RX almost full databuffer0 | Real-time event |
| 17 | DATABUFFER1 used | Real-time event |
| 16 | DATABUFFER0 used | Real-time event |
| 15 | Reserved, no event associated | Real-time event |
| 14 | Valid SYNC word detected | Real-time event |
| 13 | Preamble detected | Real-time event |
| 12 | Carrier Sense detected (power on the antenna over programmed RSSI threshold) | Real-time event |
| 11 | Reserved, no event associated | Not applicable |
| 10 | Reserved, no event associated | Not applicable |
| Bit position | Name / Feature | Treatment |
|---|---|---|
| 9 | Command rejected | Recorded |
| 8 | SABORT done | Recorded |
| 7 | RX Timer Stop conditions match | Recorded |
| 6 | Reserved, no event associated | Not applicable |
| 5 | Reserved, no event associated | Not applicable |
| 4 | Fast RX Termination | Recorded |
| 3 | CRC error on reception | Recorded |
| 2 | Timeout on reception | Recorded |
| 1 | Reception OK | Recorded |
| 0 | Transmission done | Recorded |
After the last dynamic register overload, once a match occurs, the Sequencer launches the end of SeqAction process (write back in GlobalConfiguration table and potential programming of the RFIP wakeup timer). Then the Sequencer waits for a new trigger to restart a new SeqAction.
29.16.4 Sequencer RAM tables
The RAM tables must be located in the RAM bank(s) that stay in retention during SoC low power mode sessions to be able to run scenarios chaining SeqActions with interleaved low power sequences.
The RAM tables used by the Sequencer are split in two categories:
- • GlobalConfiguration table:
- – this RAM table is unique
- – this RAM table is always used by the Sequencer at the beginning of each SeqAction (on trigger event)
- – the main role of this table is to point on the ActionConfiguration RAM table concerned by the trigger event and to optionally preset some specific elements
- • ActionConfiguration tables:
- – there are several tables
- – each table is linked to a specific SeqAction
- – the main role of these tables is to configure and launch a command and to define the possible following SeqAction depending on the consequences (flags) of the command
Tips for users
This paragraph proposes some recommendations for few fields of the RAM tables.
- • GlobalConfiguration initialization for a new SeqActions chain:
- – Set ForceClearEvents and ForceReloadStatic bits to 1 to remove any possible history coming from potential previous sequence (chained SeqAction)
- – Then those 2 bits are written back at the end of each SeqAction according to NextActionCtrl bit fields defined in the matched next action
- • Use 0x04000000 value as a “never match” mask
- – The bit 26 of the seq_event_status bus is stuck to 0 so this match cannot happen
- – Note that the bit 26 of the RFSEQ_STATUS_IRQ is the SEQ_F flag so this bit is not expected to become valid/used in the seq_event_status bus in future evolutions.
- • Use 0x00000000 as an “always match” mask
- – the Sequencer automatically matches a null mask
29.17 GlobalConfiguration RAM table overview
The GlobalConfiguration RAM table is always read by the Sequencer after any trigger event whatever the on-going sequence (just starting or already few intermediary action steps executed). The GlobalConfiguration table is unique and shared by all the SeqActions.
The GlobalConfiguration RAM table could be summarized as follows:
- • Start address of this table is defined in the SEQ_GLOBALTABLE_PTR global Retained register as an offset of the SoC RAM base address
- • Start address of this table must be 32-bit aligned in RAM
- • Unique and shared by all the SeqActions
- • Always read first after each trigger event
- • It contains:
- – In WORD 0: the pointer on the ActionConfiguration RAM table to execute,
- – In WORD1:
- A bit (ForceClearEvents) to clear the internal seq_event_status bus before to start the SeqAction
- A bit (ForceReload) to enable/disable a force reload of the Static registers even if no reset occurs since the last reload
- A bit (SleepEn) indicating if the low power mode was allowed during the wait interval since last SeqAction execution (result of the previous SeqAction write back operation)
- – A Static register table to be used to override all the Static configuration registers
At the end of the SeqAction execution, the Sequencer updates the 2 first words of the GlobalConfiguration table according to the next action address pointer and information present in the WORD1 of the under execution ActionConfiguration RAM table which are:
- • Address of the ActionConfiguration to be executed on next trigger event
- • Allowance or not of low power mode until next action trigger event
- • Enable/disable the seq_event_status bus clearance on entry of next SeqAction
- • Enable/disable a force of the static register reload at the beginning of the next action
Table 141. GlobalConfiguration RAM table
| Word | Byte addr | R/W by seq | 7 | 6 | 5 | 4 | 3 | 2 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x00 | 0x0 | R/W | ActionConfigPtr[7:0] | ||||||||
| 0x1 | ActionConfigPtr[15:8] | ||||||||||
| 0x2 | ActionConfigPtr[23:16] | ||||||||||
| 0x3 | ActionConfigPtr[31:24] | ||||||||||
| 0x01 | 0x4 | R/W | - | Force clear events | Force reload | Sleep enable | |||||
| 0x5 | - | ||||||||||
| 0x6 | - | ||||||||||
| 0x7 | - | ||||||||||
| 0x02 | 0x8 | R | StaticConfigReg0[7:0] | ||||||||
| 0x9 | StaticConfigReg0[15:8] | ||||||||||
| 0xA | StaticConfigReg0[23:16] | ||||||||||
| 0xB | StaticConfigReg0[31:24] | ||||||||||
| 0x03 | 0xC | R | StaticConfigReg1[7:0] | ||||||||
| 0xD | StaticConfigReg1[15:8] | ||||||||||
| 0xE | StaticConfigReg1[23:16] | ||||||||||
| 0xF | StaticConfigReg1[31:24] | ||||||||||
| ... | 0x10 | R | ... | ||||||||
| 0x11 | ... | ||||||||||
| 0x12 | ... | ||||||||||
| 0x13 | ... | ||||||||||
| 0x10 | 0x40 | R | StaticConfigRegE[7:0] | ||||||||
| 0x41 | StaticConfigRegE[15:8] | ||||||||||
| 0x42 | StaticConfigRegE[23:16] | ||||||||||
| 0x43 | StaticConfigRegE[31:24] | ||||||||||
29.18 GlobalConfiguration RAM table register descriptions
Table 142. GlobalConfiguration RAM table registers
| Address Offset | Register name | Description |
|---|---|---|
| 0x00 | WORD0 | Word0 register (ActionConfigPtr) |
| 0x04 | WORD1 | Word1 register (GlobalConfigCtrl) |
| 0x08 to 0x40 | WORDN | WordN register with N = 2 to 0x10 |
29.18.1 Word 0 register (WORD0)
Address offset: 0x0000
Reset value: 0x0000 0000
Word 1 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ACTIONCONFIGPTR[31:16] | |||||||||||||||
| 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 |
| ACTIONCONFIGPTR[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 ACTIONCONFIGPTR[31:0]: Action Configuration address Pointer.
Contains the address of the ActionConfiguration table to execute for this trigger event.
The address pointed by this word must be 32-bit aligned.
Note: this value must be initialized by the SW, then it is overloaded automatically by the Sequencer to prepare the next SeqAction depending on the Next1Mask / Next2Mask result.
29.18.2 Word1 register (WORD1)
Address offset: 0x0004
Reset value: 0x0000 0000
Word1 register(a)
| 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. | Res. | FORCECLEAREVENTS | FORCERELOAD | SLEEPEN |
| rw | rw |
Bits 31:3 Reserved, must be kept at reset value.
Bit 2 FORCECLEAREVENTS: Clear seq_event_status internal bus request.
Defines if the Sequencer must clear its internal seq_events_statusbus on SeqAction entry (before to execute the ActionConfiguration table):
- 0: do not modify internal seq_event_status bus (keep memory about any potential events not cleared on previous SeqAction exit or that occurred since the last SeqAction exit)
- 1: clear the seq_event_status bus (erase memory of past events before this SeqAction)
Bit 1 FORCERELOAD: Static register force reload request.
Defines in which cases the Sequencer reloads the Static configuration registers:
- 0: limits the reload of the Static configuration registers to power off detection case
- 1: notifies the Sequencer to reload the Static configuration in any cases.
Note: the Sequencer automatically reloads the static registers if it detects the MR_SubG IP has been power off since last trigger event / SeqAction execution.
Bit 0 SLEEPEN: Sleep allowed after SeqAction execution. Indicates if a low-power sequence is allowed, until the next SeqAction triggered event.
- 0: the Sequencer does not allow the low power mode between the previous SeqAction and the next one
- 1: the Sequencer allows the device going in low power mode until the next SeqAction trigger occurs.
a. This word is written back by the Sequencer in RAM at the end of each SeqAction execution to prepare the Sequencer behavior up to next trigger event.

29.18.3 Word N register N = 2 to 16 (WORDN)
Address offset: 0x08+(4 × X) with X = 0 to 14)
Reset value: 0x0000 0000
Word N register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| STATIC_CONFIG_REGX[31:16] | |||||||||||||||
| 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 |
| STATIC_CONFIG_REGX[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 STATIC_CONFIG_REGX: Static configuration register with X from 0 to 14.
Contains the value to be written by the Sequencer into the Static register X.
29.19 ActionConfiguration RAM table overview
The ActionConfiguration RAM table contains the dynamic part of the SeqAction and is potentially different for each step of the sequence. There can be as many ActionConfiguration tables as needed by the application use-case.
The ActionConfiguration RAM table is summarized as follows:
- • start address of the table is defined in the WORD0 of the GlobalConfiguration table for the first SeqAction; then the Sequencer uses the address pointer provided by the ActionConfiguration tables to reprogram the GlobaConfiguration WORD0 at the end of each SeqAction
- • start address of these tables must be 32-bit aligned
- • as many tables as needed for the full scenario can be defined
- • it contains:
- – in WORD 0 to WORD3: the information linked to Next Action1 (pointer address of the corresponding ActionConfiguration RAM table, interval to wait before to run it, mask to match the Next Action1 and Next Action1 control
- – in WORD 4 to WORD7: the equivalent information linked to Next Action2 (pointer address of the corresponding ActionConfiguration RAM table, interval to wait before to run it, mask to match the Next Action2 and Next Action2 control
- – in WORD8: the ActionTimeout duration
- – the rest of the table (WORD9 to WORD13) contains a Dynamic configuration registers table to reprogram the Dynamic register which are intended to change between the sequenced actions.
Table 143. ActionConfiguration RAM table
| Word | Byte addr | R/W by Seq | Bitfield (8 bits) |
|---|---|---|---|
| 0x00 | 0x0 | R | NextAction1Ptr[7:0] |
| 0x1 | NextAction1Ptr [15:8] | ||
| 0x2 | NextAction1Ptr [23:16] | ||
| 0x3 | NextAction1Ptr [31:24] | ||
| 0x01 | 0x4 | R | NextAction1Interval[7:0] |
| 0x5 | NextAction1Interval[15:8] | ||
| 0x6 | NextAction1Interval[23:16] | ||
| 0x7 | NextAction1Interval[31:24] | ||
| 0x02 | 0x8 | R | NextAction1Mask[7:0] |
| 0x9 | NextAction1Mask[15:8] | ||
| 0xA | NextAction1Mask[23:16] | ||
| 0xB | NextAction1Mask[31:24] |
Table 143. ActionConfiguration RAM table
| Word | Byte addr | R/W by Seq | Bitfield (8 bits) |
|---|---|---|---|
| 0x03 | 0xC | R | NextAction1Ctrl[7:0] |
| 0xD | NextAction1Ctrl[15:8] | ||
| 0xE | NextAction1Ctrl[23:16] | ||
| 0xF | NextAction1Ctrl[31:24] | ||
| 0x04 | 0x10 | R | NextAction2Ptr[7:0] |
| 0x11 | NextAction2Ptr [15:8] | ||
| 0x12 | NextAction2Ptr [23:16] | ||
| 0x13 | NextAction2Ptr [31:24] | ||
| 0x05 | 0x14 | R | NextAction2Interval[7:0] |
| 0x15 | NextAction2Interval[15:8] | ||
| 0x16 | NextAction2Interval[23:16] | ||
| 0x17 | NextAction2Interval[31:24] | ||
| 0x06 | 0x18 | R | NextAction2Mask[7:0] |
| 0x19 | NextAction2Mask[15:8] | ||
| 0x1A | NextAction2Mask[23:16] | ||
| 0x1B | NextAction2Mask[31:24] | ||
| 0x07 | 0x1C | R | NextAction2Ctrl[7:0] |
| 0x1D | NextAction2Ctrl[15:8] | ||
| 0x1E | NextAction2Ctrl[23:16] | ||
| 0x1F | NextAction2Ctrl[31:24] | ||
| 0x08 | 0x20 | R | ActionTimeout[7:0] |
| 0x21 | ActionTimeout [15:8] | ||
| 0x22 | ActionTimeout [23:16] | ||
| 0x23 | ActionTimeout [31:24] | ||
| 0x09 | 0x24 | R | DynamicConfigReg0[7:0] |
| 0x25 | DynamicConfigReg0[15:8] | ||
| 0x26 | DynamicConfigReg0[23:16] | ||
| 0x27 | DynamicConfigReg0[31:24] | ||
| 0x0A | 0x28 | R | DynamicConfigReg1[7:0] |
| 0x29 | DynamicConfigReg1[15:8] | ||
| 0x2A | DynamicConfigReg1[23:16] | ||
| 0x2B | DynamicConfigReg1[31:24] |
Table 143. ActionConfiguration RAM table
| Word | Byte addr | R/W by Seq | Bitfield (8 bits) |
|---|---|---|---|
| ... | 0x.. | R | ... |
| 0x.. | ... | ||
| 0x.. | ... | ||
| 0x.. | ... | ||
| 0x13 | 0x4C | R | DynamicConfigRegA[7:0] (= COMAND[7:0]) |
| 0x4D | DynamicConfigRegA[15:8] (= COMAND[15:8]) | ||
| 0x4E | DynamicConfigRegA[23:16] (= COMAND[23:16]) | ||
| 0x4F | DynamicConfigRegA[31:24] (= COMAND[31:24]) |
Table 144. ActionConfiguration RAM table registers list
| Address Offset | Register name | Description |
|---|---|---|
| 0x00 | WORD0 | Word0 register |
| 0x04 | WORD1 | Word1 register |
| 0x08 | WORD2 | Word2 register |
| 0x0C | WORD3 | Word3 register |
| 0x10 | WORD4 | Word4 register |
| 0x14 | WORD5 | Word5 register |
| 0x18 | WORD6 | Word6 register |
| 0x1C | WORD7 | Word7 register |
| 0x20 | WORD8 | Word8 register |
| 0x24 to 0x4C | WORDN | WordN registers with N = 0x9...0x13 |
29.20 ActionConfiguration RAM table register descriptions
29.20.1 Word 0 register (WORD0)
Address offset: 0x0000
Reset value: 0x0000 0000
Word 0 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NEXTACTION1PTR[31:16] | |||||||||||||||
| 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 |
| NEXTACTION1PTR[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 NEXTACTION1PTR[31:0]: NextAction1 address Pointer.
Contains the address of the ActionConfiguration table to execute on next trigger event in case of NextAction1Mask match. This address must be 32-bit aligned.
Note: this value is written by the Sequencer in the GlobalConfiguration WORD0 at the end of the on-going SeqAction if the NextAction1Mask matches. if null, the Sequencer does not write back any next SeqAction information in the GlobalConfiguration table nor Wakeup Timer new target.
29.20.2 Word 1 register (WORD1)
Address offset: 0x0004
Reset value: 0x0000 0000
Word 1 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NEXTACTION1INTERVAL[31:16] | |||||||||||||||
| 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 |
| NEXTACTION1INTERVAL[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 NEXTACTION1INTERVAL[31:0]: NextAction1 Interval duration (in interpolated absolute time ticks unit).
Contains the delay before to execute the NextAction1 in case of NextAction1Mask match.
– Note:
when a NextAction1 mask match event occurs, this value is added to the current 32-bit interpolated time and the result of this addition is written in the Retained RFIP_WAKEUPTIME register (RFIP_WAKEUPTIME) by the Sequencer at the end of the on-going SeqAction,
– if null, the Sequencer starts immediately the next SeqAction after RAM write back phase.
Remark: if NEXTACTION1CTRL.SleepEn=1, the user must not program an interval shorter than SOC_WAKEUP_OFFSET.
29.20.3 Word 2 register (WORD2)
Address offset: 0x0008
Reset value: 0x0000 0000
Word 2 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| NEXTACTION1MASK[31:16] | |||||||||||||||
| 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 |
| NEXTACTION1MASK[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 NEXTACTION1MASK[31:0]: NextAction1 Mask.
Contains the mask to be applied on the seq_event_status internal bus by the Sequencer to detect the on-going SeqAction must be stopped and NextAction1 is selected for the next step.
If at least one bit at 1 in the mask is also equal to 1 in the seq_event_status bus (at same position), then a match occurs.

29.20.4 Word 3 register (WORD3)
Address offset: 0x0004
Reset value: 0x0000 0000
Word3 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. | Res. | NEXT1FORCECLEAREVENTS | NEXT1FORCERELOAD | NEXT1SLEEPEN |
| rw | rw | rw |
Bits 31:3 Reserved, must be kept at reset value.
- Bit 2 NEXT1FORCECLEAREVENTS: Clear seq_event_status internal bus request bit to write back in GlobalConfiguration.GlobalConfigurationControl[2] at the end of the on-going SeqAction in the case of NextAction1Mask match.
Setting this bit means the user requests a seq_event_status bus clear on next SeqAction start if the next action mask 1 matches. - Bit 1 NEXT1FORCERELOAD: Static register force reload request bit to write back in GlobalConfiguration.GlobalConfigurationControl[1] at the end of the on-going SeqAction in case of NextAction1Mask match.
Setting this bit means the user requests a Static registers reload on next SeqAction start if the next action mask 1 matches. - Bit 0 NEXT1SLEEPEN: Sleep allowed after SeqAction execution bit to write back in GlobalConfiguration.GlobalConfigurationControl[0] at the end of the on-going SeqAction in case of NextAction1Mask match.
Setting this bit means the user allows a device Low Power sequence between the end of the on-going SeqAction and the next SeqAction start if the next action mask 1 matches.
Note: The whole 32-bit word is written back in the GlobalConfigurationControl word in RAM.

29.20.5 Word 4 register (WORD4)
Address offset: 0x0010
Reset value: 0x0000 0000
Word 4 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| NEXTACTION2PTR[31:16] | |||||||||||||||
| 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 |
| NEXTACTION2PTR[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 NEXTACTION2PTR: NextAction2 address pointer.
Contains the address of the ActionConfiguration table to execute on next trigger event in case of NextAction2Mask match. This address must be 32-bit aligned.
Note:
this value is written by the Sequencer in the GlobalConfiguration WORD0 at the end of the on-going SeqAction if the NextAction2Mask matches.
If null, the Sequencer does not write back any next SeqAction information in the GlobalConfiguration table nor Wakeup Timer new target.
29.20.6 Word 5 register (WORD5)
Address offset: 0x0014
Reset value: 0x0000 0000
Word 5 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| NEXTACTION2INTERVAL[31:16] | |||||||||||||||
| 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 |
| NEXTACTION2INTERVAL[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 NEXTACTION2INTERVAL[31:0]: NextAction2 Interval duration (in interpolated absolute time ticks unit).
Contains the delay before to execute the NextAction2 in case of NextAction1Mask match.
Note:
when a NextAction2 mask match event occurs, this value is added to the current 32-bit interpolated time and the result of this addition is written in the Retained RFIP_WAKEUPTIME register (RFIP_WAKEUPTIME) by the Sequencer at the end of the on-going SeqAction,
if null, the Sequencer starts immediately the next SeqAction.
Remark: if NEXTACTION2CTRL.SleepEn=1, the user must not program an interval shorter than SOC_WAKEUP_OFFSET.
29.20.7 Word 6 register (WORD6)
Address offset: 0x0008
Reset value: 0x0000 0000
Word 6 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| NEXTACTION2MASK[31:16] | |||||||||||||||
| 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 |
| NEXTACTION2MASK[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 NEXTACTION2MASK[31:0]: NextAction2 Mask.
Contains the mask to be applied on the seq_event_status internal bus by the Sequencer to detect the on-going SeqAction must be stopped and NextAction2 is selected for the next step.
If at least one bit at 1 in the mask is also equal to 1 in the seq_event_status bus (at same position), then a match occurs.
29.20.8 Word 7 register (WORD7)
Address offset: 0x001C
Reset value: 0x0000 0000
Word7 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. | Res. | NEXT2FORCECLEAREVENTS | NEXT2FORCERELOAD | NEXT2SLEEPEN |
| rw | rw | rw |
- Bits 31:3 Reserved, must be kept at reset value.
- Bit 2 NEXT2FORCECLEAREVENTS: Clear seq_event_status internal bus request bit to write back in GlobalConfiguration.
GlobalConfigurationControl[2] at the end of the on-going SeqAction in case of NextAction2Mask match.
Setting this bit means the user requests a seq_event_status bus clear on next SeqAction start if the next action mask 2 matches. - Bit 1 NEXT2FORCERELOAD: Static register force reload request bit to write back in GlobalConfiguration.
GlobalConfigurationControl[1] at the end of the on-going SeqAction in case of NextAction1Mask match.
Setting this bit means the user requests a Static registers reload on next SeqAction start if the next action mask 2 matches. - Bit 0 NEXT2SLEEPEN: Sleep allowed after SeqAction execution bit to write back in GlobalConfiguration.
GlobalConfigurationControl[0] at the end of the on-going SeqAction in case of NextAction1Mask match.
Setting this bit means the user allows a device Low Power sequence between the end of the on-going SeqAction and the next SeqAction start if the next action mask 2 matches.
Note: The whole 32-bit word is written back in the GlobalConfigurationControl word in RAM.

29.20.9 Word 8 register (WORD8)
Address offset: 0x0020
Reset value: 0x0000 0000
Word 8 register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ACTIONTIMEOUT[31:16] | |||||||||||||||
| 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 |
| ACTIONTIMEOUT[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 ACTIONTIMEOUT[31:0]: Action timeout (in interpolated absolute time ticks).
Contains the maximum duration to wait between the end of Dynamic registers reload action and a match on Next1 or Next2 action. If the timeout expires, the Sequencer stops monitoring the NextAction1Mask and NextAction2Mask and returns in the “wait with sleep enable” state. If the timeout event occurs, the SEQ_ACTIONTIMEOUT_F flag in the RFSEQ_STATUS_DETAIL register and the SEQ_F flag in the RFSEQ_IRQ_STATUS are set.
Note: only a manual trigger (APB write) can then restart as no RFIP_WAKEUPTIME reprogramming done by the Sequencer in this case).
Note: null value means no timeout on next actions masks monitoring.
29.20.10 Word N register N = 2 to 16 (WORDN)
Address offset: 0x24 + (4 x X) with X=0 to 10)
Reset value: 0x0000 0000
Word N register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| DYNAMIC_CONFIG_REGX[31:16] | |||||||||||||||
| 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 |
| DYNAMIC_CONFIG_REGX[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 DYNAMIC_CONFIG_REGX[31:0]: Dynamic configuration register with X from 0 to 10.
Contains the value to be written by the Sequencer into the Dynamic register X.
29.21 Time management unit (TMU)
The time Management unit oversees two main features:
- • compute a 32-bit interpolated absolute time,
- • handle the slow clock period measurement.
Figure 295. Time Management Unit overview
![Block diagram of the Time Management Unit (TMU) overview. The diagram shows three main functional blocks: WakeUp, Timer Management, and Global registers. The WakeUp block contains a Slow Clock Counter that receives CLK_SLOW_32K and outputs slow_clock_counter[27:0] and absolute_time_valid. The Timer Management block contains a Time Interpolator and a Slow Clock Measurement block. The Time Interpolator receives slow_clock_counter[27:0] and absolute_time_valid, and outputs absolute_time[31:0] and current_counter_value[14:4]. The Slow Clock Measurement block receives clk_sys_16M_accurate_ready and CLK_SYS_16M, and outputs to Global registers. The Global registers block contains ABSOLUTE_TIME[31:0], CLEAR_MIN_MAX, SLOWCLK_COUNTER_MAXVAL[14:0], SLOWCLK_COUNTER_MINVAL[14:0], and SLOWCLK_COUNTER_CURRVAL[14:0]. The Sequencer and Radio Controller blocks receive absolute_time[31:0] from the Global registers.](/RM0511-STM32WL30-31-33/f442f56ea4d80c2ec791aab7c66b97d2_img.jpg)
graph TD
CLK_SLOW_32K --> SlowClockCounter
SlowClockCounter --> WakeUp
WakeUp --> SlowClockCounter
SlowClockCounter --> TimeInterpolator
TimeInterpolator --> WakeUp
TimeInterpolator --> GlobalRegisters
GlobalRegisters --> TimeInterpolator
GlobalRegisters --> SlowClockMeasurement
SlowClockMeasurement --> GlobalRegisters
GlobalRegisters --> Sequencer
GlobalRegisters --> RadioController
clk_sys_16M_accurate_ready --> SlowClockMeasurement
CLK_SYS_16M --> SlowClockMeasurement
29.21.1 Slow clock period measurement
the slow clock internal oscillator (LSI) of the device is not necessarily at 32 kHz. According to the LSI specification, it could provide a frequency between 24 kHz and 49 kHz. For this reason, the SW needs to have a mean to measure on each device the real slow clock period.
The MR_SubG IP embeds a slow clock period measurement block to help the SW calculating this information.
The slow clock measurement principle is to count the number of fast clock periods inside a window of 32 slow clock periods.
The main points to consider are:
- • The fast clock frequency is XO frequency / 3 so typically 16 MHz. But it can also be 15.666 MHz with a XO at 47 MHz or 16.666 MHz with a XO at 50 MHz.
- • The slow clock measurement is always running and refresh every 32 slow clock cycles
- – the measurement block counts only if the device indicates the fast clock tree is accurate. In the STM32WL30xx/31xx/33xx, it corresponds to have a clock source
provided directly by the XO (HSE mode) or by the RC64MPLL block locked on the XO (HSIPLL mode)
- • The slow clock counter stops and is reset back to 0 each time the accurate information is cleared by the clock controller of the device.
- • The slow clock measurement block also provides some statistics by recording the minimum and maximum period seen in a slow clock cycle. This may show a drift in time for instance. Those statistics are automatically cleared when the device resets the accurate clock information and can also be cleared by the SW.
The results of the calculations are available in the some Global Misc registers:
- • SCM_COUNTER_CURRVAL[14:0]:
- – located in the SCM_COUNTER_VAL register (SCM_COUNTER_VAL)
- – provides the number of 16 MHz fast clock cycles seen in a 32 slow clock period window
- – read to 0 after a POR or after the loss of the system clock accuracy information; then kept to 0 until the first valid calculation is available (32 slow clock cycles after system clock accurate information).
- • SCM_COUNTER_MINVAL[14:0]:
- – located in the SCM_MIN_MAX register (SCM_MIN_MAX)
- – provides the minimum SCM counter value seen since the counter is ON or since the last SW clearing action
- – the value can be cleared by setting the CLEAR_MIN_MAX action bit (located in the SCM_MIN_MAX register).
Note: This bit clears both min and max value (statistics part) but does not impact the current counter value.
- – read to 0x7FFF after POR or loss of system clock accuracy or SW clearing action.
- • SCM_COUNTER_MAXVAL[14:0]:
- – located in the SCM_MIN_MAX register (SCM_MIN_MAX)
- – provides the maximum SCM counter value seen since the counter is ON or since the last SW clearing action
- – the value can be cleared by setting the CLEAR_MIN_MAX action bit (located in the SCM_MIN_MAX register).
Note: This bit clears both min and max value (statistics part) but does not impact the current counter value.
- – read to 0x0000 after POR or loss of system clock accuracy or SW clearing action.
The slow clock period is:
29.21.2 Time interpolation
The Time Management unit block also generates an interpolated absolute time to the other blocks that could need this information. This interpolated frequency is 16 x slow clock frequency.
The interpolated absolute time is a 32-bit value built by the concatenation of:
- • the 28-bit absolute time based on a slow clock counter (incremented on each rising edge of the slow clock),
- • the 4-bit interpolated value based on an interpolation counter running on the MR_SubG IP system clock.
| 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 |
| Slow clock counter part | Interpolated counter part | ||||||||||||||||||||||||||||||
As for the slow clock measurement and associated statistics, the interpolated time is only running / available when the device clock controller confirms the system clock is accurate. The interpolated time is available 3 slow clock periods after the combination slow clock present and system clock accuracy confirmation (against 32 slow clock periods for measurement and statistics). The reason is the interpolation starts when the slow clock is present even if the system clock is not yet accurate.
Note: When the system clock is accurate, the time interpolation system uses the slow clock period measurement data to better tune the interval between each interpolated tick.
In any case, the rising edge of the slow clock is used to increment the MSB part and re-start the LSB interpolated part. In this process, the TMU guarantees that no missing code can happen during the interpolation:
- • if the slow clock is faster than 32 kHz, the 4-bit interpolation reaches 0xF before the next slow clock rising edge:
- – the 0xF is maintained until the slow clock rising edge occurs,
- – MSB part is incremented as soon as the slow clock rising edge is detected,
- – LSB part re-starts from 0x0 as soon as the slow clock rising edge is detected
- • if the slow clock is slower than 32 kHz, the 4-bit interpolation has not yet reached 0xF when the next slow clock rising edge occurs:
- – the time interpolator increments the 4-bit counter every 16 MHz system clock until it reaches 0xF
- • Once 0xF is reached:
- – MSB part is incremented,
- – LSB part re-starts from 0x0
The MR_SubG IP sub-blocks using the time interpolation are:
- • Global registers:
- – to provide the interpolated absolute time in the Misc ABSOLUTE_TIME register (ABSOLUTE_TIME).
- • Radio controller:
- – to manage the RX Timeout
- • Sequencer:
- – to build the value to program in the Wakeup block for next SeqAction (= current interpolated absolute time + NextActionxInterval) and load it in RFIP_WAKEUPTIME register
- – to manage the ActionTimeout
- • Wakeup:
- – to generate the trigger event to the Sequencer (by comparison with the RFIP_WAKEUPTIME register value)
- – to generate the wakeup interrupt event for the CPU (by comparison with the CPU_WAKEUPTIME register value)
29.22 Wakeup and sleep management
The MR_SubG IP manages information towards the SoC concerning sleep allowance and wakeup request.
29.22.1 Sleep management
The sleep management block is a very basic block providing to the SoC a sleep allowance signal. The goal is to inform the power controller of the SoC if the MR_SubG IP agrees to have a low power mode activated on the SoC or, on the contrary, if some on-going or incoming activities prevent to allow a low power phase at SoC level.
The criteria to allow the low power mode at RFIP point of view is when no activity is on-going or expected to start soon. This is summarized by:
- • the Radio FSM is in IDLE state,
- • the Sequencer is in the “wait trigger with sleep enable” state.
29.22.2 Wakeup block
The Wakeup block of the MR_SubG IP is in the always-on power domain of the device, meaning it stays powered ON during the low power mode phase of the SoC.
The Wakeup block is mainly in charge of:
- • the absolute time counter (28-bit),
- • the wakeup request for the SoC power controller,
- • the wakeup request for the Sequencer and for the CPU.
Figure 296. Wakeup block overview

The diagram illustrates the Wakeup block architecture. A Sequencer block sends a wakeup_trigger to the WakeUP block and receives CLK_SLOW_32K. The WakeUP block contains a Slow Clock Counter (clocked by CLK_SLOW_32K) and two compare units: RFIP Compare and CPU Compare. The RFIP Compare unit takes RFIP_WAKEUP_EN and RFIP_WAKEUP_TIME[31:4] as inputs and outputs rfipwakeup_event and irq_wakeup_rfip. The CPU Compare unit takes CPU_WAKEUP_EN and CPU_WAKEUP_TIME[31:4] as inputs and outputs cpuwakeup_event and irq_wakeup_cpu. Retained Registers provide RFIP_WAKEUP_EN, RFIP_WAKEUP_TIME[31:0], SOC_WAKEUP_OFFSET[7:0], CPU_WAKEUP_TIME[31:0], and CPU_WAKEUP_EN. Misc Registers provide RFIP_WAKEUP_F and CPU_WAKEUP_F. The Slow Clock Counter outputs slow_clock_counter[27:0] to the Time Management unit and both compare units. Control signals include rfip_wakeup_en_clear, cpu_wakeup_en_clear, start_rfip_compare, start_cpu_compare, absolute_time, absolute_time_valid, and clk_sys_16m.
Slow clock counter management
The Wakeup block embeds a counter clocked by the slow clock, used:
- internally (of the Wakeup block) to generate the SoC wakeup events towards the Power Controller,
- by the Time Management Unit block to manage the ABSOLUTE_TIME[31:4] part.
The slow clock counter:
- (Re)starts from 0 each time a reset occurs on the slow clock tree (corresponding to a POR or an intended SW reset of the MR_SubG IP through the reset manager of the SoC),
- increments on every slow clock rising edge as soon as it is no more under reset,
- rotates back to 0 when it reaches 0xFFFFFFFF maximum value.
There is no dedicated action bit / mechanism to reload the counter with 0 or any pre-programmed value.
Wakeup management
The Wakeup block manages two sources of wakeup for the SoC:
- • RFIP wakeup: targeting a SoC wakeup event for a SeqAction to be executed by the Sequencer,
- • CPU wakeup: possibility to wake up the SoC at a specific absolute time. In this case, the goal is to propose to the SW to share the usage of an always-on timer, already present in the MR_SubG IP and available (if the radio IP is enabled).
The wake-up management is done in two steps:
- 1. send a wakeup event to the Power controller of the SoC to restart power and clocks,
- 2. send a wakeup event to the final target (Sequencer or CPU) once the power and clocks are recovered.
The principle is to wake up the SoC before to wake-up the final target to let time to the power, clocks and interpolated absolute time to settle. This is possible thanks to:
- • embedded 28-bit slow clock counter providing the absolute time (without LSB interpolation),
- • xx_WAKEUPTIME[31:0] registers (xx can be RFIP or CPU),
- • SOC_WAKEUP_OFFSET[7:0] bit field in the (Retained) WAKEUP_CTRL register (WAKEUP_CTRL)
- • xx_WAKEUP_EN bits in the WAKEUP_CTRL retained register (xx can be RFIP or CPU)
The SW has to program a static / fixed value in the SOC_WAKEUP_OFFSET[7:0] bit field. This duration should represent the delay at Soc level from the wakeup event raised on the Power Controller and the moment power, clock and accuracy on system clock are restored.
Then the SW only manages the wanted time for wakeup event on final target (Sequencer or CPU) without taking care of the SoC wakeup sequence delay. The wakeup block uses the SOC_WAKEUP_OFFSET information to anticipate the wakeup on the Power Controller versus the final target time programmed in xx_WAKEUPTIME.
Figure 297 and Figure 298 show the timeline and contributors versus events.
Figure 297. Sequencer wakeup event generation

The diagram illustrates the timeline for generating a Sequencer wakeup event. A horizontal blue arrow represents the progression of time, labeled absolute_time[31:0] at the end. Two vertical markers indicate specific events:
- SoC (power controller) wakeup event: Marked with an orange vertical line. Above it, a box contains the formula: \(ABSOLUTE\_TIME[31:4] = RFIP\_WAKEUPTIME[31:4] - SOC\_WAKEUP\_OFFSET[7:0]\) (and RFIP_WAKEUP_EN bit is set).
- Sequencer trigger event: Marked with a purple vertical line. Above it, a box contains the formula: \(ABSOLUTE\_TIME[31:0] = RFIP\_WAKEUPTIME[31:0]\) (and RFIP_WAKEUP_EN bit is set).
The time interval between these two events is labeled SOC_WAKEUP_OFFSET duration. Below this label, a description states: "SoC power and clocks startup/settlement + 3 slow clock cycles (to restore interpolated time)".
A legend in the bottom-left corner defines the colors used in the diagram:
- • Orange : Absolute time
- • Purple : Interpolated absolute time
Figure 298. CPU wakeup event generation
![Timing diagram for CPU wakeup event generation showing timeline of absolute_time[31:0], SoC (power controller) wakeup event, and CPU wakeup interrupt with formulas and durations.](/RM0511-STM32WL30-31-33/51f5865cfa7a2aaf1f671e9ace1f82ea_img.jpg)
The Sequencer wakeup management programming is managed by the Sequencer itself. The SW cannot write directly in the RFIP_WAKEUPTIME register (RFIP_WAKEUPTIME), not in the RFIP_WAKEUP_EN bit in the WAKEUP_CTRL register (WAKEUP_CTRL) register. Only the Sequencer can modify those bit fields. The SW must program the wanted behavior and wakeup target time in the GlobalConfiguration and ActionConfiguration RAM tables used by the Sequencer in a manner that low power mode and wakeup events are generated as wanted. Refer to Section 29.16.2: Sequence description.
29.23 Uses-cases: examples of scenarios with the Sequencer
This section aims at proposing few scenarios to show how to use the Sequencer in association with the CPU software.
Those scenarios are only example and the user can create the use-cases another way if he prefers and creates other scenarios.
29.23.1 Reception with auto-acknowledge
This use-case is quite simple and is a good start to understand how to chain actions with the help of the Sequencer.
This scenario is the following:
Launch a reception:
- • if RX done (Mask1) at the end, launch a TX with the acknowledge information
- • if RX Timeout or CRC error (Mask2) at the end, then relaunch a new RX after a defined delay
This scenario uses only 2 ActionConfiguration RAM tables:
- • ActionConfiguration0 table to generate the RX:
- – NextAction1 is a TX to be chained, after a defined delay if RX_DONE flag is raised,
- – NextAction2 is a replay of current ActionConfiguration0 after a defined delay (with allowance of the Low Power mode between each RX phase if the defined delay is long enough to justify it)
- – the CPU could need an IRQ on RX_DONE to modify / prepare the acknowledge content before it is sent
- • ActionConfiguration1 table to generate the TX:
- – NextAction1 uses a mask corresponding to TX_DONE and a null pointer as this SeqAction represents the last element of the chained sequence.
- – NextAction2 could use a mask with the HW_ANA_FAILURE flag to monitor a potential RF PLL lock issue that would prevent any TX_DONE flag. This action also defines a null pointer as next action as it represents the last element of the chain.
- – the CPU needs the TX_DONE interrupt to be informed when the RF transmission is over and/or the SEQ_F flag to be informed the sequence is over whatever the cause (TX_DONE, HW_ANA_FAILURE or ActionTimeout)
Note: If the delay between each RX re-trial is not fixed, then:
- • it is necessary to create as many ActionConfiguration tables as targeted RX phases with a different delay in between,
- • or to use the CPU interrupt on RX Timeout to update the ActionConfiguration0 RAM table with a new interval before the next SeqAction starts.
Figure 299. RX with Auto-Ack use-case through Sequencer example

Located at RAM Base + offset indicated by the retained SEQ_GLOBALTABLE_PTR register field
GlobalConfiguration
- ActionConfigurationPtr
- GlobalConfigurationControl
- Static Configuration registers values
ActionConfiguration0
- NextAction1Ptr
- Interval1=delay1
- Mask1=RX_DONE
- SleepEN=0, ForceReload=0, ForceClearEvents=1
- NextAction2Ptr
- Interval2=delay2
- Mask2=RX Timeout + RX_CRC_ERROR
- SleepEN=1, ForceReload=0, ForceClearEvents=1
- ActionTimeout
- Dynamic Configuration:
- - RF transfer settings (data rate, modulation, RX Timeout...)
- IT mask = RX_DONE + HW_ANA_FAILURE + SEQ_F
- Command = RX
ActionConfiguration1
- Null pointer
- Interval1=0
- Mask1=TX_DONE
- SleepEN=1, ForceReload=0
- Null pointer
- Interval2=0
- Mask2=HW_ANA_FAILURE
- SleepEN=1, ForceReload=0
- ActionTimeout
- Dynamic Configuration:
- - RF transfer settings (data rate, modulation...)
- IT mask = TX_DONE + HW_ANA_FAILURE + SEQ_F
- Command = TX
CPU IRQ Handlers
Possible IRQ on RX_DONE if patch on the fly on the ACK packet is needed
29.23.2 Sniff mode
The sniff mode consists in going in RX, check if a frame is currently on the air. If yes, then go on the RX, if not, then go back to a low power mode and retry a bit later.
An example of implementation of the sniff mode scenario is proposed below.
Enter reception with RX Timer programmed to stop on CS flag [SeqAction0]:
- • If RX timeout occurs, then no power on the antenna, go back to sleep and retry later
- • if CS flag detected, reload the RX Timer to stop on valid SYNC word detection [SeqAction1]:
- – if RX Timeout, then go back to sleep and retry later from the beginning
- – if RX done (with or without CRC error), end of the scenario. the SW has to treat the reception result and decide what is the next scenario.
Figure 300 shows the RAM table associated to this scenario.
Figure 300. Sniff mode use-case through Sequencer example

The diagram illustrates the Sniff mode use-case through the Sequencer. It shows the flow from GlobalConfiguration to ActionConfiguration0 and ActionConfiguration1, and finally to CPU IRQ Handlers.
GlobalConfiguration (Located at RAM Base + offset indicated by the retained SEQ_GLOBALTABLE_PTR register field):
- ActionConfigPtr
- GlobalConfigCtrl
- Static Configuration registers values
ActionConfiguration0:
- NextAction1Ptr
- Interval1=0
- Mask1=CS flag
- SleepEN=0, ForceReload=0, ForceClearEvents=0
- NextAction2Ptr
- Interval2=LDC delay1
- Mask2=RX Timeout
- SleepEN=1, ForceReload=0, ForceClearEvents=1
- ActionTimeout
- Dynamic Configuration:
- - RF transfer settings (data rate, modulation, RX Timer with CS flag as stop condition...)
- IT mask = RX_TIMEOUT + HW_ANA_FAILURE
- Command = RX
ActionConfiguration1:
- Null pointer
- Interval1=0
- Mask1=RX_DONE or RX_CRC_ERROR
- SleepEN=0, ForceReload=0, ForceClearEvents=1
- NextAction2Ptr
- Interval2=LDC delay3
- Mask2=RX Timeout
- SleepEN=1, ForceReload=0, ForceClearEvents=1
- ActionTimeout
- Dynamic Configuration:
- - RF transfer settings (data rate, modulation, RX Timer Timeout and stop condition = SYNC_VALID...)
- IT mask = RX_CRC_ERROR + RX_DONE + RX_TIMEOUT + HW_ANA_FAILURE
- Command = RELOAD_RX_TIMER
CPU IRQ Handlers
This scenario involves 2 ActionConfiguration tables:
- • ActionConfiguration0 table generates the RX command with RX Timer on CS flag (corresponding to RSSI above threshold on the antenna):
- – NextAction1 is selected if CS flag occurs. It targets a Reload RX Timer (while the on-going RX is still active) with a new stop condition based on valid SYNC detection, to be chained immediately (no interval or small delay)
- – NextAction2 is selected if a RX Timeout occurs. It is a replay of current ActionConfiguration0 after a defined delay (with allowance of the Low Power mode between each RX phase if the defined delay is long enough to justify it)
- – the CPU may enable some interrupts like:
- RX_TIMEOUT to be informed a Low Power mode is possible from a radio point of view
- HW_ANA_FAILURE to be informed an issue occurs on analog radio side during RX command start-up and that the scenario may be compromised.
- • ActionConfiguration1 table generates a RELOAD_RX_TIMER command with SYNC detection as stop condition:
- – NextAction1 is selected if a RX done occurs (with or without CRC error). It corresponds to end of sequence/no next action (null pointer).
- – NextAction2 is selected if a RX Timeout occurs. It points on ActionConfiguration0 after a defined delay (with allowance of the Low Power mode between each RX phase if the defined delay is long enough to justify it) to restart the sequence from the beginning.
- – the CPU may enable some interrupts like:
- RX_TIMEOUT to be informed a Low Power mode is possible from a radio point of view
- RX_DONE and RX_CRC_ERROR to know the sequence is over on radio side and to treat the reception data.
Note: RX_DONE/RX_CRC_ERROR events are a final step for the scenario.
The NextActionX in the description above takes the color of the pointed ActionConfiguration table.
29.23.3 Listen before talk (LBT)
The Listen Before Talk principle is to check that no other device is currently transmitting on the air before to transmit from our device. This can be summarized by starting the TX scenario by reception phases used to check the power on the antenna and to transmit only once there is no power on the air.
The scenario proposed here consists in checking up to 3 times that no power is on the antenna to do the TX. An example of implementation through the Sequencer is proposed below:
- 1. Starting by a RX with Fast RX Termination mode enabled
- 2. Once the RX is launched:
- a) if the FAST_RX_TERM flag is raised, this means no power on the antenna → the device can transmit its frame by issuing a TX
- b) if a CS flag is raised, the device must interrupt the on-going RX by a SABORT command
- 3. After three RX with CS flag raised, the sequence stops trying and informs the CPU through the RX_TIMEOUT (the SW programs a very small RX Timeout on the last RX trial).
- 4. On the other end, if one of the three RX attempts is successful (Fast RX termination flag), the CPU is informed by interrupt on the TX_DONE flag once the transmission is over.
The sequence and its associated SeqActions are represented in the figure below with GlobalConfiguration and ActionConfiguration RAM tables.
The CPU may enable some interrupts (depending on the SeqAction) like:
- • CS flag to manage a Low Power mode entry between SeqAction separated by long delays,
- • RX_TIMEOUT to be informed the scenario ends with no transmission because the radio always detected traffic on the air,
- • TX_DONE to be informed the transmission well occurred,
- • HW_ANA_FAILURE to be informed if an issue occurs on analog radio side during RF transfer start-up.
Figure 301. LBT use-case through Sequencer example

The diagram illustrates the LBT use-case through the Sequencer, showing the flow between various configuration blocks and their interconnections.
GlobalConfiguration (Located at RAM Base + offset indicated by the retained SEQ_GLOBALTABLE_PTR register field):
- ActionConfigPtr
- GlobalConfigCtrl
- Static Configuration registers values
ActionConfiguration0:
- NextAction1Ptr
- Interval1=0
- Mask1=CS flag
- SleepEN=0, ForceReload=0, ForceClearEvents=0
- NextAction2Ptr
- Interval2=0
- Mask2=Fast RX Term
- SleepEN=0, ForceReload=0, ForceClearEvents=1
- ActionTimeout
- Dynamic Configuration: - RF transfer settings (data rate, modulation, RX Timeout on SYNC, Fast RX Termination enabling...)
- IT mask = HW_ANA_FAIL
- Command = RX
ActionConfiguration1:
- Null pointer
- Interval1=0
- Mask1=All 0s
- SleepEN=1, ForceReload=0, ForceClearEvents=1
- Null pointer
- Interval2=0
- Mask2=All 0s
- SleepEN=1, ForceReload=0, ForceClearEvents=1
- ActionTimeout
- Dynamic Configuration: - RF transfer settings (data rate, modulation)
- IT mask = TX done + HW_ANA_FAIL
- Command = TX
ActionConfiguration2:
- NextAction1Ptr
- Interval1=delay1
- Mask1=SABORT_DONE
- SleepEN=1, ForceReload=0, ForceClearEvents=1
- NextAction2Ptr
- Interval2=delay1
- Mask2 = COMMAND_REJECTED
- SleepEN=1, ForceReload=0, ForceClearEvents=1
- ActionTimeout
- Dynamic Configuration: - RF transfer settings (data rate, modulation...)
- IT mask = COMMAND_REJECTED
- Command = SABORT
ActionConfiguration3:
- NextAction1Ptr
- Interval1=0
- Mask1=CS flag
- SleepEN=0, ForceReload=0, ForceClearEvents=0
- NextAction2Ptr
- Interval2=0
- Mask2=Fast RX Term
- SleepEN=0, ForceReload=0, ForceClearEvents=1
- ActionTimeout
- Dynamic Configuration: - RF transfer settings (data rate, modulation, RX Timeout on SYNC, Fast RX Termination enabling...)
- IT mask = HW_ANA_FAIL
- Command = RX
ActionConfiguration4:
- NextAction1Ptr
- Interval1=delay2
- Mask1=SABORT_DONE
- SleepEN=1, ForceReload=0, ForceClearEvents=1
- NextAction2Ptr
- Interval2=delay2
- Mask2 = COMMAND_REJECTED
- SleepEN=1, ForceReload=0, ForceClearEvents=1
- ActionTimeout
- Dynamic Configuration: - RF transfer settings (data rate, modulation, RX Timeout, Fast RX Termination enabling...)
- IT mask = COMMAND_REJECTED
- Command = SABORT
Interconnections:
- GlobalConfiguration points to ActionConfiguration0.
- ActionConfiguration0 points to ActionConfiguration1.
- ActionConfiguration1 points to ActionConfiguration2.
- ActionConfiguration2 points to ActionConfiguration3.
- ActionConfiguration3 points to ActionConfiguration4.
- Dynamic Configuration fields of ActionConfiguration0, ActionConfiguration1, ActionConfiguration2, and ActionConfiguration3 point to CPU IRQ Handlers.
- IT mask fields of ActionConfiguration0, ActionConfiguration1, ActionConfiguration2, and ActionConfiguration3 point to CPU IRQ Handlers.
- Command fields of ActionConfiguration0, ActionConfiguration1, ActionConfiguration2, and ActionConfiguration3 point to CPU IRQ Handlers.
This scenario involves 6 ActionConfiguration tables:
- • ActionConfiguration0 table generates the RX command with Fast RX Termination enabled:
- – NextAction1 is selected if CS flag occurs (meaning power measured on the antenna). It targets a SABORT command (to stop the on-going RX sequence) with no Low Power mode allowed, to be chained immediately (no interval or small delay)
- – NextAction2 is selected if a Fast RX Term occurs (meaning no power measured on the antenna). It targets a TX command after no delay or a small delay (with no Low Power mode allowed)
- – the CPU may enable the HW_ANA_FAILURE interrupt to be informed in case of analog radio issue.
- • ActionConfiguration1 table generates a TX command:
- – NextAction1 is a null pointer and no specific mask is selected as this is the end point of the sequence (CPU to manage the TX_DONE interrupt)
- – NextAction2 is a null pointer and no specific mask is selected as this is the end point of the sequence (CPU to manage the TX_DONE interrupt)
- – the CPU needs to enable the TX_DONE interrupt to be informed when the transmission is done and may enable the HW_ANA_FAILURE interrupt to be informed in case of analog radio issue
- • ActionConfiguration2 table generates a SABORT command:
- – NextAction1 is selected if SABORT_DONE flag occurs (meaning reception stopped). It targets a RX command, to be chained after a defined delay (with Low Power mode allowed if the defined delay is long enough to justify it).
- – NextAction2 is selected if a COMMAND_REJECTED occurs (meaning SABORT command occurred too late and reception probably stopped by itself on RX_TIMEOUT). It targets the same ActionConfiguration than NextAction1 = RX command after a defined delay (with Low Power mode allowed if the delay is long enough)
- – the CPU may enable the COMMAND_REJECTED interrupt to be informed the RX command ended by itself
- • ActionConfiguration3 table generates a RX command with Fast RX Termination enabled (second trial):
- – NextAction1 is selected if CS flag occurs (meaning power measured on the antenna). It targets a SABORT command (to stop the on-going RX sequence), to be chained immediately (no interval or small delay).
- – NextAction2 is selected if a Fast RX Term occurs (meaning no power measured on the antenna). It targets a TX command after no delay or a small delay (with no Low Power mode allowed)
- – the CPU may enable the HW_ANA_FAILURE interrupt to be informed in case of analog radio issue
- • ActionConfiguration4 table generates a SABORT command:
- – NextAction1 is selected if SABORT_DONE flag occurs (meaning no more RF activity). It targets a RX command, to be chained after a defined delay (with Low Power mode allowed if the defined delay is long enough to justify it).
- – NextAction2 is selected if a COMMAND_REJECTED occurs (meaning SABORT command occurred too late). It targets the same ActionConfiguration than
- NextAction1 = RX command after a defined delay (with Low Power mode allowed if the delay is long enough)
- – the CPU may enable the COMMAND_REJECTED interrupt to be informed the RX command ended by itself
- • ActionConfiguration5 table generates a RX command with Fast RX Termination enabled and a small RX Timeout based on SYNC detection stop condition (last trial):
- – NextAction1 is a null pointer that is selected if RX Timeout occurs (meaning power measured on the antenna and the RX aborted automatically soon after thanks to the small RX Timeout on SYNC). It raises the SleepEn bit to allow a Low Power mode.
- – NextAction2 is selected if a Fast RX Term occurs (meaning no power measured on the antenna). It targets a TX command after no delay or a small delay (with no Low Power mode allowed)
- – the CPU may the HW_ANA_FAILURE interrupt to be informed in case of analog radio issue and the RX_TIMEOUT to be informed the scenario is ended without transmission.
Note: The last RX trial is based on a RX Timeout IRQ enable mask instead of the CS flag to let the SW know it is the last iteration. The Sequencer mask can be kept on CS flag or changed to RX Timeout. Using a small timeout based on SYNC valid info allows the HW to automatically abort the on-going RX a short time after the fast RX Termination sequence is ended.