Part Number: DAC81416EVM
DAC81416: Configuration added here
I used reference code. Send and receive through SPI interface okay.
but problem is send data not getting on DAC out pins.
Please can any one help.
GPIO_WritePin(QUART_RESETn, CLEAR);
/* Delay for a bit */
DELAY_US(1000);//delay(1);//for(i=0;i<=1)// TBD 1usec req
GPIO_WritePin(QUART_RESETn, SET);
/* DACRANGEn Register A Range: +/- 20V */
dac_init_steps(0x0acccc); /* Write bit set, Offset DACRANGEn,Dummy,SDO Enable , Fast SDO bit When 0, SDO updates during SCLK rising edges. */
dac_init_steps(0); /* Receive bytes */
/* DACRANGEn Register B Range: +/- 20V */
dac_init_steps(0x0bcccc); /*Write bit set, Offset DACRANGEn,Dummy,SDO Enable , Fast SDO bit When 0, SDO updates during SCLK rising edges. */
dac_init_steps(0); /*Receive bytes */
/* DACRANGEn Register C Range: +/- 20V */
dac_init_steps(0x0ccccc); /* Write bit set, Offset DACRANGEn,Dummy,SDO Enable , Fast SDO bit When 0, SDO updates during SCLK rising edges. */
dac_init_steps(0); /* Receive bytes */
/* DACRANGEn Register D Range: +/- 20V */
dac_init_steps(0x0dcccc); /* Write bit set, Offset DACRANGEn,Dummy,SDO Enable , Fast SDO bit When 0, SDO updates during SCLK rising edges. */
dac_init_steps(0); /* Receive bytes */
/* Power-up device */
dac_init_steps(0x030a84);
/* Power up all channels */
dac_init_steps(0x090000);
/* Enable Broadcast for all channels */
dac_init_steps(0x05ffff);
/* Write code to all channels */
dac_init_steps(0x0fffff);
then sending continues
dacWrite(0x7fff);
/* Delay for a bit */
DELAY_US(1000);//delay(1);//for(i=0;i<=1)// TBD 1usec req
dacWrite(0xffff);