| Electronic Components Datasheet Search |
|
AN413 Datasheet(PDF) 30 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN413 Datasheet(HTML) 30 Page - STMicroelectronics |
|
30 / 45 page ![]() Examples of timer 0 configurations AN413 30/45 Doc ID 1875 Rev 2 Appendix C Examples of timer 0 configurations ;*********************** ;*DEFINE TIMER 0 MACROS* ;*********************** .macroT0_START_IT ; start timer 0, enable interrupts spp #T0D_PG ; select Timer 0 data register page and T_TCR,#ccl ; counter clear bit or T_TCR,#cen ; counter enable bit or T_IDMR,#gtien ; global interrupt mask .endm .macroT0_START_DMA_CAP ; start timer 0, enable interrupts ; and DMA spp #T0D_PG ; select Timer 0 data register page or T_IDMR,#( gtien | cp0d ); global interrupt mask or T_TCR,#cen ; counter enable bit .endm .macroSTOP_T0 ; stop Timer 0 spp #T0D_PG ; select Timer 0 data register page and T_IDMR,#gtien ; global interrupt mask and T_TCR,#cen ; counter enable bit .endm ;************************************************************ proc GEST_T0_ITCAPT{ ;Configuration of Timer 0 for IT CAPTURE ;TCR: - stop count ; - clear on capture ; - up count ;TMR: - disable output ; - internal clock ; - disable bivalue mode ; - disable retrigger mode ; - disable REG1 mode ; - continuous mode ; - enable REG0 mode ;ICR: - EXTA Trigger ; - falling edge on EXTA |
|
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 |