A Button-processing Program designed for the Propeller DC Generator Simulation Device Controller

With the application of an internal timer(LPC2114),this paper seeks a solution for the time delay without occupying CPU operating time and software reusability by adopting an object-oriented design method in C++ language as multi-buttons input,thus simplifies and improves the button-processing program.This method has been applied to the Propeller DC Generator Simulation Device Controller.The experiment testified that the controller can respond to the button input accurately and spontaneously with a narrow margin of error caused by trembling from the button pressing.