David Novak wrote 2011-06-13 17:09: > >>> But shouldn't the refresh feature force an update without executing >>> anything? It's not much of a debugger if you can't get the correct >>> values for the registers that you are inspecting. >>> >> So, you are saying that it is not updating RC1, even though the voltage >> on that pin has changed? > > That's exactly what I'm saying. > >> Of course it won't update RB1 until the line >> runs, but it should update RC1. > > That's what I expected. > >> (I have never used that debugger) >> I did notice that you have RB1 as an output, and that there is no >> TRISC. Is that right? >> > > That is correct. TRISC is at it's reset value (all inputs). Is this a PIC18 ? (Don't remember) Are you monitoring PORTC or LATC ? Probably PORTC, right ? Note that monitoring RC1 when set as *input* will probably not correctly show what you are writing to the output latch. Just as in real life, reading from a pin set as input will always read what is on the actual *pin*, not what was written to the latch (LATx). If you change your monitoring to LATC.1, you might see the actual change also... Jan-Erik. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .