Dave Celsnak wrote: > > HELP! > > I have posted before, and I will post it again.... > I am having a hack of a time getting my interrupt to work properly!!! > > No problems with entering the interrupt. The PIC reaches the routine just > fine. I am using the Compare mode, to set a software interrupt on a > match (16 bit Compare Value to the 16 bit free-running Timer1). > > The problem seems to be the actual service routine itself. > All I want to do is 'toggle' an I/O pin. High on a match, then > low on the next match....Also, I am guessing this is the best location to > clear the Timer, and load the Compare Value with the latest (quite > possibly the same) value that is the next Period for the frequency I need. > > READ: Adjustable frequency driver via Compare Mode. I hope this can > start a small thread, as I am always looking for a better way to skin this > cat. > > Thank you, > Dave Celsnak Which timer/chip are you using? -- Friendly Regards Tjaart van der Walt mailto:tjaart@wasp.co.za _____________________________________________________________ | WASP International http://www.wasp.co.za/~tjaart/index.html | | R&D Engineer : GSM peripheral services development | | Vehicle tracking | Telemetry systems | GSM data transfer | | Voice : +27-(0)11-622-8686 | Fax : +27-(0)11-622-8973 | | WGS-84 : 26010.52'S 28006.19'E | |_____________________________________________________________|