2018-03-26 11:32 AM
Hi
I'm using STM32F103R4 and trying to read the IDR of portc but it only i get data for PC4 & PC5, so how i can figure it out
below my configuration
GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE); GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPD; GPIO_Init(GPIOC, &GPIO_InitStructure); while (1) { GPIOA-> ODR = GPIO_ReadInputData(GPIOC); } #stm32f103r4 Note: this post was migrated and contained many threaded conversations, some content may be missing.2018-03-27 03:54 PM
Unfortunately not, is Port C has special configuration or something?
2018-03-27 04:00 PM
'
i think there is some thing wrong with my configuration but i don't know it'
The data sheet has the answers.