Question
reading pwm inputs
Posted on November 11, 2011 at 10:08
Hi everyone
I have some silly newbie doubts on stm32f2 seriesI had downloaded the standard peripheral library and was looking at the sample codes in \STM32F4xx_DSP_StdPeriph_Lib_V1.0.0\Project\STM32F4xx_StdPeriph_Examples\TIM\PWM_InputMy doubt is in the linesGPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz; GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;When we want to read a pwm signal, why are we setting the pin as an output?ThanksSrinath