cancel
Showing results for 
Search instead for 
Did you mean: 

stm334 - hrtim with external events.

Dudenkov.Vladimir
Associate II

I want use external event (GPIOB-pin7) for turning pwm on hrtim1 (like switch), but can't find example how do it. I think I need "blanking with latch mode", but my code does not work.

2 REPLIES 2
Imen.D
ST Employee

Hello,

There is no HRTIM example with external events available in the STM32CubeF3 firmware package.

You can use STM32CubeMx tool to generate your project with HRTIM configuration that you want and generate an initialization code.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

Hello,

Have a look to this application Note AN4539 "HRTIM cookbook" (in section 6) discussed about external events conditioning and events blanking windows.

https://www.st.com/content/ccc/resource/technical/document/application_note/13/d6/48/9d/11/11/4c/08/DM00121475.pdf/files/DM00121475.pdf/jcr:content/translations/en.DM00121475.pdf

You can review this related example, it may help you:

STM32Cube_FW_F3_V1.10.0\Projects\STM32F3348-Discovery\Examples\HRTIM\HRTIM_TM_PFC

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen