Hi all, I am using the PIC18F1320, on a PICDem 4 board. I am trying to use Timer1 to make a clock. I have a 32.768KHz "watch-type" crystal hooked up to timer1, and whenever I try to setup T1CON, my ICD2 goes rather insane - It refuses to step through - "Cannot complete operation - target not in debug mode.". It also refuses to stop at a breakpoint after T1CON is setup: movlw b'00111111' ; Well, I think that's what I put in T1CON movwf T1CON ; Setup T1CON bsf PORTA,0 ; Turn on LED at RA0, BREAKPOINT IS HERE The PIC happily turns on RA0, and strolls right past the breakpoint. Also, after the previous code has run, it refuses to do anything to the chip until I pull the plug for a second. Does anyone know why the ICD2 is so iffy about T1CON? -- Dave All us base are belong to you. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist