Dear TI,
We would like to use a DM timer from MCU domain to generate the PWM and I would like to know what are the GPT timer configurations needed for DM timer instance or in general for PWM ?
Also, since the Port module is not taken in architecture , i used the below tool to configure the pin functionality as timer to generate PWM. What do i do with the generated code ? where do i add the generated code ? Also the dtsi file is generated with the GPIO config , do i need to change that one too ?
TI provides a pin-mux
- Cloud Tool Link
- A cloud based tool, allows GUI based selection of PINs required functionality, configurations per pin
- Generate simple C code / functions that could be invoked to configure the PINs
example of generated code:
#include "J721E_pinmux.h"
/** Peripheral Pin Configurations */
static pinmuxPerCfg_t gMcu_timer6PinCfg[] =
{
/* MyMCU_TIMER3 -> MCU_TIMER_IO6 -> G27 */
{
PIN_WKUP_GPIO0_8, PIN_MODE(4) | \
((PIN_PULL_DISABLE | PIN_INPUT_ENABLE) & (~PIN_PULL_DIRECTION))
},
{PINMUX_END}
};
static pinmuxModuleCfg_t gMcu_timerPinCfg[] =
{
{6, TRUE, gMcu_timer6PinCfg},
{PINMUX_END}
};
pinmuxBoardCfg_t gJ721E_MainPinmuxData[] =
{
{PINMUX_END}
};
pinmuxBoardCfg_t gJ721E_WkupPinmuxData[] =
{
{0, gMcu_timerPinCfg},
{PINMUX_END}
};
Regards
Manish