I want to thank you very much.

The problem is resolved, now I am setting the pin output states super fast!

The final working code was the one posted by rmteo, but thank you all really!


ShadowC VAR byte
ShadowC = PORTC

ShadowC.0 = 1
PORTC = ShadowC

ShadowC.1 = 1
PORTC = ShadowC

ShadowC.2 = 1
PORTC = ShadowC

ShadowC.3 = 1
PORTC = ShadowC