freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于51單片機(jī)的電子琴設(shè)計(jì)附原理圖、pcb和程序_課程設(shè)計(jì)說明書(編輯修改稿)

2024-10-02 15:43 本頁面
 

【文章內(nèi)容簡介】 12Mhz晶振 1 3 30pF陶瓷電容 2 4 10181。F 無極性電容 1 5 10K 9 10K x9 。 x1 6 240電阻 10 7 NPN 三極管 1 s8550 8 七段共陰極數(shù)碼管 2 9 無源蜂鳴器 1 10 電位器 1 11 發(fā)光二極管 10 紅色 x8 黃 x1 綠 x1 12 排針 3排 13 雙面覆銅銅板 1 15x10 cm 14 40P杜邦線 1 15 單片機(jī)底座 2 16 電源開關(guān) 1 17 Stc89c52單片機(jī) 1 13 總程序: 14 include include define uchar unsigned char define uint unsigned int define allsong 4 //歌曲總數(shù) 按實(shí)際寫 sbit P1_0 = P1^0。 sbit P1_1 = P1^1。 sbit P1_2 = P1^2。 sbit P1_3 = P1^3。 sbit P1_4 = P1^4。 sbit P1_5 = P1^5。 sbit P1_6 = P1^6。 sbit P1_7 = P1^7。 sbit beep = P3^0。 sbit key_play = P3^1。 uchar x = 0。 /*矩陣鍵盤橫坐標(biāo) 從 1開始 0為未按下的標(biāo)志 */ uchar y = 0。 /*矩陣鍵盤縱坐標(biāo) 從 1開始 0為未按下的標(biāo)志 */ uchar flash = 0。 //控制 led燈顯示 的變量 */ uchar f_l。 /*按鍵發(fā)出音調(diào)的初值 (低位) */ uchar f_h。 //高位 uchar song_l。 /*歌曲音調(diào)的初值(低位) */ uchar song_h。 //高位 uchar out = 0。 /*聲音輸出變量 1表示有輸出 0表示無輸出 */ uchar yindiao。 /*音調(diào) 定義為全局變量 為了在播放時(shí)數(shù)碼管能顯示當(dāng)前音調(diào) */ uchar yindiao_h。 //音調(diào)的高四位 uchar yindiao_l。 //音調(diào)的低四位 uchar jiepai。 /*節(jié)拍(簡而言之就是一個(gè)音調(diào)響的時(shí)間長度) */ uchar song_id = 1。 //歌曲序號(hào)變量 uchar temp_id = 1。 //歌曲臨時(shí)序號(hào) uint which = 2。 /*簡譜表里的第幾個(gè)音 從第 2個(gè)開始 第 0個(gè)用來存曲速,第 1個(gè)占位 */ uchar same = 0。 /*在暫停時(shí)選了同一首歌曲,用于跳出暫停循環(huán) */ uchar key_x()。 //獲取鍵盤橫坐標(biāo) 函數(shù) uchar key_y()。 //獲取鍵盤縱坐標(biāo) 函數(shù) void play()。 //播放歌曲 函數(shù) void delayms(uint ms)。//延 時(shí) xx ms 函數(shù) void delay(uint pai)。//節(jié)拍延時(shí) 函數(shù) void key_check()。 //檢查按鍵狀態(tài) 函數(shù) void display()。 //數(shù)碼管顯示對(duì)應(yīng)音調(diào) 函數(shù) void speak()。 /*按鍵后 給定時(shí)器 0賦對(duì)應(yīng)音調(diào)的初值 從而發(fā)出聲音 */ 15 uchar choose()。 /*播放狀態(tài)下 選歌函數(shù) 釋放按鍵后才跳出函數(shù),返回歌曲序號(hào) */ uchar choose2()。 /*暫停狀態(tài)下 選歌函數(shù) 不用釋放按鍵即可跳出函數(shù),返回歌曲序號(hào) */ void play()。 //播放歌曲 函數(shù) uchar code num[]={0x00, //數(shù)碼管段選碼 0x77,0x7c,0x39,0x5e,0x79,0x71,0x3d, //a g 0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07, //1 7 0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87 //1. 7. }。 uchar code led_table[]={0xff,0x7f,0x3f,0x1f,0x0f,0x07,0x03,0x01,0x00}。/*發(fā)光二極管閃爍表 */ uchar code chuzhi[]={ //音調(diào)對(duì)應(yīng)的計(jì)數(shù)初值 0xff,0xff,//占 0位 0xf8,0x8c,//低 1 (0x01) a 數(shù)碼管顯示方式 0xf9,0x5b,// 2 b 0xfa,0x15,// 3 c 0xfa,0x67,// 4 d 0xfb,0x04,// 5 e 0xfb,0x90,// 6 f 0xfc,0x0c,//低 7( 0x07) g 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, /*占位 0x08 0x0b (8 11)*/ 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,/*占位 0x0c 0x10 (12 16)*/ 0xfc,0x44,//中 1 ( 0x11) (17) 0xfc,0xac,// 2 0xfd,0x09,// 3 0xfd,0x34,// 4 0xfd,0x82,// 5 0xfd,0xc8,// 6 0xfe,0x06,//中 7 ( 0x17) (23) 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, /*占位 0x18 0x1b (24 27)*/ 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, /*占位 0x1c 0x20 (28 32)*/ 0xfe,0x22,//高 1 ( 0x21) 1. (33) 0xfe,0x56,// 2 2. 0xfe,0x85,// 3 3. 0xfe,0x9a,// 4 4. 0xfe,0xc1,// 5 5. 0xfe,0xe4,// 6 6. 0xff,0x03 //高 7 ( 0x27) 7. (39) 16 }。 uchar code ymt[]={//玉滿堂 0x96,0x00, //曲速 0x96表示 150拍 /分 0x00,0x0a,0x05,0x02,0x15,0x02,0x12,0x02, 0x13,0x04,0x13,0x02,0x15,0x02,0x12,0x04,0x12,0x02,0x13,0x02, 0x12,0x10, 0x13,0x04,0x13,0x02,0x12,0x02,0x13,0x04,0x15,0x02,0x16,0x02, 0x15,0x0c,0x13,0x02,0x15,0x02, 0x16,0x04,0x16,0x02,0x21,0x02,0x16,0x04,0x15,0x02,0x13,0x02, 0x15,0x0c,0x15,0x02,0x16,0x02, 0x21,0x04,0x21,0x02,0x22,0x02,0x23,0x04,0x22,0x02,0x21,0x02, 0x22,0x10, 0x23,0x08,0x15,0x02,0x16,0x02,0x21,0x02,0x22,0x02, 0x23,0x04,0x23,0x02,0x22,0x02,0x21,0x06,0x21,0x02, 0x16,0x04,0x16,0x02,0x21,0x02,0x16,0x04,0x13,0x04, 0x15,0x10, 0x16,0x04,0x16,0x02,0x21,0x02,0x16,0x04,0x21,0x02,0x22,0x02, 0x23,0x04,0x23,0x02,0x22,0x02,0x21,0x06,0x21,0x02, 0x16,0x02,0x21,0x02,0x16,0x02,0x21,0x02,0x22,0x02,0x23,0x02,0x25,0x02,0x23,0x02, 0x22,0x0c,0x21,0x02,0x22,0x02, 0x23,0x06,0x15,0x02,0x16,0x02,0x21,0x02,0x22,0x02, 0x23,0x04,0x23,0x02,0x22,0x02,0x21,0x06,0x21,0x02, 0x16,0x04,0x16,0x02,0x21,0x02,0x16,0x02,0x21,0x02,0x15,0x02,0x13,0x02, 0x15,0x0c,0x13,0x02,0x15,0x02, 0x16,0x04,0x16,0x02,0x21,0x02,0x16,0x04,0x16,0x02,0x21,0x02, 0x22,0x04,0x22,0x02,0x23,0x02,0x22,0x04,0x22,0x02,0x23,0x02, 0x25,0x02,0x26,0x02,0x23,0x02,0x25,0x02,0x22,0x02,0x23,0x02,0x21,0x02,0x16,0x02, 0x21,0x10, 0xff }。 uchar code dl[]={ //蝶戀 0x8c,0x00, //曲速 0x8c表示 140拍 /分 0x13,0x04,0x13,0x04,0x13,0x04,0x12,0x04,0x13,0x08, 0x12,0x04,0x13,0x04,0x12,0x04,0x12,0x04,0x06,0x08, 0x06,0x04,0x07,0x04,0x11,0x08,0x12,0x04,0x11,0x04,0x07,0x08,0x06,0x04,0x05,0x04,0x06,0x10, 0x13,0x04,0x13,0x04,0x13,0x04,0x12,0x04,0x13,0x0c, 0x16,0x04,0x15,0x04,0x16,0x04,0x15,0x04,0x15,0x04,0x12,0x04, 0x12,0x04,0x13,0x04,0x14,0x08,0x15,0x04,0x14,0x04,0x13,0x04,0x12,0x04,0x11,0x04,0x13,0x0f,0x13,0x0c, 0x13,0x04,0x16,0x08,0x17,0x04,0x16,0x04,0x15,0x0c,0x13,0x04,0x15,0x0f, 0x13,0x04,0x15,0x04,0x12,0x08,0x16,0x04,0x15,0x04,0x13,0x08,0x12,0x04,0 17 x12,0x04,0x13,0x0c, 0x12,0x08,0x16,0x04,0x16,0x0c, 0x11,0x08,0x16,0x04,0x16,0x08, 0x16,0x04,0x17,0x04,0x21,0x08,0x17,0x04,0x16,0x04,0x17,0x08,0x16,0x04,0x17,0x04,0x13,0x08,0x13,0x0c, 0x13,0x04,0x16,0x08,0x17,0x08,0x16,0x04,0x15,0x0c,0x13,0x04,0x15,0x10, 0x14,0x04,0x15,0x04,0x16,0x08,0x17,0x04,0x16,0x04,0x17,0x08, 0x16,0x04,0x17,0x04,0x13,0x10,0x13,0x10, 0x12,0x08,0x16,0x04,0x16,0x02,0x16,0x10, 0x11,0x04,0x16,0x04,0x16,0x02,0x16,0x08, 0x16,0x04,0x17,0x04,0x21,0x08,0x17,0x04,0x16,0x04,0x17,0x08,0x15,0x08,0x16,0x10, 0x23,0x04,0x22,0x04,0x22,0x04,0x21,0x04,0x21,0x04,0x17,0x04,0x17,0x04,0x16,0x04, 0x21,0x04,0x17,0x04,0x17,0x04,0x16,0x04,0x16,0x04,0x15,0x04,0x15,0x04,0x14,0x04, 0x16,0x04,0x15,0x04,0x15,0x04,0x14,0x04,0x14,0x04,0x13,0x04,0x13,0x04,0x12,0x04, 0x13,0x10,0x13,0x10, 0xff }。 uchar code srkl[]={//生日快樂 0x78,0x00, //曲速 120 0x15,0x02,0x15,0x02, 0x16,0x04,0x15,0x04,0x21,0x04, 0x17,0x04,0x00,0x04,0x15,0x02,0x15,0x02, 0x16,0x04,0x15,0x04,0x22,0x04, 0x21,0x08,0x15,0x02,0x15,0x02, 0x25,0x04,0x23,0x04,0x21,0x04
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1