If, on the other hand, the voltage controller does determine, at block 104, that a voltage change is above the voltage-change threshold, it may imply that the device is experiencing a potentially dangerous high-transient voltage change (e.g., a large spike or large drop in voltage). Thus, the voltage controller would then control the voltage according to an oversampling cyclic control pattern at block 108. The oversampling cyclic control pattern may be similar to the steady-state cyclic control pattern in that it is also a cyclic PWM pattern. However, in this embodiment, the oversampling cyclic control pattern is a faster control pattern (i.e., it has a higher frequency), and is used to dictate the frequency with which the voltage controller issues control commands in a high-transient voltage situation (referred to in this example as an oversampling control frequency), rather than in steady-state operation.