24. Sub-GHz radio IP (MRSUBG)

24.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:

24.1.1 MR_SubG IP overview

Figure 242. MR_SubG IP block diagram

Block diagram of the MR_SubG IP within an SoC. The diagram shows the interaction between the analog RFSUBG IP and the digital MR_SubG IP. The RFSUBG IP includes an RX analog chain, TX PA, and FREQ SYNTH. The MR_SubG IP contains a Radio FSM, Global Registers, Radio Registers, RRM, Data Buffer Manager, Sequencer, Radio Control, Time Management, and Wakeup / Sleep Management. It interfaces with the SoC via APB and AHB interfaces and includes a Data Link Layer for RX and TX data flow.

The diagram illustrates the MR_SubG IP block diagram within an SoC. The SoC boundary is indicated by a dashed line. The MR_SubG IP (Digital RF IP) is the central component, interacting with the RFSUBG IP (Analog RF IP) on the left. The RFSUBG IP includes an RX analog chain, TX PA, and FREQ SYNTH. The MR_SubG IP contains several sub-blocks: Radio FSM, Global Registers, Radio Registers, RRM, Data Buffer Manager, Sequencer, Radio Control, Time Management, and Wakeup / Sleep Management. A central DATA LINK LAYER handles RX and TX data flow. The MR_SubG IP interfaces with the SoC via a SoC APB Interface and a SoC AHB Interface. The SoC AHB Interface connects to SoC RAM. The Wakeup / Sleep Management block provides wakeup request and sleep allowance signals to the SoC. The MR_SubG IP also outputs interrupts to the SoC. The diagram shows the flow of data and control signals between the analog and digital parts of the radio IP.

Block diagram of the MR_SubG IP within an SoC. The diagram shows the interaction between the analog RFSUBG IP and the digital MR_SubG IP. The RFSUBG IP includes an RX analog chain, TX PA, and FREQ SYNTH. The MR_SubG IP contains a Radio FSM, Global Registers, Radio Registers, RRM, Data Buffer Manager, Sequencer, Radio Control, Time Management, and Wakeup / Sleep Management. It interfaces with the SoC via APB and AHB interfaces and includes a Data Link Layer for RX and TX data flow.

As shown in Figure 242: MR_SubG IP block diagram, the MR_SubG IP contains:

Note: This sub-block is an AHB master

Note: Most of the radio registers contained the correct settings by default.

The MR_SubG IP supports only one system clock frequency: 16 MHz.

Note: Ensure that MRSUBG is clocked before enabling the APB2 clock.

24.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 STM32WL3Rxx) or to be managed with additional logical mechanism.

Refer to chapter Section 24.11.6: Antenna switching for details on the feature.

24.2 Interfacing with the MR_SubG IP

The MR_SubG IP interfaces with several blocks in the system:

24.2.1 Interrupt lines to the CPU

The MR_SubG IP provides several interruption lines to the CPU, issued by different sub-blocks:

The interrupt features associated to TX_SEQUENCE, RX_SEQUENCE, rfip_busy and rfip_ahb_busy are managed at system controller (SYSCFG) level.

24.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:

24.2.3 Interface with the power, clock and reset controllers

The MR_SubG IP receives two clocks from the SoC:

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:

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:

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.

24.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:

o_rfip_ahb_busy:

the DBM due to an early RAM prefetch at the very beginning of a TX sequence done by the DBM/

24.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):

Some signals can be optionally provided on SoC GPIOs or kept only internally for status and/or interrupt purpose:

Note: In STM32WL3Rxx devices, all of these signals are available on GPIOs, if the corresponding Alternate Function is programmed.

24.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 aim of this product is to build customized / home-made protocols. In parallel, it has been tuned to support few standards like:

24.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:

Table 91. PREAMBLE pattern selection

PREAMBLE_SEQ[1:0]In 2-(G)FSK or ASK/OOKIn 4-(G)FSK
000101..0111..
011010..0010..
100011.. (not recommended)1101..
111100.. (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:

Note: In reception, whatever the SECONDARY_SYNC_SEL bit value:

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:

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:

Note: If PCKTLEN=0, then the transmission continues until a SABORT command is issued by the SW.

In RX mode:

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:

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:

For all CRC modes:

Note: CRC versus coding:

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:

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 243. Basic packet format

Figure 243. Basic packet format

The diagram illustrates the basic packet format. It contains the following sequential 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). Spanning arrows above indicate: 'FEC, Manchester, Whitening calculation fields' covering Length through CRC fields; 'CRC calculation fields' covering Length through Payload fields; and 'Packet length' covering Length and Payload fields. Tagged at the bottom right with MSv58302V1.

Figure 243. Basic packet format

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 244. 802.15.4 packet format

Diagram of 802.15.4 packet format showing fields: Preamble (0..2046 bits), Sync (0..32 bits), PHR (2 bytes), MHR + MAC Payload (2..2047 bytes), and CRC (2 or 4 bytes). It also indicates calculation fields for FEC, Whitening, and CRC, and packet components like SHR, PSDU, and Packet length.

The diagram illustrates the 802.15.4 packet format. It shows 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 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' (Sub-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.

Diagram of 802.15.4 packet format showing fields: Preamble (0..2046 bits), Sync (0..32 bits), PHR (2 bytes), MHR + MAC Payload (2..2047 bytes), and CRC (2 or 4 bytes). It also indicates calculation fields for FEC, Whitening, and CRC, and packet components like SHR, PSDU, and Packet length.

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 92. PHR frame

Bit string index01-2345-15
Bit mappingMSR1-R0FCSDWL10-L0
Field nameMode SwitchReservedFCS typeData WhiteningFrame Length

In particular:

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:

24.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:

Figure 245. Data whitening scheme for Basic packets

A schematic diagram of a 9-bit Linear Feedback Shift Register (LFSR) used for data whitening. It shows two shift registers, one for the pseudo-random sequence (top) and one for the TX_DATA (bottom). The top register has feedback from stages 8, 6, 4, 2, and 0 to an XOR gate. The bottom register has feedback from stages 7, 5, 3, 1, and 0 to another XOR gate. The outputs of these XOR gates are then XORed with the corresponding bits of the TX_DATA to produce TX_OUT[7:0].
A schematic diagram of a 9-bit Linear Feedback Shift Register (LFSR) used for data whitening. It shows two shift registers, one for the pseudo-random sequence (top) and one for the TX_DATA (bottom). The top register has feedback from stages 8, 6, 4, 2, and 0 to an XOR gate. The bottom register has feedback from stages 7, 5, 3, 1, and 0 to another XOR gate. The outputs of these XOR gates are then XORed with the corresponding bits of the TX_DATA to produce TX_OUT[7:0].

For 802.15.4 packet format:

Figure 246. Data whitening scheme for 802.15.4 packets

Block diagram of the data whitening scheme for 802.15.4 packets. It shows a feedback loop with a series of delay elements (D) and an XOR operation (+).

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 other path from the input goes through a feedback tap and is XORed (+) with the output of the fourth delay element. The output of this XOR operation is then fed back to the input of the first delay element. The label 'PN9' is placed below the feedback tap, indicating the polynomial used for whitening.

Block diagram of the data whitening scheme for 802.15.4 packets. It shows a feedback loop with a series of delay elements (D) and an XOR operation (+).

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):

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):

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:

Figure 247. FEC scheme for Basic packet format

Block diagram of the FEC scheme for Basic packet format. The input bi(n) enters a parallel feed-forward implementation of a (1 + z^-1 + z^-2 + z^-3) generator. The input is split into four branches that converge at two adders. The top adder (+) produces output s0(n), and the bottom adder (+) produces output s1(n). The branches are: 1) direct connection to both adders, 2) delay by z^-1 to both adders, 3) delay by z^-1 then z^-1 to both adders, and 4) delay by z^-1 then z^-1 then z^-1 to both adders.

MSv58306V1

Block diagram of the FEC scheme for Basic packet format. The input bi(n) enters a parallel feed-forward implementation of a (1 + z^-1 + z^-2 + z^-3) generator. The input is split into four branches that converge at two adders. The top adder (+) produces output s0(n), and the bottom adder (+) produces output s1(n). The branches are: 1) direct connection to both adders, 2) delay by z^-1 to both adders, 3) delay by z^-1 then z^-1 to both adders, and 4) delay by z^-1 then z^-1 then z^-1 to both adders.

Convolutional coding for 802.15.4 packet format:

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.

Figure 248. FEC schemes for 802.15.4 packets

Figure 248 shows two FEC schemes for 802.15.4 packets: Non-Recursive Non-Systematic Encoder and Recursive Systematic Encoder.

The diagram illustrates two FEC 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 resulting sequence is split into two parallel paths. Each path consists of three consecutive blocks labeled M₀, M₁, and M₂, with internal labels \(b_{i-1}\), \(b_{i-2}\), and \(b_{i-3}\) respectively. The outputs of these blocks are combined at two XOR gates to produce the final 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 processed through a feedback loop involving three blocks labeled M₀, M₁, and M₂, with internal labels \(b_{i-1}\), \(b_{i-2}\), and \(b_{i-3}\). The outputs of these blocks are combined at two XOR gates to produce the final output symbols \(u_i^1\) and \(u_i^0\).

Figure 248 shows two FEC schemes for 802.15.4 packets: Non-Recursive Non-Systematic Encoder and Recursive Systematic Encoder.

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:

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 249. Interleave scheme

Diagram of the interleaving scheme. It shows a 4x4 grid of data blocks. On the left, 'Interleaver write order' shows data being written row by row. On the right, 'Interleaver read order' shows data being read column by column. Below the grid, the input sequence is { s(0), s(1), ..., s(15), ... } and the output sequence is { s(15), s(11), s(7), ..., s(4), s(0), ... }.

MSv58308V1

Diagram of the interleaving scheme. It shows a 4x4 grid of data blocks. On the left, 'Interleaver write order' shows data being written row by row. On the right, 'Interleaver read order' shows data being read column by column. Below the grid, the input sequence is { s(0), s(1), ..., s(15), ... } and the output sequence is { s(15), s(11), s(7), ..., s(4), s(0), ... }.

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:

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 coding is done according to Table 93:

Table 93. 3-out-of-6 coding table

4-bit not coded pattern6-bit codeNumber of transitions
In hexadecimalIn decimalIn hexadecimalIn decimal
00000010110224
00011001101133
00102001110142
00113001011113
01004011100282
01015011001253
01106011010264
01117010011193
10008101100443
10019100101374
101010100110382
101111100011352
110012110100523
110113110001492
111014110010503
111115101001414

24.3.3 Protocols

Frequency modulations

The user can select the wanted modulation through the MOD0_CONFIG[22:20] = MOD_TYP[2:0] bit field:

Figure 250. Transmission path for 2-(G)FSK modulation

Block diagram of the transmission path for 2-(G)FSK modulation. Data enters a Digital modulator, which outputs to a FREQ SYNTH block containing a sine wave symbol. The FREQ SYNTH output goes to a PA (Power Amplifier) block containing a triangle symbol. A dashed line from the Digital modulator to the PA is labeled 'Control signal for PA = keep constant power'. A dashed line from the Digital modulator to the FREQ SYNTH is labeled 'Control signal for SYNTH' and includes a Gaussian filter icon (a bell curve in a dashed box) with the note 'Gaussian filter present only when GFSK is selected'. The FREQ SYNTH block has two control inputs: 'bit 0: shift the center frequency by -FDEV' and 'bit 1: shift the center frequency by +FDEV'. The final output is from the PA block. Reference ID: MSv58309V1.
Block diagram of the transmission path for 2-(G)FSK modulation. Data enters a Digital modulator, which outputs to a FREQ SYNTH block containing a sine wave symbol. The FREQ SYNTH output goes to a PA (Power Amplifier) block containing a triangle symbol. A dashed line from the Digital modulator to the PA is labeled 'Control signal for PA = keep constant power'. A dashed line from the Digital modulator to the FREQ SYNTH is labeled 'Control signal for SYNTH' and includes a Gaussian filter icon (a bell curve in a dashed box) with the note 'Gaussian filter present only when GFSK is selected'. The FREQ SYNTH block has two control inputs: 'bit 0: shift the center frequency by -FDEV' and 'bit 1: shift the center frequency by +FDEV'. The final output is from the PA block. Reference ID: MSv58309V1.

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

Block diagram of the transmission path for 4-(G)FSK modulation. The structure is similar to Figure 250, with data entering a Digital modulator, then FREQ SYNTH (with sine wave symbol), then PA (with triangle symbol). A dashed line from the Digital modulator to the PA is labeled 'Control signal for PA = keep constant power'. A dashed line from the Digital modulator to the FREQ SYNTH is labeled 'Control signal for SYNTH (for example with CONST_MAP = 01)' and includes a Gaussian filter icon with the note 'Gaussian filter present only when GFSK is selected'. The FREQ SYNTH block has four control inputs based on bit couples: 'couple 00: shift the center frequency by -FDEV', 'couple 01: shift the center frequency by -FDEV/3', 'couple 10: shift the center frequency by +FDEV', and 'couple 11: shift the center frequency by +FDEV/3'. The final output is from the PA block. Reference ID: MSv58310V1.
Block diagram of the transmission path for 4-(G)FSK modulation. The structure is similar to Figure 250, with data entering a Digital modulator, then FREQ SYNTH (with sine wave symbol), then PA (with triangle symbol). A dashed line from the Digital modulator to the PA is labeled 'Control signal for PA = keep constant power'. A dashed line from the Digital modulator to the FREQ SYNTH is labeled 'Control signal for SYNTH (for example with CONST_MAP = 01)' and includes a Gaussian filter icon with the note 'Gaussian filter present only when GFSK is selected'. The FREQ SYNTH block has four control inputs based on bit couples: 'couple 00: shift the center frequency by -FDEV', 'couple 01: shift the center frequency by -FDEV/3', 'couple 10: shift the center frequency by +FDEV', and 'couple 11: shift the center frequency by +FDEV/3'. The final output is from the PA block. Reference ID: MSv58310V1.

In transmission the user must configure:

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

\[f_{\text{dev}} = \frac{f_{\text{xo}}}{2^{19}} \times \frac{\text{round}\left(FDEV\_M \times \frac{B}{8}\right)}{B} \quad \text{if } FDEV\_E = 0\]
\[f_{\text{dev}} = \frac{f_{\text{xo}}}{2^{19}} \times \frac{\text{round}\left((256 + FDEV\_M) \times 2^{(FDEV\_E - 1)} \times \frac{B}{8}\right)}{B} \quad \text{if } FDEV\_E > 0\]

with:

B:

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):

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 94. Constellation mapping for 2-(G)FSK

FormatSymbolFOUR_GFSK_CONST_MAP
0123
2-(G)FSK0-FDEV-FDEV+FDEV+FDEV
1+FDEV+FDEV-FDEV-FDEV
Table 95. Constellation mapping for 4-(G)FSK
FormatSymbolFOUR_GFSK_CONST_MAP
0123
4-(G)FSK00-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:

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):

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 96. DSSS codes

CodeBinary sequenceSpread Factor (SF)Spread exponentCorrelation gain
0x030011424
0x8D1000 1101838
0x6BC40110 1011 1100 010016416
0x0A60E457B1010 0110 0000 1110 0100 0101 0111 101132532
0x540FBCEB0B8DA44D0101 0100 0000 1111 1011 1100 1110 1011 0000 1011 1000 1101 1010 0100 0100 110164656

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:

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:

On receiver side, when DSSS_CTRL[7] = DSSS_EN = 1, several parameters must be programmed:

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:

The ASK or OOK selection (at transmission level) depends on the value chosen for the PA_LEVEL0 bit field:

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 252. Transmission path for ASK/OOK modulation

Block diagram of the transmission path for ASK/OOK modulation. Data enters a Digital modulator. The output of the Digital modulator goes to a PA (Power Amplifier). The PA output is the final transmission. A 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) is connected to the PA. A Control signal for SYNTH = keep constant frequency is connected to the Digital modulator and the PA. A FREQ SYNTH block is also shown, connected to the Digital modulator and the PA.

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

Block diagram of the transmission path for ASK/OOK modulation. Data enters a Digital modulator. The output of the Digital modulator goes to a PA (Power Amplifier). The PA output is the final transmission. A 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) is connected to the PA. A Control signal for SYNTH = keep constant frequency is connected to the Digital modulator and the PA. A FREQ SYNTH block is also shown, connected to the Digital modulator and the PA.

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 97. PA Bessel filter programming

PA_FC[1:0]Cut-Off frequency (kHz)Max Data Rate (kbit/s)
0012.516
012532
105062.5
11100125

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.

The FIR can be programmed in 3 different configurations through the PA_REG register (PA_REG):

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:

Then for those 2 modes:

Note: The interpolation factor of each ramp step is:

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:

This function is suitable to implement differential binary phase shift keying modulation (DBPSK) as shown in the figure below:

Figure 253. DBPSK modulation emulation through Polar TX mode

Figure 253: DBPSK modulation emulation through Polar TX mode. The figure shows two waveforms over time. The top waveform is a continuous sine wave. A dashed arrow points from a text box labeled '180° theoretical phase shift' to a point on the waveform where it crosses zero. The bottom waveform is also a sine wave, but with a short, high-amplitude burst in the middle. A dashed arrow points from a text box labeled 'pulsed phase shift (during this time slot, amplitude is lowered to avoid spectrum artifacts) Representation is not in scale.' to this burst.

180° theoretical phase shift

time

time

pulsed phase shift (during this time slot, amplitude is lowered to avoid spectrum artifacts)
Representation is not in scale.

MSv58312V1

Figure 253: DBPSK modulation emulation through Polar TX mode. The figure shows two waveforms over time. The top waveform is a continuous sine wave. A dashed arrow points from a text box labeled '180° theoretical phase shift' to a point on the waveform where it crosses zero. The bottom waveform is also a sine wave, but with a short, high-amplitude burst in the middle. A dashed arrow points from a text box labeled 'pulsed phase shift (during this time slot, amplitude is lowered to avoid spectrum artifacts) Representation is not in scale.' to this burst.

For this reason, this mode allows driving the SYNTH and the PA at a very low level.

Figure 254. Transmission path for Polar TX modulation

