(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![]()
Bookmarks