| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 16 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 16 Page - STMicroelectronics |
|
16 / 229 page ![]() Firmware library UM0097 16/229 EIC_IRQChannelPriorityConfig(T1TIMI_IRQChannel,1); /* Enable Timer 1 IRQ channel interrupts*/ EIC_IRQChannelConfig(T1TIMI_IRQChannel,ENABLE); /*configure GPIO0 pins as push-pull output mode*/ GPIO_Config(GPIO0, 0xFFFF, GPIO_OUT_PP); /* Set GPIO0 pins to low level*/ GPIO_WordWrite(GPIO0, 0x0000); /* configure GPIO1 pins as push-pull output mode*/ GPIO_Config(GPIO1, 0xFFFF, GPIO_OUT_PP); /* Set GPIO1 pins to low level*/ GPIO_WordWrite(GPIO1, 0x0000); /*Timer 0 Configuration*/ //*Initialize the Timer*/ TIM_Init (TIM0); /*Configure Timer 0 Prescaler*/ TIM_PrescalerConfig (TIM0,0x0F); /* Enable Timer 0 Overflow Interrupt*/ TIM_ITConfig(TIM0,TIM_TO_IT,ENABLE); /* Timer 1 Configuration*/ /* Initialize the Timer*/ TIM_Init (TIM1); /* Configure Timer 1 Prescaler*/ TIM_PrescalerConfig (TIM1,0xFF); /* Enable Timer 1 Overflow Interrupt*/ TIM_ITConfig(TIM1,TIM_TO_IT,ENABLE); /* Enable IRQ interrupts*/ EIC_IRQConfig(ENABLE); /* Start Timer 0*/ TIM_CounterConfig (TIM0,TIM_START); /* Start Timer 1*/ TIM_CounterConfig (TIM1,TIM_START); /*Infinite loop*/ while(1); } |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |