2012-12-04 10:17 AM
I noticed on the STM3210E-EVAL board design and in the demo code GPIO port A was defined as AF for SPI1 and for USART. The chip select pin for the SPI flash memory was defined as pin 2 in GPIO port B. Does it mean once port A is defined as AF, all the pins have to be AF? Can I define Port A poin 4 as SPI flash chip select?
2012-12-04 10:24 AM
AF is Alternate Function, ie Controlled by the peripheral
It is a per-pin designation. The Chip Select uses a GPIO mode so it can be controlled manual, rather than by the peripheral.2012-12-04 11:53 AM
So it's OK to define Chip Select on the same port A. Many thanks for the quick reply.