Microgrids can operate in three different possible modes, including grid-connected, islanded and the interconnected operation modes. One of the big challenges in the interconnected microgrids is frequency and tie-line power control because of the nonlinearity behavior of the interconnected microgrids. Thus an adaptive controller is needed for solving this problem. In response to this challenge, in the present paper, an artificial neural network controller is presented. The control methodology is applied to two-AC interconnected microgrids considering a simplified frequency response model. The effectiveness of the proposed controller is examined by simulation. The simulation results show that in different conditions, artificial neural network controllers can operate better than the conventional proportional-integral controllers.