1

I want to use an OLED with DUE. I plan to connect it via hardware SPI. The Due has a 3X2 pin connector labeled SPI. Is it here where i connect the SCK and MOSI?

If indeed, i connect it here, then which one is SCK and which one is MOSI?

Most importantly, i saw somewhere that in the DUE, hardware digital pin 13 is SCK and pin 11 is MOSI? Is this true? Because if it is, i can simply hook it up to these pins and get rid of the confusing 3X2 pin connector.

asked Sep 13, 2017 at 17:09

1 Answer 1

1

It doesn't look like it's true. There is only one SPI module and it has fixed pins which are not duplicated anywhere.

However there are three instances of USART which can be used in synchronous mode as SPI:

  • USART0: RXD0(PA10) / TXD0(PA11) / SCK0(PA17)
  • USART1: RXD1(PA12) / TXD1(PA13) / SCK1(PA16)
  • USART2: RXD2(PB21) / TXD2(PB20) / SCK2(PB24)

Whole table from SAM3X datasheet:

enter image description here

But I'm not sure if the Arduino IDE supports this mode, or you'll have to do it from scratch by yourself.

You can even use RTS as select slave signal: enter image description here

answered Sep 13, 2017 at 19:15

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.