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

Different master instances for two slaves in nrf51422

Hi All,

I am using nrf51422, SDK 12.0.0, an SPI OLED display 128x32, and an SD card.

I want to interface an OLED display and an SD card onto the nrf51422. Although my SD card and the OLED display is working perfectly individually, but i want to use them simultaneously by changing the spi master instances. But i dont know how to change the instances. Can you please help me out?

Thank you in advance.

  • Little bit too high-level description. Are you using two instances in terms of SPIM1/2? These are running over different PINs? Why then you just don't create two separate SPIM driver "instances" and maintain the devices and protocols on top of them? Mixing the things sounds like horrible idea (whatever HW level by using the same PINs or SW level to using same SPIM instance or same HAL driver).

Related