Shop OBEX P1 Docs P2 Docs Learn Events
remote read a pin — Parallax Forums

remote read a pin

ArchiverArchiver Posts: 46,084
edited 2002-10-20 20:11 in General Discussion
I'm setting up a RS485 network and all is going cool so far. But I
want to send a command to read, say PIN6 on a BS1 but I can't figure
out how to read just the pin (when the pin number is passed as a
variable from another stamp) Outside of reading ALL the pins and
doing a mask on the other end (memory limit on the BS1)

Getting close to upgrading the the Pro compiler from Micro
Engineering Labs. (have an *old* copy of the basic version)
thanks
Dave


ps. Did anyone ever make a serial programer for the BS1?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-10-20 20:11
    Why can't you do the mask on the BS1 end?

    b5 = pins & %01000000 / 64
    debug b5 ' prints 0 or 1


    >I'm setting up a RS485 network and all is going cool so far. But I
    >want to send a command to read, say PIN6 on a BS1 but I can't figure
    >out how to read just the pin (when the pin number is passed as a
    >variable from another stamp) Outside of reading ALL the pins and
    >doing a mask on the other end (memory limit on the BS1)
    >
    >Getting close to upgrading the the Pro compiler from Micro
    >Engineering Labs. (have an *old* copy of the basic version)
    >thanks
    >Dave
    >
    >
    >ps. Did anyone ever make a serial programer for the BS1?
Sign In or Register to comment.