Ing mamon

Páginas: 2 (295 palabras) Publicado: 25 de septiembre de 2010
IC_TIEMPO FLANCO DE SUBIDA Y BAJADA * For assembly REGBAS * PORTA PIOC PORTC PORTB PORTCL DDRC PORTD DDRD PORTE CFORC OC1M OC1D TCNT TIC1 TIC2 TIC3 TOC1TOC2 TOC3 TOC4 TOC5 TCTL1 TCTL2 TMSK1 TFLG1 TMSK2 TFLG2 PACTL PACNT SPCR SPSR SPDR BAUD SCCR1 SCCR2 SCSR SCDR ADCTL ADR1 ADR2 ADR3 ADR4 BPROT OPTION COPRSTPPROG HPRIO INIT TEST1 CONFIG EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQUEQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU $1000 $00 $02 $03 $04 $05 $07 $08 $09 $0A $0B $0C $0D $0E $10 $12 $14 $16 $18 $1A$1C $1E $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $2A $2B $2C $2D $2E $2F $30 $31 $32 $33 $34 $35 $39 $3A $3B $3C $3D $3E $3F ;Starting address for ;registerblock

;- EEPROM Block Protect for E9 part, not A8

* Listing 11.8 * Measure time between a rising and a falling edge on IC1. *---------------------------------------------------------RISETIME PULSEWIDTH ORG LDAA STAA EQU EQU $100 #$10 ;config. to capture rising edge TCTL2,X Página 1 $10 $12

IC_TIEMPOFLANCO DE SUBIDA Y BAJADA LDAA #$04 ;clear flag IC1F if set STAA TFLG1,X * wait for rising edge POLLRISE BRCLR TFLG1,X $04 POLLRISE LDD TIC1,X ;store the risetime STD RISETIME LDAA #$20 ;config. to capture falling edge STAA TCTL2,X LDAA #$04 ;clear flag IC1F STAA TFLG1,X * wait for falling edge POLLFALL BRCLR TFLG1,X$04 POLLFALL LDD TIC1,X ;read the fall time SUBD RISETIME ;width = fall - rise STD PULSEWIDTH ;store width BRA * ;stop here for now

Página 2

Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • mamones
  • los mamones
  • mamon
  • El Mamón
  • Mamones
  • El mamon
  • Mamon
  • futbol mamon

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS