基于单片机微型打印机系统控制设计

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于单基片机的微型打印机的设计

摘要

目前,电子领域正向着数字化、信息化、微型化发展。打印机作为数字输出设备之一也朝着多功能、高性能的方向发展。微型打印机是电子信息领域一种很重要的输出设备。

本文设计的主要目的是运用单片机来控制微型打印机来实现打印的目的。本设计基于荣达RD-E系列微型打印机,以单片机P80C51以核心元件,辅以必要的外围电路(包括实时时钟电路、温度传感器和液晶显示模块、按键、打印机),采用并行接口技术,同时通过液晶显示器显示打印的数字和文字信息。可以实现打印一段固定的文字和单个任意的数字,同时把打印的内容显示在液晶屏上。本文主要用温度传感器测量温度,再通过单片机控制热敏电阻打印机打印出小票,设计了时钟接口电路,打印机接口电路,温度传感器接口电路和液晶显示接口电路。再辅助软件设计来进行调试。

关键词:打印机,单片机,液晶显示器,DS1302时钟

BASED 0N A SINGLE SUBSTRATE MACHINE

DESIGNED FOR MICRO PRINTER

ABSTRACT

At present, the electronics field is developing towards digitalization, information, miniaturation. Printer, as one of the digital output devices are also moving into the direction of multi-function, high performance. The micro printer.It is a kind of important electronic information field output device.

Design is the main purpose of this article is to use single-chip microcomputer to control the micro printer for printing purposes. This design based on RD - E series micro printer, P80C51 MCU core components, supplemented by the necessary peripheral circuit (including real time clock circuit, temperature sensor and LCD display module, keys, printer), USES the parallel interface technology, at the same time, through the LCD display to print Numbers and text messages. Can achieve print a fixed text and a single arbitrary Numbers, and at the same time to print the contents of the display on the LCD screen. Temperature is measured in this paper, with a temperature sensor, and controlled by single chip thermal resistor printer to print out receipts, designs the interface circuit, clock printer interface circuit and temperature sensor interface circuit and LCD interface circuit. Auxiliary software designed to debug.

KEY WORDS:printers, microcontroller, liquid crystal display, DS1302 clock

目录

前言 (1)

第1章系统总体设计 (2)

§1.1总体设计框图 (2)

第2章系统硬件设计 (3)

§2.1 主控制器部分的设计 (3)

§2.1.1主控芯片的选择 (3)

§2.1.2复位电路 (4)

§2.1.3 晶振电路 (5)

§2.2.1 显示系统的方案的选择 (5)

§2.2.2 12864F 简介 (6)

§2.2.3 12864F引脚说明 (6)

§2.2.4 12864F 液晶显示电路 (8)

§2.3.1 方案的选择 (8)

§2.3.2 温度芯片的选择 (9)

§2.3.2 DS18B20内部结构描述 (9)

§2.3.3 DS18b20温度系统电路 (10)

§2.4 时钟系统电路设计 (10)

§2.4 .1 时钟芯片选择 (10)

§2.4 .2 DS1302管脚及寄存器说明 (10)

§2.4 .3 DS1302时钟电路 (11)

§2.5 键盘 (12)

§2.6 微型打印机 (12)

§2.6.1 特点与性能 (12)

§2.7 打印机接口电路 (13)

§2.8硬件原理图 (14)

第3章软件设计 (15)

§3.1并口连接方式例程 (15)

§3.2 按键接口设计 (16)

§3.3 12864,DS1302,DS18B20的接口程序 (17)

结论 (38)

参考文献 (39)

致谢 (41)

相关文档
最新文档