| Moteur de recherche de fiches techniques de composants électroniques |
|
AN413 Fiches technique(PDF) 31 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN413 Fiches technique(HTML) 31 Page - STMicroelectronics |
|
31 / 45 page ![]() AN413 Examples of timer 0 configurations Doc ID 1875 Rev 2 31/45 ; - EXTB No Operation ;OACR-OBCR: - no operation ;IDMR: - Interrupt on capture REG0 ;DCPR: - reset value ;DAPR: - 00h ;IVR: - Interrupt vector 10h = T0_IT_VECT ;IDCR: - level 4 spp #T0D_PG ; Timer 0 data register page ld T_TCR,#01001000b ; TCR ld T_TMR,#00001010b ; TMR ld T_ICR,#01010100b ; ICR ld T_PRSR,prescal_t0 ; PRESCALER ld T_OACR,#11111100b ; OACR ld T_OBCR,#11111100b ; OBCR ld T_FLAGR,#00h ; FLAGR ld T_IDMR,#00100000b ; IDMR spp #T0C_PG ; Timer 0 control register page ld T0_DCPR,#00h ; DCPR ld T0_DAPR,#0 ; DAPR ld T0_IVR,#T0_IT_VECT ; IVR interrupt vector 14h ld T0_IDCR,#IT_T0_LEVEL ; priority level 4 T0_START_IT ; start Timer 0, enable interrupt } ;********************************************************************* proc GEST_T0_EVENT{ ; Configuration of Timer 0 into EVENT COUNTER MODE ; IT COMPARE is serviced when nb_event_t0 is reached ;TCR: - Stop count ; - Up count ; - Clear on compare ;TMR: - Disable output 0-1 ; - no Bivalue mode ; - no Bicapture ; - Internal clock ; - Disable retrigger mode ; - Continuous mode ;ICR: - EXTB Ext.Clock |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |