Infrared (IRTIM) interface RM0091
452/742 Doc ID 018940 Rev 1
20 Infrared (IRTIM) interface
An infrared interface (IRTIM) for remote control is available on the device. It can be used
with an IR LED to perform remote control functions.
To generate the infrared remote control signals, the IR interface must be enabled and TIM16
channel 1 (TIM16_OC1) and TIM17 channel 1 (TIM17_OC1) must be properly configured to
generate correct waveforms.
The infrared receiver can be implemented easily through a basic input capture mode.
Figure 191. IR internal hardware connections with TIM16 and TIM17
20.1 Main features
All standard IR pulse modulation modes can be obtained by programming the two timer
output compare channels.
TIM16 is used to generate the high frequency carrier signal, while TIM17 generates the
modulation envelope.
The infrared function is output on the TIM_IR pin. The activation of this function is done
through the GPIOx_AFRx register by enabling the related alternate function bit.
The high sink LED driver capability (only available on the PB9 pin) can be activated through
the I2C_PB9_FM+ bit in the SYS_CTRL register and used to sink the high current needed
to directly control an infrared LED.
TIM16_CH1
TIM17_CH1
IRTIM IRTIM_OUT