Saved Bookmarks
| 1. |
Solve : The Serial Port Remapping of STM32F103? |
|
Answer» RECENTLY I am researching STM32,and I bought ONE from site. I would like to sharing the process about serial port weight map of STM32F103C4T6A here. This is the datasheet of SRM32F103C4T6A which I used to do experiments. The weight mapping step is given below: 1). First,open the REMAPPING CLOCK and pin clock accross I/O pot after USART remapped. RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB | RCC_APB2Periph_AFIO,ENABLE); 2). I/O pot is starting to remap. GPIO_PinRemapConfig(GPIO_Remap_USART1,ENABLE); 3). Configure Remapping pins,it need I/O which is configured after remapping. GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_Init(GPIOB, &GPIO_InitStructure); GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; GPIO_Init(GPIOB,&GPIO_InitStructure); |
|