标题: 请教!大家!! [打印本页] 作者: dreamboy 时间: 2003-10-8 14:49 标题: 请教!大家!! 请大家帮忙看一下:http://www.microchip.com/1010/suppdoc/appnote/all/an543/index.htm
上的程序上data 后面的数据是怎么算的,
就是k1,k2,k3是怎么算出来的?
Tone 1 Resonator Constants
DATA [B]26510 [/B]; K1 = COS(wT) = COS(360*f/fs)
DATA [B]9630 [/B]; K2 = SIN(wT) = SIN(360*f/fs) = init value of y(n-1)
DATA [B]0 [/B]: K3 is init value of y(n-2)
00138 ; Tone 2 Resonator Constants
DATA [B]21281 [/B]; K1 = COS(wT) = COS(360*f/fs)
DATA [B]6229 [/B]; K2 = SIN(wT) = SIN(360*f/fs) = init value of y(n-1)
DATA [B]0 [/B]; K3 is init value of y(n-2)
谢谢!!