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

正文內(nèi)容

單片機(jī)課程設(shè)計(jì)--單片機(jī)與ad轉(zhuǎn)換器串行接口設(shè)計(jì)(編輯修改稿)

2025-02-09 16:46 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 ed chardefine uchar unsigned chardefine word unsigned intdefine uint unsigned intdefine ulong unsigned longdefine BYTE unsigned chardefine WORD unsigned intuint read2543(uchar port)。void CollectADmodule(uint *ad_result)。extern void time(unsigned int ucMs)。//延時(shí)單位:ms/************************************** 2543控制引腳宏定義*************************************/sbit AD_EOC = P1^0。 /* TLC2543轉(zhuǎn)換完成指示引腳EOC */sbit CLOCK = P1^2。 /*2543時(shí)鐘*/sbit AD_CS = P1^3。 /*2543片選*/sbit D_IN = P1^4。 /*2543輸入*/sbit D_OUT = P1^5。 /*2543輸出*//************************************** TLC2543驅(qū)動(dòng)程序*************************************//************************************** 名稱(chēng):read2543 功能:TLC2543驅(qū)動(dòng)模塊 輸入?yún)?shù):port通道號(hào) 輸出參數(shù):ad轉(zhuǎn)換值*************************************/uint read2543(uchar port){uint ad=0。uchar i。 P1=0xeb。 CLOCK = 0。 AD_CS = 0。 port=4。 for(i=0。i8。i++) //讀高8位 { if(D_OUT) ad|=0x01。 D_IN=(bit)(portamp。0x80)。 CLOCK=1。 CLOCK=0。 port=1。 ad=1。 } for(i
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1