已阅读5页,还剩15页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
A1A0A2A3A4A5A6A8A8A9A7A10A11A12A13A14A151课程设计课题名称点阵汉字显示系统设计姓名学号班级电子专业电子技术系指导教师完成日期20091224A16A17A18A19A20A21A22A23A23A24A25A26A27A28A29A30A312点阵汉字显示系统设计摘要本文阐明用单片机控制单色显示屏的方法,对LED显示模块单元如何进行行列信号控制及信号传输中的驱动问题进行了研究。讨论了单片机控制系统中关键的数据处理以及发送问题,结果表明采用并行数据输入、串行数据及同步时钟输出的专用电路可大大减少CPU的辅助时间,提高数据的发送速度。关键词LED;单片机;显示屏;驱动;扫描ALEDDISPLAYSYSTEMCONTROLBASEONMCUSTUDENTXUYUTEACHERSHENZHICHUNABSTRACTTHISTEXTCLARIFIESTOUSEASINGLECHIPCONTROLMONOCHROMEMANIFESTATIONTOHOLDOFMETHOD,SHOWTHEMOLDPIECEHOWTHEUNITCARRYONTHEROWORCOLUMNSIGNALCONTROLANDSIGNALTODELIVERTOTHELEDMEDIUMOFDROVEAPROBLEMTORESEARCHDISCUSSINGAPROBLEMOFSINGLECHIPINACONTROLSYSTEMHOWDOSEITPROCESSINGTHEKEYDATAANDSENDINGOUT,RESULTINDICATEADOPTIONPARALLELCOMMUNICATION,STRINGDATAINLINEANDSYNCHRONOUSTHECLOCKOUTPUTSAPPROPRIATIONELECTRICCIRCUITCANREDUCECPUASSISTANTTIMECONSUMEDLY,THEEXALTATIONDATASENDSOUTSPEEDKEYWORDSLED;SURFACEMOUNTASSEMBLIES;DISPLAY;DRIVER;SCANA32A33A34A35A36A37A38A39A39A40A41A42A43A44A45A46A473摘要2一课程提出的背景A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A49二设计内容与要求A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A49三系统整体方案设计A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A49四系统硬件电路的设计A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A48A5041单片机系统及外围电路42列驱动电路43行驱动电路44硬件电路五基本显示原理A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A5251点阵原理52移位锁存器74HC595原理53G17810G7531G20051G7242G1319G12661ULN2803G12628G1183六程序设计A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A53A5361G4462时中G7041G12255G5219G252串行中G7041G12255G12255G5219七程序清单A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A53A54八总结,感悟A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A53A55九参考文献A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A51A56A57目录A58A59A60A61A62A63A64A65A65A66A67A68A69A70A71A72A734一课题提出的背景G3324大G3423G2842G3342、G17722G12461、G11733G3848、G3332G19093G12461以及G2520G12879G2162G1119G12395G2487G12573G17246G7481G17246G3822的G3342G6164G19668G16213用LED点阵显示G3282G5430G2656G8733G4395。LED行G1006G5062G6116G1038G980G1022G5567速发G4649的G7044G1864G1147G1006,G5078G3342G12366间G5052大,G2081G7235G5203G19432。G19555G11540信G5699G1147G1006的高速发G4649,LED显示G1328G1038信G5699传G6785的G980G12193G18337G16213G6175G8585,G5062G5203G8879G5224用G1122G4472G1881外G19668G16213进行G7393G2165G1881G4493G2656G7393G2165G4459G7100G4471传的G1856G1259G3342G6164,G1375如G6155G1881外G1856G1861G3342G6164G5203G2590G4471传、机G3342G17722G12461G7065G4470G5353G4560信G5699、G1856G1144G17722G17754G6265G12461系统、G16789G2060G994G19146行信G5699显示、G20196G20314G6265G1227信G5699G16922示、高速G1856路可G2476G5785G6265G7507、G1319G13958G3342G20314G8616G17199G17728G6785、G8016G4443G9795G20292、G1144G17902信号G9795、G7235G16278G10043明G12573。显G9994,LED显示G5062G6116G1038G3490G5078G1154G2282、G10628G1207G2282G2656信G5699G2282G12050G1262的G980G1022G18337G16213G7643G5547。二设计内容与要求G7512G5326G980G1022单片机G5224用系统,用G7481控制点阵G8733G4395显示,G8733G4395显示G1881G4493G256天津电子信G5699职G1006技术学院”,单片机的G5224用系统由硬件G2656软件两部分组G6116。硬件系统G19668G16213围绕单片机芯片组G5326G980G1022能完G6116特G4462G5224用功能的硬件组合实G1319。软件系统G19668G16213借助其它微G3423计算机配之以相G5224的软件进行编G12255。最终G17902过LED发光二极G12661G7512G61161G251G25的点阵,G7481显示G8733G4395,显示的过G12255G2656显示的G1881G4493也可以自己发挥。三系统总体方案设计LED驱动显示采用动态扫描方法,动态扫描方式是逐行轮流点G1154,这样扫描驱动电路就可以实G10628G3822行的同名列G1861用G980套列驱动器。以1616点阵G1038G1375,把G6164有同G980行的发光G12661的阳极连G3324G980起,把G6164有同G980列的发光G12661的阴极连G3324G980起(G1861阳的接法),先送出对G5224第1行发光G12661G1154灭的数据并锁存,G9994后选G17902第1行使其燃G1154G980G4462的时间,G9994后熄灭;再送出第2行的数据并锁存,G9994后选G17902第2行使其燃G1154相同的时间,G9994后熄灭;第16行之后,又G18337G7044燃G1154第1行,反复轮回。当这样轮回的速度足够G5567(每秒24次以上),每行LED的点G1154时间占总时间的11G25,由G1122人眼的视觉暂留G10628象,就能看到显示屏上稳G4462的G3282G5430。该方法能驱动较G3822的LED,控制方式较灵活,而且节省单片机的资源。显示数据传输采用串行传输的方法,控制电路可以只用G980根信号线,将列数据G980位G980位传往列驱动器,G3324硬件方面无疑是十分经济的。但串行传输过G12255较长,数据按顺G5219G980位G980位G3332输出给列驱动器,只有当G980行的G2520列数据都G5062传输到位之后,这G980行的G2520列G6177能并行G3332进行显示。对G1122串行传输方式G7481G16840,列数据G1946G3803时间可能相当长,G3324行扫描G2620G7411G11842G4462的G5785G1929G991,留给行显示的时间就G3838少了,以G14280G5445G2721到LED的G1154度。采用串行传输中列数据G1946G3803G2656列数据显示的时间G11695G11474,可以采用G18337G2484处理的方法。G2375G3324显示本行G2520列数据的同时,传送G991G980行的列数据。G1038了G17810到G18337G2484处理的G11458的,列数据的显示就G19668G16213有锁存功能。对G1122列数据G1946G3803G7481G16840,它G5224能实G10628串入并出的移位功能。这样,本行G5062G1946G3803G3921的数据G6183入并行锁存器进行显示时,串行移位G4504存器就可以G1946G3803G991G980行的列数据,而G993G1262G5445G2721本行的显示。经过上G17860分G7524,可以G5414G13447出列驱动器电路G5224G1867G3803的G1039G16213功能G726对数据G1946G3803G7481G16840,它G5224能实G10628串入并出的移位功能;对数据显示G7481G16840,G5224G1867有并行锁存的功能。这样,本行G5062G1946A74A75A76A77A78A79A80A81A81A82A83A84A85A86A87A88A895G3803G3921的数据G6183人并行锁存器进行显示时,串并移位G4504存器就可以G1946G3803G991G980行的列数据,而G993G1262G5445G2721本行的显示。同时G1038了LED显示的G1154度,采用G27行扫描,每G1022G8733G4395上面有2G10221G25列驱动器驱动,列驱动器的位G13634G5224该是G3324第1行G17331第G28行,G2375每G10221G251G25的G8733G4395点阵是有4G1022G27G27的点阵组G6116的阵列,扫描的时G1517同时扫描显示第1行G17331第G28行,第二次扫描的时G1517显示第2行G17331第1G19行,以G8504G12879G6524,最后显示第G27行G17331第1G25行,如G32821G6164示G726第1行G1852G1154G445G445G445G445G445G445G445G445G95G445G445G445G445G445G445G445G445第2行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第3行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第4行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第5行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第G25行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第G26行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第G27行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第G28行G1852G1154G445G445G445G445G445G445G445G445G95G445G445G445G445G445G445G445G445第1G19行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第11行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第12行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第13行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第14行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第15行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443第1G25行G993G1154G443G443G443G443G443G443G443G443G95G443G443G443G443G443G443G443G443G32821共阳型LED点阵单元(8X8)的结构示意图如图2,由行输入高电平点亮。G32822LED点阵单元结G7512示G5859G3282A74A75A76A77A78A79A80A81A81A82A83A84A85A86A87A88A896四系统硬件电路的设计硬件电路大G14280上可以分G1038单片机系统及外围电路、列驱动电路G2656行驱动电路G989部分。1单片机系统及外围电路本系统由G36TG27G28C52G7512G6116单片机最G4579G5224用系统G714同时配有11G714G195G282G48HG93G7242G6403G2656按键复位电路G12573。系统外G6205的G980片G41G79AG86H存G1660器2G28G41G194G19G1038数据存G1660器,可用G7481存G1660由PC机串G2487送G7481的点阵信G5699G11G17902过软件将G3282G1699G6122文G4395G17728G6454G6116G994LED显示屏的G1699G13044相对G5224的点阵信G5699G12。该G41G79AG86H存G1660器是G980G12193G19762G7143G3845G5627存G1660器,它G3324G1391电电源关G19393后G1185能G1457G6357片G1881信G5699。由G11222G28G41G194G19的G4493G18339G1038512G46G37G11该芯片G1881部由G27G1022G254G46G69G92TE的G16847G1901块组G6116,可分块进行G16847、G1901G2656G6842G19512G12573G6817G1328G12,而G36TG27G28C52只能G12661理G254G46G37的数据G12366间,G6164以,G19668将2G28G41G194G19分G6116G27G20041,每G20041G254G46G37。其G20041G11733可由单片机的P3G7142G97P3G7144G7481选G6333。G2490外,采用G48G36X232可完G6116G53S232G994TTL电G5191的G17728G6454,以G1427使PC机G994单片机G1144G6454信G5699。A74A75A76A77A78A79A80A81A81A82A83A84A85A86A87A88A8972列驱动电路列输入驱动由G1855G1022G27位串行输入,串行G6122并行输出G989态移位G4504存器G264HC5G285实G10628。该芯片G1867有串行输入、并行输出两G1022G10432G12447的时钟信号。输入数据G3324串行移位时钟SG53CLG46上G2331G8851由串行输入G12483SEG53输入到芯片G1881部串行移位G4504存器中,同时,SG52HG12483串行输出;G3324锁存时钟信号G53CLG46上G2331G8851到G7481时,芯片将G1881部串行移位G4504存器G27位数据并行输出。G8503G5132G5049G1328时,G5224将复位G12483SG53CLG53G994使能G12483G53CLG46分G2047接高电G5191、G1314电G5191。单片机输出信号G11464接G994串入并出移位G4504存器G264HC5G285的锁存器输出G12483连接。它的输入G1403有G27G1022串行移位G4504存器,每G1022移位G4504存器的输出都连接G980G1022输出锁存器。G5353G14062SI是串行数据的输入G12483。G5353G14062SCG46是移位G4504存器的移位时钟G14045G1926,G3324其上G2331G8851将发G10995移位,并将SI的G991G980G1022数据G6183入最G1314位。移位后的G2520位信号出G10628G3324G2520移位G4504存器的输出G12483,也就是输出G4504存器的输入G12483。G53CG46是输出锁存器的G6183入信号,器上G2331G8851将移位G4504存器的输出G6183入输出锁存器。G5353G14062G42是输出G989态G19388的G5332G6930信号,只有当其G1038G1314时锁存器的输出G6177G5332G6930,G2554G2029G1038高G19471态。SCLG53信号是移位G4504存器的G9177G19输入G12483,当其G1038G1314时移位G4504存器的输出G1852G1038G50。由G1122SCG46G2656G53CG46两G1022信号是相G1126G10432G12447的,G6164以能够G1582到输入串行移位G994输出锁存器G1126G993G5190G6212。芯片的输出G12483G1038G52G36G16G52H,最高位G52H可G1328G1038G3822片G264HC5G285G13435G13864G5224用时,G2533上G980G13435的G13435G13864输出。但G3252G52HG2475输出锁存器G6183入控制,G6164以G17836G1186输出锁存器G2081G5353出了G52HG255,G1328G1038G994移位G4504存器完G1852同步的G13435G13864输出。3行驱动电路每G980路输出G12483G9941G25XG254点阵显示器对G5224的每G980行之间用ULN2G27G193将电流信号G6930大,本文选用的是G17810G7531G20051G7242G1319G12661。这样,G264HC5G285某G980输出G14062G1038G1314电G5191时,对G5224的G989极G12661发射极G1038高电G5191,G1186而使点阵显示器的对G5224行也G1038高电G5191。4硬件电路图A90A91A92A93A94A95A96A97A98A99A100A101A102A103A104A105A106A107A108A109A110A110A111A112A113A114A115A116A117A118832G27扫描方式示G5859G3282五基本显示原理G980G1022国G7643G8733G4395是由1G25X1G25G237525G25G1022点(G1699G13044)G7481G7512G6116的,显示G980G1022G8733G4395该G1154哪些点这些复杂的G5049G1328都G1144给取模软件G7481完G6116,同时,取模软件也负责把G16213显示的G8733G4395G17728G2282G6116G12255G5219中G16213用到的显示G1207G11733,G1207G11733以G980G4462的规律表征了该G1154的点(G980般用G2561”表示)G994G993该G1154的点(G980般用G256G19”表示),G980G186125G25位。单片机负责将这些G1207G11733G980G8585G980G8585有规律G3332送到LED屏,G8616如第G980次输出表示第1列的1G25位G1207G11733点G1154第1列、紧接G11540再输出1G25位G1207G11733去点G1154第2列G11464到点G1154第1G25列G9994后再G18337G7044点G1154第1列,如G8504循环,就完G6116了这G1022G8733G4395的显示。单片机输出的速度足够G5567时,由G1122视觉暂留G10628象使得人眼G3324同G980时刻感G2475到了这1G25列输出的信G5699,也就是看到了这G1022G8733G4395。由G1122G36TG27G28S52单片机是G27位总线结G7512,G980次G993能输出1G25位G1207G11733以显示完整的G980列,这样我们把G980G1022G4395拆分G1038上G991两部分,G980次送G27位,G980G1861送32次,这样同样完G6116了G980G1022G8733G4395的显示。G1119实上这G1022G8733G4395区域也可以是G332425G25象G13044范围G1881的任何G3282G5430。再结合硬件电路G7481理解本文的LED屏G726显示G1207G11733是G17902过驱动电路送至LED屏的,列的切G6454G2029是G17902过ULN2G27G193依次轮流G4560G17902G7481实G10628的,也就是扫描。1点阵原理点阵G1881部结G7512及外G5430如G991,8X8点阵G1861由64G1022发光二极G12661组G6116,且每G1022发光二极G12661是G6930G13634G3324行线G2656列线的G1144叉点上,当对G5224的某G980行G136341电G5191,某G980列G136340电G5191,G2029相G5224的二极G12661就G1154;如G16213将第G980G1022点点G1154,G20299G14062接高电G519113G14062接G1314电G5191,G2029第G980G1022点就G1154了;如果G16213将第G980行点G1154,G2029第9G14062G16213接高电G5191,而(13、3、4、10、6、11、15、16)这些G5353G14062接G1314电G5191,那么第G980行就G1262点G1154;如G16213将第G980列点G1154,G2029第13G14062接G1314电G5191,而(9、14、8、12、1、7、2、5)接高电G5191,那么第G980列就G1262点G1154。A119A120A1214A122A123A122A124A125A126A127A128A129A130A131A132A133A134A134A135A136A137A138A139A140A141A1429行(G1186上到G991依G1038)行1行2行3行4行5行G25行G26行G27G5353G14062号G2814G27121G2625列(G1186左到右依G1038)列1列2列3列4列5列G25列G26列G27G5353G14062号13341G19G2511151G25表1LG4212G19G27G27G37HG3423点阵单元的G5353G14062排列LG4212G19G27G27G37HG3423点阵单元2移位锁存器74HC595原理G264HC5G285是G27位串行输入,并行输出G11锁存,3态G12移位G4504存器G264HC5G285外G5430及G1881部逻辑结G7512G3282A143A144A145A146A147A148A149A150A150A151A152A153A154A155A156A157A1581074HC595特点G726驱动电流大速度G5567,最高频率G5049G1328电压范围G7262G19G25G19VG1314输入电流G7261G19G36高抗噪声度极限参数G726电源电压VCC最大值G26G19V每G1022输出G12483输入电流IIN35MG36每G1022输出G12483输出电流IG50UT45MG36存G1660温度TOG16G25515G19G5353G14062功能G72615,1,2,3,4,5,G25,G26G52G36G52HG989态锁存输出。G27G42NDG3332。G28SG52H串行输出。1G19G53ESETG1314电G5191有效,使移位G4504存器输出G9177零,对缓G1926器无G5445G2721。11SC移位G4504存器输入时钟,上G2331G8851使串行输入数据进入移位G4504存器。12LC锁存器输入时钟,上G2331G8851锁住移位G4504存器的数据。13G50EG1314电G5191有效,使锁存器的数据输出。高电G5191使输出并行输出G12483G2476G1038高G19471态。14IN串行数据输入G12483。1G25VCC电源G264HC5G285有3层结G7512G726第G980层G1038移位D触发器;第二层G1038锁存D触发器;第G989层G1038输出3态G19388;当复位信号G1038G19时,移位D触发器G9177G19;当移位G14045G1926G1186LG16H时,第G980G1022移位D触发器的G52D;其它的G52NG52NG161;当锁存G14045G1926G1186G19G161时,第二层G1038锁存D触发器的输出/输入;当G50E1时,5G285的输出G1038高G19471态;当G50EG19时,5G285的输出G1038第二层G1038锁存D触发器的输出的反相;A159A160A161A162A163A164A165A166A166A167A168A169A170A171A172A173A17411A175A176A175A176高电压大电流八位达林顿管ULN2803ULN2803A177A178A179A180A181A182A183A184A185A186A187A188A189A190A191A192A193A194A188A195A182A183A196A197A198A182A183A199A200显示屏电路框G3282六程序设计G12255G5219中G19668G16213使用两G1022计时器,G980G1022用G1122扫描G4462时,G4462时时间到时输出1帧显示数据,G2490G980G1022用G1122循环显示7G1022G8733G4395,G4462时时间到时调整G4395模数据起点,G1186而改G2476显示G4395符。第二G1022计时器可以G3324第G980G1022G4462时中G7041中设G13634G980G1022计数器,G17810到预G4462值后调整G4395模数据起点。(1)G4462时中G7041G12255G5219任G2165G726启动G991G980帧数据的发送(发送本帧G4395模数据的第G980G1022G4395节)G1038每G1022G4395符显示时间(ZFJS)计数,当G17810到预G4462值时将显示G4395符编号(ZF)加1A201A202A203A204A205A206A207A208A208A209A210A211A212A213A214A215A21612G32824G4462时计数器G4462时中G7041G12255G5219框G3282G994G12255G52192串行中G7041G12255G12255G5219任G2165G726发送的G4395节数(JXJS)G103802时,继续发送G4395模数据,每次发送后发送G4395节数(JZJS)加1。发送的G4395节数(JZJS)G10383时,4G4395节的G4395模数据G5062发送完,发送扫描G11733(SMM),发送G4395节数再加1。发送的G4395节数(JZJS)G10384时,本帧数据G1852部发送完G6116,由P32G1147G10995G980G1022RCLKG14045G1926,使移位G4504存器锁存数据,同时检查G980G1022G4395符的G1852部8行数据是G2554都发送完G6116,若是G2029调整G4395模数据指针(DPTR)指G2533本G4395符G4395模数据的起点。NNYYA217A218A219A220A221A222A223A224A225A226A227A228A229A230A231A232A233A234A235A230A236A237A238A234A235A230A236A239A240A234A235A241A242A243A234A244A245A246A229A218A218A247A248A234A244A2491A234A244A2497A234A244A2490A227A228A225A226A250A251CTCPUSHACCPUSHBMOVTH0,CTHMOVTL0,CTLCLRAMOVCA,ADPTRINCDPTRMOVSBUF,AINCZFJSMOVA,ZFJSCJNEA,YS,CTCRMOVZFJS,0INCAFMOVA,ZFCJNEA,7,CTCRMOVZF,0CTCRPOPBPOPACCRETIA252A253A254A255A1A0A2A8A8A9A3A4A5A6A7A10A1113NYA79A12A219A220A221A222G1457护G10628G3342A233A237A238A234A65A230A234A65A230A814A82A234A244A249A818A82A21A13A12A810A239A240A234A235A242A243A250A251SHUCHUPUSHACCCLRTIMOVA,JZJSCJNEA,4,SHUCHU1CLRRCLKMOVJZJS,0INCSMJSMOVA,SMJSSETBRCLKCJNEA,8,SCRMOVSMJS,0MOVA,ZFMOVB,32MULABMOVDPTR,XUADDA,DPLMOVDPL,AMOVA,BADDCA,DPHMOVDPH,ASJMPSCRSHUCHU1CJNEA,3,SHUCHU2MOVA,SMMMOVSBUF,ARLAMOVSMM,ASJMPSHUCHU3SHUCHU2CLRAMOVCA,ADPTRMOVSBUF,AINCDPTRSHUCHU3INCJZJSSCRPOPACCRETIA233A21A13A12A230A234A65A229A230A24A810A237A238A66A14A15A16A17A234A244A2490A227A228A225A226A234A65A230A813A82A233A21A13A18A19A20A21A13A18A21A13A22A23A233A234A235A230A236A237A238A234A235A230A236A234A235A242A2431YNYYNA255A79A12A219A220A26A27A28A25A29A26A27A252A253A254A255A1A0A2A8A8A9A3A4A5A6A7A10A1114注G5859G726串行中G7041首先是G3324G4462时中G7041中G2533串行G2487发送了第G980G4395节,串行G2487发送完G6116后G1147G10995的。串行中G7041G12255G5219继续G2533串行G2487发送数据,每当串行G2487发送完G6116后继续G1147G10995中G7041。当G4395节计数器G17810到4后,本帧数据发送完毕,G993再G2533串行G2487发送数据,G3252G8504也就G993G1262再有串行中G7041G1147G10995,G11464到G4462时计数器中G7041发起G991G980帧数据的传送。G32826G980帧数据的发送过G12255示G5859G3282七程序清单由G1122显示G5049G1328都安排G3324中G7041中完G6116,G1039G12255G5219的G5049G1328只是对G4462时计数器控制G4504存器,串行G2487控制G4504存器进行设G13634,同时G5332G6930G4462时计数器G19G2656串行中G7041,启动G4462时计数器G19G8733G4395显示ORG0000HLJMPMAINORG000BHG4462时计数器0中G7041G12255G5219矢G18339G3332址SJMPCTCORG0023H;串行中G7041G12255G5219矢G18339G3332址SJMPSHUCHUG1039G12255G5219MAINMOVTMOD,01H;设G13634G4462时计数器0G1038G5049G1328模式1MOVTH0,CTH;设G13634计数器初值MOVTL0,CTLA217A218A219A220A237A238A66A234A65A234A235A230A236A79A12A219A220A237A238A30A31A234A65A234A235A230A236A79A12A219A220A237A238A30A32A234A65A234A235A230A236A79A12A219A220A237A238A30A33A234A65A234A235A230A236A219A12A219A220A237A238A21A13A18A79A12A219A220A34A35A237A238A79A12A230A236A79A12A222A237A2381A234A65A79A12A222A237A2381A234A65A79A12A222A237A2381A234A65A79A12A222A237A2381A234A65A79A12A222A237A2381A234A65A79A12A222A237A2381A234A65A252A253A254A255A1A0A2A8A8A9A3A4A5A6A7A10A1115MOVSCON,00H;设G13634串行G2487G5049G1328模式MOVSMM,01;扫描G11733初值MOVSMJS,0;扫描行计数初值MOVJZJS,0;发送G4395节计数初值MOVDPTR,XU;G4395模表起点MOVZF,0;先显示第0G1022G4395符SETBTR0;启动G4462时计数器0SETBET0;G5332G4462时计数器0中G7041SETBES;G5332串行G2487中G7041SETBEA;G5332总中G7041G4462时计数器0中G7041G12255G5219入G2487CTCPUSHACC;G1457护G10628G3342PUSHBMOVTH0,CTH;G18337G13634计数器初值MOVTL0,CTLCLRA;取G4395模数据MOVCA,ADPTRINCDPTR;G4395模指针加1MOVSBUF,A;发送G4395模数据INCZFJS;G4395符显示时间计数器加1MOVA,ZFJS;判G7041G4395符显示时间是G2554G17810到预G4462值(YS)CJNEA,YS,CTCRMOVZFJS,0;G17810到G4395符显示时间,G4395符显示时间计数器0INCZF;G4395符编号加1MOVA,ZF;G4395符编号7,G16840明7G1022G4395符G5062显示完CJNEA,12,CTCRMOVZF,0;G1186G3848G5332始显示CTCRPOPB;恢复G10628G3342POPACCRETI;中G7041返回串行G2487中G7041G7393G2165G12255G5219SHUCHUPUSHACC;G1457护G10628G3342CLRTI;G9177TIG7643G5547MOVA,JZJS;取发送G4395节计数CJNEA,4,SHUCHU1;本帧未发送完,G17728SHUCHU1CLRRCLK;本帧发送完,输出G980G1022锁存G14045G1926G991降G8851MOVJZJS,0;G4395节计数器G9177零INCSMJS;扫描行加1MOVA,SMJS;检查8行是G2554扫描完SETBRCLK;输出G980G1022锁存G14045G1926上G2331G8851A252A253A254A255A1A0A2A8A8A9A3A4A5A6A7A10A1116CJNEA,8,SCR;未扫描完返回MOVSMJS,0;G5062扫描完,恢复扫描计数MOVA,ZF;根据G4395符计数器调整数据指针ZFMOVB,32;每G1022G8733G4395G4395模G103832G4395节MULABMOVDPTR,XUADDA,DPL;调整指针MOVDPL,AMOVA,BADDCA,DPHMOVDPH,ASJMPSCRSHUCHU1CJNEA,3,SHUCHU2;本帧G4395模未发送完,输出扫描G11733MOVA,SMM;本帧G4395模G5062发送完,取出扫描G11733MOVSBUF,A;发送扫描G11733RLA;扫描G11733移位MOVSMM,ASJMPSHUCHU3SHUCHU2CLRA;取G4395模数据MOVCA,ADPTRMOVSBUF,A;发送INCDPTR;指针指G2533G991G980位数据SHUCHU3INCJZJS;G4395节计数器加1SCRPOPACC;恢复G10628G3342RETI;中G7041返回G2476G18339,G5132G18339,G4395模数据设G13634SMJSDATA22H;扫描计数器JZJSDATA23H;输出G4395节计数器SMMDATA24H;扫描G11733ZFJSDATA25H;每G1022G4395符显示时间计数器ZFDATA26H;当G2081输出G4395符编号RCLKBITP32;移位G4504存器锁存G12483连接G3324P32YSEQU200;G4395符显示时间计数CTEQU655351000312MHZ;G1039频时G4462时器初值计算G1856式G2282G12628CTHEQUCT/256;G4462时计数器0初值高位CTLEQUCTMOD256;G4462时计数器0初值G1314位XUDB40H,10H,00H,02H,40H,10H,08H,42H;许DB40H,10H,0FCH,33H,40H,12H,40H,12HDB40H,14H,40H,04H,40H,18H,40H,00HDB40H,10H,44H,0F0H,40H,00H,0FEH,1FHA252A253A254A255A1A0A2A8A8A9A3A4A5A6A7A10A1117YUDB40H,10H,04H,10H,20H,10H,0FEH,13H;煜DB0FCH,13H,04H,12H,08H,29H,04H,12HDB88H,24H,0FCH,57H,90H,40H,04H,5AHDB0FEH,47H,04H,52H,00H80H,0FCH,93HEND显示G8733G4395举G1375G7262G4395节G4395模数据G443G443G443G443G443G443G445G443G95G443G443G443G443G443G443G443G443G443G445G443G443G443G443G445G443G95G443G443G443G443G445G443G443G443
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年度精密产品模具设计与委托加工服务合同4篇
- 2025年休闲公园场地租赁合同印花税缴纳规范2篇
- 专业发艺师2024服务协议样本版A版
- 2025年度智慧农业园区场商位租赁与农产品上行合同4篇
- 专用消防系统增补协议样本2024版A版
- 2025年度多功能铲车租赁服务合同范本4篇
- 2025年度文化创意产业合作开发合同7篇
- 2025年度可打印PAD与智能教室系统配套合同3篇
- 2024蔬菜种植合作社与社区团购平台合作协议范本3篇
- 2025年度拆伙协议书范本下载4篇
- 2024年职工普法教育宣讲培训课件
- 金蛇纳瑞企业2025年会庆典
- 安保服务评分标准
- T-SDLPA 0001-2024 研究型病房建设和配置标准
- (人教PEP2024版)英语一年级上册Unit 1 教学课件(新教材)
- 全国职业院校技能大赛高职组(市政管线(道)数字化施工赛项)考试题库(含答案)
- 2024胃肠间质瘤(GIST)诊疗指南更新解读 2
- 光储电站储能系统调试方案
- 2024年二级建造师继续教育题库及答案(500题)
- 小学数学二年级100以内连加连减口算题
- 建设单位如何做好项目管理
评论
0/150
提交评论