Yes, just found it. ICD3 Settings, Freeze on Halt, tick Freeze Peripherals on Halt. I can't believe I have just spent the most of this day on this... Oh well, = I = guess I need to take some christmas vacation time now. Thanks and merry christmas /Ruben > Hello Ruben, > = > On Tue, 22 Dec 2009 11:30:08 +0100 Ruben J=F6nsson wrote: > > > > > >The timer works as expected when I try the code with the simulator. > > > >So, when the debugger (ICD3) is halting the processor - should timer1 co= ntinue > >counting? > = > I don't have MPLAB handy here, but if I remember correctly > there are debugger settings to halt the peripherals or not ... > = > Regards, JvW > = > Jan van Wijk, author of DFSee; http://www.dfsee.com > -------------------------------------------------------------------------= ------ > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your memb= ership > options at http://mailman.mit.edu/mailman/listinfo/piclist > = =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