plot CIR

Hi:

I try to plot CIR accroding the data of register ACC_MEM, but I fail. Who can hep me ?

Thank you!

The ACC_MEM (as described in the UM)… should be read out and converted into signed 16-bit real/imaginary (complex) samples. NOTE - when reading out ACC_MEM the 1st byte will always be a dummy byte (0) and should be ignored. E.g. to read 1 complex sample, you should provide an array of 5 bytes to dwt_readaccdata, the 1st byte should be discarded.

Hi:

I read out the all data of register ACC_MEM again according your advice. At same time, I plot the CIR graph[color=#333333]-sqrt(Imag^2+Real^2)[/color] according data. I find my graph is different from standard graph. Could you tell me why.

Thank you !

I presume you are reading the ACC_MEM after a frame reception, can you attach raw bytes? I suspect you are not converting raw bytes to 16-bit signed numbers.

Hi:

You are right. I was not converting raw bytes to 16-bit signed numbers before.
Thank you very much!

Thank you!