Hi, I need to implement a lookup table for about 1500 8-bit values. This is on a 16F628. The table read will be made from an interrupt routine. The index for the lookup would obviously need to be supplied in two registers. Does anyone have some working, and preferably commented, code that they are able to share? I did search back through the archives, but while there were some discussions that might (together with AN556) help me to eventually code my own routine, it seems there are several traps to watch out for. I noticed also that many people save and restore PCLATH in interrupt service routines, something I have not done before. Presumably this is something I will have to do now? What rule of thumb should one apply to determine if saving PCLATH in an ISR is required? Cheers, -bernie. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads