In block 764, the control circuitry can determine whether the determined number “n” of monitored switching events has occurred. If not, the counter may be decremented (block 764) and the controller can continue monitoring switching events (block 762) and storing the indications of dead time length (block 763). Otherwise, the controller can check the indications of dead time length (block 766). This check can take a variety of forms, as described in greater detail below. If the check indicates that the deadtime is too long (block 767a), then the control circuitry can decrease the dead time (block 767b), and the process can repeat. If the dead time is too short (block 768a), then the controller can decrease the deadtime (block 768b), and the process can repeat. Otherwise, if the dead time is neither too long nor too short, the process can repeat without increasing or decreasing the dead time.