Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Spanish  ▼
ALLDATASHEET.ES

X  

AN4099 Datasheet(PDF) 28 Page - STMicroelectronics

No. de pieza AN4099
Descripción Electrónicos  Implementing transmitters and receivers for infrared remote control protocols using STM32F0xx and STM32F3xx microcontrollers
PDF  39 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  STMICROELECTRONICS [STMicroelectronics]
Página de inicio  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4099 Datasheet(HTML) 28 Page - STMicroelectronics

Back Button AN4099 Datasheet HTML 24Page - STMicroelectronics AN4099 Datasheet HTML 25Page - STMicroelectronics AN4099 Datasheet HTML 26Page - STMicroelectronics AN4099 Datasheet HTML 27Page - STMicroelectronics AN4099 Datasheet HTML 28Page - STMicroelectronics AN4099 Datasheet HTML 29Page - STMicroelectronics AN4099 Datasheet HTML 30Page - STMicroelectronics AN4099 Datasheet HTML 31Page - STMicroelectronics AN4099 Datasheet HTML 32Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 28 / 39 page
background image
Infrared receiver
AN4099
28/39
Doc ID 023110 Rev 2
3.4.2
SIRC library
SIRC_Init()
This function initializes the different peripherals used for the SIRC protocol.
SIRC_Decode (SIRC_Frame_TypeDef *sirc_frame)
This function is intended to be called in the user application. It decodes the SIRC
received messages. It has as a parameter a structure that contains the different values
of the IR frame.
typedef struct
{
__IO uint8_t Command;
/* Command field
*/
__IO uint8_t Address;
/* Address field
*/
} SIRC_Frame_TypeDef;
SIRC_decode () must be executed when the IRFrameReceived flag is equal to YES.
SIRC_ResetPacket()
This function puts the IR packet to the default state. This function is called in the
TIM2_IRQHandler routine. It occurs each timer overflow to reset the IR packet.
SIRC_DeInit()
This function de-initializes the different peripherals used for the SIRC protocol.
TIM2_IRQHandler ()
This function handles the TIM Capture Compare interrupt.
–
Timer Falling Edge Event: this is used to measure the different periods between
two successive falling edges in order to identify the frame bits.
–
Timer Rising Edge Event: this is used to measure the duration between falling
and rising edges (low pulse duration).
–
Update event (time-out event): this resets the RC5 packet. The timer overflow is
set to 4 ms.
The bit value is determined from these two durations.
3.4.3
How to use the SIRC decoder driver
To use the SIRC decoder driver, proceed as follows.
–
TIM2 Capture Compare and Update interrupts are used to decode the IR frame. If
a frame is received correctly a global variable "IRFrameReceived" is set to inform
the application.
–
The application should then call the function SIRC_Decode() to retrieve the
received IR frame.
–
You can easily tailor this driver to any other infrared protocol by simply adapting
the defines from sirc_decode.h to the infrared protocol specification (Bit Duration,
Header Duration, Marge Tolerance, Number of bits...) and the command and
device tables.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com