> > >> I have another 16C54 question as well. Since the '54 doesn't have > >> an interrupt for the RTCC what's the usual procedure for running > >> a given section of code periodically, say every 100mS or so? > > >Does anyone know of a better way to do this or have I hit it on the head? > > How about using the WDT? Then, you can put the PIC to sleep and save > batteries. You just have to test a status bit to see if you're waking up or > being reset... Then the entry point of your program becomes the entry of > the main loop. > > Or are you already using the WDT? No, I'm not using the WDT. In my particular application, not much (if anything) would be gained by sleeping on the WDT, since I'm just sitting there generating waveforms and running a motor speed control loop. I can save more power by running at a slower clock speed. Either way, the power consumption of the PIC is miniscule compared to the motor and the LEDs. Because of those devices, this must be a line powered device.