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

正文內(nèi)容

sci(uart)(編輯修改稿)

2025-03-26 07:41 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 (Require to Send) 8 CTS in CTS (Clear to Send) 9 DCD in DCD (Data Carrier Detected) 4 DTR out DTR (Data Set Ready) No Handshake, should use XON/XOFF protocol,ASCII only RS232 standard Lecture4 Page 15 微控制器開發(fā)技術(shù) RS232 standard ?TTL level vs. RS232 level Lecture4 Page 16 微控制器開發(fā)技術(shù) RS232 standard ?TTL level vs. RS232 level Lecture4 Page 17 微控制器開發(fā)技術(shù) RS232 standard ?RS232標(biāo)準(zhǔn)( 1962)出現(xiàn)的比 TTL( 1964)還早 ?需要接口轉(zhuǎn)換芯片 MAX232 Microcontroller DB9 TTL/CMOS RS232 Lecture4 Page 18 微控制器開發(fā)技術(shù) Frame format 0 1 2 3 4 5 6 7 8 LSB MSB stop idle idle start UART ? NRZ (not return zero) encoding ? Several configurable parameters ?Baud rate, data bits, parity, stop bits ? Nomenclature: 9600,N81 ? LSB Least significant bit ? MSB Most significant bit Parity (stop) Lecture4 Page 19 微控制器開發(fā)技術(shù) Start/stop 位 ?接受端需要明確數(shù)據(jù)幀的邊界,即該幀從什么時(shí)候開始,什么時(shí)候結(jié)束。 ?數(shù)據(jù)位傳送之前,都要發(fā)送 START 位(always ‘ 0’ ) (從空閑狀態(tài)開始的下降沿,是 START位的開始) ?在數(shù)據(jù)位傳送結(jié)束后,還要傳送 STOP位 (always ‘ 1’ ). Lecture4 Page 20 微控制器開發(fā)技術(shù) 數(shù)據(jù)位識(shí)別 ?接受端在其時(shí)鐘上升沿采樣數(shù)據(jù)線電平,以識(shí)別數(shù)據(jù)位的高低狀態(tài)。 Lecture4 Page 21 微控制器開發(fā)技術(shù) 數(shù)據(jù)位識(shí)別 Tx_clk Rx_clk TxD RxD 傳輸過程會(huì)引起信號(hào)的延遲,會(huì)引入外部干擾導(dǎo)致的噪聲及毛刺 Lecture4 Page 22 微控制器開發(fā)技術(shù) SCI(UART)oversampling 通信雙方有約定的通信速率(波特率) 接受端按照 16倍波特率的頻率對(duì)信號(hào)進(jìn)行 over samples 使用其中 3個(gè)采樣結(jié)果,通過 3取 2的機(jī)制確定實(shí)際的信號(hào)電平狀態(tài) 如果 3個(gè)采樣結(jié)果不一致, noise標(biāo)志會(huì)置起 接收端在總線進(jìn)入空閑狀態(tài)后,通過監(jiān)測(cè)下降沿,啟動(dòng)對(duì)起始位的判斷,從而開始整個(gè)數(shù)據(jù)幀的接受。 Lecture4 Page 23 微控制器開發(fā)技術(shù) SCI(UART)oversampling Lecture4 Page 24 微控制器開發(fā)技術(shù) SCI 波特率 ?波特率: bits per second ?Question1: 按照 9600,N81的通信參數(shù),每秒可以傳送多少個(gè)字節(jié)? ?Hints: don’ t fet the start/stop bits. ?Question2: 對(duì)于一個(gè)總線頻率為 16MHz的微控制器,其 SCI最高支持的波特率是多少? Lecture4 Page 25 微控制器開發(fā)技術(shù) 波特率誤差容限 ? 接受端必須能正確的識(shí)別整個(gè)數(shù)據(jù)幀,從起始位到停止位 0/1 0/1 0/1 0/1 0/1 0/1 0/1 1 0/1 0 1 1 16*(1+8) +9 9Ttx (153/16)Trx 10Ttx clock difference tolerance ~5% 10 9 Transmitter Receiver Lecture4 Page 26 微控制器開發(fā)技術(shù) 校驗(yàn)位 ?校驗(yàn)位附加在數(shù)據(jù)幀末尾,用于檢查傳輸過程中是否發(fā)生了數(shù)據(jù)位錯(cuò)誤。 LSB MSB stop start Parity Lecture4 Page 27 微控制器開發(fā)技術(shù) Parity bit ?偶校驗(yàn) 所有數(shù)據(jù)位
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1