Hi,
wenn du einzelne Pins auf Input oder Output umstellst heißt es immer "PIN"

Also statt:
Config Portd.5 = Output
Config Portd.6 = Output
Config Portd.7 = Output

mal probieren:
Config Pind.5 = Output
Config Pind.6 = Output
Config Pind.7 = Output

Gruß
Christopher