Hmmm, I read >So it means that you can't use an external clock source to debug periphera= ls > that uses FOSC as clock with ICD3? as a statement of realisation from experimentation rather than a confirming/questioning response to >> 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... even though it was followed by a question mark. ambiguity ... 2009/12/22 Jan-Erik Soderholm : > 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 wh= en >>>> 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 clo= ck >>>> =A0source? >>> 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 periphe= rals >> 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... > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist