Skip to main content
Associate III
Feb 7, 2022 8:46 AM UTC
Question

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

..

    This topic has been closed for replies.

    1 reply

    Giuseppe DI-GIORE
    ST Employee
    Feb 27, 2022 10:22 PM UTC

    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.