Hi! I have a port on my 16f877, PORTA. All pins set as output. RA4 and RA5 are controlled from another part of my application but I wanna write a nybble to RA0->RA3, in C, without touching RA4 and RA5. I tried reading, anding, oring but nothing worked. I had to do a switch and set RA0->RA3 bit by bit. Do I need a shadow reg. for RA4 and RA5? Is there an easier way? tia /frax -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads