Motorola MSC8101 ADS User's Guide Page 194

  • Download
  • Add to my manuals
  • Print
  • Page
    / 346
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 193
9-18 MSC8101 User’s Guide
Enhanced Filter Coprocessor (EFCOP)
Example 9-3. Adaptive Filter Code
move.w #INPUT,r0 move.w #OUTPUT,r1 ;Init data pointers
move.w #0,d0 ;Init FDBA
move.w d0,M_FDBA
move.w #0,d0 ;Init FCBA
move.w d0,M_FCBA
move.w #FCNT-1,d0 ;Init FCNT
move.w d0,M_FCNT
move.w #$2105,d0 ;Init FCTL
move.w d0,M_FCTL
bmclr #$00E0,sr.h ;Enable all IPL
move.w #$7000,d0 ;Out not empty IPL 6
move.w d0,M_ELIRA
ei ;Enable interrupts
doensh0 #FCNT
loopstart0 ;Init data taps
move.l (r0)+,d0
move.l d0,M_FDIR
loopend0
move.l #FKIR,d0 ;Init coeffs
move.l d0,M_FKIR
move.l (r0)+,d0 ;Write first input
move.l d0,M_FDIR
The main code is now complete and the SC140 core can run other application code while
the EFCOP completes the filter operation. When the EFCOP completes the filter
operation, it places the result in the FDOR, which triggers the data output not empty
interrupt. The processor jumps to the appropriate interrupt vector address.
The interrupt vector code, shown in Example 9-4, uses an equate label, I_IRQ3, for the
location of the EFCOP data output not empty interrupt vector address. The example
assumes that this equate is declared prior to the example code. The interrupt vector code
includes the command to jump to the interrupt service routine.
Example 9-4. Interrupt Vector Code
org P:I_IRQ3 ;Output not empty vector
jsr OBNE_ISR
rte
Page view 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 345 346

Comments to this Manuals

No comments