So how would you handle this code with your macros if you modify that with James' suggestion: setb PORTB,0 setb PORTA,1 nop clrb PORTC,0 clrb PORTD,1 ? Tamas On Jan 25, 2008 8:15 PM, Martin wrote: > James Newton wrote: > > Don't read the port. Just set the "pin" in portbuf, then copy it out to > the > > port. > > > > As long as you ALWAYS set the pin in portbuf FIRST, you will never loose > > anything by not reading the port. > > > > -- > > James. > > > > I just realized that. I'm creating my own r-m-w problem, not bypassing it. > Thanks. > > -Martin > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist