Skip to main content
nicholas2399
Associate II
July 25, 2012
Question

Using peripherals when they share (some of) the same pins

  • July 25, 2012
  • 11 replies
  • 3141 views
Posted on July 25, 2012 at 10:47

I am using the STM32F103C8T6. I notice that some of the peripherals share the same pins. What I am wondering is whether it is possible to use these peripherals in these circumstances.

The specific case I am looking at are UART3 and SPI2, neither of which can be re-mapped (not on the version of the device I am using)

Now UART3 is on pins PB10, PB11, PB12, PB13 and PB14 (I am only interested in TX and RX on PB10 and PB11), whereas SPI2 is on pins PB12, PB13, PB14, PB15 ( I am only interested in SCK, MISO and MOSI on PB13, PB14, PB15)  Is it possible to use both peripherals in this way?

If so what mechanism stops the UART CTS and RTS functions affecting the SPI2 SCK and MISO functions?

Thanks in advance

Nick

#peripherals-stm32f103c8t6
This topic has been closed for replies.

11 replies

Andrew Neil
Super User
July 26, 2012
Posted on July 27, 2012 at 00:35

''Maybe you could be more specific which peripherals exactly you'd like to use''

 

How much more specific does it need to be:

''Now UART3 is on pins PB10, PB11, PB12, PB13 and PB14 (I am only interested in TX and RX on PB10 and PB11), whereas SPI2 is on pins PB12, PB13, PB14, PB15 ( I am only interested in SCK, MISO and MOSI on PB13, PB14, PB15)''

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.