Page 1 of 1

How to use BOTH timers?

Posted: Sat Oct 19, 2013 3:59 pm
by Drakkor
Hi.. I am using a pic12f675. I want to know how to use both timers if that is possible? I am not sure that I even need to but I am using an interrupt on pin change to read PWM which needs to keep an accurate count. I started this project to make a switch to turn things (Lights) on and off on an RC plane. Now that I have figured that out, I want the program to turn on/off a beacon (Rampup/Down) LED and flash two bright white LED's (One function to turn ALL on/off) I have 2 separate projects that work but trying to put them together is the trick. Any help would be appreciated : ) Thanks.

Re: How to use BOTH timers?

Posted: Mon Oct 21, 2013 11:22 am
by Benj
Hello,

Are you using Flowcode for this project? Have you tried running both programs together already? The timers should both be usable in your program.

Re: How to use BOTH timers?

Posted: Mon Oct 21, 2013 3:45 pm
by Drakkor
Benj, Thanks for the fast reply. Yes, I am using Flowcode 5. I have not yet put the two programs together into one. I think I have to manually add all the code to make it into one program right? I am not sure if or how to designate timer 0 for counting the PWM and timer 1 to count for the ramping up/down LED's (Looks like an aircraft beacon), and, the flashing strobe light (Bright white LED.) I could put the codes here but I am at work right now : (