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 |
|
|
|