Hi Matthew,

I've ever met this problem. I can not access TRISA and TRISB registers in bank 1. Bank1 begin from address 0x080.

I got the information, to use ^ 0x080 to access bank1, beside setting up STATUS,RP0.
By using this, I can access bank 1 sucessfully, and no error codes.

I use MPASM for windows from MPLAB (Microchip).

Regards,
Harry

Mathew Cohen wrote:

Hi Harry, What is this line all about?movwf TRISA ^ 0x080 RegardsMathew Cohen mmj cohen@nsw.bigpond.net.au