Just a minor one here... On 2010-02-17 22:20, ivp wrote: > ... There > can be also RP2 and RP3, so you might end up in bank2 or bank3. Now, here I do not follow. RP0/RP1 are enough for *4* banks (bank0 - bank3). What is RP2 and RP3 ? Or are you talking about a PIC18 ? > I've used RPx explicitly only once. That was a very tight parallel data > transfer loop between two PICs when the direction had to be changed > faster than BANKSEL did it. And this must have been on a 4-bank-PIC where BANKSEL always generates 2 BCF/BSF instructions. On a smaller PIC with only 2 banks there is no speed difference between BANKSEL and directly manipulating the (then only) RP bit since BANKSEL will (or should) generate a single BCF/BSF instruction anyway. Nevertheless, BANKSEL is the right way to write readable code, just as you say... :-) > > wbr -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist