Detailed reference documentation on S32_NVIC_Type?

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

Detailed reference documentation on S32_NVIC_Type?

1,932 Views
annqian
Contributor II

hi,

    I can't find documentaion on S32K144 NVIC module register.,and I want use FTM interrupt ,can you help me ?

Thanks anyway.

0 Kudos
Reply
4 Replies

1,799 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Please refer to S32K1xx_DMA_Interrupt_mapping.xlsx file that is attached to the RM.

pastedImage_1.png

You need to use the following numbers.

pastedImage_4.png

For example, if you want to enable FTM0_CH1.

enable_interrupts_NVIC(99, 0);      // highest priority 0

void enable_interrupts_NVIC(uint8_t vector_number, uint8_t priority)
{
 S32_NVIC->ICPR[vector_number / 32] = (1 << (vector_number % 32));
 S32_NVIC->ISER[vector_number / 32] = (1 << (vector_number % 32));
 S32_NVIC->IP[vector_number] = (priority << 4);
}

For more information about NVIC registers, please refer to ARM documentation.

Cortex-M4 Technical Reference Manual.

Chapter 6 Nested Vectored Interrupt Controller

Regards,

Daniel

0 Kudos
Reply

1,799 Views
annqian
Contributor II

Hi ,

    I get what your meaning,but my S32K11x_INT_MAP_ARM.exsl is different from you listed. and the date of my Reference Manual  documentation is" Document Number: S32K1XXRM   Rev. 9, 09/2018".  and there is no FTM2 interrupt information.

0 Kudos
Reply

1,799 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

The is one for S32K11x and one for S32K14x

pastedImage_1.png

Regards,

Daniel

0 Kudos
Reply

1,799 Views
TM_207
Contributor I

hi

I can't find a download link for this document

0 Kudos
Reply