PWM Alternate pin is not working in STM32F207VG

mikroC, mikroBasic and mikroPascal for PRO ARM® MCUs, supporting STM32, Tiva, Kinetis, & CEC devices
Post Reply
Author
Message
n_vikranth
Posts: 35
Joined: 11 Jan 2012 15:06

PWM Alternate pin is not working in STM32F207VG

#1 Post by n_vikranth » 27 Jun 2019 14:24

PWM_TIM2_Start(_PWM_CHANNEL1, &_GPIO_MODULE_TIM2_CH1_PA15);


IS MISSING in MikroC Pro for ARM Compiler.

I cant use this pin for PWM function but there is PWM in that Pin(PA15).

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: PWM Alternate pin is not working in STM32F207VG

#2 Post by stefan.filipovic » 01 Jul 2019 12:00

Hi,

I believe you have been answered here:
viewtopic.php?f=224&t=74688

Kind regards,
Stefan Filipović

n_vikranth
Posts: 35
Joined: 11 Jan 2012 15:06

Re: PWM Alternate pin is not working in STM32F207VG

#3 Post by n_vikranth » 01 Jul 2019 14:23

Its has both TIM2_CH1 and TIM2_ETR function in that pin image file attached.
Attachments
Timer 2.PNG
Timer 2.PNG (91.02 KiB) Viewed 3410 times

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: PWM Alternate pin is not working in STM32F207VG

#4 Post by stefan.filipovic » 02 Jul 2019 14:58

Hi,

You're right, I was looking at table 8. (page 55) from the datasheet, and it says there's only TIM2_CH1_ETR alternate function of PA15 pin.

Please find the GPIO defs file for this MCU in the attachment, just copy this file to the following path: C:\Users\Public\Documents\Mikroelektronika\mikroC PRO for ARM\Uses\ST M3

I apologize for the inconvenience caused by this.

Kind regards,
Attachments
STM32F207VG.zip
(4.79 KiB) Downloaded 118 times
Last edited by stefan.filipovic on 05 Jul 2019 08:13, edited 1 time in total.
Stefan Filipović

n_vikranth
Posts: 35
Joined: 11 Jan 2012 15:06

Re: PWM Alternate pin is not working in STM32F207VG

#5 Post by n_vikranth » 05 Jul 2019 06:55

The file you send is same as file existing. Send correct file

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: PWM Alternate pin is not working in STM32F207VG

#6 Post by stefan.filipovic » 05 Jul 2019 08:15

Hi,

I did edit my previous post, feel free to download STM32F207VG.zip file again.

Kind regards,
Stefan Filipović

Post Reply

Return to “ARM PRO Compilers”