9.7 Enabling a Peripheral

To enable a peripheral clocked by a generic clock, the following parts of the system must be configured:

  • A running clock source selected from the OSCCTRL or OSC32KCTRL peripheral
  • A Generic Clock Generator must be configured to use one of the running clock sources, and the generator must be enabled
  • The Peripheral Channel that provides the Generic Clock to the peripheral must be configured to use the enabled and running Generic Clock Generator
  • The user interface of the peripheral needs to be unmasked in the Main Clock Masking registers (MCLK.xxxMASK). If this is not done, all registers of the peripheral will read as 0x00, and any writes to the peripheral will be discarded.