Figure 254: Transmission path for Polar TX modulation. The diagram shows a RAM Data Buffer (byte width representation) on the left, represented as a stack of four gray boxes. Arrows from these boxes point to a FREQ SYNTH block on the right, which contains a sine wave icon. Below the FREQ SYNTH is a PA block, represented by a triangle. Arrows from the RAM Data Buffer also point to the PA block. A dashed arrow points from the bottom of the RAM Data Buffer to a small gray box below it. An arrow points from the FREQ SYNTH to the PA, and another arrow points from the PA to the output.

RAM Data Buffer
(byte width representation)

FREQ SYNTH

PA

MSv58313V1

Figure 254: Transmission path for Polar TX modulation. The diagram shows a RAM Data Buffer (byte width representation) on the left, represented as a stack of four gray boxes. Arrows from these boxes point to a FREQ SYNTH block on the right, which contains a sine wave icon. Below the FREQ SYNTH is a PA block, represented by a triangle. Arrows from the RAM Data Buffer also point to the PA block. A dashed arrow points from the bottom of the RAM Data Buffer to a small gray box below it. An arrow points from the FREQ SYNTH to the PA, and another arrow points from the PA to the output.

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

\[f_{\text{dev}} = f_{\text{dev\_programmed}} \times \frac{f_{\text{dev\_fifo\_sample}}}{128}\]

with:

Equation 3 - Instantaneous frequency in polar mode

\[f = f_{\text{c\_programmed}} + f_{\text{dev}}\]

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:

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 24.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 98. Frequency bands

Frequency bands (MHz)VCO frequency (MHz)
275.5 - 318.53304 - 3822
413 - 479
826 - 958

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

\[f_c = f_{base} + \left( \frac{f_{ref}}{2^{16}} \cdot CH\_SPACING[7:0] \right) \times CH\_NUM[7:0]\]

with:

\[f_{base} = \frac{f_{ref}}{2^{20}} \times (SYNTH\_INT[7:0] \times 2^{20} + SYNTH\_FRAC[19:0]) \times \frac{1}{B}\]

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))

12 for the 315 MHz band (corresponding to BS = 1 in the SYNTH_FREQ register (SYNTH_FREQ) and DIV12_SEL = RFANA_PLL_IN[6] = 1)

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 99. Data rate range versus modulation
ModulationData rate (kbit/s)
MinMax
2-(G)FSK0.1300
4-(G)FSK0.2600
ASK/OOK0.1125
TX Polar mode0.1100

(*): 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

\[\text{data rate} = f_{\text{sys}} \times \frac{\text{DATA\_RATE\_M}}{2^{32}}\]

if DATA_RATE_E > 0

\[\text{data rate} = f_{\text{sys}} \times \frac{(2^{16} + \text{DATA\_RATE\_M}) \times 2^{\text{DATA\_RATE\_E}}}{2^{33}}\]

if DATA_RATE_E = 15 (jitter free mode)

