Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 994
Posted: 04:19am 07 Sep 2025
Copy link to clipboard
Print this post
I am setting up my first project for a 2350B development board upgrading from a 2040 project to get more i/o and have a couple of questions.
Firstly, am I right in assuming that Peter's labels SPI RX and SPI TX are Geoff's SPI MOSI and MISO respectively?
Secondly, can I allocate a dedicated SPI2 port for the SDCARD to avoid the CS clashing issue (and the additional circuitry)?
OA47
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2689
Posted: 05:11am 07 Sep 2025
Copy link to clipboard
Print this post
SPI Rx (receive = in) is MISO (master in, slave out) SPI Tx (transmit = out) is MOSI (master out, slave in) as the MCU is the master and the device is the slave.
If you have 4 pins to spare for SPI2 there would not be any need have SPI2 as there will be no need to share the CS pin. Any pin can be assigned to CS so each device can have it's own CS pin, so no clash..
OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 994