Shop OBEX P1 Docs P2 Docs Learn Events
Using BS1 code with a BS2. — Parallax Forums

Using BS1 code with a BS2.

ArchiverArchiver Posts: 46,084
edited 2002-09-12 16:28 in General Discussion
I have found some code for reading the data off a smart card
(www.elecdesign.com/1999/mar0899/ifd/1IFD.pdf); however it is for use
with a BS1 and I have BS2sx. I was hoping someone might be able to
help me with converting it as I am not very experienced in
programming basic stamps.

DIRS = %11100110
PINS = 0
high 7
high 6
low 6
low 7
high 6
low 6
high 5
for B0 = 0 to 31
B2 = 0
for B1 = 0 to 7
B2 = B2 * 2
B2 = B2 + PIN4
high 6
low 6
next B1
write B0,B2
next B0
PINS = 0
end


Cheers

Liam.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-09-12 16:28
    --- nz_liam <nz_liam@y...> wrote:
    > I have found some code for reading the data off a
    > smart card
    > (www.elecdesign.com/1999/mar0899/ifd/1IFD.pdf);
    > however it is for use
    > with a BS1 and I have BS2sx. I was hoping someone
    > might be able to
    > help me with converting it as I am not very
    > experienced in
    > programming basic stamps.

    Has anyone helped you with the code yet? I was
    wondering if your idea would work on Compact Flash
    Cards as well...If anyone has any information on
    storing and retrieving data to/from a Compact Flash
    Card with a BS2, I'd be interested.



    =====
    Chris Savage
    Knight Designs
    324 West Main Street
    Montour Falls, NY 14865
    (607) 535-6777

    http://www.knightdesigns.com

    __________________________________________________
    Do you Yahoo!?
    Yahoo! News - Today's headlines
    http://news.yahoo.com
Sign In or Register to comment.