You are here

PSOC5 LP, I2C Master | Cypress Semiconductor

PSOC5 LP, I2C Master

Summary: 1 Reply, Latest post by hli on 22 Feb 2013 03:30 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
socky's picture
1 post

 How to use interrupt method to do I2C master transfer with EEPROM(I2C Slave)?

Is there any reference code?

Because when I try this method, it always failed.

I have used start(write)->sendbyte()->start(read)->receivebyte()->stop() to do the operation, it works fine.

But I still want to try interrupt method: writebuffer(no_stop)->readbuffer(repeatstart) to do the same thing. Because sometime, the first method will fail... It hangup in start(write), there was a while(1)  loop in BSP, that's not good.



user_78878863's picture
2551 posts

The MasterWriteBuf() / MasterReadBuf() methods already work with interrupts. They can generate also the start condition. Is this what you need? If not - what do you want to achieve?

Log in to post new comments.