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:

Figure 3. AHB up/down converter

Block diagram of the AHB up/down converter showing the interaction between the MRSubGHz block, APB/AHB block, Up and Down converters, System bus matrix, and RCC.

The diagram illustrates the AHB up/down converter architecture. It shows the following components and connections:

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.

Block diagram of the AHB up/down converter showing the interaction between the MRSubGHz block, APB/AHB block, Up and Down converters, System bus matrix, and RCC.

The management of data transfer versus clock domain and possible clock switch request is done using state machines:

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: