The 87LPC76X Microcontroller combines in a small package thebenefits of a high-performance microcontroller with on-boardhardware supporting the Inter-Integrated Circuit (I2C) bus interface.The 87LPC76X can be programmed both as an I2C bus master, aslave, or both. An overview of the I2C bus and description of the bussupport hardware in the 87LPC76X microcontrollers appears inapplication note AN464, Using the 87LPC76X Microcontroller as anI2C Bus Master. That application note includes a programmingexample, demonstrating a bus-master code. Here we show anexample of programming the microcontroller as an I2C slave.The code listing demonstrates communications routines for the87LPC76X as a slave on the I2C bus. It compliments the program inAN464 which demonstrates the 87LPC76X as an I2C bus master.One may demonstrate two 87LPC76X devices communicating witheach other on the I2C bus, using the AN464 code in one, and theprogram presented here in the other. The examples presented hereand in AN464 allow the 87LPC76X to be either a master or a slave,but not both. Switching between master and slave roles in amultimaster environment is described in application note AN435.The software for a slave on the bus is relatively simple, as theprocessor plays a relatively passive role. It does not initiate bustransfers on its own, but responds to a master initiating thecommunications. This is true whether the slave receives or transmitsdata—transmission takes place only as a response to a busmaster’s request. The slave does not have to worry about arbitrationor about devices which do not acknowledge their address. As theslave is not supposed to take control of the bus, we do not demandit to resolve bus exceptions or “hangups”. If the bus becomesinactive the processor simply withdraws, not interfering with themaster (or masters) on the bus which should (hopefully) try toresolve the situation.
上传时间: 2013-11-19
上传用户:shirleyYim
I2C interface, is a very powerful tool for system designers. Theintegrated protocols allow systems to be completely software defined.Software development time of different products can be reduced byassembling a library of reusable software modules. In addition, themultimaster capability allows rapid testing and alignment ofend-products via external connections to an assembly-line computer.The mask programmable 87LPC76X and its EPROM version, the87LPC76X, can operate as a master or a slave device on the I2Csmall area network. In addition to the efficient interface to thededicated function ICs in the I2C family, the on-board interfacefacilities I/O and RAM expansion, access to EEPROM andprocessor-to-processor communications.
标签: microcontro Using 76X LPC
上传时间: 2013-12-30
上传用户:Artemis
The Hardware Book (WinHelp32) Information from The Hardware Book
上传时间: 2013-11-23
上传用户:cepsypeng
The VHDL Cookbook是 是VHDL编码书籍。
上传时间: 2013-11-13
上传用户:zhengjian
The Linux Programming Interface - A Linux and UNIX System
标签: Programming Linux Interface Handbook
上传时间: 2013-11-10
上传用户:asdstation
The C++ Programming Language Special 3rd Edition。 经典C++教材
标签: Programming Language Edition Special
上传时间: 2013-11-20
上传用户:netwolf
The Circuit Designer’s Companion Second edition Tim Williams
标签: Designers Companion Circuit PCB
上传时间: 2013-10-08
上传用户:sxdtlqqjl
The VHDL Cookbook是 是VHDL编码书籍。
上传时间: 2013-11-19
上传用户:lixqiang
program to trasmit data to a TI92 with the TI Graph-Link
标签: Graph-Link program trasmit data
上传时间: 2015-01-03
上传用户:youke111
CSL is a programming language with C syntax and comprehensive libraries. The compact scripting engine can also be embedded into your own applications as a powerful macro language. Windows Distribution utilities.
标签: comprehensive programming libraries scripting
上传时间: 2013-11-27
上传用户:xuanchangri