IPM Mode Configuration in S32k3

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

IPM Mode Configuration in S32k3

Jump to solution
1,553 Views
vusal
Contributor III

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!

0 Kudos
Reply
1 Solution
1,520 Views
PetrS
NXP TechSupport
NXP TechSupport

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

View solution in original post

4 Replies
1,533 Views
PetrS
NXP TechSupport
NXP TechSupport

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

1,528 Views
vusal
Contributor III

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

0 Kudos
Reply
1,521 Views
PetrS
NXP TechSupport
NXP TechSupport

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

1,513 Views
vusal
Contributor III

Hi @PetrS ,

Thanks for your help! It worked for me.

Best,
Vusal

0 Kudos
Reply