SPI driver in master and slave mode with interrupts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI driver in master and slave mode with interrupts

1,447 Views
ivanrobles
Contributor III

I need to test the spi how master and slave with interrupts in transmission and reception.

0 Kudos
5 Replies

773 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Ivan,

I'm glad to provide support for you. However I just need you to clarify certain things which are not clear enough in your quesiton.

1. Could you let me know whiat MCU do you have ?

2. I was wondering if you could explain in more detail of the SPI operation you want?

I'm looking forward to your reply.

Best regards,

Ping

0 Kudos

773 Views
ivanrobles
Contributor III

Hi Ping Zhou,

I'm using two MK20DX256VLQ10 and code warrior.

I need to use one microcontroller as master and the other as slave.

Firs:t The Master sends the request to the slave(receiving data)

Second: The slave sends its data to the master.

But the master needs to read buffer block by buffer block for this reason it needs to wait while the master sends or receives the buffer block complete.

Best Regards,

Ivan.

0 Kudos

773 Views
ivanrobles
Contributor III

Sorry I forgot to say you that the communication is with interruptions.

0 Kudos

773 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Ivan,

I found a thread that about communication between two FRDM-K20D50M and I think it should be useful for reference.

Re: SPI communication b/w two FRDM-K20D50M Boards

If you have any other questions, please feel free to contact with me.

Best regards,

Ping

0 Kudos

773 Views
thomaskang-b295
NXP Employee
NXP Employee

Hi Ivan, It will be better to tell readers about what processor you want to implement.

0 Kudos