I'd like to know how to send a command via SPI mode.
For example, what command should I send via SPI mode if I want to make the following settings?
- Set the reference voltage to the external input.
- Outputs mid scale voltage(1000 0000 0000 0000).
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'd like to know how to send a command via SPI mode.
For example, what command should I send via SPI mode if I want to make the following settings?
Hi,
Please send the following SPI command
2 0001; // Enable DAC_SYNC_EN if DAC update using LDAC trigger (by default DAC_SYNC_EN =0, async mode)
3 0100 ;// disable internal reference
4 0001 ; // select reference divider and gain based on your requirement
8 8000 ; // Write midscale code
5 0010 ; // Send this command if you are using LDAC trigger for update DAC.
OK,Thanks.
According to the instruction on pages 23 -24 (8.5.1.1 SPI Mode),
The input shift register is 24 bits wide when I use SPI Mode.
What should I send on the fist 4bit before 20bit that you taught me(B19~B0)?
0000 ? or XXXX ?
hi ,
you have to send 24 bit frame for each register write. please add '0000' at front.
020001; // Enable DAC_SYNC_EN if DAC update using LDAC trigger (by default DAC_SYNC_EN =0, async mode)
030100 ;// disable internal reference
040001 ; // select reference divider and gain based on your requirement
088000 ; // Write midscale code
050010 ; // Send this command if you are using LDAC trigger for update DAC.