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

正文內(nèi)容

基于51單片機信號發(fā)生器的設(shè)計畢業(yè)論文-資料下載頁

2025-06-28 01:57本頁面
  

【正文】 ee==2) square_out()。} typedef unsigned char uchar。typedef unsigned int uint。uchar code table1[]={ZX Wave SJ Wave JX Wave System Is Ready! Now to switch.. SAVE ...... Finish! Reading ... }。uchar idata table2[16]={F= Hz }。uchar idata table3[16]={F= Hz . V}。sbit RS=P2^0。sbit RW=P2^1。sbit E=P2^2。sbit DP=P0^7。//延時子函數(shù)void delay(uchar z) { uchar x,y。 for(x=z。x0。x) for(y=110。y0。y)。}//LCD1602液晶讀忙狀態(tài)子函數(shù)void LCD1602_wait() { RS=0。 RW=1。 E=1。 delay(10)。 E=0。 //下降沿 while(DP) { E=0。 E=1。 //仿真才需要此語句,實際硬件中不需要 } } //LCD1602液晶寫命令子函數(shù)void write_(uchar ){ RS=0。 RW=0。 P0=。 E=1。 delay(10)。 E=0。 LCD1602_wait()。}//LCD1602液晶寫數(shù)據(jù)子函數(shù)void write_date(uchar date){ RS=1。 RW=0。 P0=date。 E=1。 delay(10)。 E=0。 LCD1602_wait()。}void disp_lcd(uchar addr,uchar *temp1) reentrant{ uchar i。 write_(addr)。 delay(1)。 //延時一會兒 for(i=0。i16。i++) { write_date(temp1[i])。//或者這樣寫write_date(*(temp1+num))。 delay(1)。 }}//LCD1602液晶初始化子函數(shù)void LCD1602_init(){ E=0。 RW=0。 //初始化一定要設(shè)置為零,表示寫數(shù)據(jù) write_(0x38)。 //使液晶顯示點陣,為下面做準(zhǔn)備 write_(0x0c)。 //初始設(shè)置 write_(0x06)。 //初始設(shè)置 write_(0x01)。 //清零 write_(0x80)。 //使指針指向第一行第一格 disp_lcd(0x80,amp。table1[3*16])。 //在第一行顯示 disp_lcd(0xc0,amp。table1[4*16])。 //在第二行顯示 }uchar aa。 //39。抽點39。計數(shù)uchar bb,cc。//傳遞頻率的中間變量uchar dd=1。 //在方波輸出函數(shù)中用于簡單判別作用uchar ee。 //當(dāng)其為0、2時,分別代表三種波uchar code table4[3]={5,25,100}。 //三種波的頻率單位uchar idata table5[3]={1,1,1}。 //給每種波定義一個數(shù)組單元,用于存放單位頻率的個數(shù)uchar code table6[]={ //每隔數(shù)字8,采取一次 0x00,0x08,0x10,0x18,0x20,0x28,0x30,0x38,0x40,0x48,0x50,0x58,0x60,0x68,0x70,0x78, 0x80,0x88,0x90,0x98,0xa0,0xa8,0xb0,0xb8,0xc0,0xc8,0xd0,0xd8,0xe0,0xe8,0xf0,0xf8,0xff, 0xf8,0xf0,0xe8,0xe0,0xd8,0xd0,0xc8,0xc0,0xb8,0xb0,0xa8,0xa0,0x98,0x90,0x88,0x80, 0x78,0x70,0x68,0x60,0x58,0x50,0x48,0x40,0x38,0x30,0x28,0x20,0x18,0x10,0x08,0x00 }。uchar code table7[]={ //輸出電壓從0到最大值(正弦波1/4部分) 0x80,0x83,0x86,0x89,0x8d,0x90,0x93,0x96,0x99,0x9c,0x9f,0xa2,0xa5,0xa8,0xab,0xae,0xb1,0xb4,0xb7,0xba,0xbc, 0xbf,0xc2,0xc5,0xc7,0xca,0xcc,0xcf,0xd1,0xd4,0xd6,0xd8,0xda,0xdd,0xdf,0xe1,0xe3,0xe5,0xe7,0xe9,0xea,0xec, 0xee,0xef,0xf1,0xf2,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfd,0xfe,0xff,0xff,0xff,0xff,0xff,0xff, //輸出電壓從最大值到0(正弦波1/4部分) 0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfd,0xfc,0xfb,0xfa,0xf9,0xf8,0xf7,0xf6,0xf5,0xf4,0xf2,0xf1,0xef, 0xee,0xec,0xea,0xe9,0xe7,0xe5,0xe3,0xe1,0xde,0xdd,0xda,0xd8,0xd6,0xd4,0xd1,0xcf,0xcc,0xca,0xc7,0xc5,0xc2, 0xbf,0xbc,0xba,0xb7,0xb4,0xb1,0xae,0xab,0xa8,0xa5,0xa2,0x9f,0x9c,0x99 ,0x96,0x93,0x90,0x8d,0x89,0x86,0x83,0x80, //輸出電壓從0到最小值(正弦波1/4部分) 0x80,0x7c,0x79,0x76,0x72,0x6f,0x6c,0x69,0x66,0x63,0x60,0x5d,0x5a,0x57,0x55,0x51,0x4e,0x4c,0x48,0x45,0x43, 0x40,0x3d,0x3a,0x38,0x35,0x33,0x30,0x2e,0x2b,0x29,0x27,0x25,0x22,0x20,0x1e,0x1c,0x1a,0x18,0x16 ,0x15,0x13, 0x11,0x10,0x0e,0x0d,0x0b,0x0a,0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00, //輸出電壓從最小值到0(正弦波1/4部分) 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02 ,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0d,0x0e,0x10, 0x11,0x13,0x15 ,0x16,0x18,0x1a,0x1c,0x1e,0x20,0x22,0x25,0x27,0x29,0x2b,0x2e,0x30,0x33,0x35,0x38,0x3a,0x3d, 0x40,0x43,0x45,0x48,0x4c,0x4e,0x51,0x55,0x57,0x5a,0x5d,0x60,0x63,0x66 ,0x69,0x6c,0x6f,0x72,0x76,0x79,0x7c,0x80 }。sbit DA_S1=P2^7。//控制DAC0832的8位輸入寄存器,僅當(dāng)都為0時,可以輸出數(shù)據(jù)(處于直通狀態(tài)),否則,輸出將被鎖存//三角波輸出子函數(shù)void triangle_out() { P1=table6[aa++]。 if(aa64) aa=0。 DA_S1=0。 //打開8位輸入寄存器 DA_S1=1。 //關(guān)閉8位輸入寄存器}//正弦波輸出子函數(shù)void sine_out() { P1=table7[aa++]。 DA_S1=0。 //打開8位輸入寄存器 DA_S1=1。 //關(guān)閉8位輸入寄存器}//方波輸出子函數(shù)void square_out() { dd=~dd。 if(dd==1) P1=0xff。 else P1=0x00。 DA_S1=0。 //打開8位輸入寄存器 DA_S1=1。 //關(guān)閉8位輸入寄存器}
點擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1