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.

DAC161S997EVM

Hi,

I have a custom PC application that I wanted to use this board for a 4-20mA transmitter. I see that it has LabView drivers, but I'm not using LabView. Are there any documents that have the serial data strings needed to go to this board to produce the 4-20mA outputs?


Regards,


Scott

  • Hi Scott,

    Sure you can read and write registers on S997 EVM via PC using below commands. commands are hexadecimal strings.

    Read Word:

    CMD – 04AAXXXX

    RESP – 04AADDDD

    Write Word:

    CMD – 05AADDDD

    RESP – 05AADDDD

    AA- Address, DDDD- Data 

    Regards,
    Murali 

  • Hey folks, I wanted to add to this post as an FYI.  I, too, had problems getting the Windows app to run, so the information above helped me get up and running with a serial console program.  Some things that you may find helpful:

    1. I used the RealTerm app (google search RealTerm) to communicate with the EVM

    2. The EVM wants to run at 9600-N-8-1

    3. I set Real Term display to Hex (Display->Text) and used the send function to interact (Send -> Send ASCII)

    4. In the mode above, RealTerm takes decimal inputs and sends/receives Hex strings

    5. When using a manual input mode like RealTerm, you need to send 05 05 01 19 (decimal when using  mode above), or  05050113 (using a hex string method) to disables the DAC's SPI timeouts.  Otherwise there is a default 100ms timeout waiting for the next SPI command, and the device will always be in a timeout condition and output the ERR_LVL value (about 3ma as the EVM as shipped and about 22ma if you remove the ERRLVL).

    6. Once I figured out 5 above, I was able to easily operate the device manually with 05 04 nnn nnn (decimal) or 0504hhhh (hex) to set the output current.  The other command I use is 04 255 00 00 (decimal) 04FF0000 (hex) to read the status register.

  • I just want to add my hints:

    The board can easily be used with software like LabView or Agilent VEE.

    Simply take a decimal-value, split it to the form “05.04.xxx.yyy”and send over the serial port.

    A: your decimal value 0…65535

    B: 256

    xxx=(A / B)-((A/B) MOD 1)

    yyy=A MOD B

    Then put the fragments together.

    Example:

    The decimal code 34160 results in the string “05.04.133.112”