CN109917697A - The channel CAN expanded circuit and its control method based on SPI interface - Google Patents

The channel CAN expanded circuit and its control method based on SPI interface Download PDF

Info

Publication number
CN109917697A
CN109917697A CN201711336236.2A CN201711336236A CN109917697A CN 109917697 A CN109917697 A CN 109917697A CN 201711336236 A CN201711336236 A CN 201711336236A CN 109917697 A CN109917697 A CN 109917697A
Authority
CN
China
Prior art keywords
feet
spi
interface
chip
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711336236.2A
Other languages
Chinese (zh)
Inventor
海建伟
陈亮
康亮
赵小华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEJIANG WANMA NEW ENERGY CO Ltd
Original Assignee
ZHEJIANG WANMA NEW ENERGY CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHEJIANG WANMA NEW ENERGY CO Ltd filed Critical ZHEJIANG WANMA NEW ENERGY CO Ltd
Priority to CN201711336236.2A priority Critical patent/CN109917697A/en
Publication of CN109917697A publication Critical patent/CN109917697A/en
Pending legal-status Critical Current

Links

Abstract

The present invention relates to a kind of channel CAN expanded circuit and its control method based on SPI interface.The channel CAN expanded circuit based on SPI interface includes that SPI turns CAN interface unit and CAN level conversion unit, SPI turns the input terminal of CAN interface unit and is connected with the SPI interface of main control MCU, the output end that SPI turns CAN interface unit is connected with the input terminal of CAN level conversion unit, and the output end output CAN bus signal of CAN level conversion unit is connected with need module to be controlled.Control method are as follows: main control MCU exports control signal by SPI interface and turns CAN interface unit to SPI, turn CAN interface unit by SPI and will control signal to be converted to CAN interface signal and be conveyed to CAN level conversion unit, CAN level conversion unit export CAN bus signal to need to module to be controlled by processing.The present invention is by being converted to CAN interface for the SPI interface of MCU, to extend the channel CAN of MCU, so that the CAN number of channels of MCU is able to satisfy the needs of charging pile charge control, improves flexibility and reliability that charging pile uses.

Description

