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

正文內(nèi)容

嵌入式時(shí)鐘設(shè)計(jì)-資料下載頁(yè)

2025-06-30 00:30本頁(yè)面
  

【正文】 。 // Set Port GPB0 to output for _PWR_OK signal // rGPDDAT amp。=~(ONEBIT 0)。 // set _PWR_OK to 0 KEYPADDIRMO。 // Setup SPI registers // Interrupt mode, prescaler enable, master mode, active high clock, format B, normal mode // rSPCON1 = (ONEBIT5)|(ONEBIT4)|(ONEBIT3)|(0x02)|(ONEBIT1)。 // Poll mode, prescaler enable, master mode, active high clock, format A, normal mode rSPCON1 = (05)|(ONEBIT4)|(ONEBIT3)|(0x02)|(01)。 // Developer MUST change the value of prescaler properly whenever value of PCLK is changed. rSPPRE1 = 255。 // = 203M/4/2/(255+1) PCLK= FCLK=203Mhz SPICLK= putcToKBCTL(0xa4)。 //send init mand rSRCPND = BIT_EINT1。 //to clear the previous pending states rINTPND = BIT_EINT1。 //Define the keypad int entry pISR_EINT1 = (unsigned)KeyPad_Int。 rINTMSK=~(BIT_EINT1)。 //enable Eint return(TRUE)。}U8 KeyChange(U8 KeyValue){ U8 KeyReturn = 255。 switch(KeyValue) { case 32://NumLock { KeyReturn = NUMLOCK。break。 } case 33:// 7 { KeyReturn = KEY7。break。 } case 34:// 4 { KeyReturn = KEY4。break。 } case 35:// 1 { KeyReturn = KEY1。break。 } case 40:// / { KeyReturn = RIGHT_SLASH。break。 //date_time_turn = DATE_TURN。 } case 41:// 8 { KeyReturn = KEY8。break。 } case 42:// 5 { KeyReturn = KEY5。break。 } case 43:// 2 { KeyReturn = KEY2。break。 } case 44:// 0 { KeyReturn = KEY0。break。 } case 48:// * { KeyReturn = STAR。break。 } case 49:// 9 { KeyReturn = KEY9。break。 } case 50:// 6 { KeyReturn = KEY6。break。 } case 51:// 3 { KeyReturn = KEY3。break。 } case 52:// . { KeyReturn = DOT。break。 } case 55:// { KeyReturn = MINUS。break。 } case 57:// +,未使用 { KeyReturn = PLUS。break。 } case 59:// Enter { KeyReturn = ENTER。break。 } default: KeyReturn = 255。 } return KeyReturn。}void __irq KeyPad_Int(void){ U8 ui8ScanCode。 KeyDown = 1。 ui8ScanCode=readKBValue()。 KeyReal = KeyChange(ui8ScanCode)。 if(KeyReal == NUMLOCK)//設(shè)置當(dāng)前的時(shí)間 { SetTime = 1。 } if(KeyReal == RIGHT_SLASH)//設(shè)置鬧鐘的時(shí)間 { SetAlarm = 1。 } ClearPending(BIT_EINT1)。 }23
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1