\[\text{data rate} = \frac{f_{\text{sys}}}{8 \times \text{DATA\_RATE\_M}}\]

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 100. Channel filter bandwidth (in kHz) programming
ME=0E=1E=2E=3E=4E=5E=6E=7E=8E=9
M=01600800400200100502512.56.1253.125
M=1151075537718894.447.223.611.85.912.94
M=2142271135517888.944.422.211.15.552.78
M=3133266633316683.341.620.810.45.22.6
M=4124462231115577.838.919.49.74.872.4
M=5115457728814472.236.118.194.52.2
M=6106653326613366.733.316.68.34.12.1
M=797648824412261.130.515.37.63.81.9
M=888844422211155.627.813.96.93.51.7
M=9800400200100502512.56.253.121.56
M=10755.6377.8188.994.447.223.611.85.92.951.48
M=11711.1355.6177.888.944.422.211.15.562.781.39
M=12666.7333.3166.783.341.720.810.425.212.601.3
M=13622.2311.1155.677.838.919.49.724.862.431.22
M=14577.8288.9144.472.236.118.069.034.512.261.13
M=15533.3266.7133.366.733.316.678.334.172.081.04
Output sample frequency (FS) out of the complete chain (in kHz)
-2000100050025012562.531.2515.6257.81253.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_{\text{clk}}\), the channel filter bandwidth can be calculated by multiplying the values in the table above by the factor \(f_{\text{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:

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

\[f_{IF} = \frac{f_{sys}}{2^{16}} \times IF\_OFFSET\_xx\]

with

_xx: _ANA or _DIG

\(f_{sys}\): digital fast clock provided by the SoC, supposed to be XO frequency / 3 (16 MHz nominal)

When operating in the 315 MHz band (corresponding to BS = 1 in the SYNTH_FREQ register (SYNTH_FREQ) and DIV12_SEL= RFANA_PLL_IN[6] = 1):

\[f_{IF} = \frac{f_{sys}}{2^{16}} \times IF\_OFFSET\_DIG \quad \text{then} \quad IF\_OFFSET\_DIG = f_{IF} \times \frac{2^{16}}{f_{sys}}\]

\[f_{IF} = \frac{f_{sys}}{2^{16}} \times IF\_OFFSET\_ANA \times \frac{2}{3} \quad \text{then} \quad IF\_OFFSZET\_ANA = f_{IF} \times \frac{2^{16}}{f_{sys}} \times \frac{3}{2}\]

with

\(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:

Note: The maximum value allowed for IF_OFFSET_ANA when operating in the 315 MHz band is then 500 kHz.

The register offers the possibility to program separately:

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:

24.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.

24.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 101. TX mode summary

TX_MODE[1:0]Mode nameDescriptionTX ending
00Normal modeOnly payload is provided through RAM buffers
Rest of the frame built from configuration registers (PREAMBLE, SYNC, CRC...)
Automatic
01Direct through buffersFull bit stream (including PREAMBLE, SYNC, CRC...) to be provided through RAM buffersIf PCKTLEN ≠ 0: Automatic (except if TX Polar modulation)
If PCKTLEN = 0: SABORT command needed
10Direct through GPIOFull bit stream (including PREAMBLE, SYNC, CRC...) to be provided serially through the TX DATA GPIOSABORT command needed
11PN modeInternal 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:

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:

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:

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:

24.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 102 summarizes the available RX modes.

Table 102. RX mode summary

RX_MODE[2:0]Mode nameDescriptionRX ending
000Normal modeOnly payload is stored into the RAM buffers. CRC and packet length are readable in dedicated status registers.Automatic
001Direct through buffersFull bit stream (including noise when no signal on antenna, PREAMBLE, SYNC, CRC...) is stored into the RAM buffers.SABORT command needed
010Direct through GPIOFull bit stream (including noise when no signal on antenna, PREAMBLE, SYNC, CRC...) is provided serially through the RX DATA GPIOSABORT command needed
011I/Q samplingRaw 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
100frequency/amplitude detector samplingRaw 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
101soft bits samplingRaw 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 255. Simplified RX data path

Block diagram of the simplified RX data path. The signal flow starts from an antenna through an RF Front End, IF ADC, Fixed filtering and decimation stage (1/4), Digital Mixer, Fixed filtering and decimation stage (1/2), Variable filtering and decimation stages (1/2^CHFILTER_E), and a Channel Filter. From the Channel Filter, the signal splits into two paths. The top path outputs 'I/Q Samples'. The bottom path goes to a Frequency Detector, which outputs 'Frequency/Amplitude Samples'. The signal then goes to a Symbol Timing & AFC block, which outputs 'Soft Bits'. The 'Soft Bits' path then splits into two: one goes through an FEC block and then a Slicing block, and the other goes directly to a Buffer. The output of the Slicing block goes to a Packed Fields Decoding block, which outputs 'Normal mode'.
Block diagram of the simplified RX data path. The signal flow starts from an antenna through an RF Front End, IF ADC, Fixed filtering and decimation stage (1/4), Digital Mixer, Fixed filtering and decimation stage (1/2), Variable filtering and decimation stages (1/2^CHFILTER_E), and a Channel Filter. From the Channel Filter, the signal splits into two paths. The top path outputs 'I/Q Samples'. The bottom path goes to a Frequency Detector, which outputs 'Frequency/Amplitude Samples'. The signal then goes to a Symbol Timing & AFC block, which outputs 'Soft Bits'. The 'Soft Bits' path then splits into two: one goes through an FEC block and then a Slicing block, and the other goes directly to a Buffer. The output of the Slicing block goes to a Packed Fields Decoding block, which outputs 'Normal mode'.

A few pieces of information can be extracted/summarized from the figure above concerning the different modes:

Normal mode

This mode is selected with RX_MODE[2:0] = “000”.

In Normal mode:

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:

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:

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:

\[F_{\text{sample}} = \frac{f_{\text{sys}}}{8 \times 2^{\text{CHFLT\_E}}}\]

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:

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:

\[F_{\text{sample}} = \frac{f_{\text{sys}}}{8 \times 2^{\text{CHFLT\_E}}}\]

For FSK modulations, the numerical value of the samples stored in RAM is linked to the actual frequency deviation as:

\[F_{\text{dev\_RAM}} = \frac{F_{\text{dev\_Hz}} \times 256}{F_{\text{sample}}}\]

Which means:

\[F_{\text{dev\_Hz}} = \frac{F_{\text{dev\_Hz}} \times F_{\text{sample}}}{256}\]

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:

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:

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:

\[F_{dev\_RAM} = \frac{F_{dev\_Hz} \times 256}{F_{sample}}\]

Which means:

\[F_{dev\_Hz} = \frac{F_{dev\_Hz} \times F_{sample}}{256}\]

The main difference with frequency detector RX mode is that:

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.

24.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:

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 256. TX and TX HP pin connections, TX PA drive mode, VBATT > 1.7 V

Schematic diagram of TX drive mode showing power supply, SMPS, LDO RF, and DRIVE x1/x2 blocks with pin connections for 10 dBm output.

The diagram illustrates the TX drive mode circuit for VBATT > 1.7 V. It includes the following components and connections:

MSv58433V1

Schematic diagram of TX drive mode showing power supply, SMPS, LDO RF, and DRIVE x1/x2 blocks with pin connections for 10 dBm output.

Figure 257. TX and TX HP pin connections, TX + TX HP PA drive mode, VBATT > 2.4 V

Figure 257. TX and TX HP pin connections, TX + TX HP PA drive mode, VBATT > 2.4 V

TX + TX HP drive mode schematic showing power supply path from VBATT > 2.4 V through SMPS (η=90%) to LDO RF (VSMPS = 2.2 V) providing VDD = 1.2 V to DRIVE x1 and DRIVE x2 blocks. Common power control 3.3 V feeds into the stages. DRIVE x1 output is TX connected with inductor/choke to VSMPS. DRIVE x2 output is TXHP connected via Extra diodes to BOM HP+ leading to a 20 dBm antenna output. Diagram code: MSv58435V1.

Figure 257. TX and TX HP pin connections, TX + TX HP PA drive mode, VBATT > 2.4 V

Figure 258. TX and TX HP pin connections, TX HP PA drive mode, VBATT = 3.3 V

Figure 258. TX and TX HP pin connections, TX HP PA drive mode, VBATT = 3.3 V

TX HP drive mode schematic showing power supply path from VBATT = 3.3 V directly through SMPS (η=90%) to LDO RF providing VDD = 1.2 V to DRIVE x1 and DRIVE x2 blocks. Common power control 3.3 V feeds both stages. DRIVE x1 is set to TX output in HiZ (Not connected). DRIVE x2 is connected to TXHP, pulled up to VBATT via an inductor/choke, and connected via Extra diodes to BOM HP, feeding a 14/16 dBm antenna output. Diagram code: MSv58436V1.

Figure 258. TX and TX HP pin connections, TX HP PA drive mode, VBATT = 3.3 V

24.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:

SYNC word:

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):

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:

Note: PCKT_CTRL[22:21] = CODING_SEL[1:0] bit field is not considered by the receiver

Whitening:

Sigfox transmission

This sub-chapter indicates the registers programming concerned/impacted to manage a Sigfox TX transfer.

Modulation:

PA configuration:

Packet format:

CRC:

Data management:

W-MBUS

This sub-chapter indicates the registers programming concerned/impacted to manage a W-MBUS RF transfer.

Figure 259. W-MBUS frame format

Diagram of W-MBUS frame format showing four sequential blocks: Preamble (light blue), Access Address (dark blue), Payload (medium blue), and Postamble (magenta).

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'.

Diagram of W-MBUS frame format showing four sequential blocks: Preamble (light blue), Access Address (dark blue), Payload (medium blue), and Postamble (magenta).

Packet format:

Access Address:

CRC:

Note: Main reason is that, if 3oo6 coding is selected, the CRC is calculated on encoded data and not on clear data

POSTAMBLE:

Coding:

The rest of the W-MBUS standard constraints must be built in SW.

24.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 24.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.

24.4.1 Register organization

The Global registers are grouped in several categories:

Note: Interrupt status registers are “read / write 1 to clear” instead of read-only.

Table 103. Global registers sub-groups base address

Global register sub-groupOffset versus the Global register base address
Static registers0x000
Dynamic registers0x100
Status registers0x200
Misc registers0x300
Retained registers0x380

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:

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.

24.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 STM32WL3Rxx.

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 104. STATIC_REG_BLOCK register list

OffsetRegister NameRegister TitleReset
0x0000PCKT_CONFIGPCKT_CONFIG register0x0001 03F1
0x0004SYNCSYNC register0x2323 2323
0x0008SEC_SYNCSEC_SYNC register0x0000 0000
0x000CCRC_INITCRC_INIT register0x0000 0000
0x0010PCKT_CTRLPCKT_CTRL register0x0000 0000
0x0014DATABUFFER0_PTRDATABUFFER0_PTR register0x0000 0000
0x0018DATABUFFER1_PTRDATABUFFER1_PTR register0x0000 0000
0x001CDATABUFFER_SIZEDATABUFFER_SIZE register0x0000 0000
0x0020PA_LEVEL_3_0PA_LEVEL_3_0 register0x230B 0100
0x0024PA_LEVEL_7_4PA_LEVEL_7_4 register0x5147 3B2F
0x0028PA_CONFIGPA_CONFIG register0x0000 015C
0x002CIF_CTRLIF_CTRL register0x04CD 04CD
0x0030AS_QI_CTRLAS_QI_CTRL register0x5800 8028
0x0034IQC_CONFIGIQC_CONFIG register0xC000 0000
0x0038DSSS_CTRLDSSS_CTRL register0x0000 0000

24.5.1 PCKT_CONFIG register (PCKT_CONFIG)

Address offset: 0x0000

Reset value: 0x0001 03F1

PCKT_CONFIG register

Bit field diagram for PCKT_CONFIG register. The register is 32 bits wide, indexed from 31 down to 0. Bits 31-30: POSTAMBLE_SEQ[1:0] (rw). Bits 29-24: POSTAMBLE_LENGTH[5:0] (rw). Bits 23-22: PREAMBLE_SEQ[1:0] (rw). Bits 21-16: PREAMBLE_LENGTH[9:4] (rw). Bits 15-12: PREAMBLE_LENGTH[3:0] (rw). Bit 11: FIX_VAR_LEN (rw). Bit 10: LEN_WIDTH (rw). Bit 9: SYNC_PRESENT (rw). Bits 8-4: SYNC_LEN[4:0] (rw). Bit 3: SECONDARY_SYNC_SEL (rw). Bits 2-0: CRC_MODE[2:0] (rw).
31302928272625242322212019181716
POSTAMBLE_SEQ[1:0]POSTAMBLE_LENGTH[5:0]PREAMBLE_SEQ[1:0]PREAMBLE_LENGTH[9:4]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PREAMBLE_LENGTH[3:0]FIX_VAR_LENLEN_WIDTHSYNC_PRESENTSYNC_LEN[4:0]SECONDARY_SYNC_SELCRC_MODE[2:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bit field diagram for PCKT_CONFIG register. The register is 32 bits wide, indexed from 31 down to 0. Bits 31-30: POSTAMBLE_SEQ[1:0] (rw). Bits 29-24: POSTAMBLE_LENGTH[5:0] (rw). Bits 23-22: PREAMBLE_SEQ[1:0] (rw). Bits 21-16: PREAMBLE_LENGTH[9:4] (rw). Bits 15-12: PREAMBLE_LENGTH[3:0] (rw). Bit 11: FIX_VAR_LEN (rw). Bit 10: LEN_WIDTH (rw). Bit 9: SYNC_PRESENT (rw). Bits 8-4: SYNC_LEN[4:0] (rw). Bit 3: SECONDARY_SYNC_SEL (rw). Bits 2-0: CRC_MODE[2:0] (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)

24.5.2 SYNC register (SYNC)

Address offset: 0x0004

Reset value: 0x2323 2323

SYNC register

31302928272625242322212019181716
SYNC[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SYNC[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.5.3 SEC_SYNC register (SEC_SYNC)

Address offset: 0x0008

Reset value: 0x0000 0000

SEC_SYNC register

31302928272625242322212019181716
SEC_SYNC[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SEC_SYNC[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.5.4 CRC_INIT register (CRC_INIT)

Address offset: 0x000C

Reset value: 0x0000 0000

CRC_INIT register

31302928272625242322212019181716
CRC_INIT_VAL[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CRC_INIT_VAL[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 CRC_INIT_VAL[31:0]: CRC initialization value

24.5.5 PCKT_CTRL register (PCKT_CTRL)

Address offset: 0x0010

Reset value: 0x0000 0000

PCKT_CTRL register

31302928272625242322212019181716
FORCE_2FSK_SYNC_MODERes.PN_SELMOD_INTERP_ENFCS_TYPE_4GFEC_TYPE_4GINT_EN_4GMANCHESTER_TYPERes.CODING_SEL[1:0]WHIT_INIT[8:4]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
WHIT_INIT[3:0]WHIT_ENWHIT_BF_FECRes.TX_MODE[1:0]RX_MODE[2:0]FOUR_FSK_SYM_SWAPBYTE_SWAPRes.PCKT_FORMAT
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.5.6 DATABUFFER0_PTR register (DATABUFFER0_PTR)

Address offset: 0x0014

Reset value: 0x0000 0000

DATABUFFER0_PTR register

31302928272625242322212019181716
DATABUFFER0_PTR[29:14]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATABUFFER0_PTR[13:0]Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

24.5.7 DATABUFFER1_PTR register (DATABUFFER1_PTR)

Address offset: 0x0018

Reset value: 0x0000 0000

DATABUFFER1_PTR register

31302928272625242322212019181716
DATABUFFER1_PTR[29:14]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATABUFFER1_PTR[13:0]Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.5.8 DATABUFFER_SIZE register (DATABUFFER_SIZE)

Address offset: 0x001C

Reset value: 0x0000 0000

DATABUFFER_SIZE register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
DATABUFFER_SIZE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.5.9 PA_LEVEL_3_0 register (PA_LEVEL_3_0)

Address offset: 0x0020

Reset value: 0x230B 0100

PA_LEVEL_3_0 register

31302928272625242322212019181716
PA_LEVEL3[7:0]PA_LEVEL2[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PA_LEVEL1[7:0]PA_LEVEL0[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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:

ST logo
ST logo

24.5.10 PA_LEVEL_7_4 register (PA_LEVEL_7_4)

Address offset: 0x0024

Reset value: 0x5147 3B2F

PA_LEVEL_7_4 register

31302928272625242322212019181716
PA_LEVEL7[7:0]PA_LEVEL6[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PA_LEVEL5[7:0]PA_LEVEL4[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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"

24.5.11 PA_CONFIG register (PA_CONFIG)

Address offset: 0x0028

Reset value: 0x0000 015C

PA_CONFIG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.PA_RAMP_ENABLELIN_NLOGRes.PA_MODE[1:0]PA_DRV_MODE[1:0]ASK_OOK_ENPA_INTERP_ENRes.PA_LEVEL_MAX_INDEX[2:0]PA_RAMP_STEP_WIDTH[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 14 PA_RAMP_ENABLE: Enable the power ramping

Bit 13 LIN_NLOG: Enable/disable the linear-to- log conversion of the PA code output from Safe-ASK calibrator

Bit 12 Reserved, must be kept at reset value.

Bits 11:10 PA_MODE[1:0]: Configure the Power Amplifier (PA) mode

Bits 9:8 PA_DRV_MODE[1:0]: Select the PA topology

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"

24.5.12 IF_CTRL register (IF_CTRL)

Address offset: 0x002C

Reset value: 0x04CD 04CD

IF_CTRL register

31302928272625242322212019181716
IF_MODERes.Res.IF_OFFSET_ANA[12:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.IF_OFFSET_DIG[12:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.5.13 AS_QI_CTRL register (AS_QI_CTRL)

Address offset: 0x0030

Reset value: 0x5800 8028

AS_QI_CTRL register

31302928272625242322212019181716
AS_CS_BLANKINGAS_MEAS_TIME[2:0]AS_EQU_CTRL[1:0]Res.Res.Res.Res.Res.Res.Res.SQI_THR[2:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
SQI_ENCS_MODE[1:0]PQI_THR[3:0]RSSI_THR[8:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 14:13 CS_MODE[1:0]: Carrier Sense mode selection

Bits 12:9 PQI_THR[3:0]: PQI threshold (if 0 then ).

Bits 8:0 RSSI_THR[8:0]: Signal detect threshold in 0.5 dB resolution.

Default: 40d which is around -140 dBm

24.5.14 IQC_CONFIG register (IQC_CONFIG)

Address offset: 0x0034

Reset value: 0xC000 0000

IQC_CONFIG register

31302928272625242322212019181716
IQC_ENABLEREUSE_CORRECTIONLOAD_IQC_INITRes.Res.Res.Res.Res.IQC_CORRECT_IN[23:16]
rwrwwrwrwrwrwrwrwrwrw
1514131211109876543210
IQC_CORRECT_IN[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 IQC_ENABLE: Enable IQC

Bit 30 REUSE_CORRECTION: Reuse last correction value

Bit 29 LOAD_IQC_INIT: Action bit.

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.

ST logo
ST logo

24.5.15 DSSS_CTRL register (DSSS_CTRL)

Address offset: 0x0038

Reset value: 0x0000 0000

DSSS_CTRL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

1514131211109876543210
ACQ_THR[5:0]ACQ_HITS[1:0]DSSS_ENSPREADING_EXP[2:0]ACQ_WINDOW[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

ST logo
ST logo

24.5.16 STATIC_REG_BLOCK register map

Table 105. STATIC_REG_BLOCK register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000PCKT_CONFIGPOSTAMBLE_SEQ[1:0]POSTAMBLE_LENGTH[5:0]PREAMBLE_SEQ[1:0]PREAMBLE_LENGTH[9:0]FIX_VAR_LENLEN_WIDTHSYNC_PRESENTSYNC_LEN[4:0]SECONDARY_SYNC_SELCRC_MODE[2:0]
Reset value0000000000000001000001111110001
0x004SYNCSYNC[31:0]
Reset value00100011001000110010001100100011
0x008SEC_SYNCSEC_SYNC[31:0]
Reset value0000000000000000000000000000000
0x00CCRC_INITCRC_INIT_VAL[31:0]
Reset value0000000000000000000000000000000
0x010PCKT_CTRLFORCE_2FSK_SYNC_MODERes.PN_SELMOD_INTERP_ENFCS_TYPE_4GFEC_TYPE_4GINT_EN_4GMANCHESTER_TYPERes.CODING_SEL[1:0]WHIT_INIT[8:0]WHIT_ENWHIT_BF_FECRes.TX_MODE[1:0]RX_MODE[2:0]FOUR_FSK_SYM_SWAPBYTE_SWAPRes.PCKT_FORMAT
Reset value00000000000000000000000000
0x014DATABUFFER0_PTRDATABUFFER0_PTR[29:0]Res.Res.
Reset value00000000000000000000000000000
0x018DATABUFFER1_PTRDATABUFFER1_PTR[29:0]Res.Res.
Reset value00000000000000000000000000000
0x01CDATABUFFER_SIZERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DATABUFFER_SIZE[15:0]
Reset value0000000000000000
0x020PA_LEVEL_3_0PA_LEVEL3[7:0]PA_LEVEL2[7:0]PA_LEVEL1[7:0]PA_LEVEL0[7:0]
Reset value0010001100001011000000100000000
0x024PA_LEVEL_7_4PA_LEVEL7[7:0]PA_LEVEL6[7:0]PA_LEVEL5[7:0]PA_LEVEL4[7:0]
Reset value0101000101000111001110110010111

Table 105. STATIC_REG_BLOCK register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x028PA_CONFIGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PA_RAMP_ENABLELIN_NLOGRes.PA_MODE[1:0]PA_DRV_MODE[1:0]ASK_OOK_ENPA_INTERP_ENRes.PA_LEVEL_MAX_INDEX[2:0]PA_RAMP_STEP_WIDTH[1:0]
Reset value00000101111000
0x02CIF_CTRLIF_MODERes.Res.IF_OFFSET_ANA[12:0]Res.Res.Res.IF_OFFSET_DIG[12:0]
Reset value000100110011010010011001101
0x030AS_QI_CTRLAS_CS_BLANKINGAS_MEAS_TIME[2:0]AS_EQU_CTRL[1:0]Res.Res.Res.Res.Res.Res.Res.SQL_THR[2:0]SQL_ENCS_MODE[1:0]PQL_THR[3:0]RSSI_THR[8:0]
Reset value0101100001000000000101000
0x034IQC_CONFIGIQC_ENABLEREUSE_CORRECTIONLOAD_IQC_INITRes.Res.Res.Res.Res.Res.IQC_CORRECT_IN[23:0]
Reset value110000000000000000000000000
0x038DSSS_CTRLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ACQ_THR[5:0]ACQ_HITS[1:0]DSSS_ENSPREADING_EXP[2:0]ACQ_WINDOW[3:0]
Reset value0000000000000000

24.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 STM32WL3Rxx.

Table 106. DYNAMIC_REG_BLOCK register list

OffsetRegister NameRegister TitleReset
0x0000PCKTLEN_CONFIGPCKTLEN_CONFIG register0x0000 0014
0x0004MOD0_CONFIGMOD0_CONFIG register0x0008 3A93
0x0008MOD1_CONFIGMOD1_CONFIG register0x0040 0435
0x000CSYNTH_FREQSYNTH_FREQ register0x0485 1615
0x0010VCO_CAL_CONFIGVCO_CAL_CONFIG register0x0040 0088
0x0014RX_TIMERRX_TIMER register0x0000 0000
0x0018DATABUFFER_THRDATABUFFER_THR register0x0000 0000
0x001CRFSEQ_IRQ_ENABLERFSEQ_IRQ_ENABLE register0x0000 0000
0x0020ADDITIONAL_CTRLADDITIONAL_CTRL register0x0003 8800
0x0024FAST_RX_TIMERFAST_RX_TIMER register0x0000 0000
0x0028COMMANDCOMMAND register0x0000 0000

24.6.1 PCKTLEN_CONFIG register (PCKTLEN_CONFIG)

Address offset: 0x0000

Reset value: 0x0000 0014

PCKTLEN_CONFIG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
PCKTLEN[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

ST logo
ST logo

24.6.2 MOD0_CONFIG register (MOD0_CONFIG)

Address offset: 0x0004

Reset value: 0x0008 3A93

MOD0_CONFIG register

31302928272625242322212019181716
PA_CLKON_LOCKONTXRes.Res.Res.Res.BT_SELCONST_MAP[1:0]Res.MOD_TYPE[2:0]DATARATE_E[3:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATARATE_M[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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)

24.6.3 MOD1_CONFIG register (MOD1_CONFIG)

Address offset: 0x0008

Reset value: 0x0040 0435

MOD1_CONFIG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.CHFLT_E[3:0]CHFLT_M[3:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.FDEV_E[3:0]FDEV_M[7:0]
rwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

24.6.4 SYNTH_FREQ register (SYNTH_FREQ)

Address offset: 0x000C

Reset value: 0x0485 1615

SYNTH_FREQ register

31302928272625242322212019181716
Res.BSRes.Res.SYNTH_INT[7:0]SYNTH_FRAC[19:16]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SYNTH_FRAC[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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)

24.6.5 VCO_CAL_CONFIG register (VCO_CAL_CONFIG)

Address offset: 0x0010

Reset value: 0x0040 0088

VCO_CAL_CONFIG register

31302928272625242322212019181716
VCO_CALIB_REQRes.Res.Res.Res.Res.Res.Res.VCO_CALFREQ_EXT_SELVCO_CALFREQ_EXT[6:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
VCO_CALAMP_EXT_SELRes.VCO_CALAMP_EXT[13:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.6.6 RX_TIMER register (RX_TIMER)

Address offset: 0x0014

Reset value: 0x0000 0000

RX_TIMER register

31302928272625242322212019181716
RX_OR_NAND_SELECTRX_SQI_TIMEOUT_MASKRX_PQI_TIMEOUT_MASKRX_CS_TIMEOUT_MASKRes.Res.Res.Res.Res.RX_TIMEOUT[22:16]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RX_TIMEOUT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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)

24.6.7 DATABUFFER_THR register (DATABUFFER_THR)

Address offset: 0x0018

Reset value: 0x0000 0000

DATABUFFER_THR register

31302928272625242322212019181716
TX_ALMOST_EMPTY_THR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RX_ALMOST_FULL_THR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.6.8 RFSEQ_IRQ_ENABLE register (RFSEQ_IRQ_ENABLE)

Address offset: 0x001C

Reset value: 0x0000 0000

RFSEQ_IRQ_ENABLE register

31302928272625242322212019181716
AGC_CALIB_DONE_ESAFEASK_CALIB_DONE_ERes.RRM_CMD_END_ERRM_CMD_START_ESEQ_ERes.HW_ANA_FAILURE_ERes.AHB_ACCESS_ERROR_ETX_ALMOST_EMPTY_1_ETX_ALMOST_EMPTY_0_ERX_ALMOST_FULL_1_ERX_ALMOST_FULL_0_EDATABUFFER1_USED_EDATABUFFER0_USED_E
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.SYNC_VALID_EPREAMBLE_VALID_ECS_ERes.Res.COMMAND_REJECTED_ESABORT_DONE_ERXTIMER_STOP_CDT_ERes.Res.FAST_RX_TERM_ERX_CRC_ERROR_ERX_TIMEOUT_ERX_OK_ETX_DONE_E
rwrwrwrwrwrwrwrwrwrwrw

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.

24.6.9 ADDITIONAL_CTRL register (ADDITIONAL_CTRL)

Address offset: 0x0020

Reset value: 0x0003 8800

ADDITIONAL_CTRL register

31302928272625242322212019181716
AS_ENABLERes.Res.Res.Res.Res.Res.Res.Res.TIME_CAPTURESEL[2:0]Res.Res.PA_FC[1:0]
rwrwrwrwrwrw
1514131211109876543210
CH_SPACING[7:0]CH_NUM[7:0]
rrrrrrrrrwrwrwrwrwrwrwrw

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

24.6.10 FAST_RX_TIMER register (FAST_RX_TIMER)

Address offset: 0x0024

Reset value: 0x0000 0000

FAST_RX_TIMER register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.FAST_CS_TERM_ENFAST_RX_TIMEOUT[7:0]
rwrwrwrwrwrwrwrwrw

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)

ST logo
ST logo

24.6.11 COMMAND register (COMMAND)

Address offset: 0x0028

Reset value: 0x0000 0000

COMMAND register

31302928272625242322212019181716
Res.Res.Res.Res.Res.BACK2LOCKONBACK2ACTIVERes.Res.Res.Res.Res.Res.Res.Res.Res.
rwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COMMAND_ID[3:0]
rwrwrwrw

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

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 LOCKONnX 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

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 coresponding to a command:

Possible OpCodes are:

24.6.12 DYNAMIC_REG_BLOCK register map

Table 107. DYNAMIC_REG_BLOCK register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000PCKTLEN_CONFIGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PCKTLEN[15:0]
Reset value0000000000010100
0x004MOD0_CONFIGPA_CLKON_LOCKONTXRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DATARATE_M[15:0]
Reset value00000001000001110101001001
0x008MOD1_CONFIGRes.Res.Res.Res.Res.Res.Res.Res.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 value0100000000000000000100110101
0x00CSYNTH_FREQRes.BSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SYNTH_INT[7:0]SYNTH_FRAC[19:0]
Reset value00100100001010000101100001010101
0x010VCO_CAL_CONFIGVCO_CALIB_REQRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VCO_CALFREQ_EXT_SEVCO_CALFREQ_EXT[6:0]VCO_CALAMP_EXT_SELRes.VCO_CALAMP_EXT[13:0]
Reset value00100000000000000000010001000
0x014RX_TIMERRX_OR_NAND_SELECTRX_SQL_TIMEOUT_MASKRX_PQL_TIMEOUT_MASKRX_CS_TIMEOUT_MASKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RX_TIMEOUT[22:0]
Reset value000000000000000000000000000
0x018DATABUFFER_THRTX_ALMOST_EMPTY_THR[15:0]RX_ALMOST_FULL_THR[15:0]
Reset value00000000000000000000000000000000000000

Table 107. DYNAMIC_REG_BLOCK register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x01CRFSEQ_IRQ_ENABLEAGC_CALIB_DONE_ESAFEASK_CALIB_DONE_ERes.RRM_CMD_END_ERRM_CMD_START_ESEQ_ERes.HW_ANA_FAILURE_ERes.AHB_ACCESS_ERROR_ETX_ALMOST_EMPTY_1_ETX_ALMOST_EMPTY_0_ERX_ALMOST_FULL_1_ERX_ALMOST_FULL_0_EDATABUFFER1_USED_EDATABUFFER0_USED_ERes.SYNC_VALID_EPREAMBLE_VALID_ECS_ERes.Res.COMMAND_REJECTED_ESABORT_DONE_ERXTIMER_STOP_CDT_ERes.Res.FAST_RX_TERM_ERX_CRC_ERROR_ERX_TIMEOUT_ERX_OK_ETX_DONE_E
Reset value0000000000000000000000000
0x020ADDITIONAL_CTRLAS_ENABLERes.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 value00001110001000000000000
0x024FAST_RX_TIMERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FAST_CS_TERM_ENFAST_RX_TIMEOUT[7:0]
Reset value00000000000
0x028COMMANDRes.Res.Res.Res.Res.BACK2LOCKONBACK2ACTIVERes.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 value0000000

24.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 STM32WL3Rxx.

Table 108. READ-ONLY_REG_BLOCK register list

OffsetRegister NameRegister TitleReset
0x0000RFSEQ_IRQ_STATUSRFSEQ_IRQ_STATUS register0x0000 0000
0x0004RFSEQ_STATUS_DETAILRFSEQ_STATUS_DETAIL register0x0000 0000
0x0008RADIO_FSM_INFORADIO_FSM_INFO register0x0000 0000
0x000CRX_INDICATORRX_INDICATOR register0x0000 0000
0x0010RX_INFO_REGRX_INFO_REG register0x0000 0000
0x0014RX_CRC_REGRX_CRC_REG register0x0000 0000
0x0018QI_INFOQI_INFO register0x0000 0000
0x001CDATABUFFER_INFODATABUFFER_INFO register0x0000 0000
0x0020TIME_CAPTURETIME_CAPTURE register0x0000 0000
0x0024IQC_CORRECTION_OUTIQC_CORRECTION_OUT register0x0000 0000
0x0028PA_SAFEASK_OUTPA_SAFEASK_OUT register0x0000 0000
0x002CVCO_CALIB_OUTVCO_CALIB_OUT register0x0000 FF40
0x0030SEQ_INFOSEQ_INFO register0x0000 0000
0x0034SEQ_EVENT_STATUSSEQ_EVENT_STATUS register0x0000 0000

24.7.1 RFSEQ_IRQ_STATUS register (RFSEQ_IRQ_STATUS)

Address offset: 0x0000

Reset value: 0x0000 0000

RFSEQ_IRQ_STATUS register

31302928272625242322212019181716
AGC_CALIB_DONE_FSAFEASK_CALIB_DONE_FRes.RRM_CMD_END_FRRM_CMD_START_FSEQ_FRes.HW_ANA_FAILURE_FRes.AHB_ACCESS_ERROR_FTX_ALMOST_EMPTY_1_FTX_ALMOST_EMPTY_0_FRX_ALMOST_FULL_1_FRX_ALMOST_FULL_0_FDATABUFFER1_USED_FDATABUFFER0_USED_F
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1
1514131211109876543210
Res.SYNC_VALID_FPREAMBLE_VALID_FCS_FRes.Res.COMMAND_REJECTED_FSABORT_DONE_FRXTIMER_STOP_CDT_FRes.Res.FAST_RX_TERM_FRX_CRC_FRROR_FRX_TIMEOUT_FRX_OK_FTX_DONE_F
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_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.

24.7.2 RFSEQ_STATUS_DETAIL register (RFSEQ_STATUS_DETAIL)

Address offset: 0x0004

Reset value: 0x0000 0000

RFSEQ_STATUS_DETAIL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SEQ_COMPLETE_FSEQ_ACTIONTIMEOUT_FPLL_CALAMP_ERROR_FPLL_CALFREQ_ERROR_FPLL_UNLOCK_FPLL_LOCK_FAIL_FDBM_FIFO_ERROR_F
Res.Res.Res.Res.Res.Res.Res.Res.Res.
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_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.

24.7.3 RADIO_FSM_INFO register (RADIO_FSM_INFO)

Address offset: 0x0008

Reset value: 0x0000 0000

RADIO_FSM_INFO register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RADIO_FSM_STATE[4:0]
rrrrr

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

Bits 4:0 RADIO_FSM_STATE[4:0]: State of the Radio FSM

ST logo
ST logo

24.7.4 RX_INDICATOR register (RX_INDICATOR)

Address offset: 0x000C

Reset value: 0x0000 0000

RX_INDICATOR register

31302928272625242322212019181716
ANT_SELECTRes.Res.Res.AGC_WORD[3:0]Res.Res.Res.RSSI_LEVEL_RUN[8:4]
rrrrrrrrrr
1514131211109876543210
RSSI_LEVEL_RUN[3:0]Res.Res.Res.RSSI_LEVEL_ON_SYNC[8:0]
rrrrrrrrrrrrr

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.

24.7.5 RX_INFO_REG register (RX_INFO_REG)

Address offset: 0x0010

Reset value: 0x0000 0000

RX_INFO_REG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
RX_PCKTLEN_OUT[15:0]
rrrrrrrrrrrrrrrr

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

Bits 15:0 RX_PCKTLEN_OUT[15:0]: Indicates received packet length in bytes:

24.7.6 RX_CRC_REG register (RX_CRC_REG)

Address offset: 0x0014

Reset value: 0x0000 0000

RX_CRC_REG register

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

Bits 31:0 RX_CRC_OUT[31:0]: CRC field of the received packet (read-only info)

24.7.7 QI_INFO register (QI_INFO)

Address offset: 0x0018

Reset value: 0x0000 0000

QI_INFO register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.AFC_CORRECTION[7:0]
rrrrrrrr
1514131211109876543210
Res.SQI_SECSQI_INFO[5:0]PQI_INFO[7:0]
rrrrrrrrrrrrrrr

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.

24.7.8 DATABUFFER_INFO register (DATABUFFER_INFO)

Address offset: 0x001C

Reset value: 0x0000 0000

DATABUFFER_INFO register

31302928272625242322212019181716
CURRENT_DATABUFFERNB_DATABUFFER_USED[14:0]
rrrrrrrrrrrrrrr
151413121110987654321
CURRENT_DATABUFFER_COUNT[15:0]
rrrrrrrrrrrrrrr
151413121110987654321

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).

24.7.9 TIME_CAPTURE register (TIME_CAPTURE)

Address offset: 0x0020

Reset value: 0x0000 0000

TIME_CAPTURE register

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

Bits 31:0 TIME_CAPTURE[31:0]: Interpolated absolute time value captured on specific programmable event through TIME_CAPTURESEL[2:0] bit field.

24.7.10 IQC_CORRECTION_OUT register (IQC_CORRECTION_OUT)

Address offset: 0x0024

Reset value: 0x0000 0000

IQC_CORRECTION_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.IQC_CORRECT_OUT[23:16]
rrrrrrrr
1514131211109876543210
IQC_CORRECT_OUT[15:0]
rrrrrrrrrrrrrrrr

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.

24.7.11 PA_SAFEASK_OUT register (PA_SAFEASK_OUT)

Address offset: 0x0028

Reset value: 0x0000 0000

PA_SAFEASK_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PA_CODEMAX[7:0]
rrrrrrrr

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

24.7.12 VCO_CALIB_OUT register (VCO_CALIB_OUT)

Address offset: 0x002C

Reset value: 0x0000 FF40

VCO_CALIB_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VCO_CALAMP_OUT[13:8]
rrrrrr
1514131211109876543210
VCO_CALAMP_OUT[7:0]Res.VCO_CALFREQ_OUT[6:0]
rrrrrrrrrrrrrrr

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]

24.7.13 SEQ_INFO register (SEQ_INFO)

Address offset: 0x0030

Reset value: 0x0000 0000

SEQ_INFO register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEQ_FSM_STATE[4:0]
rrrrr

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

Bits 4:0 SEQ_FSM_STATE[4:0]: Current state of the Sequencer

24.7.14 SEQ_EVENT_STATUS register (SEQ_EVENT_STATUS)

Address offset: 0x0034

Reset value: 0x0000 0000

SEQ_EVENT_STATUS register

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

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.

24.7.15 READ-ONLY_REG_BLOCK register map and reset values

Table 109. READ-ONLY_REG_BLOCK register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000RFSEQ_IRQ_STATUSAGC_AAF_CALIB_DONE_FSAFEASK_CALIB_DONE_FRes.RRM_CMD_END_FRRM_CMD_START_FSEQ_FRes.HW_ANA_FAILURE_FRes.AHB_ACCESS_ERROR_FTX_ALMOST_EMPTY_1_FTX_ALMOST_EMPTY_0_FRX_ALMOST_FULL_1_FRX_ALMOST_FULL_0_FDATABUFFER1_USED_FDATABUFFER0_USED_FRes.SYNC_VALID_FPREAMBLE_VALID_FCS_FRes.Res.COMMAND_REJECTED_FSABORT_DONE_FRXTIMER_STOP_CDT_FRes.Res.FAST_RX_TERM_FRX_CRC_ERROR_FRX_TIMEOUT_FRX_OK_FTX_DONE_F
Reset value0000000000000000000000000
0x004RFSEQ_STATUS_DETAILRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEQ_COMPLETE_FSEQ_ACTIONTIMEOUT_FRes.Res.PLL_CALAMP_ERROR_FPLL_CALFREQ_ERROR_FPLL_UNLOCK_FPLL_LOCK_FAIL_FRes.Res.Res.DBM_FIFO_ERROR_FRes.Res.Res.Res.
Reset value0000000
0x008RADIO_FSM_INFORes.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.RADIO_FSM_STATE[4:0]
Reset value00000
0x00CRX_INDICATORANT_SELECTRes.Res.Res.Res.AGC_WORD[3:0]Res.Res.Res.RSSI_LEVEL_RUN[8:0]Res.Res.Res.RSSI_LEVEL_ON_SYNC[8:0]
Reset value0000000000000000000000
0x010RX_INFO_REGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RX_PCKTLEN_OUT[15:0]
Reset value00000000000000000
0x014RX_CRC_REGRX_CRC_OUT[31:0]
Reset value00000000000000000000000000000000

Table 109. READ-ONLY_REG_BLOCK register map and reset values

Offset 0x018Offset 0x01COffset 0x020Offset 0x024Offset 0x028Offset 0x02COffset 0x030Offset 0x034
OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x018QI_INFORes.Res.Res.Res.Res.Res.Res.Res.AFC_CORRECTION[7:0]SQI_INFO[5:0]PQI_INFO[7:0]
Reset value000000000Res.SQI_SEC00000000000000000
0x01CDATABUFFER_INFOCURRENT_DATABUFFERNB_DATABUFFER_USED[14:0]CURRENT_DATABUFFER_COUNT[15:0]
Reset value00000000000000000000000000000000000
0x020TIME_CAPTURETIME_CAPTURE[31:0]
Reset value0000000000000000000000000000000000
0x024IQC_CORRECTION_OUTRes.Res.Res.Res.Res.Res.Res.Res.IQC_CORRECT_OUT[23:0]
Reset value00000000000000000000000000
0x028PA_SAFEASK_OUTRes.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 value00000000000
0x02CVCO_CALIB_OUTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.VCO_CALAMP_OUT[13:0]Res.VCO_CALFREQ_OUT[6:0]
Reset value0000000111111111111111100
0x030SEQ_INFORes.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.SEQ_FSM_STATE[4:0]
Reset value00000
0x034SEQ_EVENT_STATUSSEQ_EVENT_STATUS[31:0]
Reset value00000000000000000000000000000000000
ST logo
ST logo

24.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 STM32WL3Rxx.

Table 110. MISC_REG_BLOCK register list

OffsetRegister NameRegister TitleReset
0x0000RFIP_VERSIONRFIP_VERSION register0x0000 1200
0x0004RRM_UDRA_CTRLRRM_UDRA_CTRL register0x0000 0000
0x0008SEQUENCER_CTRLSEQUENCER_CTRL register0x0000 0000
0x000CABSOLUTE_TIMEABSOLUTE_TIME register0x0000 0000
0x0010SCM_COUNTER_VALSCM_COUNTER_VAL register0x0000 0000
0x0014SCM_MIN_MAXSCM_MIN_MAX register0x0000 7FFF
0x0018WAKEUP_IRQ_STATUSWAKEUP_IRQ_STATUS register0x0000 0000

24.8.1 RFIP_VERSION register (RFIP_VERSION)

Address offset: 0x0000

Reset value: 0x0000 1200

RFIP_VERSION register

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

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

Bits 15:12 PRODUCT[3:0]: Used for major upgrades (new protocols support / new features)

Bits 11:8 VERSION[3:0]: Version of the 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.

ST logo
ST logo

24.8.2 RRM_UDRA_CTRL register (RRM_UDRA_CTRL)

Address offset: 0x0004

Reset value: 0x0000 0000

RRM_UDRA_CTRL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.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.

24.8.3 SEQUENCER_CTRL register (SEQUENCER_CTRL)

Address offset: 0x0008

Reset value: 0x0000 0000

SEQUENCER_CTRL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DISABLE_SEQGEN_SEQ_TRIGGER
rww

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

Bit 1 DISABLE_SEQ: Enable/disable the Sequencer

Bit 0 GEN_SEQ_TRIGGER: Action bit.

ST logo
ST logo

24.8.4 ABSOLUTE_TIME register (ABSOLUTE_TIME)

Address offset: 0x000C

Reset value: 0x0000 0000

ABSOLUTE_TIME register

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

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

Reminder: in this document

24.8.5 SCM_COUNTER_VAL register (SCM_COUNTER_VAL)

Address offset: 0x0010

Reset value: 0x0000 0000

SCM_COUNTER_VAL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SCM_COUNTER_CURRVAL[14:0]
Res.rrrrrrrrrrrrrrr

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.

24.8.6 SCM_MIN_MAX register (SCM_MIN_MAX)

Address offset: 0x0014

Reset value: 0x0000 7FFF

SCM_MIN_MAX register

31302928272625242322212019181716
CLEAR_MIN_MAXSCM_COUNTER_MAXVAL[14:0]
wrrrrrrrrrrrrrr
1514131211109876543210
Res.SCM_COUNTER_MINVAL[14:0]
rrrrrrrrrrrrrr

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

24.8.7 WAKEUP_IRQ_STATUS register (WAKEUP_IRQ_STATUS)

Address offset: 0x0018

Reset value: 0x0000 0000

WAKEUP_IRQ_STATUS register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RFIP_WAKEUP_FCPU_WAKEUP_F
rc_w1rc_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.

24.8.8 MISC_REG_BLOCK register map

Table 111. MISC_REG_BLOCK register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000RFIP_VERSIONRes.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 value000100100000
0x004RRM_UDRA_CTRLRes.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 value0
0x008SEQUENCER_CTRLRes.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 value0
0x00CABSOLUTE_TIMEABSOLUTE_TIME[31:0]
Reset value00000000000000000000000000000000
0x010SCM_COUNTER_VALRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SCM_COUNTER_CURRVAL[14:0]
Reset value0000000000000000
0x014SCM_MIN_MAXCLEAR_MIN_MAXSCM_COUNTER_MAXVAL[14:0]Res.SCM_COUNTER_MINVAL[14:0]
Reset value000000000000000111111111111111
0x018WAKEUP_IRQ_STATUSRes.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 value0
CPU_WAKEUP_F
0
ST logo
ST logo

24.9 RETAINED_REG_BLOCK register descriptions

Table 112. RETAINED_REG_BLOCK register list

OffsetRegister NameRegister TitleReset
0x0000RFIP_WAKEUPTIMERFIP_WAKEUPTIME register0x0000 0000
0x0004CPU_WAKEUPTIMECPU_WAKEUPTIME register0x0000 0000
0x0008WAKEUP_CTRLWAKEUP_CTRL register0x0000 0000
0x000CRRM_CMDLIST_PTRRRM_CMDLIST_PTR register0x0000 0000
0x0010SEQ_GLOBALTABLE_PTRSEQ_GLOBALTABLE_PTR register0x0000 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 STM32WL3Rxx.

24.9.1 RFIP_WAKEUPTIME register (RFIP_WAKEUPTIME)

Address offset: 0x0000

Reset value: 0x0000 0000

RFIP_WAKEUPTIME register

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

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.

24.9.2 CPU_WAKEUPTIME register (CPU_WAKEUPTIME)

Address offset: 0x0004

Reset value: 0x0000 0000

CPU_WAKEUPTIME register

31302928272625242322212019181716
CPU_WAKEUPTIME[30:15]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CPU_WAKEUPTIME[14:0]Res.
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.9.3 WAKEUP_CTRL register (WAKEUP_CTRL)

Address offset: 0x0008

Reset value: 0x0000 0000

WAKEUP_CTRL register

31302928272625242322212019181716
RFIP_WAKEUP_ENCPU_WAKEUP_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SOC_WAKEUP_OFFSET[7:0]
rwrwrwrwrwrwrwrw

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).

24.9.4 RRM_CMDLIST_PTR register (RRM_CMDLIST_PTR)

Address offset: 0x000C

Reset value: 0x0000 0000

RRM_CMDLIST_PTR register

31302928272625242322212019181716
CMDLIST_PTR_VALIDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
CMDLIST_PTR_OFFSET[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.9.5 SEQ_GLOBALTABLE_PTR register (SEQ_GLOBALTABLE_PTR)

Address offset: 0x0010

Reset value: 0x0000 0000

SEQ_GLOBALTABLE_PTR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SEQ_GLOBALTABLE_PTR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.9.6 RETAINED_REG_BLOCK register map

Table 113. RETAINED_REG_BLOCK register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000RFIP_WAKEUPTIMERFIP_WAKEUPTIME[31:0]
Reset value00000000000000000000000000000000
0x004CPU_WAKEUPTIMECPU_WAKEUPTIME[30:0]Res
Reset value0000000000000000000000000000000
0x008WAKEUP_CTRLRFIP_WAKEUP_ENCPU_WAKEUP_ENRes.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 value0000000000
0x00CRRM_CMDLIST_PTRCMDLIST_PTR_VALIDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMDLIST_PTR_OFFSET[15:0]
Reset value00000000000000000
0x010SEQ_GLOBALTABLE_PTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEQ_GLOBALTABLE_PTR[15:0]
Reset value0000000000000000

24.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:

24.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 STM32WL3Rxx.

Table 114. RADIO_REG_BLOCK register list

Address OffsetRegister NameRegister Title
RRM UDRAAPB
0x000x0000RF_FSM0_TIMEOUTRF_FSM0_TIMEOUT register
0x010x0004RF_FSM1_TIMEOUTRF_FSM1_TIMEOUT register
0x020x0008RF_FSM2_TIMEOUTRF_FSM2_TIMEOUT register
0x030x000CRF_FSM3_TIMEOUTRF_FSM3_TIMEOUT register
0x040x0010RF_FSM4_TIMEOUTRF_FSM4_TIMEOUT register
0x050x0014RF_FSM5_TIMEOUTRF_FSM5_TIMEOUT register
0x060x0018RF_FSM6_TIMEOUTRF_FSM6_TIMEOUT register
0x070x001CRF_FSM7_TIMEOUTRF_FSM7_TIMEOUT register
0x080x0020AFC0_CONFIGAFC0_CONFIG register
0x090x0024AFC1_CONFIGAFC1_CONFIG register
0x0A0x0028AFC2_CONFIGAFC2_CONFIG register
0x0B0x002CAFC3_CONFIGAFC3_CONFIG register
0x0C0x0030CLKREC_CTRL0CLKREC_CTRL0 register
0x0D0x0034CLKREC_CTRL1CLKREC_CTRL1 register
0x0E0x0038DCREM_CTRL0DCREM_CTRL0 register
0x0F0x003CDCREM_CTRL1DCREM_CTRL1 register
0x100x0040IQC_CTRL0IQC_CTRL0 register
0x110x0044IQC_CTRL1IQC_CTRL1 register
0x120x0048IQC_CTRL2IQC_CTRL2 register
0x130x004CIQC_CTRL3IQC_CTRL3 register
0x140x0050AGC_ANA_ENGAGC_ANA_ENG register
0x150x0054AGC0_CTRLAGC0_CTRL register
0x160x0058AGC1_CTRLAGC1_CTRL register
0x170x005CAGC2_CTRLAGC2_CTRL register
0x180x0060AGC3_CTRLAGC3_CTRL register
0x190x0064AGC4_CTRLAGC4_CTRL register

Table 114. RADIO_REG_BLOCK register list

Address OffsetRegister NameRegister Title
RRM UDRAAPB
0x1A0x0068AGC_ATTEN0AGC_ATTEN0 register
0x1B0x006CAGC_ATTEN1AGC_ATTEN1 register
0x1C0x0070AGC_ATTEN2AGC_ATTEN2 register
0x1D0x0074AGC_ATTEN3AGC_ATTEN3 register
0x1E0x0078AGC_ATTEN4AGC_ATTEN4 register
0x1F0x007CAGC_ATTEN5AGC_ATTEN5 register
0x200x0080AGC_ATTEN6AGC_ATTEN6 register
0x210x0084AGC_ATTEN7AGC_ATTEN7 register
0x220x0088AGC_ATTEN8AGC_ATTEN8 register
0x230x008CAGC_ATTEN9AGC_ATTEN9 register
0x240x0090AGC1_ATTEN_TRIMAGC1_ATTEN_TRIM register
0x250x0094AGC2_ATTEN_TRIMAGC2_ATTEN_TRIM register
0x260x0098AGC3_ATTEN_TRIMAGC3_ATTEN_TRIM register
0x270x009CAGC4_ATTEN_TRIMAGC4_ATTEN_TRIM register
0x280x00A0AGC_PGA_HWTRIM_OUTAGC_PGA_HWTRIM_OUT register
0x2A0x00A8PA_REGPA_REG register
0x2B0x00ACPA_HWTRIM_OUTPA_HWTRIM_OUT register
0x2F0x00BCRSSI_FLTRSSI_FLT register
0x32
to
0x39
0x00CC
to
0x00E4
ReservedReserved
0x3A0x00E8RXADC_HWDELAYTRIM_OUTRXADC_HWDELAYTRIM_OUT register
0x3B0x00ECRXADC_SW_DELAYTRIMRXADC_SW_DELAYTRIM register
0x3C0x00F0ReservedReserved
0x3D0x00F4RX_AAF_HWTRIM_OUTRX_AAF_HWTRIM_OUT register
0x3E0x00F8RX_AAF_SWTRIMRX_AAF_SWTRIM register
0x3F0x00FCReservedReserved
0x400x0100SINGEN_ANA_ENGSINGEN_ANA_ENG register
0x410x0104ReservedReserved
0x420x0108RF_INFO_OUTRF_INFO_OUT register
0x490x0124RF_FSM8_TIMEOUTRF_FSM8_TIMEOUT register
0x4A0x0128RF_FSM9_TIMEOUTRF_FSM9_TIMEOUT register
0x4B0x012CRF_FSM10_TIMEOUTRF_FSM10_TIMEOUT register

Table 114. RADIO_REG_BLOCK register list

Address OffsetRegister NameRegister Title
RRM
UDRA
APB
0x4C
to
0x50
0x0130
to
0x0140
ReservedReserved
0x510x0144SUBG_DIG_CTRL0SUBG_DIG_CTRL0 register

24.10.2 RF_FSM0_TIMEOUT register (RF_FSM0_TIMEOUT)

Address offset: 0x0000

Reset value: 0x0000 0000

RF_FSM0_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.ENA_RFREG_TIMER[7:0]
rwrwrwrwrwrwrwrw

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/Fsys=1 µ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)

24.10.3 RF_FSM1_TIMEOUT register (RF_FSM1_TIMEOUT)

Address offset: 0x0004

Reset value: 0x0000 0006

RF_FSM1_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SYNTH_SETUP_TIMER[7:0]
rwrwrwrwrwrwrwrw

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/Fsys=1 µs

Min timeout = 1 µs

Max timeout=255 µs

(Default value=6 µs)

24.10.4 RF_FSM2_TIMEOUT register (RF_FSM2_TIMEOUT)

Address offset: 0x0008

Reset value: 0x0000 0050

RF_FSM2_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.VCO_CALIB_LOCK_TIMER[7:0]
rwrwrwrwrwrwrwrw

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)

24.10.5 RF_FSM3_TIMEOUT register (RF_FSM3_TIMEOUT)

Address offset: 0x000C

Reset value: 0x0000 0028

RF_FSM3_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.VCO_LOCK_TIMER[7:0]
rwrwrwrwrwrwrwrw

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)

24.10.6 RF_FSM4_TIMEOUT register (RF_FSM4_TIMEOUT)

Address offset: 0x0010

Reset value: 0x0000 000F

RF_FSM4_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.EN_RX_TIMER[7:0]
rwrwrwrwrwrwrwrw

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)

24.10.7 RF_FSM5_TIMEOUT register (RF_FSM5_TIMEOUT)

Address offset: 0x0014

Reset value: 0x0000 0019

RF_FSM5_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.EN_PA_TIMER[7:0]
rwrwrwrwrwrwrwrw

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)

24.10.8 RF_FSM6_TIMEOUT register (RF_FSM6_TIMEOUT)

Address offset: 0x0018

Reset value: 0x0000 0019

RF_FSM6_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PA_DWN_ANA_TIMER[7:0]
rwrwrwrwrwrwrwrw

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)

24.10.9 RF_FSM7_TIMEOUT register (RF_FSM7_TIMEOUT)

Address offset: 0x001C

Reset value: 0x0000 0005

RF_FSM7_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.EN_LNA_TIMER[7:0]
rwrwrwrwrwrwrwrw

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)

24.10.10 AFC0_CONFIG register (AFC0_CONFIG)

Address offset: 0x0020

Reset value: 0x0000 0025

AFC0_CONFIG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AFC_FAST_GAIN_LOG2[3:0]AFC_SLOW_GAIN_LOG2[3:0]
rwrwrwrwrwrwrwrw

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.)

24.10.11 AFC1_CONFIG register (AFC1_CONFIG)

Address offset: 0x0024

Reset value: 0x0000 0018

AFC1_CONFIG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AFC_FAST_PERIOD[7:0]
rwrwrwrwrwrwrwrw

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.

24.10.12 AFC2_CONFIG register (AFC2_CONFIG)

Address offset: 0x0028

Reset value: 0x0000 00C8

AFC2_CONFIG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AFC_FREEZE_ON_SYNCAFC_ENAFC_MODEAFC_PD_LEAKAGE[4:0]
rwrwrwrwrwrwrwrw

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

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.

ST logo
ST logo

24.10.13 AFC3_CONFIG register (AFC3_CONFIG)

Address offset: 0x002C

Reset value: 0x0000 00E8

AFC3_CONFIG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AFC_REINIT_OPTION[1:0]AFC_TH_SIGN_PERM[3:0]AFC_SIGN_PERM_CHECKAFC_INIT_MODE
rwrwrwrwrwrwrwrw

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

Bits 7:6 AFC_REINIT_OPTION[1:0]: Select the AFC reinitialization option:

Bits 5:2 AFC_TH_SIGN_PERM[3:0]: Threshold of check 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

24.10.14 CLKREC_CTRL0 register (CLKREC_CTRL0)

Address offset: 0x0030

Reset value: 0x0000 00B8

CLKREC_CTRL0 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PSTFLT_LENCLKREC_P_GAIN_FAST[2:0]CLKREC_I_GAIN_FAST[3:0]
rwrwrwrwrwrwrwrw

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

Bit 7 PSTFLT_LEN: Control the length of the demodulator post-filter

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)

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.

ST logo
ST logo

24.10.15 CLKREC_CTRL1 register (CLKREC_CTRL1)

Address offset: 0x0034

Reset value: 0x0000 005C

CLKREC_CTRL1 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
CLKREC_ALGO_SELCLKREC_P_GAIN_SLOW[2:0]CLKREC_I_GAIN_SLOW[3:0]
Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrw

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.

ST logo
ST logo

24.10.16 DCREM_CTRL0 register (DCREM_CTRL0)

Address offset: 0x0038
Reset value: 0x0000 00E8
DCREM_CTRL0 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.TRACK_GAINRes.Res.START_GAIN[4:0]
rwrwrwrwrwrw

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.

24.10.17 DCREM_CTRL1 register (DCREM_CTRL1)

Address offset: 0x003C
Reset value: 0x0000 0005
DCREM_CTRL1 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

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

ST logo
ST logo

24.10.18 IQC_CTRL0 register (IQC_CTRL0)

Address offset: 0x0040

Reset value: 0x0000 00E3

IQC_CTRL0 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SLOW_GAIN[3:0]FAST_GAIN[3:0]
rwrwrwrwrwrwrwrw

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.

24.10.19 IQC_CTRL1 register (IQC_CTRL1)

Address offset: 0x0044

Reset value: 0x0000 0008

IQC_CTRL1 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.QPD_ATTACK[7:0]
rwrwrwrwrwrwrwrw

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.

24.10.20 IQC_CTRL2 register (IQC_CTRL2)

Address offset: 0x0048

Reset value: 0x0000 0008

IQC_CTRL2 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.QPD_DECAY[7:0]
rwrwrwrwrwrwrwrw

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.

24.10.21 IQC_CTRL3 register (IQC_CTRL3)

Address offset: 0x004C

Reset value: 0x0000 0007

IQC_CTRL3 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FAST_TIME[3:0]
rwrwrwrw

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

Bits 3:0 FAST_TIME[3:0]: Duration of the fast mode.

ST logo
ST logo

24.10.22 AGC_ANA_ENG register (AGC_ANA_ENG)

Address offset: 0x0050

Reset value: 0x0000 0000

AGC_ANA_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.RFD_RX_PGA_ACGGAIN[2:0]RFD_RX_ATTEN_ACGGAIN[3:0]FOREC_AGC_GAINS
rwrwrwrwrwrwrw

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

Bits 7:5 RFD_RX_PGA_ACGGAIN[2:0]: Attenuation at PGA level by step of 6 dB with binary code

Bits 4:1 RFD_RX_ATTEN_ACGGAIN[3:0]: Attenuation at LNA level by step of 6 dB with thermometric code

Bit 0 FOREC_AGC_GAINS: Select the test mode for AGC analog part

ST logo
ST logo

24.10.23 AGC0_CTRL register (AGC0_CTRL)

Address offset: 0x0054
Reset value: 0x0000 0099
AGC0_CTRL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AGC_ENAGC_START_ONHOLDAGC_HOLD_TIME[5:0]
rwrwrwrwrwrwrwrw

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.

24.10.24 AGC1_CTRL register (AGC1_CTRL)

Address offset: 0x0058
Reset value: 0x0000 0062
AGC1_CTRL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AGC_MAX_THR[3:0]AGC_MIN_THR[3:0]
rwrwrwrwrwrwrwrw

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.

ST logo
ST logo

24.10.25 AGC2_CTRL register (AGC2_CTRL)

Address offset: 0x005C

Reset value: 0x0000 00AF

AGC2_CTRL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AGC_HIGH_ATTEN_MODEAGC_FREEZE_ON_STEADYAGC_FREEZE_ON_SYNCAGC_START_MAX_ATTENAGC_MEAS_TIME[3:0]
rwrwrwrwrwrwrwrw

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

ST logo
ST logo

24.10.26 AGC3_CTRL register (AGC3_CTRL)

Address offset: 0x0060

Reset value: 0x0000 0090

AGC3_CTRL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AGC_MAX_ATTEN[3:0]AGC_MIN_ATTEN[3:0]
rwrwrwrwrwrwrwrw

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.

24.10.27 AGC4_CTRL register (AGC4_CTRL)

Address offset: 0x0064

Reset value: 0x0000 0002

AGC4_CTRL register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_FREEZE_THR[3:0]
rwrwrwrw

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.

24.10.28 AGC_ATTEN0 register (AGC_ATTEN0)

Address offset: 0x0068

Reset value: 0x0000 0000

AGC_ATTEN0 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_0[2:0]ATTEN_AGCGAIN_0[3:0]
rwrwrwrwrwrw

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.

ATTEN_AGCGAIN_0[3:0]: AGC attenuation control setting for step 0 for LNA+BOM point.

ST logo
ST logo

24.10.29 AGC_ATTEN1 register (AGC_ATTEN1)

Address offset: 0x006C

Reset value: 0x0000 0010

AGC_ATTEN1 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_1[2:0]ATTEN_AGCGAIN_1[3:0]
rwrwrwrwrwrw

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

ST logo
ST logo

24.10.30 AGC_ATTEN2 register (AGC_ATTEN2)

Address offset: 0x0070

Reset value: 0x0000 0020

AGC_ATTEN2 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_2[2:0]ATTEN_AGCGAIN_2[3:0]
rwrwrwrwrwrw

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

ST logo
ST logo

24.10.31 AGC_ATTEN3 register (AGC_ATTEN3)

Address offset: 0x0074

Reset value: 0x0000 0030

AGC_ATTEN3 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_3[2:0]ATTEN_AGCGAIN_3[3:0]
rwrwrwrwrwrwrw

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

ST logo
ST logo

24.10.32 AGC_ATTEN4 register (AGC_ATTEN4)

Address offset: 0x0078
Reset value: 0x0000 0040
AGC_ATTEN4 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_4[2:0]ATTEN_AGCGAIN_4[3:0]
rwrwrwrwrwrw

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

ST logo
ST logo

24.10.33 AGC_ATTEN5 register (AGC_ATTEN5)

Address offset: 0x007C

Reset value: 0x0000 0041

AGC_ATTEN5 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_5[2:0]ATTEN_AGCGAIN_5[3:0]
rwrwrwrwrwrw

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.

ATTEN_AGCGAIN_5[3:0]: AGC attenuation control setting for step 5 for LNA+BOM point.

ST logo
ST logo

24.10.34 AGC_ATTEN6 register (AGC_ATTEN6)

Address offset: 0x0080

Reset value: 0x0000 0043

AGC_ATTEN6 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_6[2:0]ATTEN_AGCGAIN_6[3:0]
rwrwrwrwrwrwrw

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.

ATTEN_AGCGAIN_6[3:0]: AGC attenuation control setting for step 6 for LNA+BOM point.

ST logo
ST logo

24.10.35 AGC_ATTEN7 register (AGC_ATTEN7)

Address offset: 0x0084

Reset value: 0x0000 0047

AGC_ATTEN7 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_7[2:0]ATTEN_AGCGAIN_7[3:0]
rwrwrwrwrwrwrw

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.

ATTEN_AGCGAIN_7[3:0]: AGC attenuation control setting for step 7 for LNA+BOM point.

ST logo
ST logo

24.10.36 AGC_ATTEN8 register (AGC_ATTEN8)

Address offset: 0x0088

Reset value: 0x0000 004F

AGC_ATTEN8 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_8[2:0]ATTEN_AGCGAIN_8[3:0]
rwrwrwrwrwrwrw

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.

ATTEN_AGCGAIN_8[3:0]: AGC attenuation control setting for step 8 for LNA+BOM point.

ST logo
ST logo

24.10.37 AGC_ATTEN9 register (AGC_ATTEN9)

Address offset: 0x008C

Reset value: 0x0000 005F

AGC_ATTEN9 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.PGA_AGCGAIN_9[2:0]ATTEN_AGCGAIN_9[3:0]
rwrwrwrwrwrw

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.

ATTEN_AGCGAIN_9[3:0]: AGC attenuation control setting for step 9 for LNA+BOM point.

ST logo
ST logo

24.10.38 AGC1_ATTEN_TRIM register (AGC1_ATTEN_TRIM)

Address offset: 0x0090

Reset value: 0x0000 00AF

AGC1_ATTEN_TRIM register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AGC1_ATTEN_TRIM_IN[7:0]
rwrwrwrwrwrwrwrw

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.

24.10.39 AGC2_ATTEN_TRIM register (AGC2_ATTEN_TRIM)

Address offset: 0x0094

Reset value: 0x0000 00AF

AGC2_ATTEN_TRIM register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AGC2_ATTEN_TRIM_IN[7:0]
rwrwrwrwrwrwrwrw

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.

24.10.40 AGC3_ATTEN_TRIM register (AGC3_ATTEN_TRIM)

Address offset: 0x0098

Reset value: 0x0000 00AF

AGC3_ATTEN_TRIM register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AGC3_ATTEN_TRIM_IN[7:0]
rwrwrwrwrwrwrwrw

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.

24.10.41 AGC4_ATTEN_TRIM register (AGC4_ATTEN_TRIM)

Address offset: 0x009C

Reset value: 0x0000 00AF

AGC4_ATTEN_TRIM register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AGC4_ATTEN_TRIM_IN[7:0]
rwrwrwrwrwrwrwrw

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.

24.10.42 AGC_PGA_HWTRIM_OUT register (AGC_PGA_HWTRIM_OUT)

Address offset: 0x00A0

Reset value: 0x0000 0008

AGC_PGA_HWTRIM_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_HW_PGA_TRIM[3:0]
rrrr

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.

24.10.43 PA_REG register (PA_REG)

Address offset: 0x00A8

Reset value: 0x0000 0000

PA_REG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PA_DEGEN_ONRes.CFG_FILT[1:0]
rwrwrw

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

24.10.44 PA_HWTRIM_OUT register (PA_HWTRIM_OUT)

Address offset: 0x00AC

Reset value: 0x0000 0088

PA_HWTRIM_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PA_HW_DEGEN_TRIM[3:0]Res.Res.Res.Res.
rrrr

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

Bits 7:4 PA_HW_DEGEN_TRIM[3:0]: MSB part meaning:

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

ST logo
ST logo

24.10.45 RSSI_FLT register (RSSI_FLT)

Address offset: 0x00BC
Reset value: 0x0000 00E0
RSSI_FLT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.RSSI_FLT[3:0]FREEZE_ON_SYNC_OOK_PEAK_DECAYOOK_PEAK_DECAY[2:0]
rwrwrwrwrwrwrwrw

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:

ST logo
ST logo

24.10.46 RXADC_HWDELAYTRIM_OUT register (RXADC_HWDELAYTRIM_OUT)

Address offset: 0x00E8

Reset value: 0x0000 001B

RXADC_HWDELAYTRIM_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RXADC_HW_DELAYTRIM_Q[2:0]RXADC_HW_DELAYTRIM_I[2:0]
rrrrrr

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.

24.10.47 RX_AAF_HWTRIM_OUT register (RX_AAF_HWTRIM_OUT)

Address offset: 0x00F4

Reset value: 0x0000 0006

RX_AAF_HWTRIM_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AAF_HW_FCTRIM[3:0]
rrrr

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.

24.10.48 SINGEN_ANA_ENG register (SINGEN_ANA_ENG)

Address offset: 0x0100

Reset value: 0x0000 0000

SINGEN_ANA_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RFD_SINGEN_LBERFD_SINGEN_DIV2_PUPRFD_SINGEN_ENA
rwrwrw

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:

Bit 1 RFD_SINGEN_DIV2_PUP: This bit value is directly connected to the RFSUBG analog IP pin.

This bit must be set to:

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:

Bit 0 RFD_SINGEN_ENA: Enable SINGEN signal for the RFSUBGanalog IP.

This bit value is directly connected to the RFSUBG analog IP pin.

24.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

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.RFSUBG_ID[3:0]FQCY_BAND_ID[3:0]
rrrrrrrr

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

0100: 315 MHz band

24.10.50 RFANA_PLL_IN register (RFANA_PLL_IN)

Address offset: 0x010C

Reset value: 0x0000 0000

RFANA_PLL_IN register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.DIV12_SELRes.Res.Res.Res.Res.Res.
rw

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

Bit 6 DIV12_SEL: Select the 315 MHz or the 433 MHz band

– 0: the frequency band is 433 MHz when BS = 1 in the SYNTH_FREQ dynamic register.

– 1: the frequency band is 315 MHz when BS = 1 in the SYNTH_FREQ dynamic register.

Bits 5:0 Reserved, must be kept at reset value.

24.10.51 RF_FSM8_TIMEOUT register (RF_FSM8_TIMEOUT)

Address offset: 0x0124

Reset value: 0x0000 000A

RF_FSM8_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SYNTH_PDWN_TIMER[7:0]
rwrwrwrwrwrwrwrw

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)

24.10.52 RF_FSM9_TIMEOUT register (RF_FSM9_TIMEOUT)

Address offset: 0x0128

Reset value: 0x0000 0006

RF_FSM9_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.END_RX_TIMER[7:0]
rwrwrwrwrwrwrwrw

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)

24.10.53 RF_FSM10_TIMEOUT register (RF_FSM10_TIMEOUT)

Address offset: 0x012C

Reset value: 0x0000 0006

RF_FSM10_TIMEOUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.END_TX_TIMER[7:0]
rwrwrwrwrwrwrwrw

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)

24.10.54 SUBG_DIG_CTRL0 register (SUBG_DIG_CTRL0)

Address offset: 0x0144

Reset value: 0x0000 0000

SUBG_DIG_CTRL0 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.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.

24.10.55 RADIO_REG_REG_BLOCK register map

Table 115. RADIO_REG_REG_BLOCK register map and reset values

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x000RF_FSM0_TIMEOUTRes.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 value000000000
0x004RF_FSM1_TIMEOUTRes.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 value000001100
0x008RF_FSM2_TIMEOUTRes.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 value010100000
0x00CRF_FSM3_TIMEOUTRes.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 value001010000
0x010RF_FSM4_TIMEOUTRes.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 value000011111
0x014RF_FSM5_TIMEOUTRes.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 value000110011

Table 115. RADIO_REG_REG_BLOCK register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x018RF_FSM6_TIMEOUTRes.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 value00011001
0x01CRF_FSM7_TIMEOUTRes.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 value00000101
0x020AFC0_CONFIGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x024AFC1_CONFIGRes.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 value00011000
0x028AFC2_CONFIGRes.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_SYNCAFC_ENAFC_MODEAFC_PD_LEAKAGE[4:0]
Reset value11001000
0x02CAFC3_CONFIGRes.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_CHECKAFC_INIT_MODE
Reset value11101000

Table 115. RADIO_REG_REG_BLOCK register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x030CLKREC_CTRL0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSTFLT_LENCLKREC_P_GAIN_FAST[2:0]CLKREC_I_GAIN_FAST[3:0]
Reset value10111000
0x034CLKREC_CTRL1Res.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_SELCLKREC_P_GAIN_SLOW[2:0]CLKREC_I_GAIN_SLOW[3:0]
Reset value01011100
0x038DCREM_CTRL0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TRACK_GAINSTART_GAIN[4:0]
Reset value101000
0x03CDCREM_CTRL1Res.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
0x040IQC_CTRL0Res.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]FAST_GAIN[3:0]
Reset value11100011
0x044IQC_CTRL1Res.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 value00001000
0x048IQC_CTRL2Res.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 value00001000

Table 115. RADIO_REG_REG_BLOCK register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x04CIQC_CTRL3Res.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 value0111
0x050AGC_ANA_ENGRes.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]
Reset value00000000
0x054AGC0_CTRLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_ENAGC_START_ONHOLDAGC_HOLD_TIME[5:0]
Reset value10011001
0x058AGC1_CTRLRes.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 value01100010
0x05CAGC2_CTRLRes.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_MODEAGC_FREEZE_ON_STEADYAGC_FREEZE_ON_SYNCAGC_START_MAX_ATTENAGC_MEAS_TIME[3:0]
Reset value10101111

Table 115. RADIO_REG_REG_BLOCK register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x060AGC3_CTRLRes.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 value10010000
0x064AGC4_CTRLRes.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 value0010
0x068AGC_ATTEN0Res.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
0x06CAGC_ATTEN1Res.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
0x070AGC_ATTEN2Res.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
0x074AGC_ATTEN3Res.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
0x078AGC_ATTEN4Res.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
0x07CAGC_ATTEN5Res.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
0x080AGC_ATTEN6Res.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
0x084AGC_ATTEN7Res.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
0x088AGC_ATTEN8Res.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
0x08CAGC_ATTEN9Res.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 115. RADIO_REG_REG_BLOCK register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x090AGC1_ATTEN_TRIMRes.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
0x094AGC2_ATTEN_TRIMRes.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
0x098AGC3_ATTEN_TRIMRes.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
0x09CAGC4_ATTEN_TRIMRes.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
0x0A0AGC_PGA_HWTRIM_OUTRes.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 value1000
0x0A8PA_REGRes.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 value0PA_DEGEN_ONRes.CFG_FILT[1:0]0
0x0ACPA_HWTRIM_OUTRes.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 value1000

Table 115. RADIO_REG_REG_BLOCK register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x0BCRSSI_FLTRes.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 DECAYOOK_PEAK_DECAY[2:0]
Reset value11100000
0x0C8
- 0xD0
Reserved
0x0E8RXADC_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 value01101111
0x0F4RX_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 value0110
0x100SINGEN_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 value0000

Table 115. RADIO_REG_REG_BLOCK register map and reset values (continued)

OffsetRegister name
reset value
313029282726252423222120191817161514131211109876543210
0x108RF_INFO_OUTRes.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 value0100
0x10CRFANA_PLL_ANRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DIV12_SELRes.Res.Res.Res.
0
0x124RF_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 value00001010
0x128RF_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 value00000110
0x12CRF_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 value00000110
0x144SUBG_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 value0

24.11 frequency deviation value, that 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 Receive block also offers some reception improvement solution like:

24.11.1 Automatic gain control (AGC)

The AGC feature is based on:

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 260. AGC block diagram

AGC block diagram showing the interaction between the Analog domain and the Digital domain. In the Analog domain, an Analog FE CTRL word controls the ANALOG FE, which feeds into the ADC. The ADC output (9bits in) goes to the AGC block in the Digital domain. The AGC block has an 8bits output back to the ADC and a 4bits output (RSSI attenuation info) to the RSSI block. The ADC output also goes to a Decimation and Filtering block.
graph LR
    subgraph Analog_domain [Analog domain]
        AFE_CTRL[Analog FE CTRL word] --> ANALOG_FE[ANALOG FE]
        ANALOG_FE --> ADC[ADC]
    end
    subgraph Digital_domain [Digital domain]
        ADC -- "9bits in" --> AGC[AGC]
        AGC -- "8bits output" --> ADC
        AGC -- "4bits output" --> RSSI_INFO[RSSI attenuation info]
        RSSI_INFO --> RSSI[RSSI]
        ADC --> DECIM[Decimation and Filtering]
    end
  
AGC block diagram showing the interaction between the Analog domain and the Digital domain. In the Analog domain, an Analog FE CTRL word controls the ANALOG FE, which feeds into the ADC. The ADC output (9bits in) goes to the AGC block in the Digital domain. The AGC block has an 8bits output back to the ADC and a 4bits output (RSSI attenuation info) to the RSSI block. The ADC output also goes to a Decimation and Filtering block.

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:

Figure 261 shows the AGC attenuation versus the RX useful power (in dBm) for a GFSK modulation case.

Figure 261. AGC attenuation example

Line graph titled 'AGC CTRL on GFSK 38.4Kbps' showing AGC Analog FE Attenuations (dB) vs rx useful power(dBm). The graph shows a step-wise increase in attenuation as the received power increases. Two points are highlighted: (X -58, Y 0) and (X -9, Y 54).

AGC CTRL on GFSK 38.4Kbps

GFSK 3.840000e+01 Kbps, fdev 20 KHz, CHF 100 KHz, AGC on [ sync frozen, mtime 5, htime 20]

rx useful power(dBm)AGC Analog FE Attenuations (dB)
-580
-556
-5212
-4918
-4624
-4330
-4036
-3742
-3448
-3154
-2854
-2554
-2254
-1954
-1654
-1354
-1054
-754
-454
-154
254
Line graph titled 'AGC CTRL on GFSK 38.4Kbps' showing AGC Analog FE Attenuations (dB) vs rx useful power(dBm). The graph shows a step-wise increase in attenuation as the received power increases. Two points are highlighted: (X -58, Y 0) and (X -9, Y 54).

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 262. AGC high attenuation mode versus normal mode

Line graph titled 'GFSK 38.4Kbps 20KHz fdev 100KHz Chflt bw AGC attenuation in the high attenuation mode' comparing 'high attenuation mode on' (blue line) and 'high attenuation mode off' (red line) over 300 samples. The blue line shows a faster increase in attenuation compared to the red line.

GFSK 38.4Kbps 20KHz fdev 100KHz Chflt bw
AGC attenuation in the high attenuation mode

samples(at AGC output rate)high attenuation mode on (dB)high attenuation mode off (dB)
000
25126
502412
753618
1004824
1255430
1505436
1755442
2005448
2255454
2505454
2755454
3005454
Line graph titled 'GFSK 38.4Kbps 20KHz fdev 100KHz Chflt bw AGC attenuation in the high attenuation mode' comparing 'high attenuation mode on' (blue line) and 'high attenuation mode off' (red line) over 300 samples. The blue line shows a faster increase in attenuation compared to the red line.

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.

\[T_{\text{AGC meas}} = 2^{(\text{AGC\_MEAS\_TIME} + 2)} / f_{\text{SYS}}\]

ranging from 250 ns to 8.192 ms,

\[T_{\text{AGC hold}} = \text{AGC\_HOLD\_TIME} / f_{\text{SYS}}\]

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:

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).

24.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 116. 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
0541-Inf
1498-24.08
2455-18.06
3414-14.54
4372-12.04
5332-10.10
6294-8.52
7257-7.18
8221-6.02
9187-5.00
10156-4.08
11126-3.25
1297-2.50
1371-1.80
1445-1.16
1522-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:

24.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:

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:

Note: The IQC_CORRECT_OUT register is updated only:

The IQ compensation can be used with different configuration (managed through the IQC_CORRECTION_OUT register (IQC_CORRECTION_OUT) (status register), summarized in Table 117.

Table 117. IQC correction available configurations

IQC_ENABLEREUSE_CORRECTIONAssociated behavior
00The I/Q correction is effectively disabled: no compensation is applied.
10The I/Q adaptive correction is initialized with 0 for each packet.
11The 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).
01The 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:

\[\text{Fast Period} = \frac{4}{f_{\text{SYS}}} \times 2^{\text{FAST\_TIME}}\]

24.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):

The conversion from RSSI_LEVEL_xx value to dBm is given below.

Equation 7 – RSSI dBm conversion formula

\[RSSI_{in\_dBm} = \frac{RSSI\_LEVEL\_xx}{2} - 96 - Gain_{RX\_Chain}\]

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:

24.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):

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 24.14.4: Fast RX termination section to for details) and one of the stop condition for the RX Timer (refer to Section 24.14.3: RX Timer section for details).

24.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:

The algorithm is controlled by the following parameters:

\[T_{\text{AS meas time}} = \frac{16 \times 2^{\text{CHFL\_E}} \times 2^{\text{AS\_MEAS\_TIME}}}{F_{\text{SYS}}}\]

24.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:

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]:

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:

(AFC0_CONFIG)

In addition, the AFC uses the RSSI threshold (RSSI_THR[8:0] bit field in AS_QI_CTRL static register) information.

24.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):

In addition, the settings of the following parameters affect the behavior of the clock recovery algorithms:

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:

24.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.

24.12.1 Overview

The RRM embeds three features:

Figure 263. RRM overview

Block diagram of the Radio Registers Manager (RRM) overview. The RRM block contains an Arbiter, Register Access, UDRA (with AHB IF), and APB IF. It is connected to Radio Registers (8-bit bus), sysclk, rst_n, RAM (via AHB), and an APB Splitter. An interrupt signal is also shown.

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 (via AHB), and an APB Splitter. An interrupt signal is also shown. The RAM contains a command list (CMD0, CMD1, CMD2, CMD..., CMD NULL). The address of the first command of the command list is provided to the RRM.

Block diagram of the Radio Registers Manager (RRM) overview. The RRM block contains an Arbiter, Register Access, UDRA (with AHB IF), and APB IF. It is connected to Radio Registers (8-bit bus), sysclk, rst_n, RAM (via AHB), and an APB Splitter. An interrupt signal is also shown.

24.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:

UDRA usage

The sequence to use the UDRA is the following:

Note:

UDRA command list format in RAM

The command list is a group of commands that can be:

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 118. 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 114: 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 118. UDRA command format in RAM

Byte numberAddress in RAMByte valueDescription
1command_base_addr0x--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.
2command_base_addr+18-bit addressAddress of a Radio Register following the 8-bit address mapping (see Table 114: RADIO_REG_BLOCK register list)
3command_base_addr+21st dataIf 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.
4command_base_addr+32nd dataOptional (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+2command_base_addr+(n+1)nth dataOptional (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+3command_base_addr+n+20x--Optional: possible to chain other commands.
bit7: 1=write / 0=read
bit[6:0] = number of data to write or to read.

Table 118. UDRA command format in RAM

Byte numberAddress in RAMByte valueDescription
n+4command_base_addr+n+38-bit addressAddress of a Radio Register following the 8-bit address mapping (see Table 114: RADIO_REG_BLOCK register list)
n+5command_base_addr+n+41st dataIf write command: write first 8-bit data to be written.
If read command: location where the first 8-bit read data is available.
...
lastcommand_base_addr+last-10x00 / 0x80MANDATORY.
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 264 shows a visualization of an UDRA command list in a SoC RAM.

Figure 264. Overview of a possible UDRA command list in RAM

A diagram showing a RAM layout for a UDRA command list. The RAM is divided into four columns: bit 31 to bit 23, bit 23 to bit 15, bit 15 to bit 7, and bit 7 to bit 0. The layout shows various 'RAM case' blocks and specific command list bytes (byte0 to byte12) with their respective fields like 'data0 (read result / to write)', 'First Radio Reg @', 'R/W (1 bit)', and 'cmd length (7 bits)'. A legend indicates that the red-bordered area is the 'Part of the RAM containing the UDRA command list' and the grey area is 'Rest of the RAM'. Command 1 is green, Command 2 is yellow, and Null command is blue.
bit 31bit 23bit 15bit 7bit 0
RAM caseRAM caseRAM caseRAM case
RAM caseRAM caseRAM caseRAM case
cmd list byte2cmd list byte1RAM case
data0 (read result / to write)First Radio Reg @R/W (1 bit) | cmd length (7 bits)
cmd list byte6cmd list byte5cmd list byte3
R/W (1 bit) | cmd length (7 bits)data3 (read result / to write)data2 (read result / to write)data1 (read result / to write)
cmd list byte10cmd list byte9cmd list byte7
data2 (read result / to write)data1 (read result / to write)data0 (read result / to write)First Radio Reg @
RAM caseRAM casecmd list byte12 (null)cmd list byte11
R/W (1 bit) | 7'd0 (7 bits)data3 (read result / to write)
RAM caseRAM caseRAM caseRAM case

Legend:

MSv58323V1

A diagram showing a RAM layout for a UDRA command list. The RAM is divided into four columns: bit 31 to bit 23, bit 23 to bit 15, bit 15 to bit 7, and bit 7 to bit 0. The layout shows various 'RAM case' blocks and specific command list bytes (byte0 to byte12) with their respective fields like 'data0 (read result / to write)', 'First Radio Reg @', 'R/W (1 bit)', and 'cmd length (7 bits)'. A legend indicates that the red-bordered area is the 'Part of the RAM containing the UDRA command list' and the grey area is 'Rest of the RAM'. Command 1 is green, Command 2 is yellow, and Null command is blue.

Basic examples:

24.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 24.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.

24.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).

24.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).

24.13.1 Radio FSM sequence

This paragraph lists the main steps in Radio FSM sequence.

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 265 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 265. Radio FSM overview

Radio FSM overview diagram showing states: IDLE, ENA_RF_REG, WAIT_ACTIVE2, ACTIVE2, ENA_CURR, SYNTH_SETUP, CALIB_VCO, LOCKRXTX, LOCKONRX, EN_RX, EN_LNA, RX, END_RX, LOCKONTX, EN_PA, TX, PA_DWN_ANA, END_TX, and SYNTH_PWDN. Transitions are labeled with conditions and timeouts.

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

graph TD
    IDLE((IDLE)) -- "cmd_active | BACK2ACTIVE2" --> ENA_RF_REG((ENA_RF_REG))
    ENA_RF_REG -- "~(cmd_active | BACK2ACTIVE2)" --> IDLE
    ENA_RF_REG -- "(cmd_active | BACK2ACTIVE2) & ena_rf_reg timeout expired" --> WAIT_ACTIVE2((WAIT_ACTIVE2))
    WAIT_ACTIVE2 -- "~(cmd_active | i_back2active2)" --> IDLE
    WAIT_ACTIVE2 -- "~accurate_clock_rdy" --> IDLE
    WAIT_ACTIVE2 -- "(cmd_active | BACK2ACTIVE2) & accurate_clock_rdy" --> ACTIVE2((ACTIVE2))
    ACTIVE2 -- "cmd_active & accurate_clock_rdy" --> ENA_CURR((ENA_CURR))
    ENA_CURR --> SYNTH_SETUP((SYNTH_SETUP))
    SYNTH_SETUP -- "VCO_CALIB_REQ=1 & synth_setup timeout expired" --> CALIB_VCO((CALIB_VCO))
    CALIB_VCO -- "VCO calib done" --> LOCKRXTX((LOCKRXTX))
    SYNTH_SETUP -- "VCO_CALIB_REQ=0 & synth_setup timeout expired" --> LOCKRXTX
    LOCKRXTX -- "(lockrxtx timeout expired & pll_locked) & (rx_dir_active | i_lockrx_active)" --> LOCKONRX((LOCKONRX))
    LOCKRXTX -- "~cmd_active | (lockrxtx_timeout_eq & pll_locked)" --> SYNTH_PWDN((SYNTH_PWDN))
    LOCKRXTX -- "(LOCKTX active | tx_dir_active) & (lockrxtx timeout expired & pll_locked)" --> LOCKONTX((LOCKONTX))
    LOCKONRX -- "end_rx timeout expired" --> END_RX((END_RX))
    LOCKONRX -- "rx_dir_active & pll_locked" --> EN_RX((EN_RX))
    EN_RX -- "~rx_dir_active" --> END_RX
    EN_RX -- "en_rxtx timeout expired" --> EN_LNA((EN_LNA))
    EN_LNA -- "~rx_dir_active" --> END_RX
    EN_LNA -- "en_lna timeout expired" --> RX((RX))
    RX -- "~(LOCKRX active | rx_dir_active | BACK2LOCKON) | ~pll_locked" --> SYNTH_PWDN
    LOCKONTX -- "tx_dir_active & pll_locked" --> EN_PA((EN_PA))
    EN_PA -- "tx_dir_active & en_pa timeout expired" --> TX((TX))
    TX -- "~pll_locked | ~tx_dir_active" --> PA_DWN_ANA((PA_DWN_ANA))
    PA_DWN_ANA -- "pa_dwn_ana timeout expired" --> END_TX((END_TX))
    END_TX -- "end_tx timeout expired" --> SYNTH_PWDN
    SYNTH_PWDN -- "synth_pwdn timeout expired" --> IDLE

From any state
reset

MSv58324V1

Radio FSM overview diagram showing states: IDLE, ENA_RF_REG, WAIT_ACTIVE2, ACTIVE2, ENA_CURR, SYNTH_SETUP, CALIB_VCO, LOCKRXTX, LOCKONRX, EN_RX, EN_LNA, RX, END_RX, LOCKONTX, EN_PA, TX, PA_DWN_ANA, END_TX, and SYNTH_PWDN. Transitions are labeled with conditions and timeouts.

24.13.2 Radio FSM states overview

This section describes briefly the different states of the Radio FSM:

Table 119. Radio FSM state details

StateGoal of the stateEvent to exit the stateNext state
IDLEDefault state when no RF activity is requiredLOCK or TX or RX or calibration or back2active2 request active.ENA_RF_REG
ENA_RF_REGEnable the RF RegulatorNo more command active and back2active2 bit lowIDLE
RF_REG timeout expiration (to guarantee the RF_REG is ON)WAIT_ACTIVE2
WAIT_ACTIVE2Wait for confirmation the system clock is an accurate clock.Accurate clock is present and a command or back2active2 is still activeACTIVE2
No more command active and back2active2 bit lowENA_RF_REG
ACTIVE2Indicates accurate clock is presentNo more accurate clock presentWAIT_ACTIVE2
No more command active and back2active2 bit lowENA_RF_REG
Accurate clock is present and a command is activeENA_CURR
ENA_CURREnable the reference current blockOne clock cycle stateSYNTH_SETUP
SYNTH_SETUPStart the PLL analog block and wait for the RF regulator stabilizationSYNTH_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_VCOCalibration of the PLLVCO calibration end signal receivedLOCKRXTX
LOCKRXTXWait for the PLL lock informationLOCKRXTX 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 119. Radio FSM state details (continued)

StateGoal of the stateEvent to exit the stateNext state
LOCKONTXState 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 activeEN_PA
(No more CALIB_SAFEASK or LOCKTX or TX command active and BACK2LOCKON bit = 0) or PLL not lockedSYNTH_PDWN
EN_PAStart 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
TXTransmission phaseEnd of TX or end of Safe-ASK calibrationPA_DWN_ANA
PA_DWN_ANADelay to absorb the analog DAC dischargePA_DWN_ANA timeout expirationEND_TX
END_TXDelay to let the RF regulator stabilise after analog PA clock stopEND_TX timeout expirationLOCKONTX
LOCKONRXState 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 lockedSYNTH_PWDN
EN_RXStart the analog blocks linked to RX chain (Mixer, RXADC, LNA, etc.) and the PGA prechargeNo more CALIB_AGC_AAF or RX or RX_IQBIST command activeSYNTH_PWDN
EN_RX timeout expirationEN_LNA
EN_LNADisable 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 activeSYNTH_PWDN
EN_LNA timeout expirationRX
Table 119. Radio FSM state details (continued)
StateGoal of the stateEvent to exit the stateNext state
RXPhase of receptionEnd of RX or AGC/AAF calibration or RX_IQBIST sequencesEND_RX
END_RXDelay to let the RF regulator stabilise after analog RX chain stopEND_RX timeout expirationLOCKONRX

24.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 120. Timeout versus Radio FSM state exit
State to exitRegister / bit field for timeoutDefault value
EN_RF_REGRF_FSM0_TIMEOUT[7:0] = ENA_RFREG_TIMER0x0 = 0 µs
WAIT_ACTIVE2No timeout. Exit on conditions (refer to Table 119: Radio FSM state details for the list of conditions)N/A
ACTIVE2No timeout. Exit on conditions (refer to Table 119: Radio FSM state details for the list of conditions)N/A
ENA_CURRNo timeout. Exit immediately (1 clock cycle duration)N/A
SYNTH_SETUPRF_FSM1_TIMEOUT[7:0] = SYNTH_SETUP_TIMER0x06 = 6 µs
CALIB_VCONo timeout. Exit on end of calibration signal.N/A
LOCKRXTXIf 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
LOCKONTXNo timeout. Exit on conditions (refer to Table 119: Radio FSM state details for the list of conditions)N/A
EN_PARF_FSM5_TIMEOUT[7:0] = EN_PA_TIMER0x19 = 25 µs
TXNo Timeout. Exit on conditions (refer to Table 119: Radio FSM state details for the list of conditions)N/A
PA_DWN_ANARF_FSM6_TIMEOUT[7:0] = PA_DWN_ANA_TIMER0x19 = 25 µs
TX_ENDRF_FSM10_TIMEOUT[7:0] = END_TX_TIMER0x06 = 6 µs
LOCKONRXNo timeout. Exit on conditions (refer to Table 119: Radio FSM state details for the list of conditions)N/A
EN_RXRF_FSM4_TIMEOUT[7:0] = EN_RX_TIMER0x0A = 10 µs
EN_LNARF_FSM7_TIMEOUT[7:0] = ENA_LNA_TIMER0x05 = 5 µs
RXNo timeout. Exit on conditions (refer to Table 119: Radio FSM state details for the list of conditions)N/A
RX_ENDRF_FSM9_TIMEOUT[7:0] = END_RX_TIMER0x06 = 6 µs
SYNTH_PDWNRF_FSM8_TIMEOUT[7:0] = SYNTH_PDWN_TIMER0x0A = 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:

Note: On cut2, IDLE to ACTIVE2 transition is only few 16 MHz clock cycles (LDO_RF timeout duration reduced to 0 by default)

24.14 Radio controller

The radio controller manages:

24.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 121. Command list

Command nameDescriptionCommand ID
NOPNo 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
TXStart a TX sequence0x1
RXStart a RX sequence0x2
LOCKTXStart a RF sequence up to PLL locked based on TX frequency0x4
LOCKRXStart a RF sequence up to PLL locked based on RX frequency0x3
SABORTStop any on-going RX/TX/LOCKRX/LOCKTX command0x5
CALIB_SAFEASKLaunch a PA Safe-ASK calibration to get the max safe PA code to be used0xA
RELOAD_RX_TIMERReload with a new timeout and new stop conditions and restart the RX Timer0x6
CALIB_AGC_AAFStart 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 122. Concurrent command behavior overview

Active commandNew command request
LOCKRXLOCKTXRXTXSABORTCALIB_AGC_AAFCALIB_SAFEASKRELOAD_RX_TIMER
Noneexecuted
lockrx_active=1
executed
locktx_active=1
executed
rx_active=1
executed
tx_active=1
rejectedexecutedexecutedignored
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
executedrejectedignored
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
rejectedexecutedignored
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
rejectedrejectedexecuted
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
rejectedrejectedignored
SABORT
(sabort_req)
rejectedrejectedrejectedrejectedignoredrejectedrejectedignored
CALIB_AGC_AAFrejectedrejectedrejectedrejectedexecuted
rx_active=0
calib_agc_aaf_req=0
ignoredrejectedignored
CALIB_SAFEASKrejectedrejectedrejectedrejectedexecuted
tx_active=0
calib_ask_req=0
rejectedignoredignored
RELOAD_RX_TIMER
(reload pulse of A clock cycle)
N/AN/AN/AN/AN/AN/AN/AN/A

Table legend:

TX command

One the APB write with Opcode = 0x1 occurs in the COMMAND dynamic register, the Radio Controller:

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:

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:

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):

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:

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:

The aim of staying in LOCKONTX state can be:

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:

The aim of staying in LOCKONRX state can be:

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:

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:

The reload action must be requested while the Radio FSM is in RX state:

Refer to Section 24.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. 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. 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. 3. Define the result format (dB or linear) through the PA_CONFIG[13] = LIN_NLOG
  4. 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. 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. 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).

