3. AHB up/down converter
STM32WL3Rxx devices can support several system clock frequencies (see Figure 14: System clock details).
The SUBG IP does not need more than 16 MHz to achieve the processing of the radio transfers while the system (CPU, DMA, memories) may require higher performance for application purpose.
To avoid useless overconsumption, AHB up/down converter block has been added to introduce an adjustable divider by one, two or four on AHB and APB bus of the MR_SUBG (linked to AHBRF / APB2 bridge) versus the system bus matrix frequency. This block allows dividing by one, two or four the system clock for the MR_SUBG IP of the device.
When the system and the MR_SUBG share the same frequency, the AHB up/down converter block only transfers the AHB signals from one clock domain to the other.
Note: The system clock must be always equal or faster than MR_SUBG clock when radio is used (no other frequencies).
3.1 AHB up/down converter description
The AHB up/down converter role is to allow STM32WL3Rxx devices to support a fast system clock (up to PLL clock frequency output).
The AHBUPCONV block manages:
- – proper on-the-fly (up-to-down and down-to-up) frequency switching by safely updating the ratio (one, two, four) between the system and the MR_SUBG IP frequencies.
- – AHB and APB data transfer between MR_SUBG running at the same frequency or half or quarter of the frequency of the rest of the system (AHB and APB) that may run up to PLL clock frequency output.
Figure 3. AHB up/down converter

The diagram illustrates the AHB up/down converter architecture. It shows the following components and connections:
- MRSubGHz block (top left) operating at 16 MHz, connected via AHB to the Up converter.
- APB/AHB block (bottom left) connected via APB to MRSubGHz and via AHB to the Down converter.
- Up converter (center top) with divider ratios 1x / 2x / 3x / 4x. It receives Control and status data from the RCC and sends AHB signals to the System bus matrix.
- Down converter (center bottom) with divider ratios 4x / 3x / 2x / 1x. It sends AHB signals to the System bus matrix and receives Control and status data from the RCC.
- System bus matrix (right) with AHB slave input and AHB master output connections.
- RCC (top right) receives Control and status data and sends an Interrupt to CPU.
Frequency information is provided at the top right: 16 MHz, 32 MHz, 64 MHz when HSESEL=0 and 16 MHz, 48 MHz, when HSESEL=1. The diagram is labeled MSv58742V1 in the bottom right corner.
The management of data transfer versus clock domain and possible clock switch request is done using state machines:
- – one for the AHB master up converter
- – one for the AHB slave down converter.
When a CPU/system clock frequency switch is needed (activate or deactivate the divider by two between the system and the MR_SUBG), the user must request the new system clock targeted frequency in the RCC_CSCMDR.REQUEST bit (see Clock switch command register (RCC_CSCMDR) for details).
When receiving a new divider ratio to apply (from the RCC), the AHBUPCONV block:
- • Informs the AHBDOWNCONV block (managing the APB transfer from the CPU to the MR_SUBG APB registers)
- • Check the traffic on the AHB bus between MR_SUBG and CPU:
- – if no transfer is on going, it uses the HREADY signal on the bus to hold any potential transaction that could occur during the clock frequency switch.
- Note: To respect the AHB lite protocol, the HREADY signal is fallen down only after the address phase of a new transfer, the new transfer phase data being stored internally in the converter.
- – if an AHB transfer is on-going, it wait until the current AHB transfer ends and then hold the AHB traffic as explain above.
- • In parallel, the AHBDOWNCONV block does the same action to hold any new transfer on the slave path of the data path (CPU access to MR_SUBG APB registers)
- • Once the AHBUPCONV block has hold its AHB line and has the confirmation from the AHBDOWNCONV the other AHB2APB data path is also safely held, it allows the RCC block to change the system clock frequency to the requested one.
- • When the new system clock frequency is stable, the RCC informs the AHBUPCONV it is done. Then:
- – the AHBUPCONV release the AHB transfers
- – the AHBUPCONV informs the AHBDOWNCONV is can also releases the AHB/APB transfers.