This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hector,
Please let me know in a bit detail what you plan to do. If you calculate the coefs in DAP in real time, you don't need to convert it. How did you calculate the coefs?
Susan
Hector,
If you calculate the coefs in your micro and need to transfer the value through I2C, then you need to convert it to 5.23 format which is the format of the coef memory in DAP. For example, if the coef is 0.12345, then the number would be 0x00FCD35, since I2C is 8bit, we need to add another 4 bit at front, so the 32bit hex would be 0x000FCD35.
If you want to calculate the coefs in DAP, then you need to pass the user input through I2C to DAP and make a component in DAP using the user input.
I think you calculating the coefs in micro probably is the easier way.
let me know if I didn't answer your question.
Susan
Hector,
First, let's check whether you do have the correct coefficient in DAP memory: after you built your project, there is a dsp_main.lst file, in which all the address allocation are listed. Using the I2C memory tool, peek the memory location that the coefficients should be and check whether they're the value expected.
Susan
Hector,
Can you send me the two sets of coeffs calculated by you and PPS and also the parameters you used? If it works in Matlab, it should work in DAP. There're many ways of calculating coeffs, I feel that the method of calculating is not the problem.
Susan
Hector,
I looked at your numbers. I guess I may have failed to remind you, for all the "a" coefficients, you need to negate the number, then send to TAS. For example, from your results: where a1=0.62148112 , then you need to send a1=-0.62148112 to TAS, that is 0xFFB0734F.
Please let me know if it didn't solve your problem.
Susan
Hi, Hector,
Can you do me a favor, log into the forum and mark Susan's answer as "Answer Verified" so we know you're happy?
-d2