To obtain a current controller for an inverter with high control accuracy inexpensively by converting a current command value to a current command of an analog basic sine wave, obtaining a deviation between the current command and a motor current in an analog manner, and digitalizing the current deviation in a microcomputer to accurately generate time data. Calculating means 51 obtains U-phase, V-phase current command values IU, IV, and inputs them to PWM means 52, 53. The PWM means 52 generates a PWM pulse train PU, and the PWM means 53 generates a PWM pulse train PV. A low pass filter 56 removes V-phase side carrier frequency component to convert it to current commands IU, IV. A subtracter 23 obtains a difference between the current command IU and a motor current IU*, and an analog current amplifier 26 outputs a current deviation IU. Data generating means 55 obtains a current deviation, and generates time data Dt1, Dt2 in a conversion table. |