Emios(PWM-GPT)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Emios(PWM-GPT)

跳至解决方案
2,080 次查看
Ayaz
Contributor IV

Hi

To provide the period to Emios_pwm, I use the Emios_mcl driver. In addition, I use Emios_gpt to trigger the BCTU.

My issue is that when the emios_gpt is activated. emios_pwm outputs a default value ??,  What may be the cause of this ?

I am using S32K344 evolution board.

BR

Ayaz

0 项奖励
回复
1 解答
2,057 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

I can't see how EMIOS triggers Bctu when used as Gpt, but I guess it is based on some flags or internal outputs

"To request an ADC conversion through the BCTU, a timer module such as eMIOS asserts its output signal, which is connected to a BCTU trigger input."

I hope you can read the data sheet later or write some test code yourself. This is the test routine I made for Gpt->Bctu->Adc. You can refer to it.

Trigger sequence

Senlent_0-1709191936556.pngSenlent_0-1709191936556.png

Adc result

Senlent_1-1709191952153.pngSenlent_1-1709191952153.png

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,058 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

I can't see how EMIOS triggers Bctu when used as Gpt, but I guess it is based on some flags or internal outputs

"To request an ADC conversion through the BCTU, a timer module such as eMIOS asserts its output signal, which is connected to a BCTU trigger input."

I hope you can read the data sheet later or write some test code yourself. This is the test routine I made for Gpt->Bctu->Adc. You can refer to it.

Trigger sequence

Senlent_0-1709191936556.pngSenlent_0-1709191936556.png

Adc result

Senlent_1-1709191952153.pngSenlent_1-1709191952153.png

 

0 项奖励
回复