Mike wrote : > I first found the blink a led project at the piclist website, > it was not the one written in jal. The harsh conditions are > high G-forces and rough landings. I see, *that* makes a difference. A "real" project, not just something to "test" a PIC, like the blink-a-LED programs usualy are... > I'm currently building a mid sized camera rocket using a > Kodak F-350 aps camera, it has an electronic shutter. > I will be using two switches the first will engage very > shortly after ignition and the second will make momentary > contact when the chute opens. > > > The first switch will start a program where a 1/2 second > pulse will be triggered every 1.5 seconds for a total of 5 > pulses then when the second switch engages the first > program is bypassed and a second program... Now, a PIC can only have one "program", but that program can be made to do different things at different times. I think your design will become more easily understood (even by you) if you don't look at it as using multiple "programs". > starts a >1/2 second pulse every 5 seconds for a total of 5 pulses, > then the chip shuts down regardless of any input. Since we are talking about a real project, my first recomendation is to let the F84's rest in peace in some museum, and use one of the newer PIC's with a good INTOSC with good precision and that have better timer resources then the F84 (just one there, right ?) Maybe a 16F88, 16F818 or 18F1220. even a F628 would probably do the job better then the F84. B.t.w, does the F84 have an internal OSC at all ? Sorry, but this might not have answered you initial question. But, IMHO, implementing the code you describes above would be maybe not *much* easier, but at least easier and, more important, probably different on one of the newer PIC's then on the F84. To try to answer your initial question, at least partly, I think that any "delay" routine would probably be possible to adopt to this project. I have not searched, but it would surprise me if there isn't a lot of delay routines on PIClist... Jan-Erik. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics