Grid Tie Inverter

Hello Team,

I am using RX24T CPU for 1-phase Inverter application. Inverter is running well using MTU3 complementary PWM mode. Now, I would like to synchronized the Inverter output AC voltage with grid supply (mains AC supply). There are many application notes from Texas Instruments & other CPU manufactures. So, could have similar thing with you? or suggest me How I can implement the Grid synchronization using RX24T CPU. If you have any doubts about my application, then please go through the below link. My application is similar - 

https://www.digikey.in/en/articles/techzone/2015/sep/synchronizing-small-scale-pv-systems-with-the-grid

Thanks,