The channel CAN expanded circuit and its control method based on SPI interface
Technical field
The present invention relates to a kind of charging pile more particularly to a kind of channel CAN extensions based on SPI interface for charging pile Circuit and its control method.
Background technique
With becoming increasingly popular for electric car, electric automobile charging pile using more and more extensive, in order to meet diversification User demand, electric automobile charging pile mostly uses TCU (charging control unit)+CCU (charging control unit)+PCU (power control Unit processed) structure, i.e. have the structure of PCU on a machine multiple gun, which can easily meet single rifle, multiple gun charging pile Demand.
In the charging pile scheme of single rifle, CCU passes through CAN interface and vehicle by CAN interface and TCU interactive information, CCU Interaction charge information, CCU pass through CAN interface and charging module interactive information, but in the prior art, the MCU mono- of CCU controller As only the 2 road channels CAN, therefore be unable to satisfy needed in charging pile there are three or three or more the channels CAN demand.
Summary of the invention
In order to solve the above-mentioned technical problem the present invention, provides a kind of channel the CAN expanded circuit based on SPI interface and its control The SPI interface of MCU can be converted to CAN interface by method processed, so that the channel CAN of MCU is extended, so that the channel CAN of MCU Quantity is able to satisfy the needs of charging pile charge control.
Above-mentioned technical problem of the invention is mainly to be addressed by following technical proposals: of the invention based on SPI The channel the CAN expanded circuit of interface, including SPI turn CAN interface unit and CAN level conversion unit, and SPI turns CAN interface unit Input terminal be connected with the SPI interface of main control MCU, SPI turn CAN interface unit output end and CAN level conversion unit it is defeated Enter end to be connected, the output end output CAN bus signal of CAN level conversion unit is connected with need module to be controlled.Main control MCU SPI interface output control signal, CAN interface unit is converted to by SPI interface will control signal and be converted to CAN signal, then by CAN level conversion unit is handled, and final output CAN bus signal, which is given, needs module to be controlled.The technical program can incite somebody to action The SPI interface of MCU is converted to CAN interface to extend the channel CAN of MCU, so that the CAN number of channels of MCU is able to satisfy charging The needs of stake charge control.
Preferably, it includes CAN control chip U1 that the SPI, which turns CAN interface unit, CAN controls chip U1 and uses MCP2515 chip;CAN controls 18 feet of chip U1, connects+5V voltage all the way, and another way is grounded through capacitor C1, and there are also all the way through electricity Resistance R1 is connected with 17 feet of CAN control chip U1, and CAN controls 12 feet~16 feet of chip U1 and the SPI interface phase of main control MCU Even, CAN controls the 9 feet ground connection of chip U1, is connected with crystal oscillator Y1 between 7 feet and 8 feet of CAN control chip U1, and CAN is controlled 7 feet of chip U1,8 feet are grounded through capacitor C2, capacitor C4 respectively, CAN control chip U1 1 foot and 2 feet respectively with the CAN The input terminal of level conversion unit is connected.Circuit is simple, and it is convenient to realize, high reliablity.
Preferably, the CAN level conversion unit includes CAN electrical level transferring chip U2, CAN electrical level transferring chip U2 Using TJA1051T chip;1 foot, 4 feet of CAN electrical level transferring chip U2 are connected with 1 foot, 2 feet of CAN control chip U1 respectively, 2 feet of CAN electrical level transferring chip U2 and 8 feet ground connection, 3 feet of CAN electrical level transferring chip U2 connect+5V voltage, CAN level conversion core The series circuit of switch S1 and resistance R2,6 feet, 7 feet point of CAN electrical level transferring chip U2 are connected between 6 feet and 7 feet of piece U2 Not Shu Chu CANH signal, CANL signal with need module to be controlled to be connected.Switch S1 can control whether load resistance R2 connects Enter CAN bus, is convenient for networking.Circuit is simple, and it is convenient to realize, high reliablity.
The control method of the channel CAN expanded circuit based on SPI interface of the invention are as follows: the main control MCU passes through SPI Interface exports control signal and turns CAN interface unit to the SPI, turns CAN interface unit by SPI and is converted to signal is controlled CAN interface signal is simultaneously conveyed to the CAN level conversion unit, handles through CAN level conversion unit, it is total finally to export CAN Line signal, which is given, needs module to be controlled.The SPI interface of MCU can be converted to CAN interface to extend MCU's by the technical program The channel CAN, so that the CAN number of channels of MCU is able to satisfy the needs of charging pile charge control.
The beneficial effects of the present invention are: by the way that the SPI interface of MCU is converted to CAN interface, so that the CAN for extending MCU is logical Flexibility that charging pile uses is improved and can so that the CAN number of channels of MCU is able to satisfy the needs of charging pile charge control in road By property.
Detailed description of the invention
Fig. 1 is a kind of circuit theory connection block diagram of the invention.
Fig. 2 is a kind of circuit diagram of the invention.
1.SPI turns CAN interface unit in figure, and 2.CAN level conversion unit, 3. main control MCUs, 4. need mould to be controlled Block.
Specific embodiment
Below with reference to the embodiments and with reference to the accompanying drawing the technical solutions of the present invention will be further described.
Embodiment: the channel the CAN expanded circuit based on SPI interface of the present embodiment, as shown in Figure 1, including that SPI turns CAN Interface unit 1 and CAN level conversion unit 2, the input terminal that SPI turns CAN interface unit are connected with the SPI interface of main control MCU 3, The output end that SPI turns CAN interface unit is connected with the input terminal of CAN level conversion unit, the output end of CAN level conversion unit Output CAN bus signal is connected with need module 4 to be controlled.
As shown in Fig. 2, it includes CAN control chip U1 that SPI, which turns CAN interface unit, CAN controls chip U1 and uses MCP2515 Chip;CAN level conversion unit includes CAN electrical level transferring chip U2, CAN electrical level transferring chip U2 using TJA1051T chip. CAN controls 18 feet of chip U1, connects+5V voltage all the way, and another way is grounded through capacitor C1, and there are also control all the way through resistance R1 and CAN 17 feet of coremaking piece U1 are connected, and 12 feet~16 feet of CAN control chip U1 are connected with the SPI interface of main control MCU, and CAN controls core 9 feet of piece U1 are grounded, and are connected with crystal oscillator Y1 between 7 feet and 8 feet of CAN control chip U1, and 7 feet of CAN control chip U1, 8 feet are grounded through capacitor C2, capacitor C4 respectively, and 1 foot, 4 feet of CAN electrical level transferring chip U2 control the 1 of chip U1 with CAN respectively Foot, 2 feet are connected, and 2 feet of CAN electrical level transferring chip U2 and 8 feet ground connection, 3 feet of CAN electrical level transferring chip U2 connect+5V voltage, The series circuit of switch S1 and resistance R2, CAN electrical level transferring chip are connected between 6 feet and 7 feet of CAN electrical level transferring chip U2 6 feet, 7 feet of U2 export CANH signal, CANL signal formation CAN bus signal respectively and module to be controlled are needed to be connected.
The control method of the above-mentioned channel the CAN expanded circuit based on SPI interface are as follows: main control MCU is exported by SPI interface and controlled Signal processed turns CAN interface unit to SPI, turns CAN interface unit by SPI and will control signal to be converted to CAN interface signal and convey CAN level conversion unit is given, is handled through CAN level conversion unit, CAN bus signal is finally exported and gives need mould to be controlled Block.
The present invention is by being converted to CAN interface for the SPI interface of MCU, so that the channel CAN of MCU is extended, so that MCU CAN number of channels is able to satisfy the needs of charging pile charge control, improves flexibility and reliability that charging pile uses.

