Professional Documents
Culture Documents
Arpan G Srikanta Bhatta B S Guided by Prof.P Meena
Arpan G Srikanta Bhatta B S Guided by Prof.P Meena
P Meena
filter.
y(n)= xT(n)w(n)
Update weights: w(n+1)= w(n) + me(n)x(n) m: step size e(n)= d(n)-y(n) x(n) : refrence signal y(n): filter output d(n): desired output e(n):error signal Convergence depends on step size
SIMULATION
COMPOMENTS
NOISE SOURCE
DESIRED RESPONSE LMS FILTER
ERROR SIGNAL
SUBTRACT DELAY
FIRLMS
Arguments h[nh] Coefficient Array x[nh] Input Array b Error from previous FIR nh Number of coefficients return long return value
ALGORITHM
long firlms2(short h[ ],short x[ ], short b, int nh) { int i; long r = 0; for (i = 0; i < nh; i++) { h[i] += (x[i] * b) >> 16; r += x[i + 1] * h[i]; } return r; }
SUBTRACT
The Subtract block performs the function of destructive
interference that happens in the real world.
DELAY
The Unit Delay block delays its input by the specified
sample period. This block is equivalent to the z-1 discretetime operator. The block accepts one input and generates one output, which can be either both scalar or both vector. If the input is a vector, all elements of the vector are delayed by the same sample period.
Hardware implementation
Hardware used: Texas Instruments TMS320C6713
DSK and AD6M daughter card. Daughter card needed due to the drawbacks of DSK DSK kit has only 1 ADC. Features of TMS320C6713
225 MHz CPU 16 MB sync RAM and 512 Kb Flash Standard expansion for Daughter Cards JTAG emulation Single +5v supply
Many disadvantages with this method. Feasibility is reduced. Customizations are not possible. Simulink generates errors The daughter card cant be accessed.
Solution We write our own C code The model is emulated directly Progress Studying in detail the aspects of Hardware Programming Implemented some basic codes for testing purposes Implemented the static model of our project i.e.,, non real time model but outputs are not according to our expectations. Further things to be done Implementation of real time model Design of ducts, enclosures and microphone placements.
THANK YOU