Shop OBEX P1 Docs P2 Docs Learn Events
shiftout - quick question, double check — Parallax Forums

shiftout - quick question, double check

ArchiverArchiver Posts: 46,084
edited 2002-11-28 02:33 in General Discussion
I want to shiftout
0,0,0,1,0,0,0,0,0,0,0

and this is my statement

Shitout 1,2,MSBFIRST,[noparse][[/noparse]0\3,128\8]

will this do it?
I want to make sure this much is correct.

I am trying to interface the gameboy camera chip,
to a stamp, my program, sets up the chip, then
reads the picture and sends it to a visual basic,
program, that opens a little window with the image.

So far, I haven't gotten it to work. I am not sure
if I am setting and clocking the various pins the way
they need to be.


http://www.lh.co.nz/hardware/ar/techinfo.htm

this is a link to the chips data sheet, (html)
if any of you knowledgable souls want to take a look.


thanks

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-11-28 02:33
    yournumber var byte
    yournumber = 16
    Shiftout 1,2,1,[noparse][[/noparse]yournumber]

    yournumber con 16
    Shiftout 1,2,1,[noparse][[/noparse]yournumber]

    and there are most likely more ways to do it


    Original Message
    From: "rdenn25" <rad0@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: November 27, 2002 9:19 AM
    Subject: [noparse][[/noparse]basicstamps] shiftout - quick question, double
    check


    > I want to shiftout
    > 0,0,0,1,0,0,0,0,0,0,0
    >
    > and this is my statement
    >
    > Shitout 1,2,MSBFIRST,[noparse][[/noparse]0\3,128\8]
    >
    > will this do it?
    > I want to make sure this much is correct.
    >
    > I am trying to interface the gameboy camera chip,
    > to a stamp, my program, sets up the chip, then
    > reads the picture and sends it to a visual basic,
    > program, that opens a little window with the image.
    >
    > So far, I haven't gotten it to work. I am not sure
    > if I am setting and clocking the various pins the way
    > they need to be.
    >
    >
    > http://www.lh.co.nz/hardware/ar/techinfo.htm
    >
    > this is a link to the chips data sheet, (html)
    > if any of you knowledgable souls want to take a look.
    >
    >
    > thanks
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in
    the Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/
    >
    >
Sign In or Register to comment.