PIC_Hi-Tech_C_Mike_Pearces_I2C_routines

所属分类:处理器开发
开发工具:C/C++
文件大小:51KB
下载次数:28
上传日期:2007-02-16 10:54:52
上 传 者神乎其技
说明:  A complete set of bit banged, software driven I2C routines I created for any PIC device - and they work!! These functions are single master only functions, and are ideal for communicating with things like EEPROMs, LCD Drivers, ADC Converters etc
(A complete set of bit banged, software driven I2C routines I created for any PIC device- and they work!! These functions are single master only functions, and are ideal for communicating with things like EEPROMs, LCD Drivers, ADC Converters etc)

文件列表:
249828 (0, 2011-02-18)
249828\I2C (0, 2011-02-18)
249828\I2C\m_i2c_1.c (9104, 2000-06-21)
249828\I2C\testi2c.c (1872, 1999-06-03)
249828\I2C\test_pc.c (1874, 1999-06-03)
249828\I2C\test_pc.exe (43611, 1999-06-03)
249828\I2C\V1.0.0 (0, 2011-02-18)
249828\I2C\V1.0.0\m_i2c_1.bak (6459, 2001-03-26)
249828\I2C\V1.0.0\m_i2c_1.c (6460, 2001-03-26)
249828\I2C\V1.0.0\testi2c.c (1872, 1999-06-03)
249828\I2C\V1.0.0\TESTI2C.HEX (1392, 1999-06-03)
249828\I2C\V1.0.0\test_pc.c (1874, 1999-06-03)
249828\I2C\V1.0.0\test_pc.exe (43611, 1999-06-03)

/********************************************************************** * I2C Routines * * Michael Pearce 26 March 2001 * * Electronics Workshop, Chemistry Department, University of Canterbury *********************************************************************** Processors Used So Far: PIC12C50x/67x PIC16C***/74/84/ *********************************************************************** Disclaimer: The following code has been released so that someone may possibly find something useful in them. The Author and the company he works for takes no responsibilty for the use of this code or any damage that may be caused by using part of all of this code. *********************************************************************** Overview: This is the bit bang I2C routines I wrote to work on any PIC device. These functions are SINGLE MASTER ONLY functions, and are ideal for communicating with things like E2PROMS, LCD Drivers, ADC Converters etc. Here is a list of the files: M_I2C_1.C TESTI2C.C TEST_PC.C TEST_PC.EXE *************************** M_I2C_1.C ************************** DESCRIPTION: A complete set of bit banged, software driven I2C routines I created - and they work!! Functions are: char I2C_Send(char Address,char *Data,char Num); char I2C_Read(char Address,char *Data,char Num); char i2csendbyte(char byte); char i2cgetbyte(void); char i2cgetack(void); void i2csendack(void); void i2cdelay(char delay); void i2cstart(void); void i2cstop(void); void i2cclock(void); char i2creadbit(void); *************************** TESTI2C.C ************************** DESCRIPTION: A simple test program that outputs to a PCF8577 I2C LCD driver *************************** TEST_PC.C ************************** DESCRIPTION: As above, but a DOS simulation that was used to debug it using Borland C's debugger. *************************** TEST_PC.EXE ************************** DESCRIPTION: The Executable of the above. ********************************************************************/

近期下载者

相关文件


收藏者