In order to improve developing efficiency, a general-purpose electromechanical controller is designed based on MSP430F5438A.The paper analyzes the key technologies applied to improve the versatility and reliability. Before entering MCU’s A/D and counter module, external analog inputs of resistance, voltage, current and pulse from different sensors are processed by corresponding circuits. And digital input and output is isolated from the microcontroller by the photoelectric coupler. After appropriate operations, the controller can drive power equipments through the multi-channel precision current source composed of 12-bit D/A converter DAC7578 and V/I converter XTR115, and communicate with other equipments via RS485 bus. Furthermore, anti-interference methods by using watchdog, soft trap and reasonable wiring are studied in the paper. Tests show that the system is characterized with strong practicality and generality.