15.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:

  1. 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.
  2. 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.
  3. 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.