How can i use SPI with Interrupt mode?

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
RatheeshT
Offline
Last seen:1 year 11 months ago
加入:2017-01-02 11:08
How can i use SPI with Interrupt mode?

Hi Dialog Technical team,
I want to use SPI communication as Slave mode only (don't want to use as Master)in DA14580 PRO kit but the example exists in the SDK is working with 5-wire SPI protocol (added Dready pin) only and i don't want to use that Dready pin because my custom mode have only support with SPI 4 wire (It don't have other IO pins also).

So I want to use SPI with Specific Interrupt Numbers. (SPI_IRQn ).

How can i use that with SPI isr handler (SPI_IRQn) ?

Can you give any example ?

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi RatheeshT,

Hi RatheeshT,

The fact that the Dready pin exists doesn't have to do with the interrupts in the SPI slave mode, you will be able to use the prox_reporter_ext_spi project as a reference and trigger interrupts while operating in spi slave mode with the 580. The Dready exists in the application in order for the slave to notify the master that it would like to transmit data. The Dready signal has nothing to do with the interrupts, the interrupts are normally set and occur in the project that i ve indicated.

Thanks MT_dialog