>> I=B4m using portb 0-6 on a Pic 16F84 to drive a LED-display and I want to use portb 7 to control a transistor with but my displayloop set the port to zero every time! << Um, so don't do that if it's not what you want. >> Is there any good trick to sole this out? << Sounds like you just want to merge two values. Check out the IORWF instruction. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads