• PicŪ Basic


  • Sure information boards 2 and four digit

    I like the Sure information boards, (large LED digits in 1.5 to 2.3", two and four digits with drivers) but note the two digit is different from the four digit it uses inverted data.
    They run on 12 VDC and are quite bright needing only Shiftout to run them, great for Pinewood derby, counters etc..
    EXAMPLE
    'LOOKS UP NUMBER FOR LED 2 DIGIT DISPLAY
    LSD1OUT = LookUpL LOADDA, [0,252,96,218,242,102,182,190,224,254,230] 'Blank - 9 ;blank,0,1,2,3,4,5,6,7,8,9
    LSD10OUT = LookUpL LOADDB, [0,252,96,218,242,102,182,190,224,254,230] 'Blank - 9
    MSD100OUT = LookUpL HIGHADDA, [0,252,96,218,242,102,182,190,224,254,230] 'Blank - 9
    MSD1KOUT = LookUpL HIGHADDB, [0,252,96,218,242,102,182,190,224,254,230] 'Blank - 9
    SHOut PORTB.1, PORTB.2, LsbFirst, [LSD1OUT\8,LSD10OUT\8,MSD100OUT\8,MSD1KOUT\8] 'OUTPUTS TO LED DISPLAY


    /////////////////////////////////////////////////////////////////////////////////////////////; leading zero blanking
    If ONEPLB > 0 Then ONEPLB = ONEPLB + 1
    If TENPLB > 0 Then TENPLB = TENPLB + 1
    If HUNDPLB > 0 Then HUNDPLB = HUNDPLB + 1
    If THOUPLB > 0 Then THOUPLB = THOUPLB + 1
    If THOUPLB > 0 And HUNDPLB = 0 Then HUNDPLB = 1
    If ONEPLB = 0 And TENPLB = 0 And HUNDPLB = 0 And THOUPLB > 0 Then HUNDPLB = 1
    If HUNDPLB > 0 And TENPLB = 0 Then TENPLB = 1
    If ONEPLB = 0 And TENPLB = 0 And HUNDPLB > 0 Then TENPLB = 1
    If ONEPLB = 0 And TENPLB > 0 Then ONEPLB = 1


    'LOOKS UP NUMBER FOR FOR DIGIT DISPLAY
    LSD1OUT = LookUpL ONEPLB, [0,126,48,109,121,51,91,95,112,127,115] 'BLANK - 9 'Blank - 9 ;blank,0,1,2,3,4,5,6,7,8,9
    LSD10OUT = LookUpL TENPLB, [0,126,48,109,121,51,91,95,112,127,115] 'BLANK - 9
    MSD100OUT = LookUpL HUNDPLB, [0,126,48,109,121,51,91,95,112,127,115] 'BLANK - 9
    MSD1KOUT = LookUpL THOUPLB, [0,126,48,109,121,51,91,95,112,127,115] 'BLANK - 9
    SHOut PORTC.1, PORTC.0, LsbFirst,[LSD1OUT\8,LSD10OUT\8] 'OUTPUTS NUMBERS ON LED DISPLAY
    SHOut PORTC.1, PORTC.0, LsbFirst,[MSD100OUT\8,MSD1KOUT\8] 'OUTPUTS NUMBERS ON LED DISPLAY





    http://www.sureelectronics.net/goods.php?id=1164 "2 digit"
    http://www.sureelectronics.net/goods.php?id=135 "4 digit"
    Also can be purchased from FCB Electronics http://www.fcbelectronicsusa.com/servlet/StoreFront
    Also note you can send data out over 50' or more if you buffer ( 14050) the line and slow down the data rate, "Declare Shift_DelayUs 100 'SETS SHIFT OUT CLOCK TIME 100 us.".

    Happy soldering
    Gary
  • Recent Activity

    towlerg-21522

    PIC18F1330 PLL problem

    Thread Starter: rcurl

    I'm just starting out on a new project that uses a PIC18F1330. I haven't used this specific chip before, so I began by trying to blink an LED just...

    towlerg Yesterday, 16:26 Go to last post
    towlerg-21522

    Pic16f18877 oread

    Thread Starter: evoortman

    Hi, On a PIC16F18877 the OREAD command doesn't seem to work. The code is working on a PIC16F1939. Both controllers use 32MHz int osc. If i...

    towlerg Yesterday, 16:25 Go to last post
    palamont-28794

    MID$ Problem with a PIC18F25K22

    Thread Starter: palamont

    Hi everybody, I encounter a strange problem : I have a string of 230 characters. This string is divided into 10 segments of 23 characters, with a...

    palamont Yesterday, 10:08 Go to last post