Emios-ADC Syncronization with S32K3xx MBD toolbox

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

Emios-ADC Syncronization with S32K3xx MBD toolbox

451 Views
Alfredo_Rubio
Contributor II

We are trying to implement an interrupt on the ADC end of group conversion.

For this we are using the S32K344EVB-T172 evaluation board.

First, we tried to analyze how the “PWM Adc Synchronization 344 EBT works” but after changing the configuration tool to the S32 Config Tool, and update the code, we are not able to compile this example. We got a lot of error mainly associated with undefined functions.

In order to advance with the project, we decide to try to build the scenary from scratch.

We started by configuring the PWM as needed in our project.

In this case we only use Emios0 with channels 22 and 23 are configured in MCB_UP_DOWN_COUNTER mode to generate two shifted carriers. Base on them channels 1 and 2 are used in EMIOS_PWM_IP_MODE_OPWMCB_TRAIL_EDGE to generate the two PWM signals that are routed through the Trigger MUX and the LCU two get the control signals for two interleave half bridges.

Up to this point all is working properly.

In the default configuration we see that three ADC groups are already configured, but we are not able to get any indication of the end of conversion.

Could you please indicate us how to implement this functionality with the MBD toolbox.

Thanks you in advance.

0 Kudos
Reply
2 Replies

334 Views
Alfredo_Rubio
Contributor II

It doesn't work. When we tried with the provided .edf file, we got an import error.

At the end, we started with one of the example projects and were able to make it works.

 

 

0 Kudos
Reply

429 Views
stefanvlad
NXP Employee
NXP Employee

Hello @Alfredo_Rubio ,

 

There is a possibility to import the settings from the s32k344_pwm_trgmux_lcu_adc_ctu_ebt project,

First you need to open the s32k344_pwm_trgmux_lcu_adc_ctu_ebt.mdl model and build it, it will generate the folder \s32k344_pwm_trgmux_lcu_adc_ctu_ebt_Config\generate\output\:

stefanvlad_0-1715353676076.png

Then you can open the S32 Configuration Tool and select Import:

stefanvlad_1-1715353723921.png

Then you can select the previously generated Adc.epc file:

stefanvlad_2-1715353776847.png

Then open and check all settings in the ADC tab of S32 Configuration Tool:

stefanvlad_3-1715354060765.png

 

I have attached ouput.zip file with all epc files from the s32k344_pwm_trgmux_lcu_adc_ctu_ebt project.

 

Let me know if this works,

Stefan V.

 

0 Kudos
Reply