CR Trimming Functions (PDL_CR) | 赛普拉斯半导体
CR Trimming Functions (PDL_CR)
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.