>I'm programming the pic with jal so i'm using the jal compiler in >combination with a programmer. I'm programming the pic and >reading out the values from a few registers (for example adcon0) >to the lcd. when changing values in registers located in bank0, i >can see the register value does change by reading out the values >to the lcd. when i try to do the same for example with adcon1 >(located in bank1), i don't get the values just written to that register >on the lcd, but just a random value that doesn't make sense. >i've already tried another pic and i did configure the tris regs I haven't used JAL, but wonder the following questions. 1. Does JAL automatically issue bank switch instructions if you attempt access to a register in a different bank to the last access? 2. What is the actual code you are using to access the ADCON0 register, and display it on the LCD. It seems to me that there could be something else wrong in your code, instead of an access to a register problem. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist