Oh, forgot to say, this is a 18F1220, so there is just one bank, but it's not *generic*, that's right. Anyway, what I wanted to show, was the encoder handling as such. Jan-Erik. Olin Lathrop wrote: [about bank checking in my code example...] -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads