TRGMUX

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
875 次查看
Ayaz
Contributor III

Hi

I am trying to test the TRGMUX (input-output) functionality,

1) The output?

I am triggering  the emios_gpt every 25 us i have assigned the input into the TRGMUX as seen below:Skærmbillede 2024-03-05 182425.png

pin configurations: I have used the trgmux out1 -PTD-0

Skærmbillede 2024-03-05 182637.png

I display the input signal from emios_gpt and the output signal from the TRGMUX  on the oscilloscope.

The issue I am seeing is that the emios_gpt signal frequency is 20 kHz and 50 duty cycle.

and the TRGMUX output signal is 40 kHz and 0,03 duty cycle.

The output frequency for the TRGMUX is correct, but I was expecting to get the same signal the has been inputted. what do I miss here ??

2) input:  I would like to read a signal on a pin. How to configure the trgmux to read a signal from a pin?

I am using the s32k344 evaluation board  

0 项奖励
回复
1 解答
846 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

“ is it possible to route an input signal from a physical pin as TRGMUX input”

it should be easy to configure, for example:

Senlent_0-1709715419281.png

then config pins for TRGMUX input and output.

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
864 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

First of all, I'm sorry, there are no more details about this part in the data sheet, so I don't have the ability to explain it clearly to you.

However, I tested using->

TRGMUX_IP_INPUT_EMIOS0_RELOAD_OUT_CH0->TRGMUX->TRGMUX_IP_OUTPUT_BCTU_TRG23->BCTU, and the results were as expected.

Senlent_2-1709711359715.png

Senlent_3-1709711391621.png

Here I suggest you use PWM->TRGMUX->BCTU to observe more details.
For example you can configure it like this:
Chx_PWM->TRGMUX_IP_INPUT_EMIOS0_IPP_CHx->TRGMUX->TRGMUX_IP_OUTPUT_BCTU_TRG23->BCTU.
Chx_PWM->TRGMUX_IP_INPUT_EMIOS0_IPP_CHx->TRGMUX->TRGMUX_IP_OUTPUT_SIUL2_0_3_OUTx

 

0 项奖励
回复
855 次查看
Ayaz
Contributor III
Hi
Thanks for your response.
1 ) is there no explanation for this output behavior (the output signal duty cycle is been reduced, I was expecting to get the same input signal out without changes )?
2 ) is it possible to route an input signal from a physical pin as TRGMUX input ?
if yes , do you have an example project to refer to ?
BR
Ayaz
0 项奖励
回复
854 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

1. Yes, I did not find it, because few users use eMIOS_Gpt to trigger BCTU through TRGMUX

2.I don't have such a routine, but this can be achieved, I think you just need to configure the correct input and output for TRGMUX, and then change the state of the input pin.

0 项奖励
回复
851 次查看
Ayaz
Contributor III
1. is there another case?
2. do you have an example, how to so?
0 项奖励
回复
847 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

“ is it possible to route an input signal from a physical pin as TRGMUX input”

it should be easy to configure, for example:

Senlent_0-1709715419281.png

then config pins for TRGMUX input and output.

 

0 项奖励
回复