以下是网学网为您推荐的其他类别-C语言在AVR单片机控制的微型热敏打印机中的应用,希望本篇文章对您学习有所帮助。
论文字数:9282,页数:35
论文题目:C语言在AVR单片机控制的微型热敏打印机中的应用
摘 要
随着人们生活需求的不断提高和市场细分的加速,打印机小型化成为发展趋势。微型打印机按照打印方式分为微型针式打印机、微型热敏打印机和微型热转印打印机等。而微型热敏打印机具有体积小、重量轻、噪音低、高速度、高清晰、连接方便、功能完备等优点,广泛应用于小票据打印、POS机、汽车行驶记录仪、医疗仪器、工业控制以及其他各种仪器仪表打印输出的最理想匹配产品。
由于单片机芯片的微小体积,极低的成本和面向控制的设计,使得它作为智能控制的核心器件被广泛地应用于工业控制、智能仪器仪表、家用电器、电子通信产品等各个领域中的电子设备和电子产品中。由单片机为核心构成的单片嵌入式系统已成为现代电子系统中最重要的组成部分。
作为高级编程语言的C语言其形式类似自然语言和数学公式,具有面向问题或过程的特点,其在大的应用当中代码效率高、结构性、可读性、可移植、易维护的特点已成为当前的发展趋势。
本次设计的目的就是要建立一个由C语言编程的基于AVR单片机控制的微型热敏打印机的独立系统。系统采用LTP1245热敏打印机芯为对象,由AVR单片机ATMEGA16做为主控制芯片,FAN8200做为热敏打印机走纸系统步进电机驱动芯片,通过串口与上位机进行通讯。软件设计包括了控制部分、走纸电机驱动部分及检测部分,给出了软件系统的控制流程。
关 键 词:AVR单片机;热敏打印机;C语言
论文类型:应用研究
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
TYPE OF THESIS: Applied Research
目 录
1 绪论 1
1.1 论文研究的背景 1
1.2 相关研究和本论文的创新 1
1.3 本论文的内容安排 2
2 微型热敏打印机的原理及选取 3
2.1 微型热敏打印机原理 3
2.2 微型热敏打印机的选取 3
2.3 LTP1245微型热敏打印机芯的工作原理 3
2.3.1 走纸单元 4
2.3.2 热敏头单元 5
3 系统硬件设计 9
3.1 系统整体结构框图 9
3.2 主控制电路 9
3.3 走纸电机驱动电路 11
3.4 检测保护电路 14
4 系统软件设计 17
4.1 系统整体工作流程 17
4.2 数据加载及打印工作流程 17
4.3 走纸电机工作流程 21
4.4 字库的建立 23
5 结论与展望 25
致 谢 27
参考文献 29