cancel
Showing results for 
Search instead for 
Did you mean: 

Infrared Timer (IRTIM) in STM32F4

shara
Associate II
Posted on October 26, 2016 at 03:00

Hello, I trying to make IR transmitter with STM32F4DISCOVERY demoboard and found in

http://stmcufinder.com/wp-content/uploads/training/STM32L4-WDG_TIMERS-Infra-Red-Timer-%28IRTIM%29.swf

that it F4 MCU should have built-in periph for mixin PWM from two timers - one for carrier frequency and second for signal modulation.

0690X00000605SOQAY.png

0690X00000605HbQAI.png

But I can't find such thing in datasheet or reference manual. Is it there?

And what is the best way to make IR transmitter without this thing? I made two timers - carrier, which connected to GPIO and data modulator, which toggling carrier in interrupt, but I think it can be done better.

#stm32f4 #irtim
10 REPLIES 10
Walid FTITI_O
Senior II
Posted on October 28, 2016 at 17:22

Hoi name.shara,

For the timer synchronization as master Trigger/ slave gated  , to start ans stop counter at the same toime , you would take a look to the ready-to-use example in STM32CubeF4 ''TIM_Synchronization'' at this path: STM32Cube_FW_F4_V1.13.0\Projects\STM324xG_EVAL\Examples\TIM\TIM_Synchronization

-Hannial-