24.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:

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.

24.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:

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:

Table 123. RX Timer duration versus slow clock frequency

Slow clock frequencyPeriod unitMaximum 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:

An example of the pair RX Timer / RELOAD_RX_TIMER command could be:

  1. 1. Launch a RX command with a RX Timer programmed with a duration1 and stop condition based on CS_F
  2. 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. 3. the SW relaunches the RX Timer with a new duration2 based on valid PREAMBLE detection stop condition
  4. 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. 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.

24.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:

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:

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 24.11.5: Carrier sense.

24.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:

Those analog malfunctions can be:

The PLL lock failure is the only event that creates an HW abort reaction from the Radio FSM and so from the Radio Controller.

24.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:

Note: If the RX is stopped by a SABORT command, no Time Capture occurs in this configuration.

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.

24.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:

24.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:


Warning: For SW to avoid RAM corruption in reception:


24.15.2 Data buffer manager overview

The following figure provides an overview of the DBM.

Figure 266. Data Buffer Manager overview

Block diagram of the Data Buffer Manager (DBM) showing its internal structure and external interfaces.

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:

Block diagram of the Data Buffer Manager (DBM) showing its internal structure and external interfaces.

The DBM:

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 124.

Table 124. DBM initial internal FIFO prefetch

Transmission mode
(PCKT_CTRL[8:7] =
TX_MODE[1:0])
Packet length
PCKLEN_CONFIG[15:0]
Prefetch behavior
Normal mode0No prefetch as no payload
< 16prefetch PCKLEN[15:0] bytes
≥ 16prefetch 16 bytes
Direct through buffers0prefetch 16 bytes (as infinite TX up to SABORT)
< 16prefetch PCKLEN[15:0] bytes
≥ 16prefetch 16 bytes
Others (PN and Direct
through GPIOs)
Don't careNo 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).

