Special Filter Instructions
4-66
mov
STAT,*filterSTAT_tag
;load STAT with last filter
tag status
rpt
N–2
firk
A0,*R0++
;Do one sample ––> 32 bit result
mov
*filterSTAT_tag,STAT
;save STAT with last filter
tag status
;R0 now points to the last
sample
movs
*ySampleOut,A0
;FIR outputs bits 0–15 in
AC0, 16–32 in AC1
mov
A0,*nextSample
;Replace last sample with
newest sample and update
mov
*R0,A0
; the start of the
mov
*startOfBuff,R0
; circular buffer to here
(R0)
The set up for the FIRK/CORK instruction is the same as the set up for the FIR/
COR instruction with the exception that the filter coefficients do not need to be
loaded into RAM locations. Rather, they can be included just before speech
data or elsewhere in the program code as follows,
FIRK_COEFFS
include
“\..\tables\coeffs.dat”
Содержание MSP50C6xx
Страница 1: ...MSP50C6xx Mixed Signal Processor User s Guide Mixed Signal Products SPSU014A Printed on Recycled Paper...
Страница 6: ...vi...
Страница 14: ...xiv...
Страница 24: ...1 10...
Страница 296: ...Instruction Set Summay 4 210 Assembly Language Instructions...
Страница 332: ...Implementation Details 5 36 R7 Return Addr Return Addr Param 2 Param 2 Param 1 Param 1 R5 Stack data Function call...
Страница 366: ...6 12...