完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
|
|
相关推荐
11个回答
|
|
有没有大神来啊,急死了
|
|
|
|
|
|
|
|
把你程序贴出来!
|
|
|
|
这是显示部分的程序 TXT_INT: MOV PGE_D,#0 MOV DPTR, #TABLE1 MOV COL_D, #24 MOV DA_AD,#00H LCALL S_WORD MOV COL_D,#40 MOV DA_AD,#20H LCALL S_WORD MOV COL_D, #56 MOV DA_AD,#40H LCALL S_WORD MOV COL_D,#72 MOV DA_AD,#60H LCALL S_WORD MOV COL_D,#88 MOV DA_AD,#80H LCALL S_WORD MOV PGE_D, #2 MOV COL_D, #8 MOV DA_AD, #0A0H LCALL S_WORD MOV COL_D, #24 MOV DA_AD, #0C0H LCALL S_WORD MOV DPTR, #TABLE3 MOV COL_D, #40 MOV DA_AD, #0C0H LCALL S_CHAR MOV COL_D,#88 MOV DA_AD,#0D0H LCALL S_CHAR MOV COL_D,#96 MOV DA_AD,#0E0H LCALL S_CHAR MOV DPTR, #TABLE2 MOV PGE_D, #4 MOV COL_D, #8 MOV DA_AD, #00H LCALL S_WORD MOV COL_D, 24 MOV DA_AD,#20H LCALL S_WORD MOV DPTR, #TABLE3 MOV COL_D,#40 MOV DA_AD,#0C0H LCALL S_CHAR MOV DPTR, #TABLE2 MOV COL_D, #88 MOV DA_AD, #60H LCALL S_WORD MOV DPTR, #TABLE3 MOV COL_D, #104 MOV DA_AD, #0B0H LCALL S_CHAR MOV COL_D, #112 MOV DA_AD, #0D0H LCALL S_CHAR MOV COL_D,#120 MOV DA_AD, #0E0H LCALL S_CHAR MOV DPTR, #TABLE2 MOV PGE_D, #6 MOV COL_D, #8 MOV DA_AD, #40H LCALL S_WORD MOV COL_D,#24 MOV DA_AD, #20H LCALL S_WORD MOV DPTR, #TABLE3 MOV COL_D, #40 MOV DA_AD, #0C0H LCALL S_CHAR MOV DPTR, #TABLE2 MOV COL_D, #104 MOV DA_AD, #60H LCALL S_WORD RET LCD_INT: SETB CS1 SETB CS2 MOV A, #38H LCALL W_C_L MOV A, #0FH LCALL W_C_L MOV A, #01H LCALL W_C_L MOV A, #06H LCALL W_C_L MOV A, LCD_SR LCALL W_C_L RET LCD_CK: MOV P0, #0FFH SETB RW CLR DI SETB E NOP CLR E JNB P0.7, LCD_C1 SETB 20H.0 AJMP LCD_EN LCD_C1: CLR 20H.0 LCD_EN: RET W_C_L: LCALL LCD_CK JB 20H.0, W_C_L MOV P0, #0FFH CLR RW CLR DI MOV P0, A SETB E NOP CLR E RET W_D_L: LCALL LCD_CK JB 20H.0, W_C_L MOV P0, #0FFH CLR RW SETB DI JNB 20H.2, W_D_L1 CPL A W_D_L1: MOV P0, A SETB E NOP CLR E RET LCD_SH: MOV A, COL_D CJNE A, #64,LCD_A LCD_A: JNC LCD_B SETB CS1 CLR CS2 MOV A, #LCD_PG ADD A, PGE_D LCALL W_C_L MOV A, #LCD_C ADD A, COL_D LCALL W_C_L MOV A, COL_D ADD A, BYT_N DEC A CJNE A, #64,LCD_A1 LCD_A1: JNC LCD_B1 MOV R7, BYT_N MOV R0, DA_AD LCD_A2: MOV A, R0 MOVC A, @A+DPTR LCALL W_D_L INC R0 DJNZ R7, LCD_A2 AJMP LCD_RE LCD_B1: MOV A, #64 CLR CY SUBB A, COL_D MOV TEMP, A MOV R7, A MOV R0, DA_AD LCD_B2: MOV A, R0 MOVC A, @A+DPTR LCALL W_D_L INC R0 DJNZ R7, LCD_B2 CLR CS1 SETB CS2 MOV A, #LCD_PG ADD A, PGE_D LCALL W_C_L MOV A, #LCD_C LCALL W_C_L MOV A, BYT_N CLR CY SUBB A, TEMP MOV R7, A LCD_B3: MOV A, R0 MOVC A, @A+DPTR LCALL W_D_L INC R0 DJNZ R7, LCD_B3 AJMP LCD_RE LCD_B: CLR CS1 SETB CS2 MOV A, #LCD_PG ADD A, PGE_D LCALL W_C_L MOV A, COL_D CLR CY SUBB A, #64 ADD A, #LCD_C LCALL W_C_L MOV R7, BYT_N MOV R0, DA_AD LCD_RE: RET S_WORD: MOV BYT_N, #16 LCALL LCD_SH INC PGE_D MOV A, DA_AD ADD A, #16 MOV DA_AD,A LCALL LCD_SH DEC PGE_D RET S_CHAR: MOV BYT_N, #8 LCALL LCD_SH INC PGE_D MOV A, DA_AD ADD A, #8 MOV DA_AD,A LCALL LCD_SH DEC PGE_D RET TABLE1: DB 10H, 08H, 0C7H, 12H, 26H, 8AH, 82H, 0AAH DB 0A4H, 0A3H, 0A2H, 26H, 2AH, 0E2H,02H, 00H DB 00H, 00H, 0FFH, 00H, 00H, 1FH, 12H, 12H DB 12H, 12H, 1FH, 40H, 80H, 7FH, 00H, 00H DB 00H, 00H, 00H, 00H, 0BEH, 0EAH, 0AAH, 0AAH DB 0AAH, 0AAH, 0AAH, 0BEH, 80H, 80H, 00H, 00H DB 00H, 52H, 52H, 49H, 28H, 24H, 12H, 11H DB 08H, 04H, 03H, 40H, 80H, 7FH, 00H, 00H DB 00H, 00H, 0F8H, 48H, 48H, 48H, 48H, 0FFH DB 48H, 48H, 48H, 48H, 0F8H, 00H, 00H, 00H DB 00H, 00H, 0FH, 04H, 04H, 04H, 04H, 3FH DB 44H, 44H, 44H, 44H, 4FH, 40H, 70H, 00H DB 00H, 00H, 02H, 02H, 02H, 02H, 02H, 0E2H DB 12H, 0AH, 06H, 02H, 00H, 80H, 00H, 00H DB 01H, 01H, 01H, 01H, 01H, 41H, 81H, 7FH DB 01H, 01H, 01H, 01H, 01H, 01H, 01H, 00H DB 10H, 12H, 0D2H, 0FEH,91H, 11H, 00H, 12H DB 62H, 02H, 0FEH, 02H, 42H, 3AH, 12H, 00H DB 04H, 03H,00H, 0FFH, 00H, 01H, 00H, 01H DB 01H, 01H, 0FFH, 01H, 01H, 01H, 01H,00H DB 08H, 08H, 0AH, 0EAH, 0AAH, 0AAH, 0AAH, 0FFH DB 0A9H, 0A9H, 0A9H, 0E9H, 08H, 08H, 08H, 00H DB 40H, 40H, 48H, 4BH, 4AH, 4AH, 4AH, 7FH DB 4AH, 4AH, 4AH, 4BH, 48H, 40H, 40H, 00H DB 40H, 40H, 40H, 0DFH, 55H, 55H, 55H, 0D5H DB 55H, 55H, 55H, 0DFH, 40H, 40H, 40H, 00H DB 40H, 40H, 40H, 57H, 55H, 55H, 55H, 7FH DB 55H, 55H, 55H, 57H, 50H, 40H, 40H, 00H TABLE2: DB 00H, 00H, 0F8H, 28H, 29H, 2EH, 2AH, 0F8H DB 28H, 2CH, 2BH, 2AH, 0F8H, 00H, 00H, 00H DB 08H, 08H, 0BH, 09H, 09H, 09H, 09H, 0FFH DB 09H, 09H, 09H, 09H, 0BH, 08H, 08H, 00H DB 40H, 20H, 0F0H, 1CH, 47H, 22H, 10H, 0C8H DB 04H, 03H, 04H, 0D8H, 30H, 60H, 20H, 00H DB 00H, 00H, 0FFH, 00H, 80H, 60H, 18H, 07H DB 00H, 00H, 00H, 0FFH, 00H, 00H, 00H, 00H DB 00H, 00H, 00H, 0F8H, 89H, 8EH, 88H, 88H DB 88H, 8CH, 8BH, 0F8H, 00H, 00H, 00H, 00H DB 00H, 20H, 38H, 00H, 3CH, 40H, 40H, 42H DB 4CH, 40H, 40H, 70H, 04H, 18H, 30H, 00H DB 00H, 20H, 20H, 22H, 22H, 0E2H, 22H, 22H DB 22H, 0E2H, 22H, 22H, 22H, 20H, 20H, 00H DB 00H, 40H, 20H, 10H, 0CH, 03H, 00H, 00H DB 00H, 3FH, 40H, 40H, 40H, 40H, 70H, 00H DB 00H, 00H, 00H, 0F0H, 00H, 00H, 00H, 00H DB 01H, 01H, 01H, 1FH, 01H, 01H, 01H, 00H TABLE3: DB 00H, 0E0H, 10H, 08H, 08H, 10H, 0E0H, 00H DB 00H, 0FH, 10H, 20H, 20H, 10H, 0FH, 00H DB 00H, 10H, 10H, 0F8H, 00H, 00H, 00H, 00H DB 00H, 20H, 20H, 3FH, 20H, 20H, 00H, 00H DB 00H, 70H, 08H, 08H, 08H, 88H, 70H, 00H DB 00H, 30H, 28H, 24H, 22H, 21H, 30H, 00H DB 00H, 30H, 08H, 88H, 88H, 48H, 30H, 00H DB 00H, 18H, 20H, 20H, 20H, 11H, 0EH, 00H DB 00H, 00H, 0C0H, 20H, 10H, 0F8H, 00H, 00H DB 00H, 07H, 04H, 24H, 24H, 3FH, 24H, 00H DB 00H, 0F8H, 08H, 88H, 88H, 08H, 08H, 00H DB 00H, 19H, 21H, 20H, 20H, 11H, 0EH, 00H DB 00H, 0E0H, 10H, 88H, 88H, 18H, 00H, 00H DB 00H, 0FH, 11H, 20H, 20H, 11H, 0EH, 00H DB 00H, 38H, 08H, 08H, 0C8H, 38H, 08H, 00H DB 00H, 00H, 00H, 3FH, 00H, 00H, 00H, 00H DB 00H, 70H, 88H, 08H, 08H, 88H, 70H, 00H DB 00H, 1CH, 22H, 21H, 21H, 22H, 1CH, 00H DB 00H, 0E0H, 10H, 08H, 08H, 10H, 0E0H, 00H DB 00H, 00H, 31H, 22H, 22H, 11H, 0FH, 00H DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H DB 00H, 30H, 30H, 00H, 00H, 00H, 00H, 00H DB 00H, 00H, 00H, 00H, 00H, 60H, 18H, 04H DB 00H, 60H, 18H, 06H, 01H, 00H, 00H, 00H DB 00H, 00H, 00H, 0C0H, 0C0H, 00H, 00H, 00H DB 00H, 00H, 00H, 30H, 30H, 00H, 00H, 00H DB 08H, 0F8H, 88H, 0C0H, 28H, 18H, 08H, 00H DB 20H, 3FH, 20H, 01H, 26H, 38H, 20H, 00H DB 00H, 00H, 80H, 80H, 80H, 80H, 80H, 00H DB 00H, 6BH, 94H, 94H, 94H, 93H, 60H, 00H DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H END |
|
|
|
程序是我们老师给的,汇编语言
|
|
|
|
|
|
|
|
|
|
|
|
我记得好像是CS1和CS2是控制屏幕的。你外接一个高低电平试试,看看屏幕是不只是显示右边的。 |
|
|
|
我在CS2上接了一个高电平,结果左右屏幕显示一样的内容了 |
|
|
|
有进步!那就比不显示好。你在论坛里面在找找例子。这里很多的。看看别人是咋做的! |
|
|
|
左右屏地址不一样 看看地址送的对不对
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
4910 浏览 3 评论
6198 浏览 1 评论
6462 浏览 0 评论
Protues中自己封装的芯片元件无Program File、Clock Frequency选项怎么解决,求求大神了!
8212 浏览 1 评论
基于51单片机的车辆倒车雷达报警系统,HC-SR04超声波测距,全套资料
1240 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-1 12:16 , Processed in 0.689547 second(s), Total 66, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号