This article is to design and develop a programming electrocardiogram (ECG) generator. It can be used to test the efficiency of algorithms and to calibration and maintenance of electrocardiograph equipment. We simplified and modified the three coupled ordinary differential equations of McSharry's model to single differential equation to generate the synthetic ECG waveforms. This generator can provide the adjusted amplitude, heart rate, QRS-complex slopes, and P- and T-wave position parameters. The system can set the rage of the average gear rate from 20 to 120 beat per minute (BPM) with an adjustable variation of 1 BPM. The parameters of the adjusted synthetic ECG model can be stored in Flash memory of the system through Universal Serial Bus (USB) 2.0 interface. The results were generated four different ECG waveforms for test which are Lead I, Lead II, hyperkalaemia and left bundle branch block. According to the experimental results, the system can not only generate the ECG waveforms of the setting heart rate but also can adjust the different types of ECG waveforms. ECG generator will generate the synthetic electrocardiograms for testing the electrocardiogram analytic algorithms. ECG generator will generate the synthetic electrocardiograms for testing the electrocardiogram analytic algorithms.