| Electronic Components Datasheet Search |
|
AN540 Datasheet(PDF) 12 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
AN540 Datasheet(HTML) 12 Page - Microchip Technology |
|
12 / 17 page ![]() DS00540B-page 12 © 1993 Microchip Technology Inc. Implementing IIR Digital Filters 0077 1147 ADDWFC ACC+B3 ; add 4th byte of ACC, save in ACC(B3) ; ; Compute A1*D(n-1) ; 0078 7C28 MOVFP Dn2_1+B0,AARG+B0 ; move Dn2_1(B0) to AARG(B0) 0079 7D29 MOVFP Dn2_1+B1,AARG+B1 ; move Dn2_1(B1) to AARG(B1) 007A 7E36 MOVFP A21+B0,BARG+B0 ; move A21(B0) to BARG(B0) 007B 7F37 MOVFP A21+B1,BARG+B1 ; move A21(B1) to BARG(B1) 007C E0AF call DblMult ; (ACCd,ACCc) = A1*D(n-1) ; ; Compute A1*D(n-1) + A2*D(n-2) + output of previous section ; multiplications already done, so simply perform a 32 bit add ; of previously obtained multiplication results ; 007D 6018 MOVFP DPX+B0,WREG ; get lowest byte of DPX into w 007E 0F44 ADDWF ACC+B0 ; add lowest byte of ACC, save in ACC(B0) 007F 6019 MOVFP DPX+B1,WREG ; get 2nd byte of DPX into w 0080 1145 ADDWFC ACC+B1 ; add 2nd byte of ACC, save in ACC(B1) 0081 601A MOVFP DPX+B2,WREG ; get 3rd byte of DPX into w 0082 1146 ADDWFC ACC+B2 ; add 3rd byte of ACC, save in ACC(B2) 0083 601B MOVFP DPX+B3,WREG ; get 4th byte of DPX into w 0084 1147 ADDWFC ACC+B3 ; add 4th byte of ACC, save in ACC(B3) ; ; ; save the upper 16 bits of D(n) from the 32 bit accumulator ; left shift the result by 1, to adjust the decimal point after ; a Q15*Q15 multiplication ; 0085 1A45 rlcf ACC+B1,w 0086 1A46 rlcf ACC+B2,w 0087 0126 movwf Dn2 0088 1A47 rlcf ACC+B3,w ; decimal adjust ( mult by 2) 0089 0127 movwf Dn2+B1 ; ; Compute B2 * [D(n) + D(n-2)] ; if B0_EQUALS_B2 008A 602A movfp Dn2_2+B0,wreg 008B 0E26 addwf Dn2+B0,w 008C 011C movwf AARG+B0 008D 602B movfp Dn2_2+B1,wreg 008E 1027 addwfc Dn2+B1,w 008F 011D movwf AARG+B1 0090 7E3A MOVFP B20+B0,BARG+B0 ; move B20(B0) to BARG(B0) 0091 7F3B MOVFP B20+B1,BARG+B1 ; move B20(B1) to BARG(B1) 0092 E0AF call DblMult ; (ACCd,ACCc) = B2*[D(n)+D(n-2)] 0093 5844 MOVPF DPX+B0,ACC+B0 ; move DPX(B0) to ACC(B0) 0094 5945 MOVPF DPX+B1,ACC+B1 ; move DPX(B1) to ACC(B1) 0095 5A46 MOVPF DPX+B2,ACC+B2 ; move DPX(B2) to ACC(B2) 0096 5B47 MOVPF DPX+B3,ACC+B3 ; move DPX(B3) to ACC(B3) else 4-140 |
|
|
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 |