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.

Problem interfacing TLV1578 with NI myRIO

Hello.

Background of the problem : I am using a NI myRIO with LabVIEW 2013 as my DAq device for automotive applications and have run out of analog input channels. So I need to interface an external ADC to solve my problem. 

I am having a problem with the interfacing. I have tried to reproduce the timing diagram as specified in the datasheet, but it doesnt work. I cant even read-back the registers. 

Here is what I am doing : All connections made as specified. The CLK pin left not connected as I plan to use the internal clock. I understand the ADC needs two write cycles to write the two registers, how do I do that ? The timing diagram on the datasheet only specifies one write cycle. I tried this :

CS low, WR low and then write REG1, WR high, CS high, CS low, WR low write REG2, WR high, CS high.  

I also tried

CS low, WR low, write REG1, WR high, WR low, write REG2, WR high, CS high.

this also didnt work. How do I proceed ?

Any help is greatly appreciated. Thanks :)

  • Hello Deepen Solanki21,

    To read the register the procedure is as follows:

    CS low, WR low, write REG1 (make sure that you set D2 to 1 and D1/D0 to the proper value to put out the contents of the desired register), WR high, RD low (at this point you should see the register contents provided there is a clock present –either the internal clock if D5 in CR0 is set to 0 or an external clock if D5 in CR0 is set to 1), RD high.

    You would repeat the same procedure as above but changing the values of D1/D0 to read the other register.

    I hope this helps.

    Best regards,

    Jose