• /  20
  • 下載費用: 14.9積分  

雙語教學_黃英_《單片機原理及應用》講義.ppt

'雙語教學_黃英_《單片機原理及應用》講義.ppt'
Chapter 7 : Serial Communication of 80C51 MicrocontrollerMicrocontroller Principle and Application主講教師:黃英1Chapter 7: Serial Communication of 80C51 Microcontroller7.1 Introduction of Serial communication 7.2 80C51 Serial PortContents: 7.3 Mode 0 (8-bit synchronous shift register)7.4 Mode 17.6 Application of serial communication Home Work7.5 Mode 2 & Mode 32Return7.1 Introduction of Serial communication 1. Features of serial data communication2. Types of serial communication3. Connection forms of serial communicationContents: 31. Features of serial data communication· To transfer data by bit· Low speed· Far distance· Low costReturn4Return2. Types of serial communicationI. Asynchronous serial transmissionII. Synchronous serial transmission5Return· Frame format: start bit + data bit + parity check bit + stop bit· Transfer data Continuously or spasmodically.I. Asynchronous serial transmission6Return· Synchronous character + Data bit · Transfer data Continuously.· Compare with asynchronous serial transmission, it transfers data with higher speed. II. Synchronous serial transmission73. Connection forms of serial communication· Simplex· Half-duplex· Full-duplex Return87.2 80C51 Serial Port· Serial Port: Serial interface circuit1. Hardware structure of 80C51 serial portContents: 2. Control Registers of 80C51 serial portReturn91. Hardware structure of 80C51 serial port· UART Universal Asynchronous Receiver/Transmitter· USRT Universal synchronous Receiver/Transmitter· USART Universal Synchronous Asynchronous Receiver/Transmitter10· Transmit register· Receive register· Shift register 8 bitsP3.1P3.0SCON register:11Two main functions of Serial port: · Parallel data → Serial data · Serial data → Parallel dataP3.1P3.0Return122. Control registers of 80C51 serial port· Serial Control Register(SCON) P161· Interrupt Enable Register(IE) P101· Interrupt Priority Register(IP) P102Return137.3 Mode 080C51 serial port has four types of working modes · mode 0, mode 1, mode 2, mode 314Mode 0 is used as a 8-bit synchronous shift register by adopting “parallel input/serial output chip 74165” and “serial input/parallel output chip 74164”. (P3.0)(P3.1)· Baud rate of Mode 0: = fosc/12Return157.4 Mode 1· Mode 1 is a 10-bit asynchronous serial communication mode that integrates 10 bits into one frame and is used for serial communication between two hosts. (1 start bit + 8 data bit + 1 stop bit)· Start bit and Stop bit are integrated with data bits by hardware automatically when transmitting or receiving data.· Baud rate of mode 1 is: = (2smod/32)×(T1 溢出率) = (2smod/32)×{ fosc/[12×(256-X)]} ※ Timer 1 is under Mode 2(8 bit auto reload mode)Return167.5 Mode 2 & Mode 3· Mode 2 & Mode 3 are 11-bit asynchronous serial communication modes that integrate 11 bits into one frame and are used for serial communication among multi-hosts. 【1 start bit + (8+1)data bit + 1 stop bit】 Serial Control Register(SCON) P161· The difference between Mode 2 and Mode 3 is the setting of baud rate. 17· In Mode 3, Baud rate is: = (2smod/32)×(T1 溢出率) = (2smod/32)×{ fosc/[12×(256-X)]} ※ Timer 1 is under Mode 2(8-bit auto reload mode)· In Mode 2, baud rate = fosc×2smod/64. where “smod” is equal to “1” or “0” and is found in PCON register. Power Control Register (PCON)Return187.6 Application of serial communicationReturn19 Home Work of Chapter 7· P174 (一)1-6 (二)1-7 Return20
關 鍵 詞:
教學 講義 雙語 單片機原理及應用
 天天文庫所有資源均是用戶自行上傳分享,僅供網友學習交流,未經上傳用戶書面授權,請勿作他用。
關于本文
本文標題:雙語教學_黃英_《單片機原理及應用》講義.ppt
鏈接地址: http://www.476824.live/p-51497430.html
關于我們 - 網站聲明 - 網站地圖 - 資源地圖 - 友情鏈接 - 網站客服點擊這里,給天天文庫發消息,QQ:1290478887 - 聯系我們

本站為“文檔C2C交易模式”,即用戶上傳的文檔直接賣給(下載)用戶,本站只是中間服務平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有【成交的100%(原創)】。本站是網絡服務平臺方,若您的權利被侵害,侵權客服QQ:1290478887 歡迎舉報。

[email protected] 2017-2027 http://www.476824.live 網站版權所有

粵ICP備19057495號 

收起
展開
球探网即时蓝球比分 河南22选5走势图彩票大赢家 股票指数期货开户 广西体彩十一选五开枪 下期双色球的必开号码 天津11选五平台哪个好 贵州11选5精准预测 太阳集团娱乐网址首页 山东11选5和值表 中国铝业股票行情 广东好彩1开奖号码