How to drive 7 segment using multiple ports?


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    look at this
    http://melabs.com/resources/articles/ledart.htm

    and this
    http://www.picbasic.co.uk/forum/showthread.php?t=1044

    EDIT: Seems bruce hit the button at the same time
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Dec 2006
    Location
    WADSWORTH OHIO USA
    Posts
    37


    Did you find this post helpful? Yes | No

    Talking This Worked Great For 8 Digits @20mhz

    EEPROM 0,[129,243,73,97,51,37,5,241,1,49] 'STORE CONSTANTS



    LOOP1: 'DISPLAY T & A
    FOR C = 0 TO 3
    READ T DIG C, PORTB 'GRAB NUMBER AND SET SEGMENTS
    LOOKUP C,[$7F,$BF,$DF,$EF],PORTC 'SET DIGIT
    PAUSE f 'PAUSE ON
    PORTC = $FF 'CLEAR PORT
    NEXT C 'NEXT NUMBER OF 4
    FOR B = 0 TO 3 'LOOP AGAIN FOR SECOND ROW
    READ AS DIG B, PORTB
    LOOKUP B,[$FE,$FD,$FB,$F7],PORTC
    PAUSE f
    PORTC = $FF
    NEXT B
    GOTO LOOP
    Thanks !
    SOMRU
    TWE/TFP/EE

Similar Threads

  1. LED Machine Tach For Tired Eyes
    By Archangel in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 27th January 2010, 15:55
  2. Replies: 1
    Last Post: - 6th April 2007, 11:50
  3. How do I drive 7 seg LCD with a PIC16f917
    By willemaajansen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 23rd March 2007, 22:27
  4. 7 segment digit problem (using Mister E's code)
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th September 2005, 21:25
  5. WRITE not working
    By servo260 in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 29th December 2004, 03:02

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