12.6.2.1 Initialization
Before a generator is enabled, the corresponding clock source should be enabled. The peripheral clock must be configured as outlined by the following steps:
- The generic clock generator division
factor must be set by performing a single 32-bit write to the Generic Clock Generator
Division register (GENDIV):
- The generic clock generator that will be selected as the source of the generic clock by setting the ID bit group (GENDIV.ID).
- The division factor must be
selected by the DIV bit group (GENDIV.DIV)Note: Refer to Generic Clock Generator Division register (GENDIV) for details.
- The generic clock generator must be enabled by performing a single 32-bit write to the
Generic Clock Generator Control register (GENCTRL):
- The generic clock generator will be selected as the source of the generic clock by the ID bit group (GENCTRL.ID)
- The generic clock generator must
be enabled (GENCTRL.GENEN=
1
)Note: Refer to Generic Clock Generator Control register (GENCTRL) for details.
- The generic clock must be configured by performing a single 16-bit write to the Generic
Clock Control register (CLKCTRL):
- The generic clock that will be configured via the ID bit group (CLKCTRL.ID)
- The generic clock generator used
as the source of the generic clock by writing the GEN bit group (CLKCTRL.GEN)Note: Refer to Generic Clock Control register (CLKCTRL) for details.