| Electronic Components Datasheet Search |
|
AN413 Datasheet(PDF) 34 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN413 Datasheet(HTML) 34 Page - STMicroelectronics |
|
34 / 45 page ![]() Examples of timer 0 configurations AN413 34/45 Doc ID 1875 Rev 2 spp #T0D_PG ; select timer 0 register page srp #BK_F ; select working register ld t_tcr,#00011000b ; Counter clear ; Software Up ld t_tmr,#10001000b ; Enable output 1 ; Disable output 0 ; Not bivalue mode ; REG 1 monitor counter value ; REG 0 Capture ; Internal clock ; Retrigger mode ; Continuous mode ld t_icr,#00 ; No action on input pins ld t_prsr,#00 ; No prescaling ld t_oacr,#11111100b ; No action on OUTPUT0 ld t_obcr,#11110100b ; Toggle on OVF ld t_flagr,#00 ld t_idmr,#00 .macroT0_START ; Start TIMER 0 spp #T0D_PG ; select Timer 0 data register page or t_tcr,#cen ; counter enable bit .endm ;****************** ;initialize TIMER 1 ;****************** TIMER1:: spp #T1D_PG ; select timer 1 register page srp #BK_F ; select working register ld t_tcr,#00011000b ; Counter clear ; Software Up ld t_tmr,#10001100b ; Enable output 1 ; Disable output 0 ; Not bivalue mode ; REG 1 monitor counter value ; REG 0 Capture ; Parallel mode ; Retrigger mode ; Continuous mode |
|
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 |