AnsweredAssumed Answered

SigmaDSP generated include files for ADAU1761

Question asked by inventis on Apr 9, 2010
Latest reply on Nov 9, 2010 by JeradL

Hello,

I have some trouble to initialize the ADAU1761 .

 

I noticed that the proposed sequence to download parameter is the following:

 

void default_download() {
    SIGMA_WRITE_REGISTER_BLOCK( DEVICE_ADDR_IC_1, REG_SAMPLE_RATE_SETTING_ADDR, REG_SAMPLE_RATE_SETTING_BYTE, R0_SAMPLE_RATE_SETTING_Default );
    SIGMA_WRITE_REGISTER_BLOCK( DEVICE_ADDR_IC_1, REG_DSP_RUN_REGISTER_ADDR, REG_DSP_RUN_REGISTER_BYTE, R1_DSP_RUN_REGISTER_Default );

 

    SIGMA_WRITE_REGISTER_BLOCK( DEVICE_ADDR_IC_1, REG_CLKCTRLREGISTER_ADDR, REG_CLKCTRLREGISTER_BYTE, R2_CLKCTRLREGISTER_Default );
    SIGMA_WRITE_REGISTER_BLOCK( DEVICE_ADDR_IC_1, REG_PLLCRLREGISTER_ADDR, REG_PLLCRLREGISTER_BYTE, R3_PLLCRLREGISTER_Default );

 

    SIGMA_WRITE_REGISTER_BLOCK( DEVICE_ADDR_IC_1, REG_SERIAL_PORT_CONTROL_0_ADDR , R4_SERIAL_PORT_CONTROL_REGISTERS_SIZE, R4_SERIAL_PORT_CONTROL_REGISTERS_Default );

 

........

 

}

 

For what I read in the datasheet the first instruction to send to the codec are  the ones related to the clock configuration,

so the istruction marked in red should be the first in the download list.

Is it correct?

Outcomes