Connect with us

How to interface Arduino to a 12-bit serial DAC

Discussion in 'Electronic Basics' started by [email protected], Oct 27, 2007.

Scroll to continue with content
  1. Guest

    Can anyone give me some pointers on what I would need to do to get a
    TLV5618 12bit serial DAC running with an Arduino?

    I want to be able to output 0-5v under program control.

    http://focus.ti.com/lit/ds/symlink/tlv5618a.pdf

    Particularly how I connect CS, SCLK, and REF to get the chip working.

    Thanks,
     
  2. Tom2000

    Tom2000 Guest

    After a quick peek at the data sheet, it looks like the shiftout
    command will do the job.

    You'll have to handle the CS lead yourself. Just assign it to any
    convenient output pin, drop it, shift your data to the DAC, then raise
    CS again.

    The Arduino help pages explain the use of the shiftout routine.

    Good luck!

    Tom
     
  3. Guest

    Tom,

    Thanks so much, that helps a lot - can I tie Vin and REF to +5v? Or
    does REF need to be different?

    Dave
     
  4. Tom2000

    Tom2000 Guest

    You sure can, Dave.

    And, like the AVdd input to your Arduino, make sure that the REF pin
    is well bypassed. Any noise on this pin will appear on your analog
    output.

    Have fun!

    Tom
     
  5. Guest

    Bypass?
    Hmmm...

    <newb>

    This is a capacitor between the pin and ground, right?
    What's a typical value for this cap?

    </newb>

    Dave
     
  6. Tom2000

    Tom2000 Guest

    Well, at the minimum, a 0.1 uF ceramic. See how the output sounds and
    looks. Add a tantalum if you need more. Also, bypass the rest of
    your chips with, at the minimum, a 0.1 uF ceramic.

    Good luck!

    Tom
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-