TIP: This is 1 interrupt. Set up a timer for 10ms. Every interrupt service the 10ms stuff. Keep a countdown var (in the file register space) and when it reaches zero, reset it and service your 100ms stuff. Setting a timer for your PIC is well described in the Data Sheets and App Notes from Microchip. This is about a dozen lines of code. GL, Walt... -----Original Message----- From: James Paul [mailto:jim@JPES.COM] Sent: Tuesday, January 25, 2000 11:46 AM To: PICLIST@MITVMA.MIT.EDU Subject: PIC Timing Routines All, I am in need of a 10 mS and a 100 mS routine to run on a PIC. I know I can write them, but if there are some out there, it would be quicker to use those already written. If you have such an animal, and would feel like sharing it, or have a pointer to one, please let me know ASAP. I am trying to do a quick and dirty test fixture, and time is short. Help me out if you can. Thanks and Regards, Jim jim@jpes.com