Hello everyone.
I'm corrently designing a project which requiers data logging with an SD card and SPI RF transmittion at the same time.
For the RF transmittion I will be using two of these NRF24L01+ transrecivers which run on SPI interface.
The recieving side is less important for this question because I have already figured it out but the transmitting side, which should also log data is confusing.
My problem is:
Both the RF modue and SD card use the SPI protocol, and both are using dedicated, different libraries.(RF24 and SD), and I'm afraid they can interfere each other while used on the same SPI bus. However, teensy LC have two SPI buses, and teensy 3.5/3.6 have an onboard SD card.
My question is, can I use the two sperate SPI buses on the teensyLC simultaneously? If yes, how can I set different pins for each library?
If this is not possible, can I use one external SPI bus for the RF module, on the teensy 3.6/3.5, while writing to the onboard SD using the internal SPI bus?
Thanks in advance!
I'm corrently designing a project which requiers data logging with an SD card and SPI RF transmittion at the same time.
For the RF transmittion I will be using two of these NRF24L01+ transrecivers which run on SPI interface.
The recieving side is less important for this question because I have already figured it out but the transmitting side, which should also log data is confusing.
My problem is:
Both the RF modue and SD card use the SPI protocol, and both are using dedicated, different libraries.(RF24 and SD), and I'm afraid they can interfere each other while used on the same SPI bus. However, teensy LC have two SPI buses, and teensy 3.5/3.6 have an onboard SD card.
My question is, can I use the two sperate SPI buses on the teensyLC simultaneously? If yes, how can I set different pins for each library?
If this is not possible, can I use one external SPI bus for the RF module, on the teensy 3.6/3.5, while writing to the onboard SD using the internal SPI bus?
Thanks in advance!