MICROCONTROLLER WITH TRACTION INVERTER PROTECTION
20230069259 · 2023-03-02
Inventors
Cpc classification
H03K2217/0072
ELECTRICITY
H03K2217/0063
ELECTRICITY
International classification
Abstract
An integrated circuit includes: a control signal output; a pulse-width modulation (PWM) subsystem with a PWM input and a PWM output, the PWM output configured to provide PWM control signals; and configurable logic (CL) with a first CL input, a second CL input, and a CL output. The first CL input is coupled to the PWM output, the second CL input is adapted to receive a fault indicator. The CL output is coupled to the control signal output. The CL is configured to provide the PWM control signals to the control signal output unless the fault indicator indicates a fault.
Claims
1. An integrated circuit, comprising: a control signal output; a pulse-width modulation (PWM) subsystem with a PWM input and a PWM output, the PWM output configured to provide PWM control signals; and configurable logic (CL) with a first CL input, a second CL input, and a CL output, the first CL input is coupled to the PWM output, the second CL input is adapted to receive a fault indicator, the CL output is coupled to the control signal output, and the CL is configured to provide the PWM control signals to the control signal output unless the fault indicator indicates a fault.
2. The integrated circuit of claim 1, wherein the CL is configured to provide low-side on and high-side off control signals to the control signal output responsive to the fault indicator indicating a speed level greater than a threshold, an overvoltage condition, and no low-side switch fault.
3. The integrated circuit of claim 1, wherein the CL is configured to provide high-side on and low-side off control signals to the control signal output responsive to the fault indicator indicating a speed level greater than a threshold, an overvoltage condition, and a low-side switch fault.
4. The integrated circuit of claim 1, wherein the CL is configured to provide high-side off and low-side off control signals to the control signal output responsive to the fault indicator indicating a speed level equal to or less than a threshold and at least one of an overvoltage condition and an overcurrent condition.
5. The integrated circuit of claim 1, wherein the CL is configured to provide high-side off and low-side off control signals to the control signal output responsive to the fault indicator indicating a speed level greater than a threshold, no overvoltage condition, and an overcurrent condition.
6. The integrated circuit of claim 1, further comprising a quadrature encoder pulse (QEP) module with an QEP input and a QEP output, the QEP input is configured to receive a motor position indicator, the QEP output is coupled to the second CL input, and the QEP module configured to provide a speed level at the QEP output responsive to the position indicator.
7. The integrated circuit of claim 1, further comprising a general programmable input/output (GPIO) module having a GPIO input and a GPIO output, the GPIO input adapted to receive a switch fault indicator associated with a traction inverter switch, the GPIO output coupled to the second CL input, and the GPIO configured to provide a switch fault signal at the GPIO output responsive to the switch fault indicator.
8. The integrated circuit of claim 1, further comprising a general programmable input/output (GPIO) module having a GPIO input and a GPIO output, the GPIO input adapted to receive a current sense value, the PIO output coupled to the second CL input, and the GPIO configured to provide an overcurrent condition signal at the GPIO output responsive to the current sense value being greater than a threshold.
9. The integrated circuit of claim 1, further comprising a programmable input/output (GPIO) module having a GPIO input and a GPIO output, the GPIO input adapted to receive a voltage sense value, the GPIO output coupled to the second CL input, and the GPIO configured to provide an overvoltage condition signal at the GPIO output responsive to the voltage sense value being greater than a threshold.
10. The integrated circuit of claim 1, further comprising a processor coupled to the PWM subsystem, wherein the processor has a processor input and a processor output, the processor input is adapted to receive motor control parameters, the processor output is coupled to the PWM input, and the processor is configured to provide PWM parameters at the processor output responsive to the received motor control parameters.
11. A system, comprising: a microcontroller having: a control signal output adapted to be coupled to a traction inverter; a pulse-width modulation (PWM) subsystem configured to provide PWM control signals; and configurable logic (CL) configured to: receive the PWM control signals and a fault indicator; and provide the PWM control signals to the control signal output unless the fault indicator indicates a fault.
12. The system of claim 11, wherein the CL is configured to provide low-side on and high-side off control signals to the control signal output responsive to the fault indicator indicating a speed level greater than a threshold, an overvoltage condition, and no low-side switch fault.
13. The system of claim 11, wherein the CL is configured to provide high-side on and low-side off control signals to the control signal output responsive to the fault indicator indicating a speed level greater than a threshold, an overvoltage condition, and a low-side switch fault.
14. The system of claim 11, wherein the CL is configured to provide high-side off and low-side off control signals to the control signal output responsive to the fault indicator indicating a speed level equal to or less than a threshold and at least one of an overvoltage condition and an overcurrent condition.
15. The system of claim 11, wherein the CL is configured to provide high-side off and low-side off control signals to the control signal output responsive to the fault indicator indicating a speed level greater than a threshold, no overvoltage condition, and an overcurrent condition.
16. The system of claim 11, wherein the microcontroller is configured to: generate a speed level based on a motor position indicator; generate a switch fault signal based on a switch fault indicator; generate an overcurrent detection signal based on a current sense value and a threshold; generate an overvoltage detection signal on a voltage sense value and a threshold; and provide a traction inverter protection signal to the control signal output responsive to the speed level, the switch fault signal, the overcurrent detection signal, and the overvoltage detection signal indicating a fault condition.
17. The system of claim 11, further comprising: a motor coupled to an output of the traction inverter; and a battery coupled to the power supply input of the traction inverter, wherein the system is an electric vehicle.
18. A method, comprising: generating, by a microcontroller, pulse-width modulation (PWM) control signals for a traction inverter; detecting, by the microcontroller, if there is a fault condition associated with the traction inverter; providing, by the microcontroller, a traction inverter protection signal to the traction inverter if the fault condition is detected; and providing, by the microcontroller, the PWM control signals to the traction inverter if the fault condition is not detected.
19. The method of claim 18, wherein determining if there is a fault condition includes: generating a speed level based on a motor position indicator; generating a switch fault signal based on a switch fault indicator; generating an overcurrent detection signal based on a current sense value and a threshold; generating an overvoltage detection signal on a voltage sense value and a threshold; and determining if there is a fault condition based on the speed level, the switch fault signal, the overcurrent detection signal, and the overvoltage detection signal.
20. The method of claim 19, further comprising: determining a fault condition type based on the speed level, the switch fault signal, the overcurrent detection signal, and the overvoltage detection signal; and adjusting the traction inverter protection signal based on the fault condition type.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0007] For a detailed description of various examples, reference will now be made to the accompanying drawings in which:
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014] The same reference number is used in the drawings for the same or similar (either by function and/or structure) features.
DETAILED DESCRIPTION
[0015] In some example embodiments, a microcontroller includes traction inverter protection. The microcontroller is, for example, an integrated circuit (IC) included with an electric vehicle or other system with a motor controlled by a traction inverter. During normal operations, the microcontroller is configured to provide pulse-width modulation (PWM) control signals to a traction inverter based on motor position information, a target speed relative to a current speed, and/or other control schemes. In addition, the microcontroller is configured to detect different fault conditions for the traction inverter. In response to the different fault conditions, the microcontroller may turn switches of the traction inverter on or off in accordance with a predetermined program or state machine. By adding traction inverter protection to the microcontroller, the cost and latency of traction inverter protection is reduced compared to conventional approaches (see e.g.,
[0016]
[0017] In the example of
[0018] The microcontroller 202 also includes system peripherals 208. Without limitation, examples of the system peripherals 208 include: external memory interfaces; direct memory access (DMA) controllers; general purpose input/output (GPIO) ports; comparators (CMPSS); and/or other peripheral support components. In some example embodiments, the system peripherals 208 are configured to: generate an OVP signal based on a received voltage sense value and a threshold; generate an OCP signal based on a received current sense value and a threshold; and generate a switch fault signal based on a received switch fault indicator.
[0019] In the example of
[0020] In the example of
[0021] The microcontroller 202 additionally includes configurable logic (CL), referred to as a configurable logic block (CLB) 220 in
[0022] In some example embodiments, the traction inverter protection manager 222 is a state machine implemented in hardware, firmware, and/or software of the CLB 220. The CLB 220 may be, for example, a collection of configurable blocks that can be interconnected using software to implement custom digital logic functions. In some example embodiments, the CLB 220 is able to enhance existing peripherals through a set of crossbar interconnections, which provide a high level of connectivity to existing control peripherals such as enhanced pulse width modulator (ePWM) modules, eCAP modules, and eQEP modules. The crossbars also allow the CLB 220 to be connected to external GPIO pins. In this manner, the CLB 220 can be configured to interact with device peripherals to perform small logical functions such as simple PWM generators, or to implement custom serial data exchange protocols.
[0023] In operation, the CLB 220 with the traction inverter protection manager 222 is configured to receive the PWM control signals, the speed level, the OCP signal, the OVP signal, and the switch fault signal. Based on the PWM control signals, the speed level, the OCP signal, the OVP signal, and the switch fault signal, the CLB 220 with the traction inverter protection manager 222 is configured to: detect whether there is a fault condition; determine a fault condition type; and provide a related response. If there is no fault condition, the CLB 220 provides the PWM control signals as the control signals for the traction inverter 230. If there is fault condition, the CLB 220 is configured to provide traction inverter protection signals (e.g., low-side on and high-side off control signals; low-side off and high-side on control signals; or low-side off and high-side off control signals) as the control signals to the traction inverter 230. The particular traction inverter protection signals vary depending on the fault condition type as described herein.
[0024]
[0025] More specifically, the microcontroller 202A includes an ePWM subsystem 302 (e.g., part of the control peripherals 218 in
[0026] As shown, the microcontroller 202A additionally includes a GPIO/CMPSS subsystem 306. The GPIO/CMPSS subsystem 306 may be part of the system peripherals 208 of
[0027] In the example of
[0028] In operation, the CLB 220A is configured to provide control signals to a CLB output 364 coupled to the control signal output 366 of the microcontroller 202A. The control signals provided to the traction inverter 230A are based on the PWM control signals and fault condition detection. If no fault condition is detected, the PWM control signals are provided as the control signals to the traction inverter 230A. If there is a fault condition detected, the PWM control signals are not provided to the traction inverter 230A. Instead, traction inverter protection signals (e.g., low-side on and high-side off control signals, low-side off and high-side on control signals, or low-side off and high-side off control signals) are provided as the control signals for the traction inverter 230A. The particular traction inverter protection signals provided to the traction inverter 230A in response to a fault condition depends on the fault condition type, which can be determined using the speed level, the switching fault signal, the OCP signal, and/or the OVP signal.
[0029]
[0030] If the OVP signal is asserted (determination block 406) and there is a low-side switch fault (determination block 418), high-side on and low-side off control signals are provided to the traction inverter at block 420. In some example embodiments, block 420 corresponds to a third fault condition type called high-side ASC (to turn on the high-side switch). In some example embodiments, the determination block 418 may use the switch fault signal to determine whether there is a low-side switch fault. If the OVP signal is not asserted (determination block 406) and the OCP signal is asserted (determination block 416), the high-side off and low-side off control signals are provided at block 410. If the OVP signal is not asserted (determination block 406) and the OCP signal is not asserted (determination block 416), the PWM control signals are provided at block 412.
[0031]
[0032] In the graph 510 of
[0033] In the graph 520 of
[0034] In the graph 530 of
[0035]
[0036] In some example embodiments, detecting if there is a fault condition at block 604 includes: generating a speed level based on a motor position indicator; generating a switch fault signal based on a switch fault indicator; generating an overcurrent detection signal based on a current sense value and a threshold; generating an overvoltage detection signal on a voltage sense value and a threshold; and determining if there is a fault condition based on the speed level, the switch fault signal, the overcurrent detection signal, and the overvoltage detection signal. In some example embodiments, the method 600 also includes determining a fault condition type based on the speed level, the switch fault signal, the overcurrent detection signal, and the overvoltage detection signal; and adjusting the traction inverter protection signal based on the fault condition type.
[0037] In this description, the term “couple” may cover connections, communications, or signal paths that enable a functional relationship consistent with this description. For example, if device A generates a signal to control device B to perform an action: (a) in a first example, device A is coupled to device B by direct connection; or (b) in a second example, device A is coupled to device B through intervening component C if intervening component C does not alter the functional relationship between device A and device B, such that device B is controlled by device A via the control signal generated by device A.
[0038] A device that is “configured to” perform a task or function may be configured (e.g., programmed and/or hardwired) at a time of manufacturing by a manufacturer to perform the function and/or may be configurable (or re-configurable) by a user after manufacturing to perform the function and/or other additional or alternative functions. The configuring may be through firmware and/or software programming of the device, through a construction and/or layout of hardware components and interconnections of the device, or a combination thereof.
[0039] A circuit or device that is described herein as including certain components may instead be adapted to be coupled to those components to form the described circuitry or device. For example, a structure described as including one or more semiconductor elements (such as transistors), one or more passive elements (such as resistors, capacitors, and/or inductors), and/or one or more sources (such as voltage and/or current sources) may instead include only the semiconductor elements within a single physical device (e.g., a semiconductor die and/or integrated circuit (IC) package) and may be adapted to be coupled to at least some of the passive elements and/or the sources to form the described structure either at a time of manufacture or after a time of manufacture, for example, by an end-user and/or a third-party.
[0040] While the use of particular transistors is described herein, other transistors (or equivalent devices) may be used instead. For example, a p-type metal-oxide-silicon field effect transistor (“MOSFET”) may be used in place of an n-type MOSFET with little or no changes to the circuit. Furthermore, other types of transistors may be used (such as bipolar junction transistors (BJTs)).
[0041] Circuits described herein are reconfigurable to include additional or different components to provide functionality at least partially similar to functionality available prior to the component replacement. Components shown as resistors, unless otherwise stated, are generally representative of any one or more elements coupled in series and/or parallel to provide an amount of impedance represented by the resistor shown. For example, a resistor or capacitor shown and described herein as a single component may instead be multiple resistors or capacitors, respectively, coupled in parallel between the same nodes. For example, a resistor or capacitor shown and described herein as a single component may instead be multiple resistors or capacitors, respectively, coupled in series between the same two nodes as the single resistor or capacitor.
[0042] Unless otherwise stated, “about,” “approximately,” or “substantially” preceding a value means+/−10 percent of the stated value. Modifications are possible in the described examples, and other examples are possible within the scope of the claims.