This output is activated to give the direction of rotation. Well, with PD7 not connected to anything, test PD7 with the oscilloscope and the signal is perfect (5V - noise = 0).
But just to connect a single cable for communication with the MOSFET power circuit, the signal changes, properly triggered 5v level but there is a noise.
And to connect PD7 with the input of the AND gate (74HC08) the signal drops to 1V.
I tried to connect the output PD7 with different loads, such as an LED, or a simple resistance PULL-DOWN and always produces the same problem, the signal drops to 1 volt. I have also tried several microcontrollers and the effect is identical, the signal drops to 1 volt. I even tried to optocoupled output with a 4N26 and the effect is the same. I have reviewed the Atmega644 datasheet and no specific references to PD7, or at least that I've ever seen.
The rest of the microcontroller inputs and outputs are working properly.
Has anyone has this problem occurred? Can anyone help me with this illogical behavior?
Greetings and thanks in advance