View previous topic :: View next topic |
Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Aug 06, 2007 1:15 am |
|
|
1. Make a simple test program, similar to the one in this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=30346&start=10
2. Don't use your eeprom routines. Use the CCS driver for the 24LC64.
Here is the driver file location:
Quote: | c:\Program Files\picc\Drivers\2464.c |
3. Make sure that you have a pull-up resistor (4.7K) on SDA and
also on SCL.
4. Make sure the address pins on the eeprom (A0, A1, A2) are
all connected to ground. Also connect the WP pin to ground.
5. Post your compiler version. You can find it at the top of the .LST
file, which is in your project directory. The version number is a 4-digit
number in this format: x.xxx
Last edited by PCM programmer on Mon Aug 06, 2007 1:26 am; edited 1 time in total |
|
|
40inD
Joined: 30 Jul 2007 Posts: 112 Location: Moscow, Russia
|
|
Posted: Mon Aug 06, 2007 1:24 am |
|
|
I have pull-up resistors on SDA and SCL...
I will try 2464.c...
And what about RTC? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Aug 06, 2007 1:27 am |
|
|
For this test, disconnect all other i2c chips from the i2c bus, except for
the eeprom. |
|
|
|