Shop OBEX P1 Docs P2 Docs Learn Events
OUTH/DIRH commands for 7-Seg LED — Parallax Forums

OUTH/DIRH commands for 7-Seg LED

mrdrm130mrdrm130 Posts: 2
edited 2011-07-24 10:46 in BASIC Stamp
I'm a beginner trying to place the 7 segment microprocessor kit onto my boe-bot.· I have it wired up to pins 1 - 8.· I ran the test program in the "What's a Microprocessor?" book and was able to get all of the segments to light up.· In the book, the LED in attached to pins 8-15 and the OUTH and DIRH commands are eight digit commands which I'm assuming correspond to pins 8 - 15.· I've tried various schemes, but I can't get them ,but one which I assume is the eight, to light up.· Any ideas?· Thanks.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-08-06 17:33
    The I/O pins are in groups of 8, 0-7 and 8-15. 0-7 correspond to DIRL and OUTL while 8-15 correspond to DIRH and OUTH.

    Without a complete description of how the display is wired to the I/O pins and a datasheet for the display, it will be difficult at best to give you any specific suggestions. If you can find a datasheet in PDF format, include a link to it or attach the PDF file to your next message (using Post Reply and the Attachment Manager).
  • mrdrm130mrdrm130 Posts: 2
    edited 2009-08-07 02:52
    Didn't realize pins 0- 7 corresponed to DIRL and OUTL. That solved the problem. Thanks for the help.
  • piguy101piguy101 Posts: 248
    edited 2011-07-24 09:47
    I have a question: For the Outh/Dirh/Outl/Dirl, you usually type Outh/Dirh/Outl/Dirl = % and then a binary number, does the first digit in the binary number refer to the lowest or highest pin number?
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2011-07-24 10:01
    OUTL = %00000001
    then the 1 appears on P0
  • piguy101piguy101 Posts: 248
    edited 2011-07-24 10:12
    And would OUTH = %10000000 appear on P15? I have a lot of questions regarding the OUT and DIR commands because I am trying to use a quad digit 7-segment display with the BS2. Here is the pinning:

    Pin Anode
    0, B
    1, G
    2, A
    3, C
    4, F
    6, Decimal Point
    8, D

    Pin Common Cathode
    5, Digit 4
    7, Digit 3
    11, Digit 2
    12, Digit 1

    Any hints what to OUT and DIR for the BS2 because I can not understand what to do.
  • $WMc%$WMc% Posts: 1,884
    edited 2011-07-24 10:46
    yes
    '
    OUTH is the upper 8
    '
    Pins
    15,14,13,12,11,10,9,8
Sign In or Register to comment.