Andy Kunz wrote: > > Is there a way to get an analysis of where my code is spending it's time? > I'm stuck in a loop somehow, somewhere, and don't know where it is. Some > kind of profiler, that will let me plug into my hardware. > > Thanks. > > Andy > > ================================================================== > Andy Kunz - Statistical Research, Inc. - Westfield, New Jersey USA > ================================================================== Hi Andy, I miss not having R/ICE too. Assuming you have some spare pins then: bcf test_port,current_routine (identifing pin) code_block ;....... bcf test_port,current_routine then scope it out or test with Piezo and/or LEDs (for each suspect(and ought to be working) routine.) alternativly: Activate watchdog + set test_val (spare file register) with different values on entry to each code routine. On startup (could be watchdog reset), send test_val date out using a pretested serial routine. hook serial to PC & hey presto! "last code visited" ID in test_val. Regards, Graham Daniel, "Electronic Product Enhancements."