Hello,
To determine whether MTIM overflow has occurred, you will need to frequently poll within your main program loop. You may test either the appropriate bit within the SIP1 register, or alternatively the flag bit within the MTIMSC register.
It you utilize the MTIM to exit from wait mode, you would need to test the SIP1 register to determine that the MTIM was the source of wakeup.
Regards,
Mac