herunterladen

March 2016 DocID023110 Rev 3 1/38
1
AN4099
Application note
Implementation of transmitters and receivers for infrared remote
control protocols with MCUs of the STM32F0 and STM32F3 Series
Introduction
Infrared radiation is the region of the electromagnetic spectrum that lies between
microwaves and visible light.
Infrared radiation has two ranges: near infrared light is closest in wavelength to visible light,
while far infrared is closer to the microwave region of the electromagnetic spectrum.
The shorter waves are the ones used by remote controls. Information is transmitted and
received using electromagnetic energy, without using wires.
Infrared technology offers important advantages as a form of wireless communication.
Nowadays, almost all audio and video equipment can be controlled using an infrared remote
control. At the receiving end, a receiver detects the light pulses, which are processed to
retrieve/decode the information they contain.
There are many popular infrared protocol standards used to transmit data via infrared light,
such as RC5 and SIRC.
The purpose of this application note is to provide a generic solution for implementing an IR
transmitter (a remote control device) and receiver in software using microcontrollers of the
STM32F0 and STM32F3 Series. An example of software implementation is provided for
RC5 and SIRC protocols. Other protocols are supported and available upon request (for
further information contact the local STMicroelectronics sales office).
Note: The infrared transmitter and receiver solutions described in this document are implemented
in C language and are available within the STM320518-EVAL (Config2), STM32373C-EVAL
and STM32303C-EVAL packages available on www.st.com.
www.st.com