This paper presents the on-line current controller tuning method of grid-connected inverter using PSO(particle swarm optimization) technique for minimizing the harmonic current. Synchronous frame PI current regulator is commonly used in most distributed generation. However, due to the source voltage distortion, specially in weak AC power system, current may contain large harmonic components, which increase THD(total harmonic distortion) and deteriorates power quality. Therefore, some tuning method is necessary to improve response of current controller. This paper used the PSO technique to tune the current regulator and through simulation and experiments, usefulness of the tuning method has been verified. Especially in simulating the tuning process, ASM(average switching model) of inverter is used to shorten execution time.