please read it ( real time)


Results 1 to 12 of 12

Threaded View

  1. #11
    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

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