熱門(mén): 51單片機(jī) | 24小時(shí)必答區(qū) | 單片機(jī)教程 | 單片機(jī)DIY制作 | STM32 | Cortex M3 | 模數(shù)電子 | 電子DIY制作 | 音響/功放 | 拆機(jī)樂(lè)園 | Arduino | 嵌入式OS | 程序設(shè)計(jì)
|
發(fā)布時(shí)間: 2019-1-1 21:50
正文摘要:此例為單音頻輸出,想學(xué)習(xí)51的師兄可以先從此入手。 代碼: #include<reg51.h> sbit SOND=P1^0; sbit KL=P3^0; sbit KH=P3^2; void tone(unsigned char t) { unsigned char j; unsigned int i; for(i= ... |
Powered by 單片機(jī)教程網(wǎng)