S32K344 emios double action output compare(DAOC) demo

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K344 emios double action output compare(DAOC) demo

Jump to solution
931 Views
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 Kudos
Reply
1 Solution
904 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@lluo

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

View solution in original post

0 Kudos
Reply
4 Replies
914 Views
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 Kudos
Reply
907 Views
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? 

Tags (1)
0 Kudos
Reply
905 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@lluo

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

0 Kudos
Reply
897 Views
lluo
Contributor III

Hi @Senlent ,

Thanks a lot for the reply.

0 Kudos
Reply