PSoC 6 Peripheral Driver Library
Clock Trim (ILO, PILO)

General Description

These functions perform a single trim operation on the ILO or PILO.

Each function's parameter is the actual frequency of the clock. To measure the frequency, use the functions described in the Clock Measurement API.

To trim the clock as close as possible to the target frequency, multiple calls to the trim function may be needed. A typical usage example is to:

  1. Call the clock measurement functions to get the actual frequency of the clock
  2. Call the trim function, passing in the measured frequency
  3. Repeat the above until the trim function reports that the clock is trimmed to within limits.

API Reference