24.15.3 Programming procedure

The SW must program the following information before to use the Data Buffers:

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:

At the end of the transfer, the SW can determine the number of bytes read or stored in the Data buffers following the formula:

\[(NB\_DATABUFFER\_USED[14:0] \times DATABUFFER\_SIZE[15:0]) + \\ CURRENT\_DATABUFFER\_COUNT[15:0]\]

In addition, the SW can define some thresholds (common to both Data Buffers):


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.


24.15.4 Error handling

The DBM manages a DBM FIFO error.

This error flag can be raised for two different reasons:

  1. 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")
  2. 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 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.

24.16 Sequencer

The Sequencer allows autonomous RF transfers management / chaining without CPU interfering.

Some example of scenarios are proposed in Section 24.23: Uses-cases: examples of scenarios with the Sequencer.

24.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. 1. Prepare in RAM a chained list of actions (called SeqActions in this document) through the GlobalConfiguration and ActionConfiguration RAM tables (see Section 24.16.4: Sequencer RAM tables for details).
  2. 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. 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. 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 267 is a generic representation of RAM tables used in chained sequences.

Figure 267. Sequencer actions list example

Diagram showing sequencer actions list example with GlobalConfiguration and ActionConfiguration blocks (0, 1, 2, 3) containing fields like NextAction1Ptr, NextAction1Interval, NextAction1Mask, NextAction1Ctrl, NextAction2Ptr, NextAction2Interval, NextAction2Mask, NextAction2Ctrl, ActionTimeout, and Command. Includes annotations for RAM location and pointer meanings.

