Quoting Joe Wronski : > If the while() loop is actually empty, the compiler skips the > assignments because they would have no effect. Try doing something with > the variables, or declare them volatile. > Joe W Excellent, volatile worked. I had wondered if it had anything to do =20 with optimizations, so tried turning off all optimizations, but that =20 did not resolve it. I yet have to read up on different optimizations, =20 so I must've missed something. Cheers, -Neil. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .