Shop OBEX P1 Docs P2 Docs Learn Events
How to do digital to analogue conversion using LTC1257 ? — Parallax Forums

How to do digital to analogue conversion using LTC1257 ?

sckamsckam Posts: 27
edited 2004-10-15 00:51 in BASIC Stamp
Dear all,

Hi!

I have a Digital to Analogue Converter IC (LTC1257).

May I know how to use my Basic Stamp 2(BS2) to convert the digital signal to analogue signal?

Thank you.

Best regards.

Kam
jumpin.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thank you.

Warm regards.
Kam

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-10-09 16:26
    http://www.parallax.com/dl/docs/cols/nv/vol1/col/nv43.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • sckamsckam Posts: 27
    edited 2004-10-15 00:51
    Dear all,

    I have some problem on my BS2 code:

    1.When I did SYNTAX CHECK, an error "Out of variable
    space" happen at "Y"
    Why ? just only five WORDs declare only, the error
    already come out ?
    I have remark the code.

    2.Refer to Jon's URL link for the DAC PDF file,the DPin in my BS2 code under DAC section is refer to Pin 2(Din) on the LTC1257 ? and the DAC in the code is refer to Pin 3(LOAD) on the LTC1257 ?

    Clk··· PIN·· 0
    Dpin·· PIN·· 1
    DAC··· PIN·· 5
    temp··· VAR··· Word
    tempL·· VAR··· temp.BYTE0
    tempH·· VAR··· temp.BYTE1
    dac1··· VAR··· Word
    dac2··· VAR··· Word
    shift·· VAR··· Byte

    Attach here is the program BS2 code.
    Thank you.
    Best regards.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Thank you.

    Warm regards.
    Kam
Sign In or Register to comment.