S32K3 EMIOS channel X usage

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

S32K3 EMIOS channel X usage

371 Views
francescovico
Contributor III

Hello,

It's possible use a Channel X to generate counter bus and in the same time use the channel as input capture , output compare or pwm?

Regards, Francesco. 

 

 

 

0 Kudos
Reply
5 Replies

348 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, that is theoretically possible, but not used this way, I think. In this case internal counter (providing counter bus) is free running, so you cannot control counter bus period, except of OPWFMB mode.

BR, Petr

0 Kudos
Reply

332 Views
francescovico
Contributor III

Hi,

to use my hardware it's mandatory use ch 0, ch 8 and ch 16 to generate counter bus and at same time to generate a PWM.

Do you have an example how I can do this?

Regards, Francesco. 

0 Kudos
Reply

320 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

does it mean ch0 need to generate PWM and serve counter bus B, similarly for other channels?
If yes you can simply config channel for OPWFMB mode and respective counter bus will count with period configured in OPWFMB mode.

BR, Petr 

0 Kudos
Reply

270 Views
francescovico
Contributor III

Hi,

I'm trying to configure EMIOS0 CH8 to generate PWM and counter bus C for CH9...CH15.

Using ConfigTools as your suggestion there is error below :

EMIOS_error.png

EMIOS_0_CH8.png

EMIOS_0_CH9.png

 

What is wrong?

Regards, Francesco.

 

0 Kudos
Reply

258 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

what I wrote is the theoretical possibility of the HW, but config tool does not allow to config that.
For the error you need to select master bus from the one configured in MCL component, this offers only MC/MCB modes. But config tool does not allow you to use the same channel for 2 modes.

BR, Petr

0 Kudos
Reply