2015-06-26 03:51 PM
Hi,
when I use a peripheral with some unused pins, can I use other alternate functions of those pins (for other peripherals)? for example, in STM32f407, I use SPI2 with unused SPI2_NSS (pin 140). can I use this pin as I2C1_SDA (SPI2_NSS and I2C1_SDA are both defined as alternate functions for pin 140 in datasheet)? thanks2015-06-26 04:31 PM
Each pin can select a single peripheral function from the list defined in the Data Manual. Only use TIM1_CH4, you don't need to route any of the channels to pins.
2015-06-28 03:07 AM
thanks for your reply,
You mean that I can assign a pin to any defined alternate function(just one)? in my above example, I want to use both SPI2 and I2C1. pin 140 (of STM32F407-ZGT6 LQFP 144-PIN) contains I2C1_SDA and SPI2_NSS. but my SPI2 application don't need to NSS, can I assign I2C1_SDA to this pin (pin 140, port PB9)? does using I2C1 conflict with SPI2 by using pin 140? thanks