PWMSVM01 Inverrter Enable Pin Configuration

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
The Inverter Enable Pin Configuration in the PWMSVM01 app using a XMC4504x100 target does not set the output driver mode of the pin.
v1.0.4 of the PWMSVM01 and IO002 Apps were used.

The following code was generated.
If a call to IO002_EnableOutputDriver is made using the IO002 App configuration for the invertern enable pin before PWMSVM01_lInit is called this issue is fixed.

part of PWMSVM01_lInit called by PWMSVM01_Init

if(HandlePtr->kInverterPin == 1)
{
IO002_ResetPin(IOHandle);
}
else if(HandlePtr->kInverterPin == 2)
{
IO002_SetPin(IOHandle);
}


part of IO002_Init

IO002_Handle2.PortRegs->IOCR4 |= (0 << 3);
/* Configuration of 2 Port 10 based on User configuration */
IO002_Handle6.PortRegs->OMR |= (0<< 10);
IO002_Handle6.PortRegs->PDR1 &= (~(PORT2_PDR1_PD10_Msk));
IO002_Handle6.PortRegs->PDR1 |= ((4 << PORT2_PDR1_PD10_Pos) & \
PORT2_PDR1_PD10_Msk);
0 Likes
1 Reply
Georg_Huba
Employee
Employee
The problem is the caused by IO002 App v 1.0.4. In this version input / output enable is determined by the connected HW signal. As the inverter enable is not a HW signal the port pin is configured as input after solving (despite the UI shows something different). We plan to correct PWMSVM App in the next DAVE App release in about 2 – 3 weeks.
0 Likes