Electronic Components Datasheet Search
  English  ▼

X  

AN413 Datasheet(PDF) 35 Page - STMicroelectronics

Part # AN413
Description  Initialization of the ST9
PDF  45 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN413 Datasheet(HTML) 35 Page - STMicroelectronics

Back Button AN413 Datasheet HTML 31Page - STMicroelectronics AN413 Datasheet HTML 32Page - STMicroelectronics AN413 Datasheet HTML 33Page - STMicroelectronics AN413 Datasheet HTML 34Page - STMicroelectronics AN413 Datasheet HTML 35Page - STMicroelectronics AN413 Datasheet HTML 36Page - STMicroelectronics AN413 Datasheet HTML 37Page - STMicroelectronics AN413 Datasheet HTML 38Page - STMicroelectronics AN413 Datasheet HTML 39Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 45 page
background image
AN413
Examples of timer 0 configurations
Doc ID 1875 Rev 2
35/45
ld t_icr,#00
; No action on input pins
ld t_prsr,#00
; No prescaling
ld t_oacr,#11111100b ; No action on T1OUTA
ld t_obcr,#11110100b ; Toggle on OVF T1OUTB
ld t_flagr,#00
ld t_idmr,#00
.macroT1_START ; Start TIMER 1
spp #T1D_PG ; select Timer 1 data register page
and t_tcr,#ccl ; counter clear bit
or t_tcr,#cen ; counter enable bit
.endm
or CICR,#10000000b ; Global counter enable
loop {
}
;*********************************************************************
; INTERRUPT SUBROUTINES FOR TIMER 0
;*********************************************************************
;These subroutines are serviced on TIMER 0 Interrupts. They come from:
; T0_IT_VECT + 4 for both - IT/CAPTURE
; and - DMA IT/CAPTURE end of block
; T0_IT_VECT + 6 for - IT/COMPARE
;***********************************************************************
; Timer 0 CAPTURE Interrupt subroutine:
; - IT Capture on event on EXTA
; - DMA IT/CAPTURE end of block
T0_CAP:
spp #T0D_PG
; Timer 0 data register page
tm T_FLAGR,#ccp0 ; mask successful capture
jxz RESET_START
; this is not an IT CAPTURE
; == Pb
tm T_FLAGR,#ocp0 ; overrun on Capture 0 ?
jxnz RESET_START ; yes == RESET
and T_FLAGR,#~cp0 ; reset successful capture flags
and T_FLAGR,#~ocp0 ; reset overrun on capture 0 flag
iret
; return from interrupt
;************************************************************************



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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