Anonymous
Not applicable
Feb 21, 2013
08:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 21, 2013
08:16 AM
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.
Labels
- Labels:
-
PSoC 5LP
1 Reply
Feb 22, 2013
03:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 22, 2013
03:30 AM
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?