Hi Stefan,
in my initial post I mentioned that I just used the shell to check the status of the the GPIO file parallel to the C-Program. Let me explain again in detail:
1. Set GPIO to low in C-Program: write (gpio_fd, "0", 1);
2. Checked with scope: the pin is still HIGH!
3. Checked File-Status in shell: "cat /sys/class/gpio/gpio113/value" - returns "0", so even linux thinks that the pin is low, but it is actually high, because the scope doesn't lie! :smileywink:
4. Tried to explicitely set the pin to LOW: "echo 0 > /sys/class/gpio/gpio113/value" - suddenly the pin goes to LOW.
But this behaviour is not really reproducable, it happens stochastic.
In my second post I tried to set the GPIO from shell only and did this in a loop. Also here it happens, so it is not related to the C code.
I tried the loop with different intervals (100ms/500ms) which are quite long, so I could easily measure it with a scope.