- DFLLRC32M.COMP1 = (DFLLCompare >> 8);
- DFLLRC32M.COMP2 = (DFLLCompare & 0xFF);
- DFLLRC32M.CALA = (DFFLCal >> 8);
- DFLLRC32M.CALB = (DFFLCal & 0xFF);
+ DFLLRC32M.COMP1 = (DFLLCompare & 0xFF);
+ DFLLRC32M.COMP2 = (DFLLCompare >> 8);
+
+ if (Reference == DFLL_REF_INT_USBSOF)
+ {
+ NVM.CMD = NVM_CMD_READ_CALIB_ROW_gc;
+ DFLLRC32M.CALA = pgm_read_byte(offsetof(NVM_PROD_SIGNATURES_t, USBRCOSCA));
+ DFLLRC32M.CALB = pgm_read_byte(offsetof(NVM_PROD_SIGNATURES_t, USBRCOSC));
+ NVM.CMD = 0;
+ }
+