I am using MPC5777C microcontroller. Can you please explain in detail what will happen in following scenario:
peripheral interrupt is configured (like dma,adc,timer etc.,) and enabled.But global interrupt flag is disabled.Will CPU/core ignore interrupt completely or it will queue that interrupt and service back after global interrupt flag is enabled.
Is there any application note on this?
the second way is correct. As soon as EE bit is set, global interrupts are enabled and microcontroller executes all pending interrupts according to the priority.
For more information, you can see AN2865. This is for MPC56xx microcontrollers, but interrupt controller is the same in MPC5777C.