基于STC89C52的16x16点阵.doc

  1. 1、本文档共8页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于STC89C52的16x16点阵.doc

基于单片机的16*16的点阵显示 本次16*16点阵的硬件外围电路是用74HC595做I/O口扩展,74LS154做片选选通端.,STC89C52作为控制核心 硬件电路如图: 74HC595是串行输入并行输出并带有锁存功能的芯片, 74HC595 的实际应用与编程(汇编) 74HC595具有一个8位串行输入并行输出的移位寄存器和一个8位输出锁存器。 NN BIT P1.0 MM BIT P1.1 LL BIT P1.2 //===================================== ORG 0000H LJMP START ORG 0030H //===================================== START: CLR P1.7 MOV R2,#08H MOV R4,#00H MOV DPTR,#TAB MOV 30H,DPL MOV 31H,DPH MOV 32H,30H MOV 33H,31H MOV A,#58 ADD A,32H MOV 32H,A MOV A,#1 ADDC A,33H MOV 33H,A //===================================== MAIN: MOV P2,R4 CLR A MOVC A,@A+DPTR //===================================== LOOP0: RlC A CLR NN MOV MM,C SETB NN DJNZ R2,LOOP0 MOV R2,#08H INC DPTR CLR A MOVC A,@A+DPTR LOOP1: RlC A CLR NN MOV MM,C SETB NN DJNZ R2,LOOP1 MOV R2,#08H CLR LL NOP SETB LL CALL DELAY //===================================== INC DPTR //===================================== INC R4 CJNE R4,#10H,MAIN MOV R4,#00H MOV DPL,30H MOV DPH,31H INC R0 CJNE R0,#10,MAIN MOV R0,#00H INC DPTR INC DPTR MOV 30H,DPL MOV 31H,DPH MOV A,32H CJNE A,30H,MAIN MOV A,33H CJNE A,31H,MAIN LJMP START //======================================== DELAY: MOV R7,#10 D1: MOV R6,#30 DJNZ R6,$ DJNZ R7,D1 RET //========================================= TAB: //========================================= DB 00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H DB 00H,00H,00H,00H,00H,00H,00H,00H //======================================== db 04h,20h,04h,20h,44h,42h,44h,41h //我 db 7fh,0feh,84h,80h,84h,80h,04h,08h db 04h,08h,0ffh,10h,04h,0e0h,44h,58h db 35h,84h,04h,02h,04h,0fh,00h,00h //========================================

文档评论(0)

juhui05 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档