Hi Wigros,
thank you very much for your reply. Indeed this fixed my problem. Unfortunately, I have another, similar issue:
I need to switch one GPIO pin from input to output, not mirroring the previous state. The User manual page 190 states:
The following rules apply when the pins are switched from input to output:
•Pin is configured as input with a HIGH level applied:
–Change pin to output: pin drives HIGH level
•Pin is configured as input with a LOW level applied:
–Change pin to output: pin drives LOW level
The rules show that the pins mirror the current logic level. Therefore floating pins may
drive an unpredictable level when switched from input to output.
Is there a way to switch to the output without mirroring the previous state? Can I write GPIODATA and DIR in one command?
Have a nice day!
BR
Till