This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Option for using TWI1 and SPI1 at a time or one after another in nRF52840

I want to use SPI1 and TWI1 instances at a same time or one after another. How can I configure it?

Parents
  • Hi

    You will not be able to use the same instances at the same time, so SPI1 and TWI1 won't be able to run simultaneously. The nRF52840 has 4 SPI master, 3 SPI slave, and 2 TWI instances, so you should have enough instances to make the SPI and TWI run simultaneously.

    If you'd like, you can switch between using SPI1 and TWI1 by disabling and enabling them in turn.

    Best regards,

    Simon

Reply
  • Hi

    You will not be able to use the same instances at the same time, so SPI1 and TWI1 won't be able to run simultaneously. The nRF52840 has 4 SPI master, 3 SPI slave, and 2 TWI instances, so you should have enough instances to make the SPI and TWI run simultaneously.

    If you'd like, you can switch between using SPI1 and TWI1 by disabling and enabling them in turn.

    Best regards,

    Simon

Children
No Data
Related