Renard firmware Tim...
 
Notifications
Clear all

Renard firmware Timer1

25 Posts
7 Users
0 Reactions
10.4 K Views
Posts: 2214
Topic starter
(@ctmal)
Famed Member
Joined: 19 years ago
[#19264]

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!


24 Replies
Posts: 6728
(@p-short)
Illustrious Member
Joined: 19 years ago

Yes, that code adjusts the timing to go along with the AC power-line frequency.


Reply
Posts: 6728
(@p-short)
Illustrious Member
Joined: 19 years ago

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.


Reply
Posts: 2214
Topic starter
(@ctmal)
Famed Member
Joined: 19 years ago

Ok, thanks Phil. I'll just stick with using it for DC purposes.


Reply
Posts: 2168
(@djulien)
Noble Member
Joined: 19 years ago
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


Reply
Page 1 / 5
Share: