We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest! Update Here
Stay in the loop with the latest from Microchip! Update your profile while you are at it. Update Here
Complete your profile to access more resources.Update Here!

What is CFD?


CFD enables the microcontroller (MCU) to detect if the primary (main) clock source stops and then automatically switch over to an alternative internal clock source. This adds an additional layer of robustness in situations where the external crystal is damaged or the external clock signal stops. Once configured, the switch happens automatically, and an interrupt can be generated for the MCU to take appropriate actions. 

Example APM Timing Diagram

Design Benefits of CFD


CFD allows the MCU to utilize an external clock/crystal, but in the event that the source fails, the CFD will automatically switch the MCU to an internal clock to continue operation. This allows the MCU to go into recovery mode, taking the actions needed to set the application into a safe state or to generate necessary error signaling. Since the internal clock speed may not be equal to the external clock speed, the CFD interrupt could also be used to make the necessary speed adjustments to continue normal operation.

Configuring CFD


The CFD system is “set it and forget it”. First, select which clock source to monitor. This clock source could be external or internal. Next, set the interrupt enable flag to generate an interrupt if the source fails. Finally, enable the CFD. The application is now set up to switch over to an internal clock.

Functional Safety on 8-bit MCUs


When safety is critical to the success of your design, our proven experience will help you meet functional safety requirements while minimizing cost and development time. Our Functional Safety Ready 8-bit microcontrollers (MCUs) encompass the latest hardware safety features to help you achieve ISO26262, IEC 61508 and IEC 60730 certification and increase reliability and redundancy in your applications. These devices also come with dedicated safety documentation and a development tool ecosystem that will help you qualify your projects.