There will be numerous examples.
Latest example that also works with simulation can be found
here
Note the RX interrupt is the only interrupt that currently does not simulate.
You will of course need to modify flowchart for your requirement.
After modification, if still not working then I will see if I can help you further.