PIC 16F84A and 7segment LED dispay


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    Nov 2007
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    hi Steve,

    I was trying with #b5 and display light allways 8 (all pins are low). The simple loop program, working ok and count normaly from 0 to 9

    here is a this sample1 (B5 count on LED display 0-9)

    start: for B5=0 to 9
    lookup2 B5,[238,130,220,214,178,118,126,194,254,246,108],B1
    pause 500
    portb=b1
    next B5
    goto start

    sample 2 Instead lookup2 command have lcdout command. (working ok. B5 count 0 to 9 on LCD)

    start: serin SDA,0,b2,b3,b4,b5
    lcdout $fe,1,$80,#b5
    pause 100
    goto start


    sample 3. this sample show allways 0 on display. (B5 read lookup2 command and show 0 allways)

    dp var portb.0
    c var portb.1
    d var portb.2
    e var portb.3
    g var portb.4
    f var portb.5
    a var portb.6
    b var portb.7
    SDA VAR PORTA.3 'pin2
    b0 var byte
    b1 var byte
    b2 var byte
    b3 var byte
    b4 var byte
    b5 var byte

    trisb = %00000000

    start: serin SDA,0,b2,b3,b4,b5

    lookup2 B5,[238,130,220,214,178,118,126,194,254,246,108],B1
    portb=b1
    goto start


    i was changed LOOKUP2 with LOOKUP and LED showing 8

    I have not anymore ideas

    regards
    Sam
    Attached Images Attached Images  
    Last edited by select; - 21st November 2007 at 09:54.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts