Hi,

How to calculate the parameters of tone?

1. ToneGenBlk1_cos = cos(2*pi*1000/48000) = 0.99144486137381

ToneGenBlk1_sin = sin(2*pi*1000/48000) = 0.130526192220052

Right?

2. But the float vaule 0.991444861516356 convert to hex data is 3F 7D CF 55, Not 3F 73 D5 26.

Why?

Thanks,

Anthony

Hi Madhuri,

Thank you very much.

Is the fixed point format 2.30? I calculate the Hex value in matlab. The result is :

dec2hex(round(0.991444861516356*2^30)) = 0x3F73D526

Thanks,

Anthony