> The problem is with the lookup table (128 values long) at the end of the > program the program does not run correctly - it is as if it is missing part > of the table (the last part?). Betcha the table is crossing a 256 instruction boundary and you only add the index into PCL without updating PCLATH. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads