On 6/10/2011 5:39 PM, Sergey Dryga wrote: > David Novak dajac.com> writes: > >> I'm using the ICD2 and MPLAB with a PIC18F4523. I was seeing odd >> behavior while single-stepping, so I created the following, very simple >> application. >> >> void main() >> { >> TRISB =3D0b11111101; >> >> while( 1 ) >> { =20 >> RB1 =3DRC1; >> } >> } >> >> The only other thing in the file are the Hitech macros to setup the >> configuration registers. >> >> If I let the program run, RB1 follows RC1 as expected. However, if I >> single step while watching the PORTC register, the debugger only updates >> the register value when I execute the RB1 =3DRC1 line. >> > I have not used ICD2 in a while, but from what you describe it behaves as > expected. need to execute RB1 =3D RC1 to update registers, they are not = linked in > any other way.=20 > > Sergey Dryga > http://beaglerobotics.com > 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. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .