PWM not generating for s32k324 emios_0 channel 4 and emios_0 channel 5. given settings as below EmiosChMode as EMIOS_PWM_IP_MODE_OPWFMB since we have to get variable period and variable duty and EmiosChCounterBus as EMIOS_PWM_IP_BUS_INTERNAL. in mcl EmiosMclClkDivVal is configured as 2, Channel class as variable.
Registers for emios_0 A4, B4 and A5, B5 are being set as per the configuration, but PWM wave form is not generating
解決済! 解決策の投稿を見る。
Hi,
well, UCOUT is toggling, so OPWFMB works normal.
Then check pin setting and be sure you measure right pin.
Picture names point to 48, is that GPIO48 (PTB16) pin and so controlled by MSCR48?
Because in port setting you have PCR value 36 that is PTB4 pin, also configurable for eMIOS_0 ch4.
BR, Petr
Hi,
try to check eMIOS register setting in debugger. To know global prescaler and internal prescaler are enabled and channel counter is running. You can also check An, Bn register setting. Sn[UCOUT] indicates the output pin state, so if it is toggling, then most probably your pin setting is not correct.
BR, Petr
Hi,
this looks normal. Counter seems to be running as flag is set. Mode is OPWMB.
Do you see UCOUT also change value? What about OUDIS register, if set for channel bit, clear it.
BR, Petr
Hi,
well, UCOUT is toggling, so OPWFMB works normal.
Then check pin setting and be sure you measure right pin.
Picture names point to 48, is that GPIO48 (PTB16) pin and so controlled by MSCR48?
Because in port setting you have PCR value 36 that is PTB4 pin, also configurable for eMIOS_0 ch4.
BR, Petr