Skip to main content
Dudenkov.Vladimir
Associate II
September 24, 2018
Question

stm334 - hrtim with external events.

  • September 24, 2018
  • 2 replies
  • 1283 views

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.

This topic has been closed for replies.

2 replies

Technical Moderator
September 25, 2018

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Technical Moderator
September 28, 2018

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks