摘要自动售货机是近些年来兴起的一种通过FPGA或者单片机等硬件支持的智能设备。它广泛的应用于商场,公寓,火车汽车站等人流较密集且购物需求大的地方。自动售货机通过硬件支持,通过以编写好的程序自动出货自动找零,但货物一旦售罄就需人为去补充。人们生活水平不断提高,对自动售货机的需求量就越大,所以对它的研究和完善具有重要的商业价值。传统的售货机只能用现金支付,随着近些年的发展移动终端支付方式越来越受欢迎。一些售货机也开始拓展移动支付的功能,极大地满足了人们的需要,给他们提供了许许多多的便利。同时,移动支付功能也克服了现金支付找零会存在的一些问题。本课题主要是研究一款基于89C51单片机的自动售货机,并实现自由选货、出货、收钱、找零等功能。本文介绍了单片机的选型、总的设计框架、软件仿真、硬件电路的实现等各个模块。关键词:自动售货机;单片机;编译仿真AbstractVendingmachinesarethekindofintelligentdevicesthathavebeensupportedbyhardwaresuchasFPGAsormicrocontrollersinrecentyears.Itiswidelyusedinshoppingmalls,apartments,busstationsandothercrowdedandshoppingneedsoflargeplaces.Automaticvendingmachinethroughhardwaresupport,throughthepreparationofagoodprogramautomaticallysenttoautomaticallychangethezero,butthegoodsoncesoldouttobeaddedtothepeople.People'slivingstandardscontinuetoimprove,thedemandforvendingmachinesisgreater,soitsresearchandimprovementhasimportantcommercialvalue.Traditionalvendingmachinescanonlybepaidincash,withthedevelopmentofmobileterminalsinrecentyears,moreandmorepopularwaytopay.Somevendingmachineshavebeguntoexpandthefunctionofmobilepayment,greatlytomeettheneedsofpeople,toprovidethemwithalotofconvenience.Atthesametime,themobilepaymentfunctionalsoovercomessomeoftheproblemsthatcashpaymentswillhave.Thistopicismainlytostudya89C51single-chipvendingmachines,andtoachievefreeselectionofgoods,shipping,money,changeandotherfunctions.Thisarticledescribesthesingle-chipselection,theoveralldesignframework,softwaresimulation,hardwarecircuitimplementationandothermodules.Keywords:automaticvendingmachine;80C51MCU;compiledsimulation目录1.引言...............................................11.1...