2 Overview

The application creates a current spike detector that continuously monitors the motor current independently of the CPU. On start-up, the device measures the maximum voltage across the current shunt resistor. To prevent false alarms, and to provide some error margins, this current limit is increased by 50 mV. If a spike is detected, the TCD will automatically shut down the motor, and the code will wait for a button press to turn the motor on again.

Figure 2-1. Code Flow Diagram