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.
资源简介: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 m...
上传时间: 2013-11-19
上传用户:shirleyYim
资源简介:传感器与检测技术 PPT版
上传时间: 2013-06-02
上传用户:eeworm
资源简介:This code implements the basic functions for an I2C slave device using the SSP module. All I2C functions are handled in an ISR. Bytes written to the slave are stored in a buffer. After a number of bytes have been written, the master device ...
上传时间: 2015-04-02
上传用户:邶刖
资源简介:Duplex UART routines for the 8xC751 and 8xC752 Microcontrollers
上传时间: 2013-12-12
上传用户:yangbo69
资源简介:Description: Library routines for the M25P05A, M25P10A, M25P20, M25P40, M25P80, M25P16, M25P32, M25P64 Serial Flash Memories
上传时间: 2014-08-22
上传用户:jhksyghr
资源简介:This program has read and write routines for the 68HC11 to interface to the AD7715 and the sample
上传时间: 2014-01-23
上传用户:sevenbestfei
资源简介:This package contains example software and associated documentation for the ColdFire MCF5249 microprocessor. The software includes sample processor initialization routines for the MCF5249 running a M5249C3 evaluation board as well as ...
上传时间: 2013-12-10
上传用户:zaizaibang
资源简介:Example code for I2C, routines for PIC16F877 to write to the 24LC01B EEPROM, using the PICDEM 2 demo board from Microchip.
上传时间: 2015-09-01
上传用户:集美慧
资源简介:I2C code for the verilog
上传时间: 2013-09-04
上传用户:DXM35
资源简介:This application note shows how to write an Inter Integrated Circuit bus driver (I²C) for the Philips P90CL301micro-controller.It is not only an example of writing a driver, but it also includes a set of application interface software rout...
上传时间: 2013-11-23
上传用户:weixiao99
资源简介:I2C algorithm for the PXA I2C bus acce
上传时间: 2013-12-31
上传用户:yiwen213
资源简介:I2C slave module The module contains N accessable Registers when in read Process, all Registers are read at a time when in write Process, only the addressed register are Writeable.
上传时间: 2016-05-13
上传用户:xauthu
资源简介:I2C-core.c - a device driver for the iic-bus interface
上传时间: 2016-05-16
上传用户:fxf126@126.com
资源简介:ST7 Mcu I2C slave mode code for learning
上传时间: 2014-11-28
上传用户:rocwangdp
资源简介:The firmware driver in C for the EEPROM I2C 24xx series.
上传时间: 2017-04-15
上传用户:123啊
资源简介:I2C slave for FPGA and CPLD.
上传时间: 2017-05-01
上传用户:水中浮云
资源简介:The aip file contains few Matlab routines for 1D line scan analysis, 1D scaling, 2D scaling, image brightness or contrast variation routine and rouitne for finding area between zero cossings of 1D times series.
上传时间: 2014-01-19
上传用户:xmsmh
资源简介:Library for the 8051 microcontroller. such as math routine, hexBCD, LCD, Keyboard, I2C, Remote, Keypad, Serial EEPROM.. ect. All lybrary function has been tested.
上传时间: 2013-11-30
上传用户:Breathe0125
资源简介:I2C slave on freescale hcs12 micro-controller for codewarrior
上传时间: 2017-08-30
上传用户:cjl42111
资源简介:数学公式库--非常不错 The GNU Scientific Library (GSL) is a collection of routines for numerical computing. The routines have been written from scratch in C, and present a modern Applications Programming Interface (API) for C programmers, a...
上传时间: 2013-12-17
上传用户:yuanyuan123
资源简介:The Gray Watson debugging malloc library is C source code for a drop in replacement for the system malloc & other memory manage ment routines. What is unique about this library is that it contains a number of powerful debugging facilities i...
上传时间: 2015-02-05
上传用户:TF2015
资源简介:Stantor is a Domotic project. It is a SCADA for the computer interface board K8055 (USB bus), K8000 (I2C bus) , X10 modules and also Webcam. It uses Browser WEB, I-mode and Wap2/Wap1, Apache,mySQL, PHP, javascript. It run with Linux 2.4 or ...
上传时间: 2013-12-18
上传用户:sevenbestfei
资源简介:The intent of the software contained on this CD is to provide support for the material covered in the textbook. All programs have been developed and tested using MATLAB Version 5.2. Although the authors believe that all routines should be c...
上传时间: 2015-07-11
上传用户:离殇
资源简介:The intent of the software contained on this CD is to provide support for the material covered in the textbook. All programs have been developed and tested using MATLAB Version 5.2. Although the authors believe that all routines should be c...
上传时间: 2013-12-30
上传用户:wweqas
资源简介:Image Compression A collection of simple routines for image compression using different techniques. 图象压缩的不同方法 BTCODE: Image compression Using Block Truncation Coding. PYRAMID: Image compression based on Gaussian Pyramids...
上传时间: 2016-05-11
上传用户:磊子226
资源简介:The sample software includes, common library, peripheral APIs, and test modules for the APIs. The common library include startup file, standard definition and header files, processor specific setup module, generic interrupt related APIs, ...
上传时间: 2014-01-15
上传用户:zl5712176
资源简介:SuperLU is a general purpose library for the direct solution of large, sparse, nonsymmetric systems of linear equations on high performance machines. The library is written in C and is callable from either C or Fortran. The library routines...
上传时间: 2017-02-20
上传用户:lepoke
资源简介:These Fourier routines were originally based on the Fourier routines of the same names from the NETLIB bihar and fftpack fortran libraries developed by Paul N. Swarztrauber at the National Center for Atmospheric Research in Boul...
上传时间: 2017-09-12
上传用户:小眼睛LSL
资源简介:samll awt programs for the beginner.
上传时间: 2014-01-23
上传用户:lyy1234
资源简介:introduct java program for the java starters.
上传时间: 2015-01-11
上传用户:caixiaoxu26