資料介紹
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.
下載該資料的人也在下載
下載該資料的人還在閱讀
更多 >
- 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è)計(jì)與綜合 60次下載
- I2C Guid I2C指南
- I2C總線規(guī)范與I2C器件C51讀寫程序
- 基于I2C總線的鍵盤顯示模塊設(shè)計(jì)
- i2c總線的特點(diǎn)
- 用87LPC76X微控制器做為IIC總線主器件
- 87LPC76X的IIC從程序
- i2c總線ppt(I2C總線器件應(yīng)用) 0次下載
- I2C協(xié)議的基礎(chǔ)知識 613次閱讀
- I2C地址跳變問題的調(diào)試案例 1893次閱讀
- I2C通信協(xié)議及其工作原理 4991次閱讀
- Linux I2C驅(qū)動入門知識科普 1734次閱讀
- I2C通信的詳細(xì)講解 13.6w次閱讀
- 什么是I2C通信協(xié)議? 7823次閱讀
- i2c總線用來做什么_i2c總線數(shù)據(jù)傳輸過程 7303次閱讀
- fireflyAIO-3288C主板I2C簡介 1410次閱讀
- 基于MCS-51單片機(jī)I2C總線接口電路的設(shè)計(jì) 3457次閱讀
- I2C總線的工作原理解析 6717次閱讀
- 80C51單片機(jī)模擬I2C總線的主機(jī)程序分享 3482次閱讀
- I2C總線的特點(diǎn)、控制技術(shù)與傳輸分析 1w次閱讀
- u-boot i2c的調(diào)試 2300次閱讀
- 《振南電子STM32視頻教程》第八講:I2C總線 1119次閱讀
- 基于FPGA的I2C SLAVE模式總線的設(shè)計(jì)方案 1.3w次閱讀
下載排行
本周
- 1DH1766系列·三路可編程直流電源技術(shù)手冊
- 1.93 MB | 3次下載 | 免費(fèi)
- 2智能蓄電池充放電測試儀 蓄電池放電檢測儀專業(yè)防護(hù)功能
- 0.13 MB | 2次下載 | 免費(fèi)
- 3GD選型手冊
- 6.92 MB | 2次下載 | 免費(fèi)
- 4FP136 高端電流檢測IC芯片說明書
- 0.62 MB | 1次下載 | 免費(fèi)
- 533A66-B1 rk3399開發(fā)板規(guī)格書
- 1.15 MB | 1次下載 | 1 積分
- 6FP137 高端電流檢測IC芯片說明書
- 0.68 MB | 1次下載 | 免費(fèi)
- 7HAL9303線性霍爾效應(yīng)傳感器技術(shù)手冊
- 0.70 MB | 1次下載 | 免費(fèi)
- 8HC88L051F4低功耗芯片規(guī)格書
- 4.76 MB | 1次下載 | 免費(fèi)
本月
- 1常用電子元器件使用手冊
- 2.40 MB | 34次下載 | 免費(fèi)
- 2高功率密度碳化硅MOSFET軟開關(guān)三相逆變器損耗分析
- 2.27 MB | 33次下載 | 10 積分
- 3MS1826 HDMI 多功能視頻處理器數(shù)據(jù)手冊
- 4.51 MB | 8次下載 | 免費(fèi)
- 4USB拓展塢PCB圖資料
- 0.57 MB | 8次下載 | 免費(fèi)
- 5經(jīng)典1000W純正弦波逆變器原理圖資料
- 0.08 MB | 8次下載 | 10 積分
- 6TYPEC電路原理圖資料
- 0.14 MB | 7次下載 | 免費(fèi)
- 7SR520-SR5100肖特基二極管規(guī)格書
- 0.11 MB | 4次下載 | 免費(fèi)
- 8DH1766系列·三路可編程直流電源技術(shù)手冊
- 1.93 MB | 3次下載 | 免費(fèi)
總榜
- 1matlab軟件下載入口
- 未知 | 935134次下載 | 10 積分
- 2開源硬件-PMP21529.1-4 開關(guān)降壓/升壓雙向直流/直流轉(zhuǎn)換器 PCB layout 設(shè)計(jì)
- 1.48MB | 420064次下載 | 10 積分
- 3Altium DXP2002下載入口
- 未知 | 233089次下載 | 10 積分
- 4電路仿真軟件multisim 10.0免費(fèi)下載
- 340992 | 191424次下載 | 10 積分
- 5十天學(xué)會AVR單片機(jī)與C語言視頻教程 下載
- 158M | 183352次下載 | 10 積分
- 6labview8.5下載
- 未知 | 81600次下載 | 10 積分
- 7Keil工具M(jìn)DK-Arm免費(fèi)下載
- 0.02 MB | 73818次下載 | 10 積分
- 8LabVIEW 8.6下載
- 未知 | 65991次下載 | 10 積分
電子發(fā)燒友App






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