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.

MSPM0L1306: Can we update Driverlib and Sysconfig to allow setting of INENA bit for an output pin?

Part Number: MSPM0L1306
Other Parts Discussed in Thread: SYSCONFIG

I am using CCS12.4, SysConfig 1.17.0, and MSPM0 SDK v1.10.0.0.5. I am using the IOMUX Hi-Z feature to implement a custom serial interface that requires open-drain I/O. While the serial pin is being configured as an open-drain output, we also need to be able to read the input path to determine if the shared bus is being driven by another device. The MSPM0 H/W supports configuring a pin as both an input and an output, but the driverlib and SysConfig GUI don't seem to support this capability. 

The SysConfig GUI doesn't include an option for enabling the input path when a GPIO pin is configured as an output (see screenshot).

Under the hood, I can see that DriverLib function DL_GPIO_initDigitalOutputFeatures() doesn't include a parameter for INENA even though the PINCM register does include that bitfield. 

Is there another way to enable this capability within SysConfig and driverlib? If not can you please add this important feature in a future release?

Thanks,

Ruben

  • Hi Ruben,

    I will answer you tomorrow. Thanks for your question.

  • Hi Ruben, 

    While the serial pin is being configured as an open-drain output, we are not able to read the input path at same. But you can change the configuration using code at the end of output or input function.

    There will be INENA to enable or disable input. While GPIO is configured as output, the INENA will be set 0, which means input is disabled at that time.

    code example can be find in SysConfig GUI.

    when you finish the configuration, the code will be update, which may give you a example to set and you may copy that in your code program.

    thanks,

    Zoey

  • Zoey,

    Thank you for this. We have already solved the problem by manually setting the INENA bit as you suggested. It works fine, but the point of my post is to request a future enhancement to driverlib and sysconfig so this doesn't have to be done manually. Please let me know how to submit this request to the S/W team.

        IOMUX->SECCFG.PINCM[OW_OUTPUT_A_OD_A_IOMUX] |= IOMUX_PINCM_INENA_ENABLE;

    Ruben

  • Ruben,

    I was ooo some days ago, sorry for the late reply.

    You can email me directly, and I will forward to S/W team.

    Zoey