mmm, interesting. Did you declare PORTx or LATx?

but i'm not sure if PBP DEFINEs will use LAT...