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:
pin configurations: I have used the trgmux out1 -PTD-0
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
已解决! 转到解答。
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.
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
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.