Example #1
0
 public static void CLRWDT(Data.Command com)
 {
     Data.ResetWatchdog();
     Data.SetRegisterBit(Data.Registers.STATUS, Data.Flags.Status.TO, true);
     Data.SetRegisterBit(Data.Registers.STATUS, Data.Flags.Status.PD, false);
     if (Data.GetRegisterBit(Data.Registers.OPTION, Data.Flags.Option.PSA) == true)
     {
         Data.ResetPrePostScaler(); //Reset Postscaler if assigned to WDT
     }
 }