S32K3 Clock Switching Flowchart

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

S32K3 Clock Switching Flowchart

Jump to solution
694 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
658 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
659 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
642 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
%3CLINGO-SUB%20id%3D%22lingo-sub-2321542%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K3%20Clock%20Switching%20Flowchart%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321542%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20S32K3%20reference%20manual%20section%26nbsp%3B25.4.1.2%20has%20the%20following%20flowchart%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20From%202026-02-23%2016-25-05.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20From%202026-02-23%2016-25-05.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377598iF84A4AACB8AF2850%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20From%202026-02-23%2016-25-05.png%22%20alt%3D%22Screenshot%20From%202026-02-23%2016-25-05.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83And%20the%20MUX_0_CSC%20register%20description%20has%20this%20diagram%20in%20section%2025.5.6%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20From%202026-02-23%2016-25-32.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20From%202026-02-23%2016-25-32.png%22%20style%3D%22width%3A%20321px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377599iEBC53F943BF790FE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20From%202026-02-23%2016-25-32.png%22%20alt%3D%22Screenshot%20From%202026-02-23%2016-25-32.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83What%20is%20%22MUX_n_CSC%5BCG%5D%22%20referring%20to%20in%20the%20register%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2322135%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20Clock%20Switching%20Flowchart%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322135%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYeah%2C%20I%20see%20this%20now.%20I%20was%20confused%20because%20I%20assumed%20that%20%22software-controlled%22%20meant%20that%20the%20software%20that%20I%20was%20writing%20controlled%20it%2C%20but%20both%20types%20of%20clock%20muxes%20have%20software%20initiate%20the%20control.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2321853%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20Clock%20Switching%20Flowchart%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321853%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3EThe%20MC_CGM%20provides%20two%20types%20of%20clock%20multiplexers%3A%3CBR%20%2F%3E-%20Hardware%E2%80%91controlled%20clock%20multiplexers%2C%20and%3CBR%20%2F%3E%3CSPAN%3E-%20Software%E2%80%91controlled%20clock%20multiplexers%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFigure%20124%20illustrates%20the%20clock%E2%80%91switching%20flow%20for%20software%E2%80%91controlled%20multiplexers%20only%2C%20using%20either%20the%20synchronous%2Fgraceful%20clock%20gate%20bit%20(MUX_n_CSC%5BCG%5D)%20or%20the%20forced%20clock%20gate%20bit%20(MUX_n_CSC%5BFCG%5D).%3C%2FP%3E%0A%3CP%3EThe%20CG%2FFCG%20bits%20are%20available%20only%20on%20software%E2%80%91controlled%20multiplexers%2C%20such%20as%20MUX_5_CSC%2C%20MUX_6_CSC%2C%20etc.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20536px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20536px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F377660iA3C2942A03B820F1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20determine%20whether%20a%20specific%20multiplexer%20is%20hardware%E2%80%91%20or%20software%E2%80%91controlled%2C%20refer%20to%20the%20MUX_n_CSC%20register%20description%20in%20the%20reference%20manual.%3C%2FP%3E%0A%3CP%3EBR%2C%20Petr%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E