The diagram illustrates the structure of RAM tables for sequencer actions. It includes a GlobalConfiguration block and four ActionConfiguration blocks (0, 1, 2, 3).

Annotations and connections:

MSv58326V1

Diagram showing sequencer actions list example with GlobalConfiguration and ActionConfiguration blocks (0, 1, 2, 3) containing fields like NextAction1Ptr, NextAction1Interval, NextAction1Mask, NextAction1Ctrl, NextAction2Ptr, NextAction2Interval, NextAction2Mask, NextAction2Ctrl, ActionTimeout, and Command. Includes annotations for RAM location and pointer meanings.

24.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:

On this trigger event, the Sequencer:

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)

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.

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 268 summarizes the flow of execution by the Sequence of a SeqAction.

Figure 268. SeqAction flow at Sequencer level

Flowchart of SeqAction flow at Sequencer level. The flow starts with a wait for a trigger (with or without SLEEP_EN). It then checks for a reset. If a reset occurred, it reloads static registers and reads the ActionConfigurationPtr. If not, it checks ForceClearEvents and ForceReload. It then reads NextAction1Mask and NextAction2Mask, waits for RRM register confirmation, and reloads dynamic registers. It reads ActionTimeout and builds ActionTimeoutTime. A wait loop follows for a match on NextAction1Mask or NextAction2Mask. Upon match, it stores the current machine time as NextActionAnchorTime and updates GlobalConfiguration.ActionConfigPtr. It then updates GlobalConfiguration.GlobalConfigCtrl[0] with SleepEn information, reads the NextActionInterval, and updates the Wakeup RFIP_WAKEUPTIME. Finally, it checks if SleepEn is 1 to determine the next wait state.
graph TD; Wait1[Wait trigger with SLEEP_EN] --> Wait2[Wait trigger without SLEEP_EN]; Wait2 --> Reset{Reset low power mode occurred since last SeqAction?}; Reset -- Yes --> ReloadStatic[Reload the Static registers from GlobalConfiguration RAM table to Configuration registers]; Reset -- No --> ReadGlobal2[Read GlobalConfiguration.GlobalConfigCtrl[2] = ForceClearEvents]; ReadGlobal2 -- ForceClearEvents = 1 --> ClearStatus[Clear internal seq_event_status[31:0]]; ClearStatus --> ReadGlobal1[Read GlobalConfiguration.GlobalConfigCtrl[1] = ForceReload]; ReadGlobal1 -- ForceReload = 1 --> ReloadStatic; ReadGlobal1 -- ForceReload = 0 --> ReadActionPtr[Read ActionConfigurationPtr from GlobalConfiguration RAM table]; 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 --> StoreAnchor1[Store current machine time as NextActionAnchorTime]; WaitMatch -- NextAction2Mask match --> StoreAnchor2[Store current machine time as NextActionAnchorTime]; StoreAnchor1 --> UpdatePtr1[Update GlobalConfiguration.ActionConfigPtr with ActionConfiguration.NextAction1Ptr]; StoreAnchor2 --> UpdatePtr2[Update GlobalConfiguration.ActionConfigPtr with ActionConfiguration.NextAction2Ptr]; UpdatePtr1 --> UpdateCtrl1[Update GlobalConfiguration.GlobalConfigCtrl[0] with ActionConfiguration.NextAction1Ctrl SleepEn information]; UpdatePtr2 --> 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; ActionTimeoutExpiry[ActionTimeout expiration] --> WaitMatch; NullPtr1[Null pointer] --> UpdatePtr1; NullPtr2[Null pointer] --> UpdatePtr2; ResetSignal[reset] --> Wait1; DisableSeq[SEQUENCER_CTRL.DISABLE_SEQ = 1] --> Wait1; OnLastWrite[On last write, command sent to the Radio Controller] --> ReadTimeout;
Flowchart of SeqAction flow at Sequencer level. The flow starts with a wait for a trigger (with or without SLEEP_EN). It then checks for a reset. If a reset occurred, it reloads static registers and reads the ActionConfigurationPtr. If not, it checks ForceClearEvents and ForceReload. It then reads NextAction1Mask and NextAction2Mask, waits for RRM register confirmation, and reloads dynamic registers. It reads ActionTimeout and builds ActionTimeoutTime. A wait loop follows for a match on NextAction1Mask or NextAction2Mask. Upon match, it stores the current machine time as NextActionAnchorTime and updates GlobalConfiguration.ActionConfigPtr. It then updates GlobalConfiguration.GlobalConfigCtrl[0] with SleepEn information, reads the NextActionInterval, and updates the Wakeup RFIP_WAKEUPTIME. Finally, it checks if SleepEn is 1 to determine the next wait state.

