Hello,
what is the fastest way to switch a GPIO Pin to output mode or disabling the internal Pull-up resistor on a Piccolo 28035..
When I use the first instruction within the main() to switch the mode it tooks up to 5ms.
When I put following code inside the CodeStartBranch.asm file:
EALLOW
MOVW DP, #0x1BE
OR @0xB, #0x0002 ; Set GPIO 17 to output
OR @0xB, #0x0004 ; Set GPIO 18 to output
EDIS
It tooks only 300µs.
Is there any other way to minimize the time?
The GPIOs are connected to a safety relevant switch witch should not be activated at start-up.
All PWM pins are used for other functions.
Best regards,
André