单片机音乐代码答:include "reg51.h"define uint unsigned int define uchar unsigned char uchar * TABLE ;code uint TABLE1 [15]={64260,64400,64524,64580,64684,64777,64820,64898,64968,65030,65058,65110,65157,65178,65217};code uchar SONG [ ]={ //1. 迟来的爱 };code uchar S...
跪求51单片机音乐盒汇编语言程序,急用!!!谢谢@@答:HUAN BIT 20H ORG 0000H JMP MAIN ORG 000BH MOV TL0,R2 MOV TH0,R3 CPL P2.0 ORG 001BH DJNZ R4,GOON MOV IE,#80H JMP T1END GOON: MOV TL1,#0B0H MOV TH1,#3CH T1END: RETI ORG 0100H MAIN: MOV R5,#99H LOOP: MOV TMOD,#11H MOV IP,#02H MOV TL0,#0B0H SETB EA...
求关于单片机的电子琴C程序答:下面我们要为这个音符建立一个表格,有助于单片机通过查表的方式来获得相应 的数据 低音0-19 之间,中音在20-39 之间,高音在40-59 之间 TABLE: DW 0,63628,63835,64021,64103,64260,64400,64524,0,0 DW 0,63731,63928,0,64185,64331,64463,0,0,0 音符频率(HZ) 简谱码( T 值) 音符...