David Novak dajac.com> writes: >=20 > 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. >=20 > void main() > { > TRISB =3D0b11111101; >=20 > while( 1 ) > { =20 > RB1 =3DRC1; > } > } >=20 > The only other thing in the file are the Hitech macros to setup the > configuration registers. >=20 > 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 li= nked in any other way.=20 Sergey Dryga http://beaglerobotics.com --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .