This work proposes a control algorithm to be used in the synchronization process for the reconnection of an autonomous microgrid with the main grid. The control loop acts in the phase mismatch between the voltages and utilizes an adjustable parameter to regulate the transient dynamic, allowing for a smooth synchronization process. Simulations were made in order to evaluate its performance; then the algorithm was implemented in the TMS320F28377S digital signal processor and tested in a reduced-scale autonomous microgrid prototype using DRV8305EVM static converters. The results confirm that the proposed algorithm allows for smooth synchronization and reconnection processes, with the possibility of adjusting the smoothness numerically, providing another scientific criterion for the synchronization analysis, validating the proposal.