To start,

Set a new flag in interrupt, check that flag in main, do processing there and reset your flag.

Keep isr as small as possible.

Robert