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

At24c128/256
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 31, 2010 2:38 pm     Reply with quote

Are you testing this in real hardware, or is this a Proteus simulation ?
muratmaman



Joined: 30 Jan 2010
Posts: 19

View user's profile Send private message

PostPosted: Sun Jan 31, 2010 2:59 pm     Reply with quote

PCM programmer wrote:
Are you testing this in real hardware, or is this a Proteus simulation ?


I am testing it real hardware not on proteus. Also I checked my hardware is connected correct pin. Do you think 24256.c driver is suitable At24c128 and also if you check my schematic you can see that i used pull up with 100k.
Does it make sense ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 31, 2010 3:37 pm     Reply with quote

Remove the 100K pull-ups. Put in 4.7K pull-ups.

Does your board have an RS-232 connector on it, so you can display
debug information in a terminal window on your PC ?
muratmaman



Joined: 30 Jan 2010
Posts: 19

View user's profile Send private message

PostPosted: Sun Jan 31, 2010 3:49 pm     Reply with quote

PCM programmer wrote:
Remove the 100K pull-ups. Put in 4.7K pull-ups.

Does your board have an RS-232 connector on it, so you can display
debug information in a terminal window on your PC ?


My board does not have a RS-232. Tomorrow I will remove the 100k pull - ups and put 4.7k pull-ups.

Do you see any differences between 24LC256 and At24c128/256 ?
24256.c driver is appropriate for at24c128 ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 31, 2010 4:03 pm     Reply with quote

The 24256.c driver should work with the Atmel eeprom.
muratmaman



Joined: 30 Jan 2010
Posts: 19

View user's profile Send private message

PostPosted: Sun Jan 31, 2010 4:17 pm     Reply with quote

PCM programmer wrote:
The 24256.c driver should work with the Atmel eeprom.


Can I use hardware i2c on at24c128 ?
Code:

#use i2c(MASTER, sda=PIN_C4,scl=PIN_C3, FORCE_HW)

if I used to above code my software is frozen. Do you think should i use hardware i2c ? If yes do you have appropriate code for At24c128
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 31, 2010 4:25 pm     Reply with quote

Use software i2c. That should work. Sometimes the hardware i2c
module (or the CCS support for it) has bugs. It's more safe to use
software i2c.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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