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.
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
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.
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
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 :
What is wrong?
Regards, Francesco.
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