7 Replies Latest reply on Jun 13, 2018 2:29 AM by anks

    I2C/SPI in background

    shemi_1565631

      I'm using PSOC5LP for real time application

      1)I would like to transmit (only transmit, not receive) 4 bytes using I2C, but I would like to send them at once in a buffer and then switch to other tasks, without any interrupt to the CPU (because the CPU should run critical timing, real time tasks at that time). I dont care about any response/ result/error of the I2C. Just to transmit them (using the CPU of cource) at once without any additional CPU resources/interupts. May I use the DMA? Is there an option for FIFO for the I2C? What is the best solution to this problem?

      2) same question for SPI: I would like to transmit (only transmit, not receive) 4 bytes using SPI, but I would like to send them at once in a buffer and then switch to other tasks, without any interrupt to the CPU (because the CPU should run critical timing, real time tasks at that time).  What is the best solution to this problem?

      thanks