- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
Can I insert user code in the SCB SPI on the internal interrupt mode?
Like UDB UART can insert user code in the UART_INT.C
Thx
(My English is poor, thanks google translation)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not have a SPI ap up but usually in the generated code
file for the component interrupt there is a text banner showing user
where he can put his defines and another for the code. Just open the
file and look for it.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dana,
I find _SPI_UART_INT.c file , but no have user define block...
I try to be modified, but a recompile will be restored
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found this
SPIS_INT.c
/* User code required at start of ISR */
/* `#START SPIS_ISR_START_DEF` */
/* `#END` */
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Dana,
SPIS is UDB component?
I use SCB mode SPIS and set RX/TX buffer size at 64 byte, so it is start internal interrupt mode
In the "XXX_SPI_UART_INT.c" can't found
/* User code required at start of ISR */
/* `#START SPIS_ISR_START_DEF` */
/* `#END` */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For the SCB version of SPI there is an interrupt output (when required) to which you may connect an isr-component to.
Within the interrupt handler (best specified using _StartEx()) you may do whatever you want, but keep it short and do not forget to remove the interrupt cause.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI Dana,
I think my problem solved,
I can use "xxx_SetCustomInterruptHandler" to set custom interrupt handler
Thank you~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This might be useful -
http://www.cypress.com/?rID=38267 AN54460 - PSoC® 3, PSoC 4, and PSoC 5LP Interrupts
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Dana and Bob~~