Hello Paul, > I think there should be an #asm directive before this section, probably just > a paste to e-mail error as I hope this would cause a compiler error to have > a #endasm without a matching #asm. oh, sorry. There was an #asm I've forgot when editing the source code to paste it on the email. > Did you create your own start-up code? > The CCS manual says if you replace the global interrupt you lose the > start-up and clean-up code. Yes, this is what I'm trying to do. I've created the start-up and "finish-up" :) code you can see on the email between the #asm and #endasm directives (ok, I've forgot one #asm). > Are you using CCS version 2.734? Yes. Version 3.xxx have many bugs. Version 2.734 is very stable. > I'm not sure when 16F628 support was added but I do know it wasn't supported > with Version 2.710. This code also isn't working on an 'F876. To have 'F628 support on 2.7xx you only have to use the 16F628.H that cames with version 3.xxx. Best regards, Brusque ----------------------------------- Edson Brusque Research and Development C.I.Tronics Lighting Designers Ltda (47) 323-2138 / (47) 9993-6453 Blumenau - SC - Brazil www.citronics.com.br ----------------------------------- -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads