Hello again,
I use this routine to set DAC Power on and off
void set_dac_power(uint8_t mode)
{
dbgMess("DAC Power: %s ! Value= %i",mode == 1 ? "OFF" : "ON", mode);
if (mode==1)
SPI_send_data(WRITE_DAC | PWR_UP_DOWM_DAC ,0x10,0x00,0x0F);
else
SPI_send_data(WRITE_DAC | PWR_UP_DOWM_DAC ,0x10,0x03,0x0F);
}
If i do so the following Bits are set
0x14,0xf0,0x0f,0xf0 BIN: 0001 0100 | 1111 0000 | 0000 1111 | 1111 0000 | CHANNEL: F COMMAND: Power up/down DAC //SPI_send_data(WRITE_DAC | PWR_UP_DOWM_DAC ,0x10,0x00,0x0F);
0x15,0xf0,0x00,0x00 BIN: 0001 0101 | 1111 0000 | 0000 0000 | 0000 0000 | CHANNEL: F COMMAND: Clear mode register
0x16,0xf0,0x00,0x00 BIN: 0001 0110 | 1111 0000 | 0000 0000 | 0000 0000 | CHANNEL: F COMMAND: LDAC Register
If mode is one
the result is as follows
0x14,0xf0,0x00,0x00 BIN: 0001 0100 | 1111 0000 | 0000 0000 | 0000 0000 | CHANNEL: F COMMAND: Power up/down DAC
Why are the Bits D7 to D4 set?
What can I do CH-D to CH-A?
thanks vodi