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. > = > /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