AnsweredAssumed Answered

Can't Run the adau1962 DAC on the ARM

Question asked by macci77 on Jan 30, 2017
Latest reply on Mar 3, 2017 by nithya.koch

Hello,

 

For some time I have been using the Sharc Griffin in the SC584 to initiate and run the adau1962a DAC together with the adau1979 ADC, all has been working well.

I moved the 1979 ADC to the ARM and things work (with some bug).

When I tried to do the same for the 1962 DAC, things did not work.

I have a breakpoint in the callback function, and when it stops there I see the event is a status event of 5, meaning –

ADI_SPORT_HW_ERR_PRIMARY_CHNL_UNDERFLOW | ADI_SPORT_HW_ERR_SECONDARY_CHNL_UNDERFLOW - error message.

I copied exactly the code from the Sharc Griffin to the ARM but it still does not work.

Is there a difference between the Sharc initiating the DAC and the ARM - clock,memory differences ?

 

Attached is the code I use to initiate the DAC 1962, it is based on your talkthroug example of yours.

 

       if(Adau1962aInit() != 0u)

       {

             fprintf(stdout, " Adau1962aInit() failed\n" );

             while(1);

       }

 

       /* Submit DAC buffers */

       if(Adau1962aSubmitBuffers() != 0u)

       {

             fprintf(stdout, " Adau1962aSubmitBuffers() failed\n" );

             while(1);

       }

       /* END of 1962adc init */

       if(Adau1962Enable() != 0u)

             {

                    fprintf(stdout, " Adau1962Enable() failed\n" );

                    while(1);

             }

             else

             {

                    fprintf(stdout, " DAC Started\n" );

             }

 

Outcomes