- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IRather than polling I2CMasterStatus(), I would like to define an ISR callback that is called when I2CMasterWriteBuffer() or I2CMasterReadBuffer() has completed on a PSoC4200M. This is easy to do when an SCB is configured as a UART, but the solution is not obvious to me when it is configured as an i2c master.
Any pointers?
Bill
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Tags:
- i2c psoc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can find and folder named "I2CMaster_SCB_IRQ" is generated in workspace explorer when add I2CM component in Top Design, this is the interrupt interface you can use, you also can add customize code in I2CMaster_SCB_IRQ.c in specified location.
API I2CM_GetTxInterruptSource() and I2CM_GetRxInterruptSource() can be used to distinguish the trigger source.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can find and folder named "I2CMaster_SCB_IRQ" is generated in workspace explorer when add I2CM component in Top Design, this is the interrupt interface you can use, you also can add customize code in I2CMaster_SCB_IRQ.c in specified location.
API I2CM_GetTxInterruptSource() and I2CM_GetRxInterruptSource() can be used to distinguish the trigger source.