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!
已解决! 转到解答。
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