Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/01/08 05:38
Read: times


 
#159530 - NEW DEVELOPEMENT
Responding to: ???'s previous message
Dear Friends,

Thanx for so many suggestions.

While I made some debugging yesterday (i.e. Friday, 31st oct) after my Diwali Vacations from Tuesday to Thursday.

As said in my original post I have a program that uses P89c669 & communicates with at24c16.
I combined both boards using 4 wires, viz SCL, SDA, GND, VCC.

Both MCU has there own individual LCD & Keypad(4x4). What they share is supply & I2C bus.

Now I did following things
1a. first I accessed EEPROM using 669 & write my name at a known location (48)(write initiated on key action).
1b. Now I read same location using 668 (read initiated on key action)

LCD corresponding to 668 MCU displays my name. It means 669 has written it correctly & 668 reads it correctly.

2a. Now I write company's name on same location using 668(triggered through key action)
2b. This value is now read using 669. It reads my name instead of company's name. (again reading using 668 also reads my name only)


Then before writing to EEPROM using 668, I sent the data, its length & address on UART. This string when captured using HyperTerminal seems fine.

Conclusion:
It means I am able to read from at24c16 using 668, but write is not working due to (so far) unknown reason.

Mystery is the same write routines works with DS1307. Also I am writing only once hence EEPROM being busy cant be an issue.

Regards,
Mahesh


List of 25 messages in thread
TopicAuthorDate
PROBLEM IN I2C WITH P89C668            01/01/70 00:00      
   Oscilloscope            01/01/70 00:00      
   Check your hardware I2C addressing            01/01/70 00:00      
   Re to David & Per            01/01/70 00:00      
      Reducing the bit-rate is irrelevant            01/01/70 00:00      
         you can, with VERY minor modifications ...            01/01/70 00:00      
   observations till 2 pm IST            01/01/70 00:00      
      check your hardware again            01/01/70 00:00      
         Re: david            01/01/70 00:00      
            A complete mystery            01/01/70 00:00      
   NEW DEVELOPEMENT            01/01/70 00:00      
      A good test setup            01/01/70 00:00      
         Re: A good test setup            01/01/70 00:00      
      Write your name to the DS1307 RAM            01/01/70 00:00      
         DS1307 max RAM is.....            01/01/70 00:00      
            My data sheet says RAM 0x08 to 0x3F            01/01/70 00:00      
               Sorry David            01/01/70 00:00      
                  Please post your code.            01/01/70 00:00      
                     not 12 individual writes            01/01/70 00:00      
                        Without the code this will go on forever            01/01/70 00:00      
            i2c code            01/01/70 00:00      
               Code?            01/01/70 00:00      
               WHY ON EARTH ...            01/01/70 00:00      
                  Mahesh has a problem with HIS code            01/01/70 00:00      
               I have added code-tags to Praveen's i2c code            01/01/70 00:00      

Back to Subject List