Hi, > // save registers > MOVWF w_save 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. 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. Are you using CCS version 2.734? I'm not sure when 16F628 support was added but I do know it wasn't supported with Version 2.710. Paul -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads