Shop OBEX P1 Docs P2 Docs Learn Events
Input output help — Parallax Forums

Input output help

faisalfaisal Posts: 14
edited 2008-09-06 10:08 in BASIC Stamp
Hello,

I am trying to use a parrallel shift DAC with my BS2.· I would like to shift output pins 0-7 into the DAC, how do I do this at the same time rather than going like this:

High 0
Low 1
Low 2
High 3
High 4
Low 5
High 6
Low 7

Is there any possible way to go like this,

Output = %01011001

Any help will be much appreciated
·

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2008-09-06 10:08
    faisal -

    Take a look in the PBASIC Manual or the PBASIC Help File for the following:

    OUTS - All 16 outputs

    OUTL, OUTH - First 8 or last 8 outputs

    OUTA, OUTB, OUTC, OUTD - 1st, 2nd, 3rd or 4th group of 4 outputs

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Involvement and committment can be best understood by looking at a plate of ham and eggs. The chicken was involved, but the pig was committed. ANON

    Post Edited (Bruce Bates) : 9/6/2008 10:20:50 AM GMT
Sign In or Register to comment.