Rikard Bosnjakovic wrote: > I open a watch-window (View->Watch) and add a couple of > symbols and SFRs. To change the values, I simply double-click > it and type in a new one. Why do you change the values directly in the *watch* window ? I only use watch to *watch* the values. The values as such are changed in the assembly *code*... > No matter which value I try to set in > PORTA, it returns to the initial zero. Any port-pin with it's analog function enabled always read as "0". This is documentet in the data sheet and MPSIM seems to "simulate" this also... Regards, Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist