S32K1xx - LPIT Interrupt Channels 1-3

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

S32K1xx - LPIT Interrupt Channels 1-3

1,754 Views
pdom
Contributor I

After several tests, it appears to me that all LPIT channels on the S32K144 map to a single interrupt LPIT0_Ch0_IRQn with NVIC ID# 48.  That is to say an overflow of the channel 1,2, and 3 of the LPIT with the interrupt enabled will trigger NVIC interrupt 48.

This is consistent with a comment made previously on this forum by Lukas Zadrapa in October 2016:Clock Cofiguration for TIMER 

Hi,

 

I just realized that all LPIT channels are assigned to single interrupt vector IRQ 48.

... 

It looks like the documentation needs to be updated.

This is inconsistent with the latest reference manual, S32K1xx_DMA_Interrupt_mapping, and header S32K144.h.  See below for a fragment from the header (Line 327):

LPIT0_Ch0_IRQn = 48u, /**< LPIT0 channel 0 overflow interrupt */
LPIT0_Ch1_IRQn = 49u, /**< LPIT0 channel 1 overflow interrupt */
LPIT0_Ch2_IRQn = 50u, /**< LPIT0 channel 2 overflow interrupt */
LPIT0_Ch3_IRQn = 51u, /**< LPIT0 channel 3 overflow interrupt */

Is this expected behavior for the S32K1xx microprocessors?  Is the recommended workaround to use the "Ch0" interrupt to check the LPIT status registers and call the appropriate interrupt service routine?  Will there be an update to the documentation?

Thank you for your help,

Paul

Labels (1)
0 Kudos
2 Replies

1,205 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Paul,

Which S32K144 version do you use?
There is a single LPIT vector on S32K144 (0N77P maskset) but four on 0N47T/0N57U.

Based on my experience with the timer, all vectors are fetched as expected.

Regards,
Daniel

0 Kudos

1,205 Views
pdom
Contributor I

That must explain it.  Confirmed that I'm working with 0N77P

0 Kudos