Page 28 - ARMMbedOS物聯網實戰應用超入門
P. 28

第一章 Cortex-M 系列與 STM32 晶片介紹


                                        表  1-9(a)  STM32F072 的 I/O 埠及特殊接腳
                接腳      AF0        AF1         AF2         AF3        AF4       AF5       AF6       AF7
                名稱
                 PA0     -      USART2_CTS   TIM2_CH1_  TSC_G1_IO1 USART4_TX     -         -     COMP1_OUT
                                               ETR
                 PA1  EVENOUT   USART2_RTS   TIM2_CH2   TSC_G1_IO2 USART4_RX TIM15_CH1N    -         -
                 PA2  TIM15_CH1  USART2_TX   TIM2_CH3   TSC_G1_IO3     -         -         -     COMP2_OUT
                 PA3  TIM15_CH2  USART2_RX   TIM2_CH4   TSC_G1_IO4     -         -         -         -
                 PA4  SPI1_NSS,   USART2_CK      -      TSC_G2_IO1  TIM14_CH1    -         -         -
                       I2S1_WS
                 PA5  SPI1_SCK,    CEC       TIM2_CH1_  TSC_G2_IO2     -         -         -         -
                                               ETR
                       I2SI_CK
                 PA6  SPI1_MISO,   TIM3_CH1  TIM1_BKIN  TSC_G2_IO3  USART3_  TIM16_CH1  EVENOUT  COMP1_OUT
                                                                      CTS
                      I2S1_MCK
                 PA7  SPI1_MOSI,   TIM3_CH2  TIM1_CH1N  TSC_G2_IO4  TIM14_CH1  TIM17_CH1  EVENOUT COMP2_OUT
                       I2S1_SD
                 PA8    MCO     USART1_CK    TIM1_CH1    EVENOUT   CRS_SYNC      -         -         -
                 PA9   TIM15_   USART1_TX    TIM1_CH2   TSC_G4_IO1     -         -         -         -
                        BKIN
                PA10   TIM17_   USART1_RX    TIM1_CH3   TSC_G4_IO2     -         -         -         -
                        BKIN
                PA11  EVENOUT   USART1_CTS   TIM1_CH4   TSC_G4_IO3  CAN_RX       -         -     COMP1_OUT
                PA12  EVENOUT   USART1_RTS   TIM1_ETR   TSC_G4_IO4  CAN_TX       -         -     COMP2_OUT
                PA13   SWDIO      IR_OUT     USB_NOE        -          -         -         -         -
                PA14   SWCLK    USART2_TX        -          -          -         -         -         -
                PA15  SPI1_NSS,   USART2_RX  TIM2_CH1_   EVENOUT    USART4_      -         -         -
                       I2S1_WS
                                               ETR
                                                                      RTS
                                        表  1-9(b)  STM32F072 的 I/O 埠及特殊接腳
                 接腳        AF0          AF1          AF2           AF3          AF4             AF5
                 名稱
                 PB0     EVENOUT      TIM3_CH3    TIM1_CH2N     TSC_G3_IO2   USART3_CK           -
                 PB1     TIM14_CH1    TIM3_CH4    TIM1_CH3N     TSC_G3_IO3   USART3_RTS          -
                 PB2        -            -             -        TSC_G3_IO4       -               -
                 PB3     SPI1_SCK,    EVENOUT      TIM2_CH2     TSC_G5_IO1       -               -
                          I2S1_CK
                 PB4     SPI1_MISO,   TIM3_CH1     EVENOUT      TSC_G5_IO2       -           TIM17_BKIN
                         I2S1_MCK
                 PB5     SPI1_MOSI,   TIM3_CH2    TIM16_BKIN    I2C1_SMBA        -               -
                          I2S1_SD
                 PB6    USART1_TX     I2C1_SCL    TIM16_CH1N    TSC_G5_IO3       -               -
                 PB7    USART1_RX     I2C1_SDA    TIM17_CH1N    TSC_G5_IO4   USART4_CTS          -
                 PB8       CEC        I2C1_SCL     TIM16_CH1    TSC_SYNC       CAN_RX            -
                 PB9      IR_OUT      I2C1_SDA     TIM17_CH1     EVENOUT       CAN_TX      SPI2_NSS, I2S2_WS
                 PB10      CEC        I2C2_SCL     TIM2_CH3     TSC_SYNC     USART3_TX     SPI2_SCK, I2S2_CK
                 PB11    EVENOUT      I2C2_SDA     TIM2_CH4     TSC_G6_IO1   USART3_RX           -

                 PB12    SPI2_NSS,    EVENOUT      TIM1_BKIN    TSC_G6_IO2   USART3_CK       TIM15_BKIN
                          I2S2_WS
                 PB13    SPI2_SCK,       -        TIM1_CH1N     TSC_G6_IO3   USART3_CTS       I2C2_SCL
                          I2S2_CK
                 PB14    SPI2_MISO,   TIM15_CH1   TIM1_CH2N     TSC_G6_IO4   USART3_RTS       I2C2_SDA
                         I2S2_MCK
                 PB15    SPI2_MOSI,   TIM15_CH2   TIM1_CH3N     TIM15_CH1N       -               -
                          I2S2_SD
                                                                                                            1-21
   23   24   25   26   27   28   29   30   31   32   33