LCU Configuration with 3 input and one LCU override

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LCU Configuration with 3 input and one LCU override

242件の閲覧回数
emerging
Contributor III

Hello Team,

I am working with an LCU module configuration with three input and one lcu override and one output as shown below

LCU.png

  • For this 3 input and one lcu override how to perform the configuration, do we need to create separate LcuInputConfiguration containers for each input? 
  • Please give an idea on how to configure the input 2 (feed back from the output) and how to configure the lcu override.
  • On what basis we are giving the values lcuLogicInput_MuxSelect for each input?

It will be appreciable if anyone can provide an example configuration and coding that will help this configuration.

Thanks and regards

タグ(1)
0 件の賞賛
6 返答(返信)

221件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@emerging

Here I can only help you solve some problems in understanding the features of the LCU module.

If it is related to MBDT, you need to ask questions in the MBDT forum.

 

1.For this 3 input and one lcu override how to perform the configuration, do we need to create separate LcuInputConfiguration containers for each input? 

       An LCU is composed of 3 independent LC modules, each of which has four inputs and outputs. So according to the content of your picture, I think one LC is enough.

 

2.Please give an idea on how to configure the input 2 (feed back from the output) and how to configure the lcu override.

The output of LC can be directly selected as the input of LC, which I have highlighted in the picture.

Senlent_0-1717734481696.png

 

        Software Override is actually very simple. You can see the schematic diagram given in the data sheet. In fact, you only need to modify these two registers (I have highlighted them)

"To use software override, you must enable it for the corresponding output (SWEN[SWEN]). You assert software override by writing 1 to the corresponding bit of the Software Override Value" (SWVALUE[SWVALUE]).

 

Senlent_1-1717734514161.png

 

3.On what basis we are giving the values lcuLogicInput_MuxSelect for each input?

    I don't know how to explain this question better.  its input needs to be based on your own needs.

     The module input of LC can come from TRGMUX(or self), and the input of TRGMUX can come from many modules, such as external ports, eMIOS modules, etc.It's all depend on your needs.

 

For your know:

        You can find the routines(Lcu_Ip_LcuControlMotor_S32K344) we provide for customers about the LCU module in S32 DS. In this routine, we also show the use of software override

 

 

0 件の賞賛

209件の閲覧回数
emerging
Contributor III

Hello @Senlent ,

Thanks for your reply, its very helpful to understand software override

Regarding the third query i was asked about the mux select. 

emerging_3-1717746427887.png

  • Here we have so many mux values are available, so on what basis we select its value. In this figure i can see that 12 containers are created inside main container 'LCU Logic Input'(highlighted part), so do you have 12 inputs and created one container for each input? If so, on what basis we are selecting 'Mux Select' for each inputs? 

emerging_1-1717742368841.png

  • In my application, input one and two coming from trigmux LCU0_LC0_SEL0 and LCU0_LC0_SEL1 so what value of mux i can select for input one and two?
  • Lcu_Ip_LcuControlMotor_S32K344 Where i can find the input details or schematic for this application. If the input and output connections are available then its better to understand the configuration easily

Thanks and regards,

0 件の賞賛

201件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@emerging

Q1:Here we have so many mux values are available, so on what basis we select its value. In this figure i can see that 12 containers are created inside main container 'LCU Logic Input'(highlighted part), so do you have 12 inputs and created one container for each input? If so, on what basis we are selecting 'Mux Select' for each inputs? 

Senlent_0-1717749709744.png

You can see each LCU instance have three hardware logic cell which is :

LCU_IP_HW_LC_0, LCU_IP_HW_LC_1 and LCU_IP_HW_LC_3

each hardware logic have 4 input choice

For Mux Select:

LCU_IP_HW_LC_0  can choose :

              LCU_IP_MUX_SEL_LU_IN_0 ~ LCU_IP_MUX_SEL_LU_IN_3

LCU_IP_HW_LC_1 ->

             LCU_IP_MUX_SEL_LU_IN_4 ~ LCU_IP_MUX_SEL_LU_IN_7

LCU_IP_HW_LC_2 ->

             LCU_IP_MUX_SEL_LU_IN_8 ~ LCU_IP_MUX_SEL_LU_IN_11

 

Q2:In my application, input one and two coming from trigmux LCU0_LC0_SEL0 and LCU0_LC0_SEL1 so what value of mux i can select for input one and two?

 

You should use TRGMUX module to select input source for LCU0_LC0_SEL0 and LCU0_LC0_SEL1.

("Hardware Input" depend on your needs and application.)

For example,Here i config LCU0_LC0_SEL0 and LCU0_LC0_SEL1  are both choose

TRGMUX_INPUT_LOGIC0_VSS as input source.

Senlent_1-1717749863157.png

 

Q3.Lcu_Ip_LcuControlMotor_S32K344 Where i can find the input details or schematic for this application. If the input and output connections are available then its better to understand the configuration easily

This routine didn't add TRGMUX but only software way to control LCU input and output.

 

Regarding TRGMUX connect map, you can find it in our S32K3XXRM's attachments.

 

 

 

 

 

0 件の賞賛

120件の閲覧回数
emerging
Contributor III

Hello @Senlent ,

I have few more doubts regarding LCU configuration settings and implementation.

1. As per our requirement we have to give one delay in LCU0_LC1 as shown below

emerging_1-1718356312210.png

How can we give this delay to LCU0_LC0, is it given through configuration or coding?

2. Regarding the coding part what all have the steps we follow? 

  • As per my understanding I have to initialize mcl and LCU , then Lcu_Ip_SetSyncInputSwOverrideValue() and Lcu_Ip_SetSyncInputSwOverrideEnable() for control SW override value,is this enough in coding part? all other functions will automatically run after the configuration, is my understanding correct? Do i need to remove or add anymore steps?
  • we are already enabling the output in configuration so do we need Lcu_Ip_SetSyncOutputEnable() API in code?

Could you please look on my queries and reply your valuable suggestions and comments. Looking forward from you,

Thanks and regards

 

 

 

0 件の賞賛

118件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@emerging

Q1.you can configurate it directly

Senlent_0-1718357938093.png

 

Q2.From the picture your provided, you just need to init and enable the LCU out.

Lcu_Ip_Init(); /* initialize the LCU module */

Lcu_Ip_SetSyncOutputEnable(); /* Apply LCU output configuration */

0 件の賞賛

142件の閲覧回数
emerging
Contributor III

Hello @Senlent ,

Thanks for your all valuable information, it will help me to proceed further . I will come back if any more query in the future.

Thanks and Regards,

0 件の賞賛