Rodent of Unusual Size wrote: > One question just leads to another.. > > Okey, I've got the idea about not bitwise fiddling the > outputs directly, but loading them with a bytewise > MOV from a shadow register. > > What I'm missing is how to handle changing state of > output bits when the port has mixed functions. Suppose > the high four bits/pins are configured as input and > the low four are outputs. Will a bytewise write to the > port have no effect on the inputs? Correct. It will set something in the output latch but it will neither be seen in the actual I/O pin, or when reading from the PORT register. > Or is that part > of the RMW aspect I'm not quite getting yet? Not realy. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist