This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i2c

dear all,
i m interfacing 24c16an with c8051f120. i have sck and sda on p0.6 and p0.7
when i dont enable the crossbar for smbus, these lines toggle as normal port pins
but when i enable the crossbar that time my smb0cr register is configured at 100Khz i.e i m using communication at 100Khz
but still i notice that SCK line doesnot toggle as clock line
it is steady at 3V i.e supply to ic.
i check the hardware, there is no short to any supply
i did P0 = 0xff as initialisation, and made then open drain.
but still the sck line is steady, no clock seen on it.
due to this i get NAK and my communication stops
pls suggest the solution. in case any doubts pls let me know
thank you all

Parents
  • thankx for reply,
    i have made them opendrain and then 0xff is written.
    i checked the sample program and it is similar to my code.
    i m getting problem immediately after transfering device address.i get nak after this step.
    can you suggest me from hardware point of view?
    microcntroller pins to 24c64 and sda and sck hav pullup of 2.2KOHM
    thank you
    take care

Reply
  • thankx for reply,
    i have made them opendrain and then 0xff is written.
    i checked the sample program and it is similar to my code.
    i m getting problem immediately after transfering device address.i get nak after this step.
    can you suggest me from hardware point of view?
    microcntroller pins to 24c64 and sda and sck hav pullup of 2.2KOHM
    thank you
    take care

Children