page 132,60 ;**************************************************************************** ; 60HZHI08.ASM ; Example program to demonstrate the difference between 24-bit data ; capabilities and 16-bit data capabilities ; ; Modified to work with the HI08 to trigger the different filtering modes ; Ellery Blood September 1999 ; ; Copyright (c) MOTOROLA 1994 ; Semiconductor Products Sector ; Digital Signal Processing Division ; ; ver. 1.1 3/16/95 Placed coefficients on modulo boundaries. Moved the ; "state" variable locations. Set sine amplitude to 0.3. ; 6/20/96 PFS Modified for 56303 ; 9/16/99 Modified for HI08 interface ; ;****************************************************************************** ; This code demonstrates the benefits of a 24-bit architecture over that of ; a 16-bit architecture. The demonstration runs on the DSP56303EVM evaluation ; module. An external audio signal is input through the microphone connector ; on the EVM. A 60 Hz tone is generated by the DSP (via a digital oscillator) ; and then added to the digitized audio signal. The resulting data is then ; sent through a filter with one of three sets of coefficients. The first ; set of coefficients is located at location y:no_filter and performs no ; filtering at all, simply allowing the corrupted signal to pass. This first ; set of coefficients are used by the filter when the demo first begins or ; following the IRQB (IRQB). The second set of coefficients ; (located at y:coef_24) are 24-bit coefficients that make up a 60 Hz notch ; filter which removes the 60 Hz portion of the corrupted signal. This second ; set of coefficients are used following the external interrupt A (IRQA). The ; final set of coefficients (located at y:coeff_16) are the same coefficients ; as those for the 24-bit filter, only rounded to 16 bits. These 16-bit ; coefficients are used by the filter following the external interrupt D ; (IRQD). ;****************************************************************************** nolist include 'ioequ.asm' include 'intequ.asm' include 'ada_equ.asm' list include 'vectors.asm' Fs set 48000.0 ;Specify sampling frequency. PI set 2.0*@asn(1.0) ;Compute PI as 2.0*arcsin(1.0) factor set PI/180.0 ;Multiplier for degrees to radians eighteen set 18 hex_twenty set $20 ;****************************************************************************** ; Specification for tone a. freq_a set 60.0 ;Specify frequency in Hertz. phi_a set 360.0*(freq_a/              " $ & ( * , .       @ B D F H J P R T V X ` b d f h j l n p r t v x z | ~ dd!d?aA?a>><>< 1 @@