hi,
I can't find documentaion on S32K144 NVIC module register.,and I want use FTM interrupt ,can you help me ?
Thanks anyway.
Hi,
Please refer to S32K1xx_DMA_Interrupt_mapping.xlsx file that is attached to the RM.
You need to use the following numbers.
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
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.
Hi,
The is one for S32K11x and one for S32K14x
Regards,
Daniel
hi
I can't find a download link for this document