According to the characteristics of ST7920 LCD controller and dot-matrix LCD modules (KXM12864M)
this paper draws the hardware interface circuit between ST7920 and single-chip. On the basis of Bresenham algorithm
the article adopts the calculation method which uses discrete integer increments instead of rate increments and proposes deduction process of optimization algorithm which can apply to MCU drawing operations. And then the painting line
round and other operations can be realized through the C programming language. The actual project results show that the optimization algorithm has simple and good-transplant characteristics. And it can offer a new approach for drawing other graphics on small and medium-sized instrumentation display equipments.