完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
做了一个信号发生器实验物种波形只能显示前三个 ........哪位大神有时间给看下 谢谢了 ORG 0000H LJMP MAIN ORG 0030H MAIN: MOV P2,#0FFH MOV SCON,#00H STR: MOV R1,#0AH LCALL DISP START: JNB P2.0,LOOP0 JNB P2.1,LOOP1 JNB P2.2,LOOP2 JNB P2.3,LOOP3 JNB P2.4,LOOP4 LJMP START LOOP0: MOV R1,#01H LCALL DISP L0: MOV A,#0FFH MOVX @DPTR,A LCALL DELAY MOV A,#00H MOVX @DPTR,A LCALL DELAY JB P2.0,STR LJMP L0 LOOP1: MOV R1,#02H LCALL DISP L11: MOV R3,#00H L12: MOV A,R3 MOVX @DPTR,A INC R3 CJNE R3,#0FFH,L12 JB P2.1,STR AJMP L11 LOOP2: MOV R1,#03H LCALL DISP L21: MOV R3,#00H L22: MOV A,R3 MOVX @DPTR,A INC R3 CJNE R3,#0FFH,L22 L23: DEC R3 MOV A,R3 MOVX @DPTR,A CJNE R3,#00H,L23 JB P2.2,STR AJMP L21 ST: JB P2.5,STR LOOP3: MOV R1,#04H LCALL DISP L41: MOV R3,#00H L42: MOV A,R3 MOVX @DPTR,A INC R3 CJNE R3,#0FFH,L42 LCALL DELAY L43: DEC R3 MOV A,R3 MOVX @DPTR,A CJNE R3,#00H,L43 LCALL DELAY JB P2.4,STR AJMP L41 LOOP4: MOV R1,#05H LCALL DISP MOV R4,#00H L51: MOV A,R4 MOV DPTR,#TABLE MOVC A,@A+DPTR MOV DPTR,#7FFFH MOVX @DPTR,A INC R4 CJNE R4,#255,L51 MOV R4,#00H JB P2.5,ST AJMP L51 DISP: MOV A,R1 MOV DPTR,#TAB MOVC A,@A+DPTR CPL A MOV SBUF,A JNB ti,$ CLR TI MOV DPTR,#7FFFH RET DELAY: MOV R6,#0AH DEL2: MOV R7,#32H DEL1: DJNZ R7,DEL1 DJNZ R6,DEL2 RET TAB: DB 0FCH,60H,0DAH,0F2H,66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H, 03H, 03H DB 02H, 01H, 01H, 00H, 00H, 00H, 00H, 00H DB 00H, 00H, 00H, 00H, 00H, 00H, 01H, 01H DB 02H, 03H, 03H, 04H, 05H, 06H, 07H, 08H DB 09H, 0AH, 0CH, 0DH, 0FH, 10H, 12H, 13H DB 15H, 17H, 19H, 1BH, 1DH, 1FH, 21H, 23H DB 25H, 27H, 2AH, 2CH, 2EH, 31H, 33H, 36H DB 38H, 3BH, 3EH, 40H, 43H, 46H, 49H, 4CH DB 4FH, 51H, 54H, 57H, 5AH, 5DH, 60H, 63H DB 67H, 6AH, 6DH, 70H, 73H, 76H, 79H, 7CH END 做仿真的keil 生成文件出错 ![]() |
|
相关推荐
3个回答
|
|
|
|
|
|
|
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
嵌入式学习-飞凌嵌入式ElfBoard ELF 1板卡-shell脚本编写之变量
447 浏览 0 评论
嵌入式学习-飞凌嵌入式ElfBoard ELF 1板卡-shell脚本编写之本地脚本的编写和执行
616 浏览 0 评论
【xG24 Matter开发套件试用体验】深入了解Silicon Labs xG24 Matter开发套件
749 浏览 0 评论
662 浏览 0 评论
688 浏览 0 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
10946 浏览 31 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-9-1 14:54 , Processed in 0.592872 second(s), Total 73, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191