Hi Russ,

I would lean towards an order of operations issue. When the chip does a power on reset, it comes up in analog mode and the WPU's are turned off. The pins could still be floating when the program looks at them for the first time???