MSv58327V1

24.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 269. NextActionxMask mechanism overview (with x = 1 or 2)

NextActionxMask mechanism overview (with x = 1 or 2)
NextActionxMask mechanism overview (with x = 1 or 2)

A mask match event occurs as soon as:

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:

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 125. Sequencer internal events bus overview

Bit positionName / FeatureTreatment
31AGC_AAF calibration doneRecorded
30SAFE-ASK Calibration doneRecorded
29Reserved, no event associatedNot applicable
28RRM command endRecorded
27RRM command startedRecorded
26Reserved, no event associatedNot applicable
25Reserved, no event associatedNot applicable
24HW Analog failureRecorded
23Reserved, no event associatedNot applicable
22AHB Access Error (DATABUFFER_SIZE=0 or DBM internal FIFO overflow/underflow)Real-time event
21TX almost empty DATABUFFER1Real-time event
20TX almost empty DATABUFFER0Real-time event
19RX almost full DATABUFFER1Real-time event
18RX almost full databuffer0Real-time event
17DATABUFFER1 usedReal-time event
16DATABUFFER0 usedReal-time event
15Reserved, no event associatedReal-time event
14Valid SYNC word detectedReal-time event
13Preamble detectedReal-time event
12Carrier Sense detected (power on the antenna over programmed RSSI threshold)Real-time event
11Reserved, no event associatedNot applicable
10Reserved, no event associatedNot applicable
Table 125. Sequencer internal events bus overview
Bit positionName / FeatureTreatment
9Command rejectedRecorded
8SABORT doneRecorded
7RX Timer Stop conditions matchRecorded
6Reserved, no event associatedNot applicable
5Reserved, no event associatedNot applicable
4Fast RX TerminationRecorded
3CRC error on receptionRecorded
2Timeout on receptionRecorded
1Reception OKRecorded
0Transmission doneRecorded

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.

24.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:

Tips for users

This paragraph proposes some recommendations for few fields of the RAM tables.

24.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:

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:

Table 126. GlobalConfiguration RAM table

