資料介紹
The 87LPC76X Microcontroller combines in a small package the
benefits of a high-performance microcontroller with on-board
hardware supporting the Inter-Integrated Circuit (I2C) bus interface.
The 87LPC76X can be programmed both as an I2C bus master, a
slave, or both. An overview of the I2C bus and description of the bus
support hardware in the 87LPC76X microcontrollers appears in
application note AN464, Using the 87LPC76X Microcontroller as an
I2C Bus Master. That application note includes a programming
example, demonstrating a bus-master code. Here we show an
example of programming the microcontroller as an I2C slave.
The code listing demonstrates communications routines for the
87LPC76X as a slave on the I2C bus. It compliments the program in
AN464 which demonstrates the 87LPC76X as an I2C bus master.
One may demonstrate two 87LPC76X devices communicating with
each other on the I2C bus, using the AN464 code in one, and the
program presented here in the other. The examples presented here
and in AN464 allow the 87LPC76X to be either a master or a slave,
but not both. Switching between master and slave roles in a
multimaster environment is described in application note AN435.
The software for a slave on the bus is relatively simple, as the
processor plays a relatively passive role. It does not initiate bus
transfers on its own, but responds to a master initiating the
communications. This is true whether the slave receives or transmits
data—transmission takes place only as a response to a bus
master’s request. The slave does not have to worry about arbitration
or about devices which do not acknowledge their address. As the
slave is not supposed to take control of the bus, we do not demand
it to resolve bus exceptions or “hangups”. If the bus becomes
inactive the processor simply withdraws, not interfering with the
master (or masters) on the bus which should (hopefully) try to
resolve the situation.
benefits of a high-performance microcontroller with on-board
hardware supporting the Inter-Integrated Circuit (I2C) bus interface.
The 87LPC76X can be programmed both as an I2C bus master, a
slave, or both. An overview of the I2C bus and description of the bus
support hardware in the 87LPC76X microcontrollers appears in
application note AN464, Using the 87LPC76X Microcontroller as an
I2C Bus Master. That application note includes a programming
example, demonstrating a bus-master code. Here we show an
example of programming the microcontroller as an I2C slave.
The code listing demonstrates communications routines for the
87LPC76X as a slave on the I2C bus. It compliments the program in
AN464 which demonstrates the 87LPC76X as an I2C bus master.
One may demonstrate two 87LPC76X devices communicating with
each other on the I2C bus, using the AN464 code in one, and the
program presented here in the other. The examples presented here
and in AN464 allow the 87LPC76X to be either a master or a slave,
but not both. Switching between master and slave roles in a
multimaster environment is described in application note AN435.
The software for a slave on the bus is relatively simple, as the
processor plays a relatively passive role. It does not initiate bus
transfers on its own, but responds to a master initiating the
communications. This is true whether the slave receives or transmits
data—transmission takes place only as a response to a bus
master’s request. The slave does not have to worry about arbitration
or about devices which do not acknowledge their address. As the
slave is not supposed to take control of the bus, we do not demand
it to resolve bus exceptions or “hangups”. If the bus becomes
inactive the processor simply withdraws, not interfering with the
master (or masters) on the bus which should (hopefully) try to
resolve the situation.
I2C
加入交流群
掃碼添加小助手
加入工程師交流群
下載該資料的人也在下載
下載該資料的人還在閱讀
更多 >
- Gowin I2C Master/Slave用戶指南
- 硬件I2C與模擬I2C
- STM32F103硬件I2C Slave
- 嵌入式linux應(yīng)用讀寫i2c示例
- 兼容opencores.org的I2C slave的RTL代碼 6次下載
- i2c 35次下載
- I2C總線控制的微處理器TMP87CK38N引腳功能 11次下載
- 基于Verilog的I2C控制器的設(shè)計與綜合 60次下載
- I2C Guid I2C指南
- I2C總線規(guī)范與I2C器件C51讀寫程序
- 基于I2C總線的鍵盤顯示模塊設(shè)計
- i2c總線的特點
- 用87LPC76X微控制器做為IIC總線主器件
- 87LPC76X的IIC從程序
- i2c總線ppt(I2C總線器件應(yīng)用) 0次下載
- 基于FPGA的I2C控制模塊設(shè)計 3.3k次閱讀
- I2C協(xié)議的基礎(chǔ)知識 4.4k次閱讀
- I2C地址跳變問題的調(diào)試案例 3.4k次閱讀
- I2C通信協(xié)議及其工作原理 6.7k次閱讀
- Linux I2C驅(qū)動入門知識科普 2.5k次閱讀
- I2C通信的詳細講解 13.8w次閱讀
- 什么是I2C通信協(xié)議? 8.8k次閱讀
- i2c總線用來做什么_i2c總線數(shù)據(jù)傳輸過程 7.8k次閱讀
- fireflyAIO-3288C主板I2C簡介 1.9k次閱讀
- 基于MCS-51單片機I2C總線接口電路的設(shè)計 4.1k次閱讀
- I2C總線的工作原理解析 7.2k次閱讀
- I2C總線的特點、控制技術(shù)與傳輸分析 1.1w次閱讀
- u-boot i2c的調(diào)試 2.7k次閱讀
- 《振南電子STM32視頻教程》第八講:I2C總線 1.3k次閱讀
- 基于FPGA的I2C SLAVE模式總線的設(shè)計方案 2w次閱讀
下載排行
本周
- 1冷柜-電氣控制系統(tǒng)講解
- 13.68 MB | 3次下載 | 10 積分
- 2【開源】60余套STM32單片機、嵌入式Linux、物聯(lián)網(wǎng)、人工智能項目案例及入門學(xué)習(xí)資源包
- 10.55 MB | 2次下載 | 免費
- 3MDD品牌三極管S9018數(shù)據(jù)手冊
- 2.40 MB | 1次下載 | 免費
- 4AN2606_STM32單片機系統(tǒng)內(nèi)存啟動方式應(yīng)用筆記
- 4.61 MB | 次下載 | 3 積分
- 5STM32WB 系列微控制器 OTA 和無線固件更新應(yīng)用筆記
- 1.98 MB | 次下載 | 2 積分
- 6LAT1178+關(guān)閉 SPI 會導(dǎo)致 WRPERR 錯誤的問題分析應(yīng)用筆記
- 0.47 MB | 次下載 | 3 積分
- 7PL4807 單節(jié)鋰離子電池充電器數(shù)據(jù)手冊
- 3.55 MB | 次下載 | 免費
- 8JZ4056H高耐壓30V單節(jié)線性1A鋰電池充電管理參考設(shè)計
- 2.74 MB | 次下載 | 免費
本月
- 1愛華AIWA HS-J202維修手冊
- 3.34 MB | 37次下載 | 免費
- 2PC5502負載均流控制電路數(shù)據(jù)手冊
- 1.63 MB | 24次下載 | 免費
- 3蘇泊爾DCL6907(即CHK-S007)單芯片電磁爐原理圖資料
- 0.04 MB | 6次下載 | 1 積分
- 4UWB653Pro USB口測距通信定位模塊規(guī)格書
- 838.47 KB | 5次下載 | 免費
- 5冷柜-電氣控制系統(tǒng)講解
- 13.68 MB | 3次下載 | 10 積分
- 6蘇泊爾DCL6909(即CHK-S009)單芯片電磁爐原理圖資料
- 0.08 MB | 2次下載 | 1 積分
- 7100W準諧振反激式恒流電源電路圖資料
- 0.09 MB | 2次下載 | 1 積分
- 8【開源】60余套STM32單片機、嵌入式Linux、物聯(lián)網(wǎng)、人工智能項目案例及入門學(xué)習(xí)資源包
- 10.55 MB | 2次下載 | 免費
總榜
- 1matlab軟件下載入口
- 未知 | 935137次下載 | 10 積分
- 2開源硬件-PMP21529.1-4 開關(guān)降壓/升壓雙向直流/直流轉(zhuǎn)換器 PCB layout 設(shè)計
- 1.48MB | 420064次下載 | 10 積分
- 3Altium DXP2002下載入口
- 未知 | 233089次下載 | 10 積分
- 4電路仿真軟件multisim 10.0免費下載
- 340992 | 191439次下載 | 10 積分
- 5十天學(xué)會AVR單片機與C語言視頻教程 下載
- 158M | 183353次下載 | 10 積分
- 6labview8.5下載
- 未知 | 81602次下載 | 10 積分
- 7Keil工具MDK-Arm免費下載
- 0.02 MB | 73824次下載 | 10 積分
- 8LabVIEW 8.6下載
- 未知 | 65991次下載 | 10 積分
電子發(fā)燒友App





創(chuàng)作
發(fā)文章
發(fā)帖
提問
發(fā)資料
發(fā)視頻
上傳資料賺積分
評論