This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to connect multiple peripheral interface on one device?

Hi everyone.

I used sdk v10.0.0 and softdevice s130. I want to make peripheral device with nRF51422. This peripheral device have to configured with diffent peripheral interface(TWI, SPI). How to connect the two peripheral interface at the same time on one device? If this is possible, how must I configure.

Thank you.

  • I don't understand the problem. You connect some pins to your TWI device and run the TWI driver on those pins and you connect the SPI device to some other pins and run the SPI driver, or your own code which drives the SPI, on those pins. You can connect lots of interfaces at the same time, there's plenty of pins to choose from.

  • Thank you for your reply.

    I want to get data for the two sensors. One use TWI interface and the other use SPI interface. I try to connect TWI to P0.07, P0.30 and try to connect SPI to P0.24, P0.25, P0.28, P0.29. I wonder if this is possible or not in one nRF5144.

    Thank you.

  • yes it's possible. You can connect to any pins you like which aren't already used by something else and then assign the pins in the driver. The nordic chips allow you to use any available pin on the device on their hardware interfaces (most of them at least, there are a few restrictions on things like the Analog in). So as long as the pins are unused by other things, you can use them.

  • Thank you RK. I have been a great help.

Related