-----Original Message----- From: Gianni To: PICLIST@MITVMA.MIT.EDU Date: 12 ݏ 1999 ., ݒ 15:21 Subject: bcf/bsf Portx How much reliable? > Hi ! >First I'd like to tank all those who replied to my previous question. > >I have seen that a lot of questions are concernig bcf/bsf portA/B >instruction. >I made 7 project with 16c84 and I never had trouble with these >operations on portA/B. I'm not a skilled programmer/designer ! >Now the question. > Under which circumstances is better keep a shadow of the output > and use movwf port ? It is better to use shadow register when you have pins that change from input to output and from output to input. A typical example is I2C. The zero is output with TRIS=0 and 1 is output with TRIS=1. i.m.c. okto7@botev.ttm.bg ICQ: 17221948 http://www.geocities.com/SiliconValley/Network/9276/ Do what have to do, let happens what it wants. > > Tanks > Gianni >