Hello,
Each GPIO pin can support one of many possible alternate output functions.
In the mentioned example, it is selected as an general purpose output and not as an ERU output (Alternate output function 1).
To do this, the line:
has to be changed to:
Regards,
Min Wei
Each GPIO pin can support one of many possible alternate output functions.
In the mentioned example, it is selected as an general purpose output and not as an ERU output (Alternate output function 1).
To do this, the line:
Code:
config.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL; // selecting GPO
Code:
config.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1 ; // selecting alternate output function 1: ERU0.PDOUT0
Min Wei