Shop OBEX P1 Docs P2 Docs Learn Events
Problem with OUTH and OUTL — Parallax Forums

Problem with OUTH and OUTL

alnajjar1alnajjar1 Posts: 110
edited 2010-08-22 06:02 in BASIC Stamp
I am trying this simple code, straight from the Manual, but cannot get it to work. I am using a brand new BS2 on a standard Supper Carrier Board.

OUTH = %00000001
OUTH = %00000100

Nothing Happens. I have not problem with Out1, Out2 etc or "High 1" and "Low 1" but the Out with binary is not working. Any reason?

Al

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2010-08-22 06:02
    You must set the direction register first.
    DIRL = %11111111 ' all outputs
    OUTL = %00000001 ' P0 = 1 (HI)
Sign In or Register to comment.