The first Einthoven record on an electrocardiogram (ECG), which was launched in 1904.The paper deals with the problem of developing a generator of reference signals of electro-cardiography based on STM32 microcontrollers. The objectives of the study is to prepare a math-ematical description of the signals based on the Matlab package for the subsequent sending ofthese signals to the microcontroller Board. A hardware solution is proposed to create a program-mable multichannel electrocardiograph signal generator using only a programmable logic matrix based on STM32 microcontrollers and a small number of passive external components. A mathe-matical model of generating an artificial electrocardiogram and its application in a programma-ble simulator of signals of complex shape. When constructing medical decision support systems, computer tools are often used to provide not only the registration of biological signals, but also a quantitative assessment of certain parameters of these signals. For example, modern digital elec-trocardiographs allow you to automatically measure the amplitude-time characteristics of individ-ual elements of the electrocardiogram (ECG), which carry diagnostic information about the pro-cesses of excitation and relaxation of areas of the heart muscle. The use of an ECG generator has several advantages: reducing test time, simplifying the use of ECG signals without the need for expensive methods.