I am working on a bare-metal IPM mode project for s32k3. The reference manual has sufficient amount of information on the output mode initialization; however, lacking in input mode configuration. Any idea how I can configure and run IPM/IPWM mode in s32k3 micros? Thanks!
Solved! Go to Solution.
Hi,
once channel flag is set, indicating capture is done, you should read register A first then register B to get coherent data.
BR, Petr
Hi,
in fact the init is very similar for input mode as well. Step 2 is needed if IPM/IPWM channel will run from any global or local counter bus. For step 3 you will omit writing to A/B register and need to select Cn[EDPOL] value. If channel internal counter is selected (BSL=3), then channel prescaler have to be set too, as shown.
BR, Petr
Hi @PetrS ,
Thank you for your message. Sounds good on the initialization.
I'd also appreciate some guidance on reading values from A and B in IPM/IPWM mode. Thanks!
Best,
Vusal
Hi,
once channel flag is set, indicating capture is done, you should read register A first then register B to get coherent data.
BR, Petr
Hi @PetrS ,
Thanks for your help! It worked for me.
Best,
Vusal