| поискавой системы для электроныых деталей |
|
AN4099 датащи(PDF) 25 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4099 датащи(HTML) 25 Page - STMicroelectronics |
|
25 / 39 page ![]() AN4099 Infrared receiver Doc ID 023110 Rev 2 25/39 } Note: 1 TIMx_IRQHandler ISRs are coded within the stm32f0xx_it.c or stm32f3xx_it.c ● If you are using one or both interrupts in your application you have to proceed carefully: – either add your application code in these ISRs, or – copy the contents of these ISRs in your application code. 2 You can easily tailor this application to your own hardware using different define declarations inside the "ir_decode.h" file. Refer to the following Table Table 4. Example of implementation Define name Description STM32F0xx STM32F30x STM32F37x #define IR_TIM Timer used for IR decoding(1) TIM2 TIM1 TIM3 #define TIM_PRESCALER TIM prescaler This parameter is computed so as to have 1 us as time base. TIM frequency (MHz) / (prescaler + 1) 47 71 71 #define IR_TIM_CLK APB clock of the used timer RCC_APB1Periph_ TIM2 RCC_APB2Periph_ TIM1 RCC_APB1Periph_ TIM3 #define IR_TIM_IRQn IR TIM IRQ TIM2_IRQn TIM1_CC_IRQn TIM3_IRQn #define IR_TIM_Channel IR TIM channel TIM_Channel_2 TIM_Channel_2 TIM_Channel_2 #define IR_GPIO_PORT Port which IR output is connected(1) GPIOB GPIOA GPIOB #define IR_GPIO_PORT_CLK IR pin GPIO clock port RCC_APB2Periph_ GPIOB RCC_AHBPeriph_ GPIOA RCC_AHBPeriph_ GPIOB #define IR_GPIO_PIN Pin which IR is connected(1) GPIO_Pin_3 GPIO_Pin_9 GPIO_Pin_5 1. For more details on the available STM32 resources, refer to your product datasheet. |
|
ссылки 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 |