With the increasingly serious urban environmental pollution problem, the control of automobile exhaust is getting more and more attention, and many countries have carried out research on electric vehicles. However, electric vehicles have weaknesses such as short driving range and poor power performance, and the cost is too high. At present, they cannot be put into the market in large quantities. In order to take into account the advantages of traditional fuel vehicles and electric vehicles, research on hybrid vehicles has begun at home and abroad.
Since hybrid vehicles have two sets of drive systems, information exchange and coordination between the drive system and the vehicle control unit (VCU) is particularly important. The CAN (Controller Area Network) bus is the controller area network, which is a serial communication network that effectively supports distributed control or real-time control. It belongs to the field bus category. The structure is simple, the operability is good, and the price is low, so it is widely used in industrial control.
TMS320X24X is a series of chips designed by TI for digital motor control. Compared with the TMS320C240 or TMS320F240 of the same series, the TMS320F241 has the CAN module embedded in addition to the latter's basic functions, so it is very suitable for the control of hybrid vehicle motor drive systems.
1 Main features of TMS320F241
Compared with TMS320X240, TMS320F241 has the following differences in addition to an extra CAN module:
• TMS320X240 has dual 10-bit A / D converters, 16 input channels, and the conversion time is 6 μs; while TMS320F241 has only one 10-bit A / D converter, 8 input channels, and the conversion time is 1 μs.
• There are 3 timers / counters, 4 capture units and 9 PWM outputs (6 Full PWM and 3 Simple PWM) in the event manager of TMS320X240; and only 2 timers / counters, 3 in the event manager of TMS320F241 A capture unit and 6 PWM outputs (6 Full PWM), the counting method of the counter also has two modes of single rising edge and single rising / falling edge.
TMS320F241 has 8K on-chip Flash, no extended RAM interface, debugging is not very convenient. But you can use the same series of TMS320F243EVM board for debugging, and the program can be transplanted to the TMS320F241 chip for almost different modifications.
2 Brushless DC motor control system solution
Figure 1 is a block diagram of the motor system control, using conversion and current double closed-loop control.
The rotor position is detected by the Hall element, which is three overlapping signals with a phase difference of 120 degrees (electrical angle) and a pulse width of 180 degrees (electrical angle). The rotation speed can be obtained from the rotor position, and then the calculated value of the current; and the actual current can be detected by the current sensor, the duty cycle of the PWM signal is adjusted according to the difference between the current given value and the actual value, and the current signal The rotor position triggers the corresponding power switching device, so as to achieve the purpose of controlling the motor speed.
The inverter uses an IPM intelligent power module, which contains power switching devices and drive circuits, as well as detection circuits for process voltage and overcurrent. The switching devices are IGBTs.
Each functional module (including ASR, ACR, PWM, commutation logic and speed calculation) in the motor control strategy is implemented by the TMS320F241 chip.
3 TMS320F241 peripheral design
Figure 2 is the main peripheral wiring diagram of the TMS320F241 chip. The instructions are as follows:
Connect a 5MHz crystal between XTAL1 and XTAL2 to provide the system clock.
The pins CAP1, CAP2, and CAP3 of the three capture units are connected to the output of the Hall element. The rotor position signal is stored in the buffer of the capture unit, and the rotor speed can be obtained after calculation.
In the 8-bit input channel of the A / D converter, 5 channels are used, and the input quantities are DC bus current Idc, voltage Vdc, and motor three-phase currents Iu, Iv, and Iw; the other three channels are grounded through resistance.
The 6 PWM outputs are connected to the control terminals of the six switching devices of the inverter, where U +, V +, W + are connected to the upper bridge arm, and U-, VW- are connected to the lower bridge arm. These six PWM signals control the switching device on and off, which determines the current flow path.
The CAN module pins CANRX and CANTX of the TMS320F241 are connected to the transceiver 82C250 through the optocoupler device 6N137, and the transceiver 82C250 is connected to the CAN bus through the two pins CANH and CANL, thereby achieving communication between the TMS320F241 and the CAN bus. The communication medium uses twisted pair, if the communication distance is within 40m, the maximum transmission rate can reach 1Mbps.
4 CAN programming of TMS320F241
The CAN module of the TMS320F241 is a FullCAN controller that can send and receive standard frames (11-bit identifiers) and extended frames (29-bit identifiers). It contains 6 mailboxes (Mailbox) and 15 different 16-bit registers. These registers are divided into control registers, status registers, interrupt registers and local receive mask registers, and they are mapped to the data address space of DSP from 0x7100h to 0x710Fh. Among the 6 mailboxes, there are two inboxes (numbered 0 and 1), two outboxes (numbered 4 and 5), and two mailboxes (numbered 2 and 3) that can be set as inboxes as needed Box or outbox. Each mailbox contains three parts: identifier, message length, remote frame transmission request, and data. The length of the data sent or received is 8 bytes. The address space occupied by 6 mailboxes is 0x7200h ~ 0x722Fh.
To enable the TMS320F241 chip to send and receive information correctly, the CAN module must be initialized first. The bit transmission time of each node on the CAN bus is programmable (by setting the baud rate), but it must be the same. When a node receives a frame, the receiver must be synchronized with the transmitter. The steps to initialize the mailbox are as follows:
(1) Disable mailbox
CANMDER = 00000000000000000000b
(2) Setting change data request
CANMCR = 0000000100000000b (bit8CDR = 1)
(3) Change the identifier, control word and data of the mailbox (only the outbox can change the data)
(4) Back to normal mode
CANMCR = 00000000000000000000b
(5) Enable mailbox (ME = 1)
After the CAN module is initialized, it can send and receive data information after correct configuration.
Figures 3 and 4 are flow charts of CAN module transmitting and receiving information, respectively.
As can be seen from the above introduction, TMS320F241 is a DSP chip dedicated to motor control and embedded with CAN module. It can easily realize the speed control of the permanent magnet brushless DC motor of the hybrid electric vehicle (HEV). At the same time, the embedded CAN module can be used to complete the hybrid vehicle through the CAN bus (protocol specification CAN2.0) The control unit (VCU) communicates. Therefore, it is very suitable for the control system of the permanent magnet brushless DC motor of the hybrid electric vehicle.
ZhenHuan`s line of Battery Charger range in output power from 6 W to 100 W features high energy efficiency Level VI and reliability, with quick charging function for 18650 batteries and li-ion batteries, etc. Our desktop versions ac to dc power charger adopts constant voltage and constant current mode, all available with 2 colors LED indicator for charging status(Green and Red light). ZhenHuan`s power charger adapters solutions also includes class I and class II installations, equipped with IEC320-C8, IEC320-C6 and IEC320-C14 three standard AC inlet options.
Battery Charger Phones,Battery Charger Motorcycle,Battery Charger 42V,Best Battery Charger,Golf Car Battery Charger,Cell Phone Battery Charger
Shenzhenshi Zhenhuan Electronic Co Ltd , https://www.szzhpower.com