??? 11/01/08 10:33 Read: times |
#159532 - Re: A good test setup Responding to: ???'s previous message |
Thanx David for reply,
I am not getting why p89c668 is unable to write to at24c16 David Prentice said:
I would assume that you have identical software on each chip. I also hope that you are checking the ACK when you address the Slave. Although the Slave_Read_Ads is obviously responding ok. My only thought is that the bus is not free when your 668 is trying to access. Again, you should always check for a free bus EVERY time you want to start a transaction. David. Yes software is identical, with only change in SFR initialisation for both MCU(one being 668 & other 669) & ISR vector number for I2C Talking about bus busy; I dont think so that can be the reason, as read or write on bus in debugging software are keypad triggered & I am pressing necessary key only when both the following conditions are true 1. MCU handelling bus releases it & gives indication on LCD 2. checking SCL & SDA on oscilloscope. Regards, Mahesh |