power problem (newbie here!)


Results 1 to 11 of 11

Threaded View

  1. #3
    Join Date
    Apr 2009
    Posts
    8


    Did you find this post helpful? Yes | No

    Default heres the schematic...

    thanks for the interest nd quick response!

    below the schematic for a single display (with R220 resistors in place)

    the same is repeated four times using Portc.4-7 to control the latches.

    and the code:

    B var portc.0
    C var portc.1
    D var portc.2
    A var portc.3
    SEG4 var portc.4
    SEG3 var portc.5
    SEG2 var portc.6
    SEG1 var portc.7


    trisc = %00000000

    adcon1 = 7


    test:
    low seg4
    gosub number1
    high seg4
    pause 1000

    low seg3
    gosub number2
    high seg3
    pause 1000

    low seg2
    gosub number3
    high seg2
    pause 1000

    low seg1
    gosub number4
    high seg1
    pause 1000
    goto test



    BLANK:
    HIGH D
    LOW C
    HIGH B
    LOW A
    return


    NUMBER0:
    LOW D
    LOW C
    LOW B
    LOW A
    return

    NUMBER1:
    LOW D
    LOW C
    LOW B
    HIGH A
    return

    NUMBER2:
    LOW D
    LOW C
    HIGH B
    LOW A
    return

    NUMBER3:
    LOW D
    LOW C
    HIGH B
    HIGH A
    return

    NUMBER4:
    LOW D
    HIGH C
    LOW B
    LOW A
    return



    end
    Attached Images Attached Images  
    Last edited by clocks; - 30th April 2009 at 02:20.

Similar Threads

  1. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 20:48
  2. Power Up problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th October 2009, 04:38
  3. 12 Servo's together does not seem to work, Power problem
    By macx75 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th December 2006, 20:30
  4. Power up problem
    By Ken McDonald in forum General
    Replies: 1
    Last Post: - 28th December 2004, 18:06
  5. power up problem
    By rookieofbasic in forum General
    Replies: 4
    Last Post: - 2nd April 2004, 13:01

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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