S32K3 Clock Switching Flowchart

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K3 Clock Switching Flowchart

Jump to solution
1,006 Views
kscz
Contributor III

The S32K3 reference manual section 25.4.1.2 has the following flowchart:

Screenshot From 2026-02-23 16-25-05.png

 And the MUX_0_CSC register description has this diagram in section 25.5.6:

Screenshot From 2026-02-23 16-25-32.png

 What is "MUX_n_CSC[CG]" referring to in the register??

0 Kudos
Reply
1 Solution
970 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

The MC_CGM provides two types of clock multiplexers:
- Hardware‑controlled clock multiplexers, and
- Software‑controlled clock multiplexers.

Figure 124 illustrates the clock‑switching flow for software‑controlled multiplexers only, using either the synchronous/graceful clock gate bit (MUX_n_CSC[CG]) or the forced clock gate bit (MUX_n_CSC[FCG]).

The CG/FCG bits are available only on software‑controlled multiplexers, such as MUX_5_CSC, MUX_6_CSC, etc.

image.png

To determine whether a specific multiplexer is hardware‑ or software‑controlled, refer to the MUX_n_CSC register description in the reference manual.

BR, Petr

View solution in original post

0 Kudos
Reply
2 Replies
971 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

The MC_CGM provides two types of clock multiplexers:
- Hardware‑controlled clock multiplexers, and
- Software‑controlled clock multiplexers.

Figure 124 illustrates the clock‑switching flow for software‑controlled multiplexers only, using either the synchronous/graceful clock gate bit (MUX_n_CSC[CG]) or the forced clock gate bit (MUX_n_CSC[FCG]).

The CG/FCG bits are available only on software‑controlled multiplexers, such as MUX_5_CSC, MUX_6_CSC, etc.

image.png

To determine whether a specific multiplexer is hardware‑ or software‑controlled, refer to the MUX_n_CSC register description in the reference manual.

BR, Petr

0 Kudos
Reply
954 Views
kscz
Contributor III

Yeah, I see this now. I was confused because I assumed that "software-controlled" meant that the software that I was writing controlled it, but both types of clock muxes have software initiate the control.

0 Kudos
Reply