You are here

CR Trimming Functions (PDL_CR) | Cypress Semiconductor

CR Trimming Functions (PDL_CR)

Last Updated: 
Feb 27, 2018
  • Trim the high-speed CR clock frequency
  • Adjust for process variation
  • Adjust for ambient temperature changes
  • Register locking to prevent unintended changes
  • Base Timer output for manual trim setting calculation
Symbol Diagram
Cr_Trimming_Symbol Diagram

General Description

The CR Component enables you to change the factory-set trimming values for the high-speed CR clock (CLKHC) from firmware. This can significantly improve the clock accuracy from the value quoted in the device datasheet.

The CR module from the Peripheral Driver Library (PDL) is automatically added to your project. It includes functions to read and modify the trimming values for frequency trimming, which adjusts for variations due to the manufacturing process, and temperature trimming, which adjusts for the temperature at which the device is operating. The Base Timer channel 0 can be used to measure the frequency and calculate the required trim values in real-time.