On Fri, 29 Nov 2013, Neil wrote: > Yes, but this had a different purpose... The PORTC outputs connect to > another PIC and these outputs are have pull-ups. In trying to > diagnose that, I whittled down the circuit to this small piece of code > and added the LED's. So though it seems like a strange way, it should > work still. > > BTW, I've only shown this snippet with the difference which stops it > working. The port is initialized with LATC=3D0 prior to this. > > Another oddity that just started at the same time is that the compiler > croaks at "while (1)" which worked before. Track down the delay functions in question and check to see if they are=20 implemented as macros, intrinsic or real sub-routines. If macros, try to=20 work through them by hand. If they are not straight forwards write your=20 own versions that are. If they are intrinsic try to find a compiler switch= =20 or keyword to turn this off (might actually need you to remove the keyword= =20 intrinsic from a header file. Regards Sergio Masci --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .