Hi Everyone,
I've been facing difficulty in writing code in call back functions of i2c.
I mean I am totally blank.
Please help me.
I am trying to communicate in between LPC936.
I have programmed one as Master and the other as slave.
Thanks in Advance! Kaustubh
Thanks Eric for your help! But I am gonna need more of it.
I have configured one Micro-controller as slave with address 0x01(I2ADR=address<<1. Therefore I2ADR = 0x02).
Now Master (another Micro-controller) calls slave i2c_receive(0x01). But unfortunately Master enters status, slave address + read transmitted, NACK received.
Now I2DAT in master is 0x03 i.e 0000 001 for address and LSB = 1 for read.
Please help me!
Where possibly did I go wrong?
Thanks in advance!
Kaustubh