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 Reply Children
No data
More questions in this forum