WordByte
addr
R/W
by seq
765432210
0x000x0R/WActionConfigPtr[7:0]
0x1ActionConfigPtr[15:8]
0x2ActionConfigPtr[23:16]
0x3ActionConfigPtr[31:24]
0x010x4R/W-Force
clear
events
Force
reload
Sleep
enable
0x5-
0x6-
0x7-
0x020x8RStaticConfigReg0[7:0]
0x9StaticConfigReg0[15:8]
0xAStaticConfigReg0[23:16]
0xBStaticConfigReg0[31:24]
0x030xCRStaticConfigReg1[7:0]
0xDStaticConfigReg1[15:8]
0xEStaticConfigReg1[23:16]
0xFStaticConfigReg1[31:24]
...0x10R...
0x11...
0x12...
0x13...
0x100x40RStaticConfigRegE[7:0]
0x41StaticConfigRegE[15:8]
0x42StaticConfigRegE[23:16]
0x43StaticConfigRegE[31:24]

24.18 GlobalConfiguration RAM table register descriptions

Table 127. GlobalConfiguration RAM table registers

Address OffsetRegister nameDescription
0x00WORD0Word0 register (ActionConfigPtr)
0x04WORD1Word1 register (GlobalConfigCtrl)
0x08 to 0x40WORDNWordN register with N = 2 to 0x10

24.18.1 Word 0 register (WORD0)

Address offset: 0x0000

Reset value: 0x0000 0000

Word 1 register

31302928272625242322212019181716
ACTIONCONFIGPTR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ACTIONCONFIGPTR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.18.2 Word1 register (WORD1)

Address offset: 0x0004

Reset value: 0x0000 0000

Word1 register(a)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FORCECLEAREVENTSFORCERELOADSLEEPEN
rwrwrw

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.

ST logo
ST logo

24.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

31302928272625242322212019181716
STATIC_CONFIG_REGX[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
STATIC_CONFIG_REGX[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.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:

Table 128. ActionConfiguration RAM table

WordByte addrR/W by SeqBitfield (8 bits)
0x000x0RNextAction1Ptr[7:0]
0x1NextAction1Ptr [15:8]
0x2NextAction1Ptr [23:16]
0x3NextAction1Ptr [31:24]
0x010x4RNextAction1Interval[7:0]
0x5NextAction1Interval[15:8]
0x6NextAction1Interval[23:16]
0x7NextAction1Interval[31:24]
0x020x8RNextAction1Mask[7:0]
0x9NextAction1Mask[15:8]
0xANextAction1Mask[23:16]
0xBNextAction1Mask[31:24]

Table 128. ActionConfiguration RAM table

WordByte addrR/W by SeqBitfield (8 bits)
0x030xCRNextAction1Ctrl[7:0]
0xDNextAction1Ctrl[15:8]
0xENextAction1Ctrl[23:16]
0xFNextAction1Ctrl[31:24]
0x040x10RNextAction2Ptr[7:0]
0x11NextAction2Ptr [15:8]
0x12NextAction2Ptr [23:16]
0x13NextAction2Ptr [31:24]
0x050x14RNextAction2Interval[7:0]
0x15NextAction2Interval[15:8]
0x16NextAction2Interval[23:16]
0x17NextAction2Interval[31:24]
0x060x18RNextAction2Mask[7:0]
0x19NextAction2Mask[15:8]
0x1ANextAction2Mask[23:16]
0x1BNextAction2Mask[31:24]
0x070x1CRNextAction2Ctrl[7:0]
0x1DNextAction2Ctrl[15:8]
0x1ENextAction2Ctrl[23:16]
0x1FNextAction2Ctrl[31:24]
0x080x20RActionTimeout[7:0]
0x21ActionTimeout [15:8]
0x22ActionTimeout [23:16]
0x23ActionTimeout [31:24]
0x090x24RDynamicConfigReg0[7:0]
0x25DynamicConfigReg0[15:8]
0x26DynamicConfigReg0[23:16]
0x27DynamicConfigReg0[31:24]
0x0A0x28RDynamicConfigReg1[7:0]
0x29DynamicConfigReg1[15:8]
0x2ADynamicConfigReg1[23:16]
0x2BDynamicConfigReg1[31:24]

Table 128. ActionConfiguration RAM table

WordByte addrR/W by SeqBitfield (8 bits)
...0x..R...
0x.....
0x.....
0x.....
0x130x4CRDynamicConfigRegA[7:0] (= COMAND[7:0])
0x4DDynamicConfigRegA[15:8] (= COMAND[15:8])
0x4EDynamicConfigRegA[23:16] (= COMAND[23:16])
0x4FDynamicConfigRegA[31:24] (= COMAND[31:24])

Table 129. ActionConfiguration RAM table registers list

Address OffsetRegister nameDescription
0x00WORD0Word0 register
0x04WORD1Word1 register
0x08WORD2Word2 register
0x0CWORD3Word3 register
0x10WORD4Word4 register
0x14WORD5Word5 register
0x18WORD6Word6 register
0x1CWORD7Word7 register
0x20WORD8Word8 register
0x24 to 0x4CWORDNWordN registers with N = 0x9...0x13

24.20 ActionConfiguration RAM table register descriptions

24.20.1 Word 0 register (WORD0)

Address offset: 0x0000

Reset value: 0x0000 0000

Word 0 register

31302928272625242322212019181716
NEXTACTION1PTR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NEXTACTION1PTR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.20.2 Word 1 register (WORD1)

Address offset: 0x0004

Reset value: 0x0000 0000

Word 1 register

31302928272625242322212019181716
NEXTACTION1INTERVAL[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NEXTACTION1INTERVAL[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.20.3 Word 2 register (WORD2)

Address offset: 0x0008

Reset value: 0x0000 0000

Word 2 register

31302928272625242322212019181716
NEXTACTION1MASK[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NEXTACTION1MASK[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

ST logo
ST logo

24.20.4 Word 3 register (WORD3)

Address offset: 0x0004
Reset value: 0x0000 0000
Word3 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NEXT1FORCECLEAREVENTSNEXT1FORCERELOADNEXT1SLEEPEN
rwrwrw

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

Note: The whole 32-bit word is written back in the GlobalConfigurationControl word in RAM.

ST logo
ST logo

24.20.5 Word 4 register (WORD4)

Address offset: 0x0010

Reset value: 0x0000 0000

Word 4 register

31302928272625242322212019181716
NEXTACTION2PTR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NEXTACTION2PTR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.20.6 Word 5 register (WORD5)

Address offset: 0x0014

Reset value: 0x0000 0000

Word 5 register

31302928272625242322212019181716
NEXTACTION2INTERVAL[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NEXTACTION2INTERVAL[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.20.7 Word 6 register (WORD6)

Address offset: 0x0008

Reset value: 0x0000 0000

Word 6 register

31302928272625242322212019181716
NEXTACTION2MASK[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NEXTACTION2MASK[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.20.8 Word 7 register (WORD7)

Address offset: 0x001C
Reset value: 0x0000 0000
Word7 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NEXT2FORCECLEAREVENTSNEXT2FORCERELOADNEXT2SLEEPEN
rwrwrw

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

Note: The whole 32-bit word is written back in the GlobalConfigurationControl word in RAM.

ST logo
ST logo

24.20.9 Word 8 register (WORD8)

Address offset: 0x0020

Reset value: 0x0000 0000

Word 8 register

31302928272625242322212019181716
ACTIONTIMEOUT[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ACTIONTIMEOUT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.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

31302928272625242322212019181716
DYNAMIC_CONFIG_REGX[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DYNAMIC_CONFIG_REGX[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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.

24.21 Time management unit (TMU)

The time Management unit oversees two main features:

Figure 270. Time Management Unit overview

Block diagram of the Time Management Unit (TMU) overview. The diagram shows the following components and connections: 
  - Inputs: CLK_SLOW_32K, clk_sys_16M_accurate_ready, and CLK_SYS_16M.
  - WakeUp block: Contains a Slow Clock Counter. It receives CLK_SLOW_32K and outputs slow_clock_counter[27:0] to the Timer Management block, and absolute_time_valid to the Time Interpolator.
  - Timer Management block: Contains Time Interpolator and Slow Clock Measurement blocks. The Time Interpolator receives slow_clock_counter[27:0] and current_counter_value[14:4], and outputs absolute_time[31:0] to Global registers, Sequencer, and Radio Controller. The Slow Clock Measurement block receives CLK_SYS_16M and clk_sys_16M_accurate_ready, and interacts with Global registers.
  - 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].
  - Sequencer and Radio Controller blocks receive absolute_time[31:0].
Block diagram of the Time Management Unit (TMU) overview. The diagram shows the following components and connections: - Inputs: CLK_SLOW_32K, clk_sys_16M_accurate_ready, and CLK_SYS_16M. - WakeUp block: Contains a Slow Clock Counter. It receives CLK_SLOW_32K and outputs slow_clock_counter[27:0] to the Timer Management block, and absolute_time_valid to the Time Interpolator. - Timer Management block: Contains Time Interpolator and Slow Clock Measurement blocks. The Time Interpolator receives slow_clock_counter[27:0] and current_counter_value[14:4], and outputs absolute_time[31:0] to Global registers, Sequencer, and Radio Controller. The Slow Clock Measurement block receives CLK_SYS_16M and clk_sys_16M_accurate_ready, and interacts with Global registers. - 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]. - Sequencer and Radio Controller blocks receive absolute_time[31:0].

24.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:

directly by the XO (HSE mode) or by the RC64MPLL block locked on the XO (HSIPLL mode)

The results of the calculations are available in the some Global Misc registers:

Note: This bit clears both min and max value (statistics part) but does not impact the current counter value.

Note: This bit clears both min and max value (statistics part) but does not impact the current counter value.

The slow clock period is:

\[\text{Period}_{\text{SLOW\_CLOCK}} = \frac{\text{SCM\_COUNTER\_CURRVAL} \times \text{Period}_{f_{\text{SVS}}}}{32}\]

24.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:

313029282726252423222120191817161514131211109876543210
Slow clock counter partInterpolated 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:

The MR_SubG IP sub-blocks using the time interpolation are:

24.22 Wakeup and sleep management

The MR_SubG IP manages information towards the SoC concerning sleep allowance and wakeup request.

24.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:

24.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:

Figure 271. Wakeup block overview

Block diagram of the Wakeup block overview showing the interaction between the Sequencer, WakeUP block, Time Management unit, Retained Registers, and Misc Registers.

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 compares the slow_clock_counter[27:0] with RFIP_WAKEUP_TIME[31:4] and generates RFIPWakeupEvent and RFIPCompareEvent. The CPU Compare unit compares the slow_clock_counter[27:0] with CPU_WAKEUP_TIME[31:4] and generates CPUWakeupEvent and CPUCompareEvent. Retained Registers provide RFIP_WAKEUP_EN, RFIP_WAKEUPTIME[31:0], SOC_WAKEUP_OFFSET[7:0], CPU_WAKEUPTIME[31:0], and CPU_WAKEUP_EN. Misc Registers provide RFIP_WAKEUP_F and CPU_WAKEUP_F. The WakeUP block outputs slow_clock_counter[27:0] to the Time Management unit, rfipwakeup_event, irq_wakeup_rfip, irq_wakeup_cpu, and cpuwakeup_event. Control signals include rfip_wakeup_en_clear, cpu_wakeup_en_clear, absolute_time, absolute_time_valid, and clk_sys_16m.

Block diagram of the Wakeup block overview showing the interaction between the Sequencer, WakeUP block, Time Management unit, Retained Registers, and Misc Registers.

Slow clock counter management

The Wakeup block embeds a counter clocked by the slow clock, used:

The slow clock counter:

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:

The wake-up management is done in two steps:

  1. 1. send a wakeup event to the Power controller of the SoC to restart power and clocks,
  2. 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:

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 272 and Figure 273 show the timeline and contributors versus events.

Figure 272. Sequencer wakeup event generation

Figure 272: Sequencer wakeup event generation timeline diagram. The diagram shows a horizontal timeline with two main events: 'SoC (power controller) wakeup event' and 'Sequencer trigger event'. The 'SoC (power controller) wakeup event' is marked with an orange vertical line and is associated with the formula: ABSOLUTE_TIME[31:4] = RFIP_WAKEUPTIME[31:4] - SOC_WAKEUP_OFFSET[7:0] (and RFIP_WAKEUP_EN bit is set). The 'Sequencer trigger event' is marked with a purple vertical line and is associated with the formula: ABSOLUTE_TIME[31:0] = RFIP_WAKEUPTIME[31:0] (and RFIP_WAKEUP_EN bit is set). A double-headed orange arrow between the two events is labeled 'SOC_WAKEUP_OFFSET duration' and 'SoC power and clocks startup/settlement + 3 slow clock cycles (to restore interpolated time)'. The timeline ends with a blue arrow pointing to 'absolute_time[31:0]'. A legend indicates that orange represents absolute time and purple represents interpolated absolute time.

ABSOLUTE_TIME[31:4] = RFIP_WAKEUPTIME[31:4] - SOC_WAKEUP_OFFSET[7:0]
(and RFIP_WAKEUP_EN bit is set)

SoC (power controller) wakeup event

ABSOLUTE_TIME[31:0] = RFIP_WAKEUPTIME[31:0]
(and RFIP_WAKEUP_EN bit is set)

Sequencer trigger event

absolute_time[31:0]

SOC_WAKEUP_OFFSET duration
SoC power and clocks startup/settlement
+ 3 slow clock cycles (to restore interpolated time)

Legend:
• Orange : Absolute time
• Purple : Interpolated absolute time

Figure 272: Sequencer wakeup event generation timeline diagram. The diagram shows a horizontal timeline with two main events: 'SoC (power controller) wakeup event' and 'Sequencer trigger event'. The 'SoC (power controller) wakeup event' is marked with an orange vertical line and is associated with the formula: ABSOLUTE_TIME[31:4] = RFIP_WAKEUPTIME[31:4] - SOC_WAKEUP_OFFSET[7:0] (and RFIP_WAKEUP_EN bit is set). The 'Sequencer trigger event' is marked with a purple vertical line and is associated with the formula: ABSOLUTE_TIME[31:0] = RFIP_WAKEUPTIME[31:0] (and RFIP_WAKEUP_EN bit is set). A double-headed orange arrow between the two events is labeled 'SOC_WAKEUP_OFFSET duration' and 'SoC power and clocks startup/settlement + 3 slow clock cycles (to restore interpolated time)'. The timeline ends with a blue arrow pointing to 'absolute_time[31:0]'. A legend indicates that orange represents absolute time and purple represents interpolated absolute time.

Figure 273. CPU wakeup event generation

Timing diagram for CPU wakeup event generation showing timeline 'absolute_time[31:0]', SoC wakeup event and CPU wakeup interrupt with formulas and durations.
Timing diagram for CPU wakeup event generation showing timeline 'absolute_time[31:0]', SoC wakeup event and CPU wakeup interrupt with formulas and durations.

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 24.16.2: Sequence description.

24.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.

24.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:

This scenario uses only 2 ActionConfiguration RAM tables:

Note: If the delay between each RX re-trial is not fixed, then:

Figure 274. RX with Auto-Ack use-case through Sequencer example

Diagram showing the RX with Auto-Ack use-case through Sequencer example. It includes GlobalConfiguration, ActionConfiguration0, ActionConfiguration1, and CPU IRQ Handlers.

Located at RAM Base + offset indicated by the retained SEQ_GLOBALTABLE_PTR register field

GlobalConfiguration

ActionConfiguration0

ActionConfiguration1

CPU IRQ Handlers

Possible IRQ on RX_DONE if patch on the fly on the ACK packet is needed

Diagram showing the RX with Auto-Ack use-case through Sequencer example. It includes GlobalConfiguration, ActionConfiguration0, ActionConfiguration1, and CPU IRQ Handlers.

24.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]:

Figure 275 shows the RAM table associated to this scenario.

Figure 275. Sniff mode use-case through Sequencer example

Diagram showing the Sniff mode use-case through Sequencer example, including GlobalConfiguration, ActionConfiguration0, ActionConfiguration1, and CPU IRQ Handlers.

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):

ActionConfiguration0:

ActionConfiguration1:

CPU IRQ Handlers

Diagram showing the Sniff mode use-case through Sequencer example, including GlobalConfiguration, ActionConfiguration0, ActionConfiguration1, and CPU IRQ Handlers.

This scenario involves 2 ActionConfiguration tables:

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.

24.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. 1. Starting by a RX with Fast RX Termination mode enabled
  2. 2. Once the RX is launched:
    1. 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
    2. b) if a CS flag is raised, the device must interrupt the on-going RX by a SABORT command
  3. 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. 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:

Figure 276. LBT use-case through Sequencer example

Diagram showing the LBT use-case through Sequencer example, including GlobalConfiguration, ActionConfiguration0, ActionConfiguration1, ActionConfiguration2, ActionConfiguration3, and ActionConfiguration4, with their respective fields and interconnections.

The diagram illustrates the LBT use-case through the Sequencer, showing the flow between various configuration blocks and their interconnections.

GlobalConfiguration (Static Configuration registers values):
- ActionConfigPtr
- GlobalConfigCtrl
- Static Configuration registers values
- Located at RAM Base + offset indicated by the retained SEQ_GLOBALTABLE_PTR register field

ActionConfiguration0 (Command = RX):
- 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

ActionConfiguration1 (Command = TX):
- 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

ActionConfiguration2 (Command = SABORT):
- 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

ActionConfiguration3 (Command = RX):
- 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

ActionConfiguration4 (Command = SABORT):
- 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

Interconnections:
- ActionConfiguration0 points to ActionConfiguration2.
- ActionConfiguration2 points to ActionConfiguration3.
- ActionConfiguration3 points to ActionConfiguration4.
- ActionConfiguration0 points to ActionConfiguration1.
- ActionConfiguration1 points to CPU IRQ Handlers.
- ActionConfiguration2 points to CPU IRQ Handlers.
- ActionConfiguration3 points to CPU IRQ Handlers.
- ActionConfiguration4 points to CPU IRQ Handlers.

Diagram showing the LBT use-case through Sequencer example, including GlobalConfiguration, ActionConfiguration0, ActionConfiguration1, ActionConfiguration2, ActionConfiguration3, and ActionConfiguration4, with their respective fields and interconnections.

This scenario involves 6 ActionConfiguration tables:

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.