Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

Alternate Functions Configuration on an XMC4700 Relax Kit Series MCU

$
0
0
Hello,

The GPIO supports the following 2 output modes:
1) Push-pull
Code:

.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT3,
2) Open drain
Code:

.mode = XMC_GPIO_MODE_OUTPUT_OPEN_DRAIN_ALT3
"XMC_GPIO_MODE_OUTPUT_ALT3" is an atomic representation of the alternate function line and on its own, is not enough to configure the GPIO.
To select output + alternate function (similar to <1> above), you need:
Code:

.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL | XMC_GPIO_MODE_OUTPUT_ALT3
I think typically for PWM applications, the push-pull option is used.

Regards,
Min Wei

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>