1. I have written code for DAC8750.
I am successfully able to write DAC data register & I correctly read its value back by read operation.
But problem is in actual the setting don't take effect, even though data can be read back correctly.
Actual settings only take effect wen I power on/off the complete circuit
1. Dvdd = 3.3V. Avdd = 11V. Rload = 100ohm. But Avdd & DVDD are applied at same time.
2. IS there any sample code for DAC8750
3. Code algo is:
void dac8750(void) { /* configure pin */ alarm_openDrain_input(); clear_output_low(); latch_output_high(); SPI_Mode0(); /* write control register */ latch_output_low(); delay_us(10); send_spi_byte(0x55); send_spi_byte(0x10); send_spi_byte(0x05); delay_us(10); latch_output_high(); delay_us(100); /* write dac register */ latch_output_low(); delay_us(10); send_spi_byte(0x01); send_spi_byte(0x7f); send_spi_byte(0xff); delay_us(10); latch_output_high(); delay_us(100); /* read dac data */ latch_output_low(); delay_us(10); send_spi_byte(0x02); send_spi_byte(0x00); send_spi_byte(0x01); delay_us(10); latch_output_high(); delay_us(100); latch_output_low(); delay_us(10); send_spi_byte(0x00); data = receive_spi_byte(0x00); /* at this point I read correct dac register values */ data1 = receive_spi_byte(0x00); delay_us(10); latch_output_high(); delay_us(100); }