AnsweredAssumed Answered

AFE_WG_DAC_CODE

Question asked by gugi on Mar 13, 2016
Latest reply on Mar 16, 2016 by emoloney

Hello,

I need every time the sinusoid to start from 0mV - 0xAA000800,

uint32_t seq_afe_acmeasBioZ_4wire[] = {

    0x0019001A,   /* Safety word: bits 31:16 = command count, bits 7:0 = CRC                */

    0x84005818,   /* AFE_FIFO_CFG: DATA_FIFO_SOURCE_SEL = 10                                */

   0xAA000800,   /*Petar 0mV AFE_WG_DAC_CODE */

    0x8A000034,   /* AFE_WG_CFG: TYPE_SEL = 10                                              */

    0x98000000,   /* AFE_WG_CFG: SINE_FCW = 0 (placeholder, user programmable)              */

    0x9E000000,   /* AFE_WG_AMPLITUDE: SINE_AMPLITUDE = 0 (placeholder, user programmable)  */

    0x88000F00,   /* DAC_CFG: DAC_ATTEN_EN = 0                                              */

    /* TIA  */

   

    0x86007788,   /* DMUX_STATE = 8, PMUX_STATE = 8, NMUX_STATE = 6, TMUX_STATE = 7    0x86007688     */

    0xA0000002,   /* AFE_ADC_CFG: TIA, no bypass, offset and gain correction.               */

    0x00027100,   /* Wait 10ms. (Petar originally was 528ms)                                                            */

                  /* This is the worst case settling time:                                  */

                  /* Rcm=10M, Ciso=22nF(20%tol) => settling time = 2*RC = 528 ms            */

                  /* This settling time is only required the first time the switches are    */

                  /* closed.                                                                */

    0x80024EF0,   /* AFE_CFG: WAVEGEN_EN = 1                                                */

    0x00027100,   /* 10ms , was Wait 200us   0x00000C80                                                          */

    0x8002CFF0,   /* AFE_CFG: ADC_CONV_EN = 1, DFT_EN = 1                                   */

    0x00032340,   /* Wait 13ms ( -148us to stop at midscale)                                */

    0x80020EF0,   /* AFE_CFG: ADC_CONV_EN = 0, DFT_EN = 0                                   */

    /* AN_A */

    0xAA000800,         /*0mV AFE_WG_DAC_CODE */

    0xA0000208,   /* AFE_ADC_CFG: AN_A, Use GAIN and OFFSET AUX                             */

    0x00027100,   /* 10 ms was Wait 100us                                                             */

    0x80024EF0,   /* AFE_CFG: WAVEGEN_EN = 1                                                */

    0x00027100,   /* 10ms was Wait 200us   0x00000C80                                                           */

    0x00027100,   /* xx ms was Wait 100us                                                             */

    0x8002CFF0,   /* AFE_CFG: ADC_CONV_EN = 1, DFT_EN = 1                                   */

    0x00032340,   /* Wait 13ms                                                              */

    0x80020EF0,   /* AFE_CFG: WAVEGEN_EN, ADC_CONV_EN = 0, DFT_EN = 0                       */

    0x86000000,   /* DMUX_STATE = 0, PMUX_STATE = 0, NMUX_STATE = 0, TMUX_STATE = 0 0x86007788 ???        */

    0x82000002,   /* AFE_SEQ_CFG: SEQ_EN = 0                                                */

};

But when I add this to 4wires example it gives me error!

Any ideas?

 

Thank you

Outcomes