Title: C language in the AVR Microcontroller Application of micro-thermal printer
ABSTRACT
With the increasing demand of people's lives and the accelerated market segmentation, the printer miniaturization becomes deveolping trend. The miniature printer for printing method in accordance with the impact printer, mini thermal printer and the micro thermal transfer printer, etc. The mini thermal printer has a small size, light weight, low noise, high speed, high-definition, easy connection, complete functions, etc., are widely used in small ticket printing, POS, vehicle traveling data recorder, medical equipment, industrial control and other various instruments printout of the most Ideal match product.
Small size of the single chip, low cost and for control of the design, making it as the core of intelligent control devices are widely used in industrial control, smart instrumentation, home appliances, electronic communication products, electronics and other fields Equipment and electronic products. Posed by the microcontroller chip as the core of embedded systems has become a modern electronic system of the most important component.
As a high-level programming languages like C language in the form of natural language and mathematical formulas, problem-oriented or process with the characteristics of the applications in large high code efficiency, structured, readable, portable, easy maintenance features have become the current trend of development.
The purpose of this design is to establish a C language programming AVR microcontroller based mini thermal printer independent system. The system uses LTP1245 thermal printer, the AVR Atmega16 microcontroller as the control chip, FAN8200 as the driver chip of the thermal printer paper feed stepper motor, through the serial port to communicate with the host computer. The software design includes a control part, a motor drive part and testing part, at the same time the control flow of the software system is given.
Keywords: AVR microcontroller; thermal printer; C language