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.

TMS570LC4357-EP: Output and Input Muxing

Part Number: TMS570LC4357-EP
Other Parts Discussed in Thread: HALCOGEN

Hi,

We are planning to use TMS570LC4357-EP in our design.

We are facing issue in understanding the concept of multiplexing since TMS570LC4357-EP has both input and output multiplexing options. In this regard could you please answer the following queries:

  1. By taking N19 as example could you please explain the multiplexing as it has got option of both input and output multiplexing. The signal type of N19 is IO (Table 3-1 in ADC section) and in few other places the signal type is input, even this is bit confusing.
  2. The pin description of N19(table 3-1) says it can be used as GIO, If that is the case then what will be the multiplexing control register and the bit vales that must be set in order to configure it as GIO?

Regards,

Suhas M V

  • Hi,

    By taking N19 as example could you please explain the multiplexing as it has got option of both input and output multiplexing. The signal type of N19 is IO (Table 3-1 in ADC section) and in few other places the signal type is input, even this is bit confusing.

    If you look at the below table, the N19 is multiplexed between AD1EVT, MII_RX_ER, RMII_RX_ER and nTZ1_1 signals. When the N19 is used as a AD1EVT pin, it is a I/O. You can read and write to AD1EVT in the MibADC1 module. However, when it is used for example as a MII_RX_ER signal, it is only a input pin. The EMAC module which uses the MII_RX_ER signal will not be able to write to the N19. Likewise, when the N19 is used as the nTZ1_1, it is only a input to the EPWM module. The EPWM module can never write to it. 

    The pin description of N19(table 3-1) says it can be used as GIO, If that is the case then what will be the multiplexing control register and the bit vales that must be set in order to configure it as GIO?

    The AD1EVT by default is the default signal on the N19 pin. Therefore, you don't really need to configure the pin muxing since it is already brought out. The best way to configure the pinmuxing is by HalCogen tool. You don't want to configure any pin by hand. That will be too much work. The tool will generate the pinmuxing code for you. See below.

    Once you configure the pinmux. It is just matter of using the MibADC1 module to read and write to the AD1EVT pin. Please refer to the MibADC1 chapter of the TRM on the GPIO registers to read/write to AD1EVT.

  • Thanks for the response

    Regards,

    Suhas M V