i2c通訊實現(xiàn).doc
約17頁DOC格式手機打開展開
i2c通訊實現(xiàn),i2c通訊實現(xiàn)1.2萬字 16頁摘要i2c總線是philips公司開發(fā)的一種簡單、雙向、二線制、同步串行總線。它只需兩根線(串行時鐘線和串行數(shù)據(jù)線)即可在連接于總線上的器件之間傳送信息。該總線是高性能串行總線,具備多主機系統(tǒng)所需要的裁決和高低速設(shè)備同步等功能,應(yīng)用極為廣泛。目前,單片機應(yīng)用系統(tǒng)的外圍擴展已從并行方式為主...
內(nèi)容介紹
此文檔由會員 xiaowei 發(fā)布
I2C通訊實現(xiàn)
1.2萬字 16頁
摘要 I2C總線是PHILIPS公司開發(fā)的一種簡單、雙向、二線制、同步串行總線。它只需兩根線(串行時鐘線和串行數(shù)據(jù)線)即可在連接于總線上的器件之間傳送信息。該總線是高性能串行總線,具備多主機系統(tǒng)所需要的裁決和高低速設(shè)備同步等功能,應(yīng)用極為廣泛。目前,單片機應(yīng)用系統(tǒng)的外圍擴展已從并行方式為主過渡到以串行方式為主的時代。許多新型外圍器件都帶有串行擴展接口。通常的串行擴展接口和串行擴展總線有UART的移位寄存器方式、MOTOROLA公司的SPI、NS公司的Microwire、Dallas公司的1Wire和Philips公司的I2C總線等。其中,I2C總線提供了較完善的總線協(xié)議、最簡單的串行連接方式.
I2C總線是1個十分完善的多主系統(tǒng)總線,總線上可以掛接多個MCU,因此有4種工作方式,即主發(fā)送、主接收、從發(fā)送、從接收。但實際的單片機應(yīng)用系統(tǒng)絕大多數(shù)都是單個MCU系統(tǒng),只用到I2C總線的主方式,即主發(fā)送與主接收.
本文主要討論的是通過I2C總線實現(xiàn)X25045 EEPROM與80C51 系列單片之間的通訊
關(guān)鍵詞 I2C總線,寫允許,寫數(shù)據(jù),讀狀態(tài)寄存器,寫狀態(tài)寄存器,操作碼,80C51,X25045
I2C Bus Information Transport
Abstract ` The I2C bus is a PHILIPS company development of a simple, double direction, two wire systems, synchronous string line bus .It only needs two radix wire( string line clock wire and the string line data wire) then in the connectivity among the bus parts of an apparatus piece transport information. That bus is a verdict for bus , having the many of host system needing of a line with the synchronous etc. function of high low speed equipment, application extremely extensive. Now, the outer circle that single slab machine apply the system expand already from proceed together the mode to transfer for lord with the string ages for line method is mainly. Much new peripheral equipment the piece all take to have a line to expand to connect the orifice. Usually of string the line expand to connect the orifice with the string the line expand to bus contain moving register method of UART , MOTOROLA 's SPI ,NS' Microwire, Dallas' one Wire and Philips company's I2C bus etc. Among them, the I2C bus provided the perfect bus protocol, most simple of string line connectivity method......
目 錄
摘要………………………………………………………………………………….….…1
1 背景…………………………………………………………………………………….2
2.1 I2C總線………………………………………………………………………………2
1. I2C總線介紹……………………………………………………………………………………...2
2 . I2C總線數(shù)據(jù)傳輸規(guī)范…………………………………………………………………………..3
2.2 80C51系列單片機…………………………………………………………………..3
2.3 X2504EEPROM芯片………………………………………………………………...5
1. X2504EEPROM芯片介紹……………………………………………………….5
2. 芯片內(nèi)部指令…………………………………………………………………….7
3. 特征……………………………………………………………………………….8
3. 編程與實現(xiàn)……………………………………………………………………………9
1. 80C51頭文件定義………………………………………………………………..9
2. X25045的實現(xiàn)方法………………………………………………………………12
3. 實現(xiàn)…………………………………………………………………………….…14
4. 實驗體會………………………………………………………………………………18
5. 總結(jié)……………………………………………………………………………………18
參考文獻………………………………………………………………………………...…18
參考文獻:
① 譚浩強 編著 重慶大學(xué)出版社
② 張志明 楊明廣 主編 <匯編語言程序設(shè)計> 重慶大學(xué)出版社
1.2萬字 16頁
摘要 I2C總線是PHILIPS公司開發(fā)的一種簡單、雙向、二線制、同步串行總線。它只需兩根線(串行時鐘線和串行數(shù)據(jù)線)即可在連接于總線上的器件之間傳送信息。該總線是高性能串行總線,具備多主機系統(tǒng)所需要的裁決和高低速設(shè)備同步等功能,應(yīng)用極為廣泛。目前,單片機應(yīng)用系統(tǒng)的外圍擴展已從并行方式為主過渡到以串行方式為主的時代。許多新型外圍器件都帶有串行擴展接口。通常的串行擴展接口和串行擴展總線有UART的移位寄存器方式、MOTOROLA公司的SPI、NS公司的Microwire、Dallas公司的1Wire和Philips公司的I2C總線等。其中,I2C總線提供了較完善的總線協(xié)議、最簡單的串行連接方式.
I2C總線是1個十分完善的多主系統(tǒng)總線,總線上可以掛接多個MCU,因此有4種工作方式,即主發(fā)送、主接收、從發(fā)送、從接收。但實際的單片機應(yīng)用系統(tǒng)絕大多數(shù)都是單個MCU系統(tǒng),只用到I2C總線的主方式,即主發(fā)送與主接收.
本文主要討論的是通過I2C總線實現(xiàn)X25045 EEPROM與80C51 系列單片之間的通訊
關(guān)鍵詞 I2C總線,寫允許,寫數(shù)據(jù),讀狀態(tài)寄存器,寫狀態(tài)寄存器,操作碼,80C51,X25045
I2C Bus Information Transport
Abstract ` The I2C bus is a PHILIPS company development of a simple, double direction, two wire systems, synchronous string line bus .It only needs two radix wire( string line clock wire and the string line data wire) then in the connectivity among the bus parts of an apparatus piece transport information. That bus is a verdict for bus , having the many of host system needing of a line with the synchronous etc. function of high low speed equipment, application extremely extensive. Now, the outer circle that single slab machine apply the system expand already from proceed together the mode to transfer for lord with the string ages for line method is mainly. Much new peripheral equipment the piece all take to have a line to expand to connect the orifice. Usually of string the line expand to connect the orifice with the string the line expand to bus contain moving register method of UART , MOTOROLA 's SPI ,NS' Microwire, Dallas' one Wire and Philips company's I2C bus etc. Among them, the I2C bus provided the perfect bus protocol, most simple of string line connectivity method......
目 錄
摘要………………………………………………………………………………….….…1
1 背景…………………………………………………………………………………….2
2.1 I2C總線………………………………………………………………………………2
1. I2C總線介紹……………………………………………………………………………………...2
2 . I2C總線數(shù)據(jù)傳輸規(guī)范…………………………………………………………………………..3
2.2 80C51系列單片機…………………………………………………………………..3
2.3 X2504EEPROM芯片………………………………………………………………...5
1. X2504EEPROM芯片介紹……………………………………………………….5
2. 芯片內(nèi)部指令…………………………………………………………………….7
3. 特征……………………………………………………………………………….8
3. 編程與實現(xiàn)……………………………………………………………………………9
1. 80C51頭文件定義………………………………………………………………..9
2. X25045的實現(xiàn)方法………………………………………………………………12
3. 實現(xiàn)…………………………………………………………………………….…14
4. 實驗體會………………………………………………………………………………18
5. 總結(jié)……………………………………………………………………………………18
參考文獻………………………………………………………………………………...…18
參考文獻:
① 譚浩強 編著
② 張志明 楊明廣 主編 <匯編語言程序設(shè)計> 重慶大學(xué)出版社
TA們正在看...
- 01.1四時田園雜興課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 01.2稚子弄冰課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 01.3村晚課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 02冬陽·童年·駱駝隊公開課優(yōu)秀教案教學(xué)設(shè)計(五年...doc
- 02冬陽·童年·駱駝隊最新教研教案教學(xué)設(shè)計(部編版...doc
- 02冬陽·童年·駱駝隊課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 03祖父的園子公開課優(yōu)秀教案教學(xué)設(shè)計(五年級下冊).doc
- 03祖父的園子最新教研教案教學(xué)設(shè)計(部編版五年級下...doc
- 03祖父的園子課堂教學(xué)教案教學(xué)設(shè)計(部編版).doc
- 04草船借箭公開課優(yōu)秀教案教學(xué)設(shè)計(五年級下冊).doc