View Single Post
  #4   Spotlight this post!  
Unread 18-11-2003, 00:35
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
question about timers and a bonus tip

I'd like to have a way to mark real time, especially useful in autonomous mode. I guess the timing enforced by the data exchange with the master processor is a pretty good timer, but pretty low resolution. I started wondering about using the timers on the PIC and started playing with timer1. My test worked fine in the IDE simulator so I downloaded it to the EDU-RC. BAD IDEA! This program broke the RC bad enough that I could no longer get it into download mode to fix it - a bit of a stuck spot. After a while I found a way out.

===> Here's the tip: if pressing the program button doesn't get the orange led to turn on (in my case it flashed red instead), turn off the RC, hold down the program button, and turn it back on. This appears to get it into download mode before the bad code wrecks everything.

So, having passed that jewel along, has anyone figured out a safe way to use any of the timers as a RTC?

Bill