Jump to content

Need Help on I2C...


Recommended Posts

Hello....

I need help on my program ;d;

 

I'm using at90s8535 with serial eeprom at24c04.

Actually at90s8535 doesn't support i2c but some people i can bit-bangged it.

 

When I used codevision, there's option using I2C. I have tried to use it but with subroutine which already defined by codevision. I also have include-ed <i2c.h>. But still it doesn't work. :(

 

So I try to make my own subroutine. but still doesn't work. So is there anybody could help me check my program and tell me what's wrong?I'm really appreciate it....;d;

 

I attach the program that I made in zip file.

 

Just for record. I'm using port B on at90s8535 bit 0 as SDA and bit 1 as SCL.

 

On AT24C04:

A0 --> no connect

A1 --> ground

A2 --> ground

WP --> ground

 

I'm really2 thankful for your advice & comment :)

 

Best Regards,

Andrie

i2c_route.zip

Link to comment
Share on other sites

  • 3 years later...

andrie

let me see

you configure the i2c with code vision but your program dont work

ok first all A0 --> no connect A1 --> ground A2 --> ground WP --> ground go to ground

sda and scl need a resistence and /or a capacitor see your i2c memory for that

if you have any problem send me an email

 

cramitos@gmail.com

 

sorry for my english

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...