LATD, LATE, TRISD, TRISE fail PIC 18F4550
If the NC pin associated with the ICPORT (pin 34) is not pulled to 5V, PORT D, PORT E, SPP & something else are all disabled. Writes to those registers are ignored, contents stay at zero...
If pin 34 is floating/ground, a certain combo of config bits including DEBUG can bring those parts of the chip to life!












