stm32f103引脚PC4
时间: 2023-07-28 15:08:42 浏览: 319
STM32F103引脚PC4是一款32位ARM Cortex-M3内核的微控制器系列,该引脚位于GPIOC端口的第4号引脚。
PC4引脚可用作通用输入/输出引脚,具体功能取决于你在程序中对其进行配置。你可以将其配置为输入模式或输出模式,并根据需要进行电平控制或接收外部信号。
请注意,引脚的具体功能还取决于你使用的具体芯片型号和其它外部电路的连接方式。在使用引脚之前,建议查阅相关的芯片数据手册以获取更详细的信息。
相关问题
SG90的io口与stm32f103rct6中PC4连接有什么作用,stm32f103rct6的PC4引脚的功能是什么
SG90舵机的IO口与STM32F103RCT6的PC4连接的作用是将控制信号从STM32F103RCT6的GPIO口输出到SG90舵机,以控制舵机的转动角度。
在STM32F103RCT6中,PC4引脚可以配置为通用输入输出口(GPIO),也可以作为模拟输入通道(ADC12_IN14)使用。如果将PC4引脚配置为GPIO口,则可以通过设置相应的寄存器控制PC4引脚的状态,包括输出高电平、输出低电平、输入上拉或下拉等。如果将PC4引脚配置为ADC输入通道,则可以通过ADC模块对PC4引脚输入的模拟电压进行采样和转换。具体的使用方式需要根据实际的应用场景来确定。
STM32F103系统引脚功能表
以下是STM32F103系统引脚的功能表:
| Pin Number | Pin Name | Function |
| :--------:| :------:| :-------- |
| PA0 | ADC1_IN0 | GPIO |
| PA1 | ADC1_IN1 | GPIO |
| PA2 | ADC1_IN2 | GPIO |
| PA3 | ADC1_IN3 | GPIO |
| PA4 | ADC1_IN4 | GPIO |
| PA5 | ADC1_IN5 | GPIO |
| PA6 | ADC1_IN6 | GPIO |
| PA7 | ADC1_IN7 | GPIO |
| PB0 | ADC1_IN8 | GPIO |
| PB1 | ADC1_IN9 | GPIO |
| PC13 | | GPIO |
| PC14 | OSC32_IN | RCC |
| PC15 | OSC32_OUT| RCC |
| PA8 | MCO | RCC |
| PA9 | USART1_TX| USART1 |
| PA10 | USART1_RX| USART1 |
| PA11 | USART1_CTS| USART1 |
| PA12 | USART1_RTS| USART1 |
| PA15 | JTDI | JTAG/SWD |
| PB3 | JTDO | JTAG/SWD |
| PB4 | JTRST | JTAG/SWD |
| PB5 | JTMS/SWDIO| JTAG/SWD |
| PB6 | USART1_TX| USART1 |
| PB7 | USART1_RX| USART1 |
| PB8 | TIM4_CH3 | TIM4 |
| PB9 | TIM4_CH4 | TIM4 |
| PC0 | ADC1_IN10| GPIO |
| PC1 | ADC1_IN11| GPIO |
| PC2 | ADC1_IN12| GPIO |
| PC3 | ADC1_IN13| GPIO |
| PC4 | ADC1_IN14| GPIO |
| PC5 | ADC1_IN15| GPIO |
| PA13 | JTMS/SWDIO| JTAG/SWD |
| PA14 | JTCK/SWCLK| JTAG/SWD |
| PB10 | I2C2_SCL | I2C2 |
| PB11 | I2C2_SDA | I2C2 |
| PB12 | SPI2_NSS | SPI2 |
| PB13 | SPI2_SCK | SPI2 |
| PB14 | SPI2_MISO| SPI2 |
| PB15 | SPI2_MOSI| SPI2 |
| PC6 | TIM3_CH1 | TIM3 |
| PC7 | TIM3_CH2 | TIM3 |
| PC8 | TIM3_CH3 | TIM3 |
| PC9 | TIM3_CH4 | TIM3 |
| PA4 | SPI1_NSS | SPI1 |
| PA5 | SPI1_SCK | SPI1 |
| PA6 | SPI1_MISO| SPI1 |
| PA7 | SPI1_MOSI| SPI1 |
| PA0 | TIM2_CH1_ETR| TIM2 |
| PA1 | TIM2_CH2 | TIM2 |
| PA2 | TIM2_CH3 | TIM2 |
| PA3 | TIM2_CH4 | TIM2 |
| PA0-WKUP | EXTI0 | EXTI |
| PA1 | EXTI1 | EXTI |
| PA2 | EXTI2 | EXTI |
| PA3 | EXTI3 | EXTI |
| PA4 | EXTI4 | EXTI |
| PA5 | EXTI5 | EXTI |
| PA6 | EXTI6 | EXTI |
| PA7 | EXTI7 | EXTI |
| PB0 | EXTI8 | EXTI |
| PB1 | EXTI9 | EXTI |
| PB2 | EXTI10 | EXTI |
| PB3 | EXTI11 | EXTI |
| PB4 | EXTI12 | EXTI |
| PB5 | EXTI13 | EXTI |
| PB6 | EXTI14 | EXTI |
| PB7 | EXTI15 | EXTI |
| PC10 | USART3_TX| USART3 |
| PC11 | USART3_RX| USART3 |
| PC12 | USART3_CK| USART3 |
| PD2 | USART3_CTS| USART3 |
| PD3 | USART3_RTS| USART3 |
| PC13 | TAMPER | RTC |
| PC14 | RTC_CLK | RTC |
| PC15 | RTC_CTS | RTC |
| PB8 | TIM4_CH3 | TIM4 |
| PB9 | TIM4_CH4 | TIM4 |
| PB10 | I2C2_SCL | I2C2 |
| PB11 | I2C2_SDA | I2C2 |
| PB12 | SPI2_NSS | SPI2 |
| PB13 | SPI2_SCK | SPI2 |
| PB14 | SPI2_MISO| SPI2 |
| PB15 | SPI2_MOSI| SPI2 |
| PC10 | USART3_TX| USART3 |
| PC11 | USART3_RX| USART3 |
| PC12 | USART3_CK| USART3 |
| PD2 | USART3_CTS| USART3 |
| PD3 | USART3_RTS| USART3 |
| PD4 | USART2_CK| USART2 |
| PD5 | USART2_CTS| USART2 |
| PD6 | USART2_RTS| USART2 |
| PD7 | USART2_TX| USART2 |
| PD8 | USART2_RX| USART2 |
| PD9 | USART2_NSS| USART2 |
| PD10 | USART2_SCK| USART2 |
| PD11 | TIM4_CH1 | TIM4 |
| PD12 | TIM4_CH2 | TIM4 |
| PD13 | TIM4_CH3 | TIM4 |
| PD14 | TIM4_CH4 | TIM4 |
| PD15 | TIM4_ETR | TIM4 |
阅读全文