CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

External eeprom writing problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Dominik



Joined: 04 Aug 2007
Posts: 18

View user's profile Send private message

External eeprom writing problem
PostPosted: Fri Sep 07, 2007 10:01 am     Reply with quote

I'm using a PICDEM 2 Plus Demo Board with a PIC16F877A and I made a program to write on the 24LC256 eeprom on that board.
It's working very fine but now I made a circuit with another 24LC256 only and put all the components needed also and I try to write on that eeprom using the PIC on the demo board but it's not working. I tried to change the ports but nothing is written and I really don't understand why.
Can someone help me ?
Thanks

Dominik
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Sep 07, 2007 10:38 am     Reply with quote

You left off the 4.7K pull-up resistors on SDA and SCL.
These resistors are built-in to PicDem2-Plus board on pins C4 and C3.
If you move the i2c to different pins, you must add pull-up resistors
on the new pins.
Dominik



Joined: 04 Aug 2007
Posts: 18

View user's profile Send private message

PostPosted: Sat Sep 08, 2007 11:43 am     Reply with quote

You're right PCM Programmer, the problem is coming from the resistors.
Thank you so much again.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group