please read it ( real time)


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    (1,5) I guess the Hint didn't work. You can use the DIG function to extract the individual digits.
    <pre> d1 = Seconds DIG 0<br> d2 = Seconds DIG 1</pre>Then you don't need to re-count everything.

    (2) For common cathode 7 segment displays, you should have seven resistors, 1 to each Anode, around 270-330 ohms. The cathodes should have an NPN transistor (1 per digit) with a 10K resistor going from the PIC (PORTA.0 and PORTA.1) to the BASE of the transitors. Emitters connect to ground, and Collectors go to the cathodes.

    The transistor will invert the signal, so instead of putting a LOW on the pin to turn on a digit, you would make it high.

    (3) OK, the crystal is close to the chip. Good. What about the capacitors? No long wires?

    (4) 7805 is OK, do you have good sized caps for filtering? And more important, do you have 0.1uF capacitor between +5V and GND? Close to the chip? For decoupling.
    <br>
    P.S. "my prescaler is asigned to 256 ('_')", good one
    Last edited by Darrel Taylor; - 19th September 2005 at 18:35.
    DT

  2. #2
    moud_man's Avatar
    moud_man Guest


    Did you find this post helpful? Yes | No

    Default

    now i understanded the HINT

    what amazing (dig ) function do it is very very helpfull in my case

    you know

    with your code and your hint i can update my project before i completely build it !!!!!!!!! that is the truth

    frist of all thank you for help

    ---------------------->
    1- i donot have any capacitor in the power circuit.
    2-i am using a 2 capacitor with the crystal.
    3-the desister!!!

    i cannot know really what type of 7 segmant i am using common(cathod or anode)

    but the common line must kept high and the other terminal i will give it low to power the segmant assocciated that is it,,, what type is it? common cathod or
    anode?


    till now i didnot modify my code with the amazing (DIG) function but i will try it now


    thnx a lot for help i will update the result sooooooooooooooooooooooooooon wait for me


    bye for now

Similar Threads

  1. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  2. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  3. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 06:34
  4. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

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