Hello,
Mr. Daniel,
I have to configure for PORTA PIN 2 of s32k116, but it is not wake up through that port pin pressing.
Also in structure for NVIC max allowed index is 8 but in DMA_Interrupt_Mapping excel it mentioned 9.
Please tell me how to do it?
Regards,
Shinde Umesh
Hello shindeu66@gmail.com,
On the S32K11x derivatives, there are single ISER, ICER, ISPR, ICPR registers and eight IPR registers.
To enable the PORTA interrupt, you need to set the 9th bit of the ISER register.
S32_NVIC->ISER[0] |= (1 << 9);
Then, you can set its priority in the IRQ1 bit-field of the IPR2 register.
S32_NVIC->IPR[2] |= S32_NVIC_IPR_PRI_1(0b01000000); // Priority level 1
As you can see below, there are only four priority levels.
If the interrupt does not work in RUN, please share a test project.
Thank you,
BR, Daniel
Hello,
Mr. daniel
I am sending you a sample project in the attachment.
The functionality I want to design is when switch PTA1 is detected mcu should go to VLPS mode.
after entering VLPS if PTA2 is detected mcu should come back to normal run mode.
please have look and tell me the changes required.
Regards,
Shinde Umesh
https://drive.google.com/open?id=1wo5sQhsZhAzqZ9E4AHkUnb4utiz79DxRlowpoerrhttps://drive.google.com/open?id=1wo5sQhsZhAzqZ9E4AHkUnb4utiz79DxR
Hello shindeu66@gmail.com,
Could you please test each function separately?
I haven't tested the code but I see a few things:
Regards,
Daniel