沈阳大学毕业设计(论文)基于单片机的微型打印机的设计专业:电子信息工程班级:2007级1班姓名:沈阳大学毕业设计(论文)目录引言..............................................................................................................................31微型打印机的概述...........................................................................61.1背景和意义...............................................................................................61.2微型打印机的发展和现状..........................................................................61.3常见的微型打印机.....................................................................................82针式微型打印机的驱动原理.............................................................................102.1微型打印机的组成...................................................................................102.2打印原理.................................................................................................113电路分析...................................................................................................................133.1硬件系统组成..........................................................................................133.2复位检测电路..........................................................................................143.3直流电机驱动..........................................................................................153.4驱动放大电路..........................................................................................173.5打印同步信号检测...................................................................................193.6微型打印机通讯控制...............................................................................204芯片资料及主要功能...........................................................................................224.1单片机的介绍及应用...............................................................................224.2芯片功能介绍..........................................................................................234.3内部结构.................................................................................................244.4引脚功能说明..........................................................................................254.5芯片主要性能..........................................................................................274.6芯片工作概况..........................................................................................275软件设计...................................................................................................................305.1打印格式.................................................................................................305.2程序设计.................................................................................................32结论............................................................................................36致谢............................................................................................37参考文献.............................................................................................38沈阳大学毕业设计(论文)附录............................................................................................40附录1:原理图.............................................................................................40附录2:主要程序..........................................................................................41沈阳大学毕业设计(论文)No1摘要本世纪以来,微型打印机广泛使用在各个行业,比如仪器仪表、超级市场、便利店、邮政、银行、烟草专卖、公用事业抄表、移动警务系统、移动政务系统等等。微型打印机相对以往的大型打印机来说,有它自身的特点,它不但体积小,质量轻,方便携带和安装,而且打印速度也挺快,特别是在一些特殊的地方大型的打印机没办法使用,微型打印机就有了用武之地。所以,微型打印机会随着社会的发展而逐渐的被人们所接受,发挥着它独有的作用。本文在分析微型打印机机芯M-150II结构的基础上,详细介绍了针点式微型打印机的驱动原理,提出了一种以单片机AT89C2051为核心的微型打印机设计方案。本文在打印同步信号检测、字库芯片的选用、不同电平信号器件的混合接口、通讯接口、系统EMC性能等方面较现有针点式微型打印机系统有所创新和改进。这种基于单片机的微型打印机系统设计,不仅具有良好的打印速度和打印效果,还大大地简化了硬件电路,节约了成本,为自己提供了一种低成本、高可靠性的产品。关键词:单片机、嵌入式系统、微型打印机、M-150II、AT89C2051沈阳大学毕业设计(论文)No2AbstractSincethiscentury,microprinterhasbeenwidelyusedinmanyfields,suchasmeters,supermarket,stores,mail,Bank,cigarette,mobilewarningsystem,mobilepolicyaffairssystem,andsoon.Forthelargeprinter,microprinterhaveitsowncharacteristics,Itnotonlysmallvolume,lightquality,easytocarryandinstallation,andtheprintingspeedalsoprettyquickly,especiallythelargeprintercouldn'tbeusedinsomespecialplace,microprinterwillhaveClimaticallyalmost.So,microprinterwillhaveagoodopportunitywiththedevelopmentofsocietyandgraduallyacceptedbypeople,playingtheroleofitsunique.ThispaperintroducedthedriveprincipleoftheMicroDotPrinterandputforwardaplanabouthowtodesignaMicroDotPrinterwiththeMCUAT89C2051asthecore,baseontheanalysisofthestructureofM-150II.ThisarticlehasgreatinnovationandtheimprovementrelativetoexistingMicroDotPrinterintheprintingsynchronizedsignaldetection,intheselectionofflashchip,inthemixconnectionofdifferentsignallevel,incommunicationinterfaceandinEMCperformanceofsystem,etc.ThiskindofprintersystembasedonMCUnotonlyhasquickerprintingspeedandbetterprintingeffectbutalsosimplifiesthehardwarecircuitandreducesthecostgreatly.Thepaperprovidesakindoflowcostandtheredundantreliableproductforme.Keywords:MCU;EmbeddedSystem;MicroPrinter;M-150II;AT89C2051沈阳大学毕业设计(论文)No3引言近年,随着社会的高速发展,生活日新月异。人们的工作的也很繁杂,各种大大小小的公司都得到了