AnsweredAssumed Answered

Want to change to TIM9_CH1 point to PE5 in STM32Cube_FW_F4_V1.1.0\Projects\STM324x9I_EVAL\Examples\TIM\TIM_PWMOutput

Question asked by li.linda.001 on Jun 19, 2014
Latest reply on Jun 20, 2014 by Clive One
I want to change to TIM9_CH1 point to PE5 in STM32Cube_FW_F4_V1.1.0\Projects\STM324x9I_EVAL\Examples\TIM\TIM_PWMOutput. The main.h is:
~~~~~~~~~~

#define TIMx                           TIM3
#define TIMx_CLK_ENABLE                __TIM3_CLK_ENABLE

/* Definition for USARTx Pins */
#define TIMx_CHANNEL_GPIO_PORT()       __GPIOC_CLK_ENABLE()
#define GPIO_PIN_CHANNEL1              GPIO_PIN_6
#define GPIO_PIN_CHANNEL2              GPIO_PIN_7
#define GPIO_PIN_CHANNEL3              GPIO_PIN_8
#define GPIO_PIN_CHANNEL4              GPIO_PIN_9
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I change it to:
~~~~~~~~~~~~~~~~~~~~~~~~~~

#define TIMx                           TIM9
#define TIMx_CLK_ENABLE                __TIM9_CLK_ENABLE

/* Definition for USARTx Pins */
#define TIMx_CHANNEL_GPIO_PORT()       __GPIOE_CLK_ENABLE()
#define GPIO_PIN_CHANNEL1              GPIO_PIN_5
#define GPIO_PIN_CHANNEL2              GPIO_PIN_7
#define GPIO_PIN_CHANNEL3              GPIO_PIN_8
#define GPIO_PIN_CHANNEL4              GPIO_PIN_9
~~~~~~~~~~~~~~~~~~~~~

But it doesn't work.
Please help.
Thanks

Outcomes