cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G474VET3: pin names for motor controller PWM out question

sag
Associate III

HI I need to know the pin names for motor controller PWM out 

PWM High and PWM LOW

i can not directly PWM out function for pins

Also need capture control pin details to measure the PWM.

As i have to assign these pins for controller

1 ACCEPTED SOLUTION

Accepted Solutions

eg, for the High Resolution Timer (HRTIM):

AndrewNeil_0-1713950383553.png

 

have you also looked at Application Note AN4013, Introduction to timers for STM32 MCUs:

https://www.st.com/resource/en/application_note/an4013-introduction-to-timers-for-stm32-mcus-stmicroelectronics.pdf

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

View solution in original post

7 REPLIES 7

All the pin names & Alternate Functions are listed in the chip's datasheet.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

TIM17_BKIN,
USB_CRS_SYNC,
I2C2_SMBA,
SPI2_MISO,
TIM1_CH3,
USART1_RX,
COMP6_OUT,
TIM2_CH4,
TIM8_BKIN, SAI1_D1,
SAI1_SD_A,
EVENTOUT

 

 

Where is the PWMout from above alternate fucntions?

or how can check CCP for pwm measurement

You'll also need to look in the Timer descriptions in the Reference Manual - that'll tell you what Alternate Functions are used ...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Are you aware of it? 

Reference manual is fine, but still i didnt found straight away? like other controllers alternate fucntions showos EPWM or PWM

eg, for the High Resolution Timer (HRTIM):

AndrewNeil_0-1713950383553.png

 

have you also looked at Application Note AN4013, Introduction to timers for STM32 MCUs:

https://www.st.com/resource/en/application_note/an4013-introduction-to-timers-for-stm32-mcus-stmicroelectronics.pdf

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Thanks Andrew for your quick support.

Yes this will work fine for for pwm.

Also input capture compare for any pwm incoming signal will use below TIMx_CCRx

 

sag_0-1713951135437.png

 

sag
Associate III

Hope i can see CCR pins in datasheet for input pwm capture