These MPLAB X bare metal examples in Getting Started with High Frequency Crystal Oscillator (XOSCHF) in AVR® DB (TB3272), show how the XOSCHF and Clock Failure Detection (CFD) is used on the AVR DB family of microcontrollers.