Claims (4)

1. a kind of channel CAN expanded circuit based on SPI interface, it is characterised in that turn CAN interface unit and CAN electricity including SPI Flat converting unit, SPI turn the input terminal of CAN interface unit and are connected with the SPI interface of main control MCU, and SPI turns CAN interface unit Output end is connected with the input terminal of CAN level conversion unit, the output end of CAN level conversion unit output CAN bus signal and Module to be controlled is needed to be connected.
2. the channel the CAN expanded circuit according to claim 1 based on SPI interface, it is characterised in that the SPI turns CAN interface unit includes CAN control chip U1, and CAN controls chip U1 and uses MCP2515 chip;CAN controls the 18 of chip U1 Foot connects+5V voltage all the way, and another way is grounded through capacitor C1, and there are also the 17 foot phases all the way through resistance R1 and CAN control chip U1 Even, 12 feet~16 feet of CAN control chip U1 are connected with the SPI interface of main control MCU, and CAN controls the 9 feet ground connection of chip U1, CAN Control and be connected with crystal oscillator Y1 between 7 feet and 8 feet of chip U1, and 7 feet of CAN control chip U1,8 feet respectively through capacitor C2, Capacitor C4 ground connection, 1 foot and 2 feet of CAN control chip U1 are connected with the input terminal of the CAN level conversion unit respectively.
3. the channel the CAN expanded circuit according to claim 2 based on SPI interface, it is characterised in that the CAN level Converting unit includes CAN electrical level transferring chip U2, CAN electrical level transferring chip U2 using TJA1051T chip;CAN level conversion core 1 foot, 4 feet of piece U2 are connected with 1 foot, 2 feet of CAN control chip U1 respectively, and 2 feet and 8 feet of CAN electrical level transferring chip U2 connect Ground, 3 feet of CAN electrical level transferring chip U2 connect+5V voltage, are connected with switch between 6 feet and 7 feet of CAN electrical level transferring chip U2 The series circuit of S1 and resistance R2,6 feet, 7 feet of CAN electrical level transferring chip U2 export CANH signal, CANL signal respectively and need Module to be controlled is connected.
4. a kind of control method of the channel the CAN expanded circuit based on SPI interface as described in claim 1, it is characterised in that The main control MCU exports control signal by SPI interface and turns CAN interface unit to the SPI, turns CAN interface list by SPI Member will control signal and be converted to CAN interface signal and be conveyed to the CAN level conversion unit, through CAN level conversion unit Processing finally exports CAN bus signal and gives need module to be controlled.
CN201711336236.2A 2017-12-13 2017-12-13 The channel CAN expanded circuit and its control method based on SPI interface Pending CN109917697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711336236.2A CN109917697A (en) 2017-12-13 2017-12-13 The channel CAN expanded circuit and its control method based on SPI interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711336236.2A CN109917697A (en) 2017-12-13 2017-12-13 The channel CAN expanded circuit and its control method based on SPI interface

Publications (1)

Publication Number Publication Date
CN109917697A true CN109917697A (en) 2019-06-21

Family

ID=66959391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711336236.2A Pending CN109917697A (en) 2017-12-13 2017-12-13 The channel CAN expanded circuit and its control method based on SPI interface

Country Status (1)

