S32K344 emios double action output compare(DAOC) demo

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

S32K344 emios double action output compare(DAOC) demo

跳至解决方案
932 次查看
lluo
Contributor III

Hi,  it seems the reference project(Emios_Ocu) provided in S32 Design Studio only includes an example for emios single action output compare. 

lluo_0-1704858134095.png

lluo_1-1704858198335.png

 

Is there a demo for S32K344 emios double action output compare(DAOC)? Thank you in advance.

 

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

Hi@lluo

yes, you can refer to the picture i provided and it's all up to you.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
915 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@lluo

DAOC is just a one-pulse PWM and update A/B registers every period for continuous pulses.

Because DAOC can only generate a single pulse,so if you want to use DACO to generate a continuous PWM waveform, you need to call callback function periodically, so the DAOC interrupt must be turned on.

Senlent_2-1704867024433.png

 

 

 

 

0 项奖励
回复
908 次查看
lluo
Contributor III

Hi @Senlent ,

Thank you for your reply. If I just want to generate a single pulse, can I use the configuration provided above? Or is the option EMIOS_PWM_IP_MODE_DAOC  only intended for generating PWM? 

标记 (1)
0 项奖励
回复
906 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@lluo

yes, you can refer to the picture i provided and it's all up to you.

0 项奖励
回复
898 次查看
lluo
Contributor III

Hi @Senlent ,

Thanks a lot for the reply.

0 项奖励
回复