поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN4099 датащи(PDF) 34 Page - STMicroelectronics

номер детали AN4099
подробное описание детали  Implementing transmitters and receivers for infrared remote control protocols using STM32F0xx and STM32F3xx microcontrollers
PDF  39 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4099 датащи(HTML) 34 Page - STMicroelectronics

Back Button AN4099 Datasheet HTML 30Page - STMicroelectronics AN4099 Datasheet HTML 31Page - STMicroelectronics AN4099 Datasheet HTML 32Page - STMicroelectronics AN4099 Datasheet HTML 33Page - STMicroelectronics AN4099 Datasheet HTML 34Page - STMicroelectronics AN4099 Datasheet HTML 35Page - STMicroelectronics AN4099 Datasheet HTML 36Page - STMicroelectronics AN4099 Datasheet HTML 37Page - STMicroelectronics AN4099 Datasheet HTML 38Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 34 / 39 page
background image
Interface layer
AN4099
34/39
Doc ID 023110 Rev 2
5.
Define a structure for the IR protocol in the file main.c.
Example:
RC5_Frame_TypeDef
IR_FRAME.
6.
Call the decoding function in main().
Example:
void main(void)
{
RC5_Init();
while(1)
{
RC5_Decode(&IR_Frame).
}
}
Changes needed to support any IR protocol
You can use this solution to support any infrared protocol by making only a few changes in
the header file and updating the command and device tables.
– Create a header file (exp: ir_protocol_name.h) similar to the sirc_decode.h file.
Change the defines to adapt it to the specifications of the chosen IR protocol (bit
duration min/max, header duration min/max, total bits number, timeout...)
Table 6.
List of defines in the header file for the IR protocol parameters
Defines
Meaning
Example settings for
SIRC protocol
IR_Time_OUT_US
Timeout in µs
4050
IR_BITS_COUNT
Number of bits
11
IR_TOTAL_BITS _COUNT
Total number of bits
11
IR_ONTIME_MIN_US
Min low pulse in µs
(600 - 60)
IR_ONTIME_MAX_US
Max low pulse in µs
(1200 + 60)
IR_HEADER_LOW_MIN_US
Min header low pulse in µs
(2400 - 150)
IR_HEADER_LOW_MAX_US
Max header low pulse in µs
(2400 + 150)
IR_HEADER_WHOLE_MIN_US
Min header whole duration in µs
(2400 + 600 - 60)
IR_HEADER_WHOLE_MAX_US
Max header whole duration in µs
(2400 + 600 + 60)
IR_VALUE_STEP_US
Step value between bit0 and bit1 in
µs
600



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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