Hello everyone!
I have a few questions about the TLV5637 DAC. I'm using the MCP2210 USB to SPI chip to control the SPI data sent to the DAC.
I know how to sent the data. The problem is that I'm not sure if I'm sending the right data. In the datasheet of the chip I says that first 4 bits of the 16 bit word to send are the control bits. I set them up to select DAC A output and external reference voltage (0xD003 - '1101 0000 0000 0011). I then send this via the SPI interface to the DAC.
Right after I do this first transfer I set up the next 16 bits. I have a trackbar that goes from 0-1023 (0x00 to 0x3FF - max 10bits). The first 4 bits are again set up for updating the DAC a output (0xC000). I add to these bits the value of the trackbar*0x0004 to keep the final bits as reference.
This is my conundrum. Do I have to actually send a 12 bit code (disregarding the final 2 bits) or a 10 code for the DAC value? As long as I set up the reference in the first flow of bits do I need to set it again the second one?
I've been trying to figure out this for a few days now.
I hope I was clear in what my problem is.
Best regards,
Robert Iagar - SC Continental Automotive Romania SRL
