I'm working on a small project that I'm editing the existing Renard firmward and I need to use timer1. My project is strictly using dc but I've come to realize that if it works for ac it could be of some use too.
In the app notes in the beginning of the code it states that timer1 is not being used but down in the code timer1 gets initialized to count the interval between zero-crossings.
I have removed(actually just remarked) all references to timer1. Will this have any impact on how the code dims(using ac)?
I'm going to give it a try once I've ironed out my code, I just want to know if there's anything I should look for.
Thanks!
Yes, that code adjusts the timing to go along with the AC power-line frequency.
You might want to consider switching to the PIC16F1823. It is cheaper, has a compatible pinout, is faster, and has an extra timer. The internal register architecture is a bit different, and the firmware would take some work to make it run on that architecture.
Ok, thanks Phil. I'll just stick with using it for DC purposes.
ctmal wrote:I'm working on a small project that I'm editing the existing Renard firmward and I need to use timer1.
How do you want to use Timer1? You might be able to reuse or extend how Timer1 is currently being used without affecting the operation of the existing code.
don
