单片机简易8键电子琴程序答:include<AT89X51.H>unsigned char table[]={0x3f,0x60,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};unsigned char temp;unsigned char key;unsigned char i,j;unsigned char STH0;unsigned char STL0;unsigned int code tab[]={64021,64103,64260,...
单片机电子琴编程中各个音的频率的确定答://此程序在硬件上调试通过 //本程序的单片机晶振采用11.0592M include <reg51.h> sbit speaker=P1^2;unsigned char timer0h,timer0l,time;//世上只有妈妈好数据表 code unsigned char sszymmh[]={ 6,2,3,5,2,1,3,2,2,5,2,2,1,3,2,6,2,1,5,2,1,6,2,4,3,2,2,5,2,1,...