raytingsu
|
分享:
▼
x0
|
音乐盒
我最近想用89C51做做有关音乐盒之类设计 我电路也都接好了 但程式码烧进IC后却没声音... 谁能帮我检查检查程式码呀 ORG 0000H START: MOV DPTR,#MUSIC CONT: CLR A MOVC A,@A+DPTR CJNE A,#40,CHK AJMP START CHK: CJNE A,#255,OK STOP: AJMP STOP OK: PUSH ACC INC DPTR CLR A MOVC A,@A+DPTR MOV R4,A POP ACC CHK1: CJNE A,#01,CHK2 ACALL DOL CHK2: CJNE A,#02,CHK3 ACALL REL CHK3: CJNE A,#03,CHK4 ACALL MIL CHK4: CJNE A,#04,CHK5 ACALL FARL CHK5: CJNE A,#05,CHK6 ACALL SOL CHK6: CJNE A,#06,CHK7 ACALL LAL CHK7: CJNE A,#07,CHK11 ACALL SIL CHK11: CJNE A,#11,CHK12 ACALL DO CHK12: CJNE A,#12,CHK13 ACALL RE CHK13: CJNE A,#13,CHK14 ACALL MI CHK14: CJNE A,#14,CHK15 ACALL FAR CHK15: CJNE A,#15,CHK16 ACALL SO CHK16: CJNE A,#16,CHK17 ACALL LA CHK17: CJNE A,#17,CHK21 ACALL SI CHK21: CJNE A,#21,CHK22 ACALL DOH CHK22: CJNE A,#22,CHK23 ACALL REH CHK23: CJNE A,#23,CHK24 ACALL MIH CHK24: CJNE A,#24,CHK25 .. 访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容
|
|
x0
[楼 主]
From:台湾联宇宽频
| Posted:2005-04-10 04:07 |
|
|
|