Post Go back to editing

How can data processing anomalies be detected? Such as NAN, Clipping

Category: Software
Product Number: ADSP-21562

Hi,I use the ad21562 chip ,I consulted the "AE_42_SS4G_IntegrationGuide.pdf" document, and currently I implemented my data processing in 4.1.2 Advanced Design Mode; In section 5.3 of the document, the SSn Target Library has an API called adi_ss_schematic_process. In section 5.5, the Target Framework mentions that it can detect processing errors such as data clipping or NAN errors. I also found adi_ss_control_fw_Process which is an API to monitor processing errors;
1. Can both apis handle data? Do they perform the same function (processing data)? If so, what's the difference?


2. I want to check for processing error, but adi_ss_schematic_process doesn't return these error states, So how do I implement processing error detection using the existing method (4.1.2 Advanced Design Mode)?


3.What is the difference between SSn Target Library and Target Framework?

thanks

  • Hi, The NAN will be detected in the target framework after Sigma Studio schematic processing "IsNanInf()" function used to detect the NAN.
    Target library used to process the SigmaStudio schematic application based on the received input data.

  • Hi,Sakthivel P

    thank you for your reply.I wasn't just interested in detecting NAN, but also detecting other exception states, as returned by the adi_ss_control_fw_Process API; Other things I'd like to know:

    1. Can both apis handle data? Do they perform the same function (processing data)? If so, what's the difference?


    2. I want to check for processing error, but adi_ss_schematic_process doesn't return these error states, So how do I implement processing error detection using the existing method (4.1.2 Advanced Design Mode)?


    3.What is the difference between SSn Target Library and Target Framework?

  • The adi_ss_control_fw_Process is top level process function which internally does input data copy/ Fixed to float conversion/schematic processing/NAN detection/float to fixed data conversion and finally write to output buffer. Please refer the API adi_ss_schematic_process information,
    adi_ss_schematic_process [Analog Devices Wiki]
    ADI_SS_RESULT [Analog Devices Wiki]

    The NAN detection function implemented in assemble and the source is available in target framework. The target library has the adi_ss_schematic_process function which internally process the audio data based on designed SigmaStudio schematic.