I haven't done much with timing events and what little I've done haven't been critical so I've just used counts.
However, I've got a project where I need to time how long a pin is switched to ground and need to do something like this.
if pin1 = 0 for 0 to 2 minutes then output1 = 1
if pin1 = 0 for 2 to 20 minutes then output2 = 1
if pin1 = 0 for > 30 minutes then output3 = 1
I was going through my PBP Compiler manual and found the RCTIME command. Not sure if this would work. But I'm using a 4mhz crystal and the RCTIME only counts to 65535. So if my math is right, it will only go for about 16 minutes?
What's the easiest way to do this?
Thank you,
Hylan
Bookmarks