This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
How do I enable a tripzone pin for the epwm driver? I am using the TI driver for epwm in sysconfig. If I try to reserve it via the sysconfig peripherals section it says that the TI Driver has that pin. Is there some hidden config or other reason that the TI driver reserves it but does not let me use it?
Hi Traveler
We will try to enable this in SYSCONFIG in subsequent releases.
Action taken: MCUSDK-12663
For the meantime, you may set the pin-mux config manually:
AM243x LaunchPad Development Kit User's Guide
For example, if you need EHRPWM_TZn_IN0 for your purpose.
Set the required pin ‘GPMC0_AD2’ in SYSCONFIG.
Open ‘ti_pinmux_config.c’ from the generated files section and check the PIN_MODE set.
It’s set to 7, thus, PIN_MODE needs to be set to 3 for EHRPWM_TZn_IN0.
This can be done by adding a function with your required config and calling it in your codebase.
static void App_pinmuxConfig() { /* Pinmux configuration to use TZ0 for ePWM trips */ static Pinmux_PerCfg_t App_PinMuxMainDomainCfg[] = { /* TZ0 pin config */ { PIN_GPMC0_AD2, ( PIN_MODE(3) | PIN_INPUT_ENABLE | PIN_PULL_DISABLE ) }, {PINMUX_END, PINMUX_END} }; Pinmux_config(App_PinMuxMainDomainCfg, PINMUX_DOMAIN_ID_MAIN); }