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

正文內(nèi)容

基于單片機的計算器-文庫吧資料

2025-06-28 15:39本頁面
  

【正文】 。 //P2口循環(huán)左移1位 P0=0x00。 delay(3)。} } else //否則minus==1表示顯示的數(shù)據(jù)是負數(shù) if(show_0) //顯示0 {P0=0xb7。} //調(diào)用數(shù)碼管顯示數(shù)據(jù)子程序 else if(show_3) //顯示*** { scan_show(position,3)。} //0xb7是0的段碼 else if(show_1) //顯示* {P0=showcode[position[0]]。 //函數(shù)申明include //延時1ms子程序include //鍵碼顯示子程序include //鍵盤掃描子程序include //位數(shù)分離存儲子程序include //存儲數(shù)據(jù)子程序include //執(zhí)行計算功能的子程序include //處理聯(lián)合子程序/************************** function end ***********************//********************** function: 數(shù)碼管顯示 子程序***************/includevoid key_show(uint position[],uchar first) { P2=first。 /* 運算符標志 負號標志 鍵盤譯碼數(shù) 第幾操作數(shù)標志 */uint operator_signal, minus=0, key_decode,flag=0。(position[2]==0) //當百千位全為0時顯示**define show_3 (position[3]==0) //當千位全為0時顯示***//=========全局變量定義=====// /*顯示器緩沖區(qū)段碼 */uchar code showcode[]={0xB7,/*0*/0xA0,/ *1*/0xD3,/*2*/0xF1,/*3*/0xE4,/*4*/0x75,/*5*/0x77,/*6*/0xA1,/*7*/0xF7/*8*/,0xF5/*9*/}。(position[1]==0) //當十百千位全為0時顯示*define show_2 (position[3]==0)amp。(position[2]==0)amp。(position[0]==0) //當個十百千位全為0時顯示0define show_1 (position[3]==0)amp。(position[1]==0)amp。(position[2]==0) amp。 //循環(huán)執(zhí)行處理子程序}/************************** function end ***********************//******************* function: 宏定義頭文件 ***********************///數(shù)據(jù)類型定義//define uchar unsigned chardefine uint unsigned int//顯示位數(shù)定義//define show_0 (position[3]==0)amp。Keil uVision \calculator | | \function | | | | | | | | | | \include | | | 十一、源代碼(附注釋)/*******************function: 簡易計算器主函數(shù)********************/include //包含宏頭文件include //包含計算機頭文件void main() { uint j,k。實物照片:九、軟件層次結(jié)構(gòu)框圖和流程圖 開始初始化顯示器代碼和鍵驅(qū)動碼及其它參數(shù)分四組循環(huán)輸出列掃描信號鍵盤譯碼存儲按鍵數(shù)據(jù)并并顯示數(shù)據(jù)運算存儲結(jié)果并顯示顯示現(xiàn)
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦

基于單片機的簡易計算器設(shè)計-文庫吧資料

【摘要】電》