- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do I set a flag when the Fixed Function I2C Master is done with its transfer? I am sending 33 packets of 32 bytes frequently and it uses a lot of idle delay time waiting for the transfer to be done when I need it to be running other parts of code? I can't seem to find an interrupt callback for when the transfer is done.
Solved! Go to Solution.
- Labels:
-
PSoC 5 Device Programming
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I skimmed the datasheet of I2C Fixed.
I think that If you use I2C_MasterWriteBuf(), you can check the status in the beginning of the loop
and do other thing, then when finally transaction complete check the result/status.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I skimmed the datasheet of I2C Fixed.
I think that If you use I2C_MasterWriteBuf(), you can check the status in the beginning of the loop
and do other thing, then when finally transaction complete check the result/status.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Motoo, Thanks for the reply. I'll look at using that function, I must of overlooked it in the datasheet, I was thinking it might just be an I2C_Status() command.
I also found while looking through the I2C class itself that it has an I2C_state variable and it returns to I2C_SM_IDLE when it is done with a transfer, though it will be a lot safer to use that status function.