MODBUS Slave单片机程序,支持51和AVRmodbusM16
标签: AVRmodbusM MODBUS Slave 16
上传时间: 2013-10-18
上传用户:manga135
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
Atmel SPI Slave C51程序
上传时间: 2013-12-23
上传用户:thesk123
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 can then read the bytes back from the buffer.
标签: implements I2C functions the
上传时间: 2015-04-02
上传用户:邶刖
KeilC51下的USB的Slave设备源码,MCS51开发.
上传时间: 2014-08-22
上传用户:LIKE
Comlete files for fullfile the Slave USB function!
标签: fullfile function Comlete files
上传时间: 2015-05-07
上传用户:change0329
周立功dp51h附带lin总线通讯代码,包括master和Slave
上传时间: 2013-12-11
上传用户:sqq
cy7c68013英文资料,里面介绍了如何设置GPIF/Slave固件程序,以及介绍了和驱动程序的接口程序的编写
上传时间: 2015-05-26
上传用户:1159797854
for serial communication single-Slave with buffer sum check
标签: communication single-Slave buffer serial
上传时间: 2015-06-06
上传用户:hxy200501
完整的I2C Slave model以及spec詳附在內,適合想利用verilog開發此類傳輸的人參考
上传时间: 2015-06-10
上传用户:s363994250