I found this paper on the internet, see if it can help.
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?
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.
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.
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.
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.
Can you do me a favor, log into the forum and mark Susan's answer as "Answer Verified" so we know you're happy?
Audio Applications Engineering Manager
Dallas, TX USA
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.