cancel
Showing results for 
Search instead for 
Did you mean: 

Hello Everybody I'm working with spc560p40 and I want to send one spi code in every 10 ms as routine, and on the other hand, I want to send other codes in spi. Would you please help me out with this Thanks David

DNewm.1
Associate III
 
1 REPLY 1
Giuseppe DI-GIORE
ST Employee

Hello,

configure a PIT timer to fire an interrupt every 10 ms

in the interrupt callback, call the SPI send function

re-arm the PIT timer

If you are using SPC5Studio examples, please do not forget to enable interrupt nesting.

Regards.