I2C communication Receiving NAK bit

188 Views Asked by At

I've SAME51N19 controller, I'm using sercom 1 for I2C communication from PIN A16=PAD0 SDA & A17=PAD1 SCL. SAME51N19 facing Issues while transferring the data on address 0b0101001=0x29. Also, checking on oscilloscope not getting good. Attaching the oscilloscope image. I'm using I2C on standard mode. As master generates the clock and slave use the same, I think we don't need to set clock as slave or in slave controller. DefaultSharedI2CClockFrequency = 400000; Please help me to solve the issue. Checked the connections SDA-SDA & SCL-SCL oscilloscope screen shot

1

There are 1 best solutions below

1
On

Solved the issue by correcting the Transfer functions in code. It was just coding error. Thank you.