AnsweredAssumed Answered

AD9643 pn sequence test

Question asked by prasanthi on Jul 10, 2015
Latest reply on Jul 13, 2015 by rejeesh

Hi,

    The following code from test.c (to test the ADC output), skips the PN sequence test when format = 1 i.e., the 2's complement mode (?).

With which format would this test work? And do we need to program AD9643 to output data in that particular format?

 

/* PnLongSeq or PnShortSeq */

    if ((mode == 0x5) || (mode == 0x6))

    {

        if (format == 0x1)

            goto end;

        Xil_Out32((baddr + 0x400), ((mode == 0x5) ? 0x2 : 0x0));

        Xil_Out32((baddr + 0x440), ((mode == 0x5) ? 0x2 : 0x0));

        delay_ms(10);

        Xil_Out32((baddr + 0x404), 0xff);

        Xil_Out32((baddr + 0x444), 0xff);

        delay_ms(100);

        if (Xil_In32(baddr + 0x404) != 0)

        {

            xil_printf("  ERROR: PN status(%02x).\n\r", Xil_In32(baddr + 0x404));

        }

        if (Xil_In32(baddr + 0x444) != 0)

        {

            xil_printf("  ERROR: PN status(%02x).\n\r", Xil_In32(baddr + 0x444));

        }

        goto end;

 

 

thanks,

- Prasanthi

Outcomes