> Ruben J=F6nsson wrote: > >> > >> 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 w= hen the > >>> debugger is halting the PIC. This continuously fires the timer1 overf= low > >>> interrupt and I get into the ISR when stepping over/into next instruc= tions. > >>> > >>> 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 cl= ock > >>> 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 periph= erals > > that uses FOSC as clock with ICD3? = > = > No. You asked about a *ceramic resonator* and I do not think > it has anything to do with that. I said nothing else then that... No, I asked why the timer continued to run while the pic is halted by the = debugger. I mentioned the ceramic resonator because that is what I clock the PIC (and= the = timer) with. Anyway, problem is solved. /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