| поискавой системы для электроныых деталей |
|
AN4099 датащи(PDF) 34 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4099 датащи(HTML) 34 Page - STMicroelectronics |
|
34 / 39 page ![]() 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 |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| 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 |