View previous topic :: View next topic |
Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jan 31, 2010 2:38 pm |
|
|
Are you testing this in real hardware, or is this a Proteus simulation ? |
|
|
muratmaman
Joined: 30 Jan 2010 Posts: 19
|
|
Posted: Sun Jan 31, 2010 2:59 pm |
|
|
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
|
|
Posted: Sun Jan 31, 2010 3:37 pm |
|
|
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
|
|
Posted: Sun Jan 31, 2010 3:49 pm |
|
|
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
|
|
Posted: Sun Jan 31, 2010 4:03 pm |
|
|
The 24256.c driver should work with the Atmel eeprom. |
|
|
muratmaman
Joined: 30 Jan 2010 Posts: 19
|
|
Posted: Sun Jan 31, 2010 4:17 pm |
|
|
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
|
|
Posted: Sun Jan 31, 2010 4:25 pm |
|
|
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. |
|
|
|