> = > = > Ruben J=F6nsson wrote: > > Hi, > > = > > I am using a PIC18F2525 with MPLAB 8.30 and ICD3 and I am trying to > > debug code using Timer1. > > = > > I use an ceramic resonator at 20MHz and have set OSC=3DHS. Timer1 is > > configured to run in timer mode with FOSC/4 as clock. However, when I > > single step with timer1 on, the timer seems to be free running even when > > the debugger is halting the PIC. This continuously fires the timer1 > > overflow interrupt and I get into the ISR when stepping over/into next > > instructions. > > = > > The timer works as expected when I try the code with the simulator. > > = > > So, when the debugger (ICD3) is halting the processor - should timer1 > > continue counting? > > = > > Actually, looking at Timer0 it has the same behavior - still counting > > when the processor is halted. > > = > > Is it not possible to debug with ICD3 using a ceramic resonator as clock > > source? > = > I do not know about the timer in debug, but it would surprice me > a lot if it doesn't work the same with a normal quarts crystal... > = > Jan-Erik. > = So it means that you can't use an external clock source to debug peripheral= s = that uses FOSC as clock with ICD3? = I just did a quick test and actually get the same behavior when using the = internal oscillator. If I can't get the clock to the timers to stop when the pic is halted it se= ems = like single stepping through code with the debugger is quite useless since = I = just end up in the isr servicing timer interrupts! I must be missing someth= ing = here... /Ruben =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Ruben J=F6nsson AB Liros Electronic Box 9124, 200 39 Malm=F6, Sweden TEL INT +46 40142078 FAX INT +46 40947388 ruben@pp.sbbs.se =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist