AT89S51 + AT24C01A

In my routines, i am not checking for ack! i am assuming that the data transfer is perfect and ack is received. thats the reason, it cannot be used for EEPROM.
but my C routines can be used for EEPROM and any I2C device.

RLC A instruction means "rotate left through carry"
whatever is there in A is rotated left and the MSB is copied back to the place of LSB and all bits are shifted by 1 toward left. a... Read Compelte post
Other Tags: msb   eeprom   rlc   ack   c routines   
Posted by ajay_bhargav on Sat Apr 21 2007, 11:24 pm

I2C library

Hello friends,
i2c library for TWI communication, implemented for use in single master multislave configuration, for controllers like AT89C51/52/2051/4051 ... which dont have onship I2C but now can communicate using this small library.

the code size required for this is just 99Bytes, wont cost you much, but can help you in so many ways. you can use it for I2C RTC, I2C LCD, I2C based EEPROM etc. so w... Read Compelte post
Other Tags: small library   lcd i2c   hello friends   at89c51   eeprom   
Posted on Mon Dec 19 2005, 11:39 pm

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am