To run the example project on ATmega328PB Xplained Mini Kit, program the CFD
fuse bit by setting ‘Enabled’ and the Clock Selection Fuse bits by setting ‘Ext. clock;
Start-up time PWRDWN/RESET: 6 CK/14 CK + 0 ms’, as shown in the figure below. Figure 2-1. Fuse Register Setting
Once the fuse settings have been set and the example project firmware image
is programmed, the ATmega328PB device on the Xplained board works with the external 16
MHz clock and turns on LED0. Once the external 16 MHz clock is shorted, the
ATmega328PBʼs CFD mechanism will detect it. Then, auto-switch to the internal 1 MHz RC
oscillator and set the Clock Failure Flag bit, which triggers the LED toggling in this
example project, as shown in the figure below.
Figure 2-2. Example Project Firmware
Flowchart
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.