Quote Originally Posted by flotulopex View Post
I've attached two pictures about what I can see.

The first picture "Before Loop Start" shows that my PORTA.0 to 3 are set to "1". This is because I need them to be at this state before the main loop starts (driving CA Leds).

I did the same for PORTA.6 (=1) just for testing purpose. PORTA.6 will be used for something else in my program if I can handle the actual problem.

When I start the execution of the program, PORTA.6 goes to "0" witch is unwanted here.

Mister_E you're right, using DCD will modify all ports.... Was not a good idea on my side. Thank you for making me aware.
Looks like it might be a bug in the simulator. PortA.6 on the F88 is also OSC2/CLKO. I may have missed something, ya never know. Try it on the real thing and see what happens.