Country Link
CN (1) CN109917697A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110435472A (en) * 2019-07-23 2019-11-12 深圳市奇辉电气有限公司 DC charging controller
CN115102802A (en) * 2022-05-17 2022-09-23 珠海科创电力电子有限公司 Multi-channel buffer simulation expansion CAN communication strategy

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201035402Y (en) * 2007-02-06 2008-03-12 江望 CAN bus controlled power supply switch
CN101734246A (en) * 2008-11-14 2010-06-16 南车株洲电力机车有限公司 Synchronous control communication device for brake system of electric locomotive
US20100281205A1 (en) * 2009-04-30 2010-11-04 CeraMicro Technology Corporation Micro Control Module For Universal Connection And Universal Connection Method Thereof
CN102722127A (en) * 2012-07-13 2012-10-10 江苏三志电器有限公司 Digital combined instrument of engineering machinery
CN203204387U (en) * 2012-12-18 2013-09-18 沈阳中科正方新能源技术有限公司 Vehicle-mounted information terminal based on Beidou communication
CN103883405A (en) * 2014-03-31 2014-06-25 长城汽车股份有限公司 Control system of direct injection engine in gasoline cylinder of automobile and automobile
CN204241141U (en) * 2014-11-13 2015-04-01 上海采埃孚转向系统有限公司 A kind of digital quantity test circuit for torque sensor
CN105281433A (en) * 2015-09-17 2016-01-27 国家电网公司 Distribution terminal communication system
CN205453185U (en) * 2015-12-31 2016-08-10 北京比亚迪模具有限公司 Simulated acquisition ware

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201035402Y (en) * 2007-02-06 2008-03-12 江望 CAN bus controlled power supply switch
CN101734246A (en) * 2008-11-14 2010-06-16 南车株洲电力机车有限公司 Synchronous control communication device for brake system of electric locomotive
US20100281205A1 (en) * 2009-04-30 2010-11-04 CeraMicro Technology Corporation Micro Control Module For Universal Connection And Universal Connection Method Thereof
CN102722127A (en) * 2012-07-13 2012-10-10 江苏三志电器有限公司 Digital combined instrument of engineering machinery
CN203204387U (en) * 2012-12-18 2013-09-18 沈阳中科正方新能源技术有限公司 Vehicle-mounted information terminal based on Beidou communication
CN103883405A (en) * 2014-03-31 2014-06-25 长城汽车股份有限公司 Control system of direct injection engine in gasoline cylinder of automobile and automobile
CN204241141U (en) * 2014-11-13 2015-04-01 上海采埃孚转向系统有限公司 A kind of digital quantity test circuit for torque sensor
CN105281433A (en) * 2015-09-17 2016-01-27 国家电网公司 Distribution terminal communication system
CN205453185U (en) * 2015-12-31 2016-08-10 北京比亚迪模具有限公司 Simulated acquisition ware

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110435472A (en) * 2019-07-23 2019-11-12 深圳市奇辉电气有限公司 DC charging controller
CN115102802A (en) * 2022-05-17 2022-09-23 珠海科创电力电子有限公司 Multi-channel buffer simulation expansion CAN communication strategy

Similar Documents

Publication Publication Date Title
CN101770685B (en) Vertical bus circuit, a battery management system and a signal transmission method
CN106463994A (en) Power supply system for charging electric vehicles
CN105071469B (en) A kind of solar charging circuit
CN107303825A (en) For the charging system of electric vehicle and for the method to electric vehicle charging
CN106114270B (en) A kind of charging system and charge control method
CN104253461A (en) Charging equipment and power supply method thereof
CN211107009U (en) Vehicle-mounted charger integrating high-voltage DC-DC
CN109917697A (en) The channel CAN expanded circuit and its control method based on SPI interface
CN105577391A (en) Power supply device based on differential communication interface and method and system thereof
CN105515223B (en) The radio transmitting method and circuit of a kind of high-power power
CN112248841B (en) Electric automobile charging plug supporting ordered charging and method for realizing ordered charging
CN203727307U (en) Battery electric vehicle control module
CN103066634A (en) Electronic control unit
AU2009311067B2 (en) Master-slave mode direct current carrier communication system
CN203193348U (en) Charger and charging system
CN206807294U (en) Two-way DC DC converters and charger
CN201369720Y (en) Master-slave-type DC carrier communication system
CN103914014A (en) System for self-adaptively recognizing and collecting automobile switch signals
CN110203097B (en) Charging pile
CN211493698U (en) Charging pile
CN209683468U (en) Integrated on-board circuit for charging machine and integrated on-board charger
CN203825408U (en) Automotive switching signal adaptive identification and acquisition system
CN208904734U (en) Integrated on-board circuit for charging machine and integrated on-board charger
CN113748043A (en) Charger, slow starting method, electric vehicle and charging system
CN103359106A (en) New-energy hybrid electric vehicle controller and analog signal output method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190621

RJ01 Rejection of invention patent application after publication