The application discloses a
motor controller and a temperature measuring method thereof. The
motor controller comprises a plurality of temperature sensors integrated in power chips, which are used to obtain junction temperatures of the power chips. The temperature measuring method comprises the following steps: obtaining the junction temperatures of the power chips; calculating temperatures of first to sixth reference points in a cooling
water channel according to the junction temperatures and a preset
thermal model; calculating inlet and outlet water temperatures based on the temperatures of the first to sixth reference points; and calculating temperatures of
diode chips and capacitors according to preset first and second thermal models respectively. The application directly integrates the sensors to obtain real junction temperatures, reversely deduces local real water temperatures, and then estimates temperatures of each core node in a forward direction, so that model deviation caused by a single reference is eliminated systematically, and the
temperature monitoring precision is improved.