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

正文內(nèi)容

嵌入式簡易電子琴系統(tǒng)設(shè)計報告(參考版)

2024-08-12 20:31本頁面
  

【正文】 // 熄滅LED GPIOPinWrite(LED8_PORT, LED8_PIN, 0xFF)。 // 熄滅LED GPIOPinWrite(LED6_PORT, LED6_PIN, 0xFF)。 // 熄滅LED GPIOPinWrite(LED4_PORT, LED4_PIN, 0xFF)。 // 點亮LED GPIOPinWrite(LED2_PORT, LED2_PIN, 0xFF)。 // 設(shè)置KEY 所在管腳為輸入 for (。 SysCtlPeriEnable(KEY_PERIPH2)。 GPIOPinTypeIn(GPIO_PORTA_BASE, GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3)。 SysCtlPeriEnable(SYSCTL_PERIPH_GPIOA)。 // 時鐘初始化:晶振, 6MHz buzzerInit()。 // 使能 LED所在的 GPIO 端口 GPIOPinTypeOut(LED8_PORT, LED8_PIN)。 // 使能 LED所在的 GPIO 端口 GPIOPinTypeOut(LED7_PORT, LED7_PIN)。 // 使能 LED所在的 GPIO 端口 GPIOPinTypeOut(LED6_PORT, LED6_PIN)。 // 使能 LED所在的 GPIO 端口 GPIOPinTypeOut(LED5_PORT, LED5_PIN)。 // 使能 LED所在的 GPIO 端口 GPIOPinTypeOut(LED4_PORT, LED4_PIN)。 // 使能 LED所在的 GPIO 端口 GPIOPinTypeOut(LED3_PORT, LED3_PIN)。 // 使能 LED所在的 GPIO 端口 GPIOPinTypeOut(LED2_PORT, LED2_PIN)。 // 使能 LED 所在的 GPIO 端口 GPIOPinTypeOut(LED1_PORT, LED1_PIN)。 return num。 } } if(guan==0xee) { SysCtlDelay(5 * (TheSysClock / 4000))。 if(guan==0xde) { num=5。 return num。 } } if(guan==0xbe) { SysCtlDelay(5 * (TheSysClock / 4000))。 上海師范 大學(xué) 天華學(xué)院電子工程系 ARM 綜合設(shè)計 31 if(guan==0x7e) { num=12。 guan=jian|guan。 jian=GPIOPinRead(GPIO_PORTA_BASE,0xff)amp。 guan=GPIOPinRead(GPIO_PORTC_BASE, 0xff)amp。 GPIOPinWrite(GPIO_PORTA_BASE,GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3,0X0e)。 GPIOPinTypeOut(GPIO_PORTA_BASE,GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3)。 return num。 } } if(guan==0xed) { SysCtlDelay(5 * (TheSysClock / 4000))。 if(guan==0xdd) { num=15。 return num。 } } if(guan==0xbd) { SysCtlDelay(5 * (TheSysClock / 4000))。 if(guan==0x7d) { num=14。 guan=jian|guan。 jian=GPIOPinRead(GPIO_PORTA_BASE,0xff)amp。 guan=GPIOPinRead(GPIO_PORTC_BASE, 0xff)amp。 GPIOPinWrite(GPIO_PORTA_BASE,GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3,0X0d)。 GPIOPinTypeOut(GPIO_PORTA_BASE,GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3)。 上海師范 大學(xué) 天華學(xué)院電子工程系 ARM 綜合設(shè)計 29 return num。 } } if(guan==0xeb) { SysCtlDelay(5 * (TheSysClock / 4000))。 if(guan==0xdb) { num=6。 return num。 } } if(guan==0xbb) { SysCtlDelay(5 * (TheSysClock / 4000))。 if(guan==0x7b) { num=13。 guan=jian|guan。 jian=GPIOPinRead(GPIO_PORTA_BASE,0xff)amp。 guan=GPIOPinRead(GPIO_PORTC_BASE, 0xff)amp。 GPIOPinTypeOut(GPIO_PORTA_BASE,GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3)。 GPIOPinWrite(GPIO_PORTA_BASE,GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3,0X0b)。 return num。 } } if(guan==0xe7) { SysCtlDelay(5 * (TheSysClock / 4000))。 if(guan==0xd7) { num=4。 return num。 } } if(guan==0xb7) { SysCtlDelay(5 * (TheSysClock / 4000))。 if(guan==0x77) {num=11。 guan=jian|guan。 jian=GPIOPinRead(GPIO_PORTA_BASE,GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3)amp。 guan=GPIOPinRead(GPIO_PORTC_BASE, GPIO_PIN_4| GPIO_PIN_5| GPIO_PIN_6| GPIO_PIN_7)amp。 GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3,0X07)。 GPIOPinTypeOut(GPIO_PORTA_BASE,GPIO_PIN_0| GPIO_PIN_1| GPIO_PIN_2| GPIO_PIN_3)。 if(guan!=0xf0) { SysCtlDelay(5 * (TheSysClock / 4000))。0x0f。0xf0。 GPIOPinTypeIn(GPIO_PORTC_BASE,GPIO_PIN_4| GPIO_PIN_5| GPIO_PIN_6| GPIO_PIN_7)。 GPIOPinWrite(GPIO_PORTC_BASE,GPIO_PIN_4| GPIO_PIN_5| GPIO_PIN_6| GPIO_PIN_7,0Xf0)。 } GPIOPinTypeOut(GPIO_PORTC_BASE,GPIO_PIN_4| GPIO_PIN_5| GPIO_PIN_6| GPIO_PIN_7)。 } else if (GPIOPinRead(KEY_PORT2, KEY_PIN2) == 0x60) // 如果按下KEY4 { num=16。 } else if (GPIOPinRead(KEY_PORT2, KEY_PIN2) == 0x50) // 如果按下KEY3 { num=18。 //數(shù)據(jù)指針地址 } //lcd 模塊結(jié)束,矩陣鍵盤模塊開始 unsigned char KeyScan(void) { if (GPIOPinRead(KEY_PORT2, KEY_PIN2) == 0x30) // 如果按下 KEY2 { num=17。 write_(0x01)。 write_(0x0c)。 // lcden=0。 GPIOPinTypeOut(GPIO_PORTB_BASE, GPIO_PIN_0|GPIO_PIN_2)。 //使能 A 端口 GPIOPinTypeOut(GPIO_PORTD_BASE, GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2| GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7)。 // lcden=0。 SysCtlDelay(5 * (TheSysClock / 4000))。 GPIOPinWrite(GPIO_PORTB_BASE,lcden,0xFF)。//PD=date。 // lcdrs=1。 // lcden=0。 SysCtlDelay(5 * (TheSysClock / 4000))。 // 延時 5ms GPIOPinWrite(GPIO_PORTB_BASE,lcden,0xFF)。//PD=。 // lcdrs=0。 int numm。 int guan。 //PD0PD7。 define lcdrs GPIO_PIN_2 //PB2。 GPIOPinWrite(LED8_PORT, LED8_PIN, 0xFF)。 GPIOPinWrite(LED6_PORT, LED6_PIN, 0xFF)。 GPIOPinWrite(LED4_PORT, LED4_PIN, 0xFF)。 // 點亮 LED GPIOPinWrite(LED2_PORT, LED2_PIN, 0xFF)。 buzzerQuiet()。 // 空格 write_data(32)。 // 空格 write_data(32)。 // 空格 write_data(32)。 //整型數(shù)據(jù)轉(zhuǎn)換為 ASC2//M write_data(54)。 // 空格 write_data(32)。 // 空格 write_data(32)。 //設(shè)定上排的顯
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1