The invention relates to the field of control of electric automobiles, and discloses an
integral controller of an electric automobile. The
integral controller is connected with a safety controller through an integral CAN (controller
area network)
bus, and comprises a main processor and a slave processor, wherein communication connection is established between the main processor and the slave processor through an SPI (single program
initiation)
bus and a PWM (
pulse width modulation)
signal, the slave processor is used for monitoring the main processor, the main processor and the slave processor are used for respectively receiving an accelerator pedal
signal, a
brake pedal
signal, a vehicle-mounted power source signal and / or a temperature sampling signal, the main processor is provided with a main CAN channel, the slave processor is provided with a slave CAN channel and a channel shifting switch, and the channel shifting switch is used for shifting the connection of the integral
CAN bus and the main CAN channel or the slave CAN channel. When the main processor fails, the slave processor is used for shifting the integral
CAN bus to the slave processor, and the slave processor can replace the main processor for work, so the safety class of the
integral controller of the electric automobile is improved through the setting of double processors.