Hi Chandan, I don't have a code example to send you at the moment, but maybe this will help you understand the interface a little better. Referring to Figure 1, Table 4 and Figure 90, to write to the CFR you would start by setting /CS low and then start shifting in your 0x8040 command. For reading and writing the registers, the command transmit length has to be 48 clocks long with the configuration command/data loaded into the 16 MSB's. So, to write the CFR with your desired configuration, you'd need to send 0x804000000000 with data valid on the falling SCLK edge and then bring /CS back high. You would do the same thing for writing to the DAC registers (0x9FF800000000 and 0xAFF800000000). To read from the CFG register, just modify the command to be 0x3000000000. The desired register contents will be output on the 16 MSB's of the next frame.
↧