cancel
Showing results for 
Search instead for 
Did you mean: 

IR RC5 connected to LPTIM3_IN1 howto

MM..1
Chief III

I try understand how migrate X-CUBE-IRREMOTE receiver code to LPTIM. Is this doable in IN1 LPTIM3 pin ?

If not directly can LPTIM IN trigger next TIMx events?

1 REPLY 1
Khaled_DHIF
ST Employee

Hello @MM..1 ,

To migrate the receiver code to LPTIM or any timer, it must support PWM input mode. The input capture function activates on edges with opposite polarity. Generally, LPTIMs support PWM output mode only. However, depending on the series, some timers support PWM input mode and can be used for this purpose.

For more information on the Infrared receiver for STM32, please refer to application note AN4834 via this link.

Kind regards,

Please mark my answer as best by clicking on the “Accept as solution" button if it fully answered your question. This will help other users find this solution faster.​