AC phase synchronization