Control circuit with burn port multiplexed on IO port and electric vehicle controller
By multiplexing the programming data and clock ports onto the I/O port in the electric vehicle controller, the space occupation and design difficulty caused by the independent programming interface are solved, and cost control and structural design flexibility are improved.
Patent Information
- Application Number
- CN202423228596.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2034-12-26
AI Technical Summary
The existing electric vehicle controllers, while retaining the programming function, have increased the space occupied by the PCB board, manufacturing costs, and the difficulty of pin socket structure design by adding an independent programming interface.
The programming data and clock ports are multiplexed onto the I/O port, allowing it to switch between programming mode and normal mode, eliminating the need for a separate programming interface and utilizing the existing I/O function pins of the connector to achieve the programming function.
It reduces manufacturing costs and PCB hardware design complexity, reduces space occupation, and improves the flexibility and cost-effectiveness of the pin socket structure.
Smart Images

Figure CN223501319U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of electric vehicle controller technology, and in particular to a control circuit and an electric vehicle controller that uses a programming port multiplexed on an I / O port. Background Technology
[0002] In existing electric vehicle controllers, those retaining the programming function typically have a separate programming interface added to program the controller software. However, when adding a dedicated programming interface for programming, such as... Figure 1 This requires adding pins for programming to the controller's pin header or adding additional pin headers, which increases the space occupied on the PCB board and leads to increased manufacturing costs. At the same time, it also increases the difficulty of PCB hardware and pin header structure design, greatly reducing the flexibility and possibilities of pin header structure design.
[0003] Therefore, there is a need for a controller technology solution that can retain the programming function while reducing manufacturing costs and the design complexity of PCB hardware and pin socket structures. Utility Model Content
[0004] To solve the above-mentioned technical problems, this utility model provides a control circuit and an electric vehicle controller that reuses the programming port on the I / O port.
[0005] This utility model provides a control circuit that uses a programming port multiplexed on an I / O port, comprising: a microcontroller, a pin header, a first resistor, a second resistor, a third resistor, and a fourth resistor;
[0006] The first IO chip terminal of the microcontroller is electrically connected to the first IO pin terminal of the pin socket through the first resistor;
[0007] The second I / O chip terminal of the microcontroller is electrically connected to the second I / O pin terminal of the pin socket through the second resistor;
[0008] The microcontroller's data programming terminal is electrically connected to the first IO pin socket terminal through the third resistor;
[0009] The microcontroller's programming clock terminal is electrically connected to the second IO pin socket terminal through the fourth resistor;
[0010] When the microcontroller is in programming mode, the first IO pin socket and the second IO pin socket serve as programming pins.
[0011] When the microcontroller is in normal operating mode, the first IO pin socket and the second IO pin socket serve as IO function pins.
[0012] In one possible implementation, the programming data terminal is the SWDIO chip terminal, and the programming clock terminal is the SWCLK chip terminal.
[0013] In one possible implementation, the first I / O chip is electrically connected to a first capacitor.
[0014] In one possible implementation, the second IO chip is electrically connected to a second capacitor.
[0015] In one possible implementation, the second IO pin socket is electrically connected to a pull-up resistor.
[0016] In one possible implementation, the first IO chip terminal and the second IO chip terminal are analog input pins.
[0017] This utility model also provides an electric vehicle controller, including a printed circuit board and the control circuit as described above;
[0018] The control circuit is located on the printed circuit board.
[0019] The technical solution provided by this utility model has at least the following beneficial effects:
[0020] By electrically connecting the microcontroller's programming data pin to the first IO pin socket and the microcontroller's programming clock pin to the second IO pin socket, the first and second IO pin sockets serve as programming pins when the microcontroller is in programming mode, and as IO function pins when the microcontroller is in normal operating mode. This retains the programming function while avoiding the need for a separate programming interface, reducing unnecessary space occupation, manufacturing costs, and the design complexity of the PCB hardware and pin socket structure. Attached Figure Description
[0021] Figure 1 A schematic diagram of the programming method in the prior art.
[0022] Figure 2 A first schematic diagram of a control circuit that multiplexes the programming port onto the I / O port, as provided in an embodiment of this utility model;
[0023] Figure 3 A second schematic diagram of a control circuit that multiplexes the programming port onto the I / O port, as provided in an embodiment of this utility model;
[0024] Figure 4 A circuit diagram of a control circuit that multiplexes a programming port onto an I / O port, as provided in an embodiment of this utility model.
[0025] Figure 5 A schematic diagram of an electric vehicle controller provided in an embodiment of this utility model;
[0026] In the attached diagram, 10 is the printed circuit board. Detailed Implementation
[0027] To enhance understanding of this utility model, it will be described in further detail below with reference to the accompanying drawings and embodiments. These embodiments are only used to explain this utility model and do not limit the scope of protection of this utility model.
[0028] Please refer to Figures 2 to 4 The present invention provides a control circuit for multiplexing a programming port on an I / O port, comprising: a microcontroller U1, a pin header S1, a first resistor R1, a second resistor R2, a third resistor R3, and a fourth resistor R4.
[0029] The first IO chip terminal IO1 of the microcontroller U1 is electrically connected to the first IO pin terminal IO1_O of the pin socket S1 through the first resistor R1;
[0030] The second IO chip terminal IO2 of the microcontroller U1 is electrically connected to the second IO pin socket terminal IO2_O of the pin socket S1 through the second resistor R2;
[0031] The microcontroller U1's data programming terminal is electrically connected to the first IO pin socket terminal IO1_O through the third resistor R3;
[0032] The programming clock terminal of the microcontroller U1 is electrically connected to the second IO pin socket terminal IO2_O through the fourth resistor R4;
[0033] When the microcontroller U1 is in the programming mode, the first IO pin socket IO1_O and the second IO pin socket IO2_O are used as programming pins.
[0034] When the microcontroller U1 is in normal working mode, the first IO pin socket IO1_O and the second IO pin socket IO2_O are used as IO function pins.
[0035] In this embodiment, the microcontroller U1 can be a standard model used in electric vehicle controllers. The model of the pin header S1 is selected according to the actual implementation requirements. The first resistor R1, the second resistor R2, the third resistor R3, and the fourth resistor R4 are standard resistors. In specific implementations, the first resistor R1 and the second resistor R2 are used as current-limiting resistors, and both of their resistance values can be 2.2KΩ. The third resistor R3 is used to reduce the influence of interference signals, and its resistance value can be 100Ω. The fourth resistor R4 is used to reduce the influence of interference signals, and its resistance value can be 1KΩ. It should be noted that one objective of this utility model is to provide a new programming method for electric vehicle controllers. This method, for the first time, eliminates the need for a dedicated programming socket. Instead, it reuses the programming pins (such as SWCLK and SWDIO) of the chip (e.g., microcontroller U1) on the controller's I / O function pins, drawing them out from the existing functional socket S1. Software programming is then performed on the existing socket S1, eliminating the need for a separate programming socket, reducing manufacturing costs, minimizing space requirements on the PCB board and socket, and simplifying the design of the hardware PCB board and socket structure, making the socket structure design more flexible. The hardware circuit design concept of this utility model is as follows: when designing the hardware circuit, the chip programming port and the functional I / O port are reused at the socket. That is, the same socket port can be used to implement the electric vehicle's peripheral functions, or to perform software programming when the controller is offline.
[0036] In one possible implementation, such as Figure 3 The data input terminal is the SWDIO chip terminal, and the clock input terminal is the SWCLK chip terminal.
[0037] In this embodiment, the SWDIO chip and the SWCLK chip together form the SWD interface, which can be used for debugging and programming of the microcontroller U1.
[0038] In one possible implementation, such as Figure 4 The first IO chip terminal IO1 is electrically connected to a first capacitor C1.
[0039] In this embodiment, the first capacitor C1 is used as a filter capacitor and can be a conventional capacitor with a capacitance of 472pF.
[0040] In one possible implementation, the second IO chip terminal IO2 is electrically connected to a second capacitor C2.
[0041] In this embodiment, the second capacitor C2 is used as a filter capacitor and can be a conventional capacitor with a capacitance of 472pF.
[0042] In one possible implementation, the second IO socket terminal IO2_O is electrically connected to a pull-up resistor R5.
[0043] In this embodiment, the pull-up resistor R5 is a conventional resistor. In specific implementation, the resistance value of the pull-up resistor R5 can be 10KΩ, with one end electrically connected to the second IO pin socket IO2_O, and the other end connected to a 5V power supply.
[0044] In one possible implementation, the first IO chip terminal IO1 and the second IO chip terminal IO2 are analog input pins.
[0045] Please refer to Figure 5 The present invention also provides an electric vehicle controller, including a printed circuit board 10 and a control circuit as described above;
[0046] The control circuit is located on the printed circuit board 10.
[0047] In this embodiment, the printed circuit board 10 can be a conventional PCB board, which can be single-layer or multi-layer. Fixing holes can also be formed on the printed circuit board 10, and the specific number of fixing holes can be determined according to implementation needs. It should be noted that, in the hardware circuit design of the technical solution provided by this utility model, two wires are led out from one I / O type connector S1 of the controller to the programming pins (e.g., SWCLK and SWDIO) and IO function pins of the chip (i.e., the microcontroller U1). The connector S1 can be used to implement the peripheral functions of the electric vehicle and also for software programming. The software programming operation is performed when the controller is offline. After the programming operation is completed, the programming pin connected to the connector S1 no longer works and can be used as a normal I / O port to implement the peripheral functions of the electric vehicle without function switching, without affecting the IO function pins corresponding to the programming pins or the chip as a whole.
[0048] The technical solution provided by this utility model can reduce unnecessary space occupation of PCB boards and pin sockets, reduce the difficulty of PCB hardware and pin socket structure design; achieve excellent cost control and improve the cost performance of controllers; and make the design of pin socket structure components more flexible and have greater possibilities.
[0049] The above embodiments should not limit the present invention in any way. All technical solutions obtained by equivalent substitution or equivalent conversion fall within the protection scope of the present invention.
Claims
1. A control circuit that multiplexes a programming port onto an I / O port, characterized in that, include: Microcontroller, pin header, first resistor, second resistor, third resistor, fourth resistor; The first IO chip terminal of the microcontroller is electrically connected to the first IO pin terminal of the pin socket through the first resistor; The second I / O chip terminal of the microcontroller is electrically connected to the second I / O pin socket terminal of the pin socket through the second resistor; The microcontroller's data programming terminal is electrically connected to the first IO pin socket terminal through the third resistor; The microcontroller's programming clock terminal is electrically connected to the second IO pin socket terminal through the fourth resistor; When the microcontroller is in programming mode, the first IO pin socket and the second IO pin socket serve as programming pins. When the microcontroller is in normal operating mode, the first IO pin socket and the second IO pin socket serve as IO function pins.
2. The control circuit according to claim 1, characterized in that, The data input terminal is the SWDIO chip terminal, and the clock input terminal is the SWCLK chip terminal.
3. The control circuit according to claim 1, characterized in that, The first I / O chip is electrically connected to a first capacitor.
4. The control circuit according to claim 1, characterized in that, The second IO chip is electrically connected to a second capacitor.
5. The control circuit according to claim 1, characterized in that, The second IO pin socket is electrically connected to a pull-up resistor.
6. The control circuit according to claim 1, characterized in that, The first and second I / O chip terminals are analog input pins.
7. An electric vehicle controller, characterized in that, Includes a printed circuit board and a control circuit as described in any one of claims 1 to 6; The control circuit is located on the printed circuit board.