0
\$\begingroup\$

I'm connecting the N76E003AT20 microcontroller to an RF module. The N76E003AT20 has 4 SPI pins: SPCLK, MISO, MOSI and SS. The module also has 4 SPI pins which are SCLK, SDIO, CSB and FCSB as shown in the table:

SPI pins on module

I understand that I have to connect SCLK and SPCLK. Do I connect SDIO to both MISO and MOSI? How about CSB and FCSB?

\$\endgroup\$
1
  • \$\begingroup\$ Which module? The uC will be the master, I guess. I that case, you usually don't care about the SS pin.connecting MISO and MOSI together sound wrong, then the master will receice what he just sent or there will be bus contention \$\endgroup\$
    – Sim Son
    Dec 23 '20 at 17:40
0
\$\begingroup\$

It appears that this RF module doesn't exactly follow the SPI specification. This means that you probably won't be able to use a canned high-level driver. Some of this is speculation based on a SPI slave module that I found that uses a bidirectional data signal.

SPI Slave Selects (AKA Chip Selects) are basically simple MCU outputs, so creating a second SS should be easy.

Connecting MISO and MOSI also causes complications, you must tri-state MOSI during the part of the cycle when the slave is driving SDIO.

MPU        SLAVE
SPCLK      SCLK
MISO/MOSI  SDIO
SS1        CSB
SS2        FCSB
\$\endgroup\$
2
  • \$\begingroup\$ Thank you! If I connect MOSI to SDIO through say a 10k resistor and then connect MISO directly to SDIO, will that do the trick? \$\endgroup\$
    – RWarren
    Dec 24 '20 at 12:32
  • \$\begingroup\$ Yes, you may be able to use a resistor so that the slave can overdrive the signal. \$\endgroup\$
    – Mattman944
    Dec 24 '20 at 16:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.