Re: Time Delay
First question is how precise 1sec you need?
Second question is do you can use 12MHz?
You can made 16Bit timer for 50ms. In interrupt routine of that timer you increment variable, and when you count 20 you have ~1 sec. Here are first question, if you need exactly 1 sec. that means that you have to calculate how many cycles need for going in and going out of interrupr routine, as well as, how many interrupt commands do you have.
If you have 12Mhz xtal one cycle lasts 1us so every calculation is much simpler.
Regards,
Mr.Cube