ahbong WROTE:so if i want to make extra LED and when its satisfy certain condition in PR13 the LED blink like the police car light. .
one LED at a time. .do i need to turn the timer on?
I dont know how the police car lighting sequence looks like. But if you know the sequence in detail, you could almost duplicate the LED pattern with the correct codes.
There are only 3 LED and 3 switches on the PR13 PCB. So if you need more LED to display, you'd have to add them externally...
ahbong WROTE:and if yes. .does it give only delay time for the LED from 1 to another. .
cause i dont really understand what the timer do actually. .
You can use either time delay sub-routines or timer to do the delay function. Timer is more accurate (to mS) so you can make a Real Time Clock using timer to generate the time base of 1 Hz.
Your question is too general and it's hard for others to answer.
Use google to search for the uses of timer and see how people use them in their programs. That's how I learn how to use timers in PIC.
Allen