Patent ID: 9599977
Date: 2017-03-21
CPC Classifications: G05B

Claim:
1. An apparatus comprising: a power train having a power train input and a power train output, wherein the power train is configured to transfer electrical energy from the power train input to a load coupled to the power train output in conformity with one or more power train control signals; a scheduler that receives events from the power train and, responsive to each particular event, scheduling execution of a thread of control instructions responsive to the particular event, wherein the thread is selected from a plurality of threads; and a processor that executes the threads of control instructions scheduled by the scheduler, such that for each particular event the processor generates one or more power train control signals responsive to the particular event within a first switching cycle of receipt of the particular event or within a second switching cycle immediately subsequent to the first switching cycle, wherein the processor interleaves execution of respective instructions of two or more of the plurality of threads, in order to reduce latency in execution of the plurality of threads, and wherein each particular thread of the plurality of threads maintains one or more state variables associated with the particular thread independent from state variables associated with threads other than the particular thread.