Hello I have written the following commands to write some voltage over SPI and to get a read out to varify that the sttings went OK.
DO i need another "read" command for that purpose?
Thanks.
//start write update command uint8_t B7_B0=0b11110000; //first 4 are dont care,first 4 bits data uint8_t B15_B8=0b11111111;//data bits uint8_t B23_B16=0b00000000;//channel A DATA total 0000 1111 1111 1111 uint8_t B31_B24=0b00000011;//write to buffer and update DAC ,Write /rest dont care //start end update command uint32_t Recieved_D=0b00000000000000000000000000000000; //Enable SDO register uint8_t C31_C24=0b00001000; //enable DSO command uint8_t C23_C16=0b00000000; uint8_t C15_C8=0b00000000; uint8_t C7_C0=0b00000010;// enable DSO bit //NO OPeration COMMAND uint8_t D31_D24=0b00001110; uint8_t D23_D16=0b00000000; uint8_t D15_D8=0b00000000; uint8_t D7_D0=0b00000000;