Research on communication monitoring system of parallel inverter power supply based on CAN bus

Publisher:创意梦者Latest update time:2010-11-25 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The modular parallel operation of inverter power supplies can greatly improve the flexibility of the system and break the limitation of inverter power levels. Users can combine the power of the system according to their needs. At the same time, it is easy to realize redundant design, so it has the advantages of high reliability and easy high power. The research on communication monitoring technology of parallel inverter power supplies is a problem that must be solved in the process of AC power supply system from traditional centralized power supply to distributed power supply and even intelligent power supply system power supply mode [1]. This paper introduces a parallel inverter power supply communication monitoring system based on CAN field bus. The system makes full use of the internal resources of TI's TMS320LF2407A DSP chip, obtains and analyzes the field control data from each parallel module through the CAN bus, responds to the strong real-time operation on the field, and realizes the scheduling and monitoring of the module work. It has the advantages of simple structure, convenient expansion and high reliability.

1 System composition

1.1 System network structure

The system composition is shown in Figure 1. The system consists of a monitoring host, a parallel power module and a CAN bus. The inverter power module is mainly composed of a PWM inverter, a DSP controller, signal sampling and load current sharing, and communication control. TMS320LF2407A (DSP) is selected as the control core. DSP controls the output PWM pulse according to the difference between the feedback voltage and current value and the set value, drives the inverter bridge power switch, and outputs a sinusoidal voltage with adjustable frequency, amplitude, and phase. The CAN controller embedded in the LF2407A receives commands from the CAN bus to control the parallel inverter power module.

The characteristic of this topology is that multiple network communication nodes share one transmission line, which not only has high channel utilization, but also has simple connection, low cost and high system reliability. Information transmission adopts CAN communication protocol and the transmission medium adopts twisted pair. If the anti-interference ability of the system needs to be further improved, photoelectric isolation and other measures can be added between the controller and the transmission medium.

1.2 Main hardware of the system

The hardware module circuit is shown in Figure 2. Since the LF2407A chip itself contains an embedded CAN controller, the hardware design is relatively simple, and only one transceiver SN65HVD232D is needed to realize the interface between this node and the bus.

SN65HVD232D is an interface chip for CAN protocol controller and physical bus of TI, which complies with ISO11898 standard. It provides differential transmission capability for the bus and differential reception capability for the CAN controller. A 120Ω matching resistor is added to the terminal to ensure the anti-interference capability and reliability of data communication.

2 Software Design

2.1 Baud rate setting programming

The transmission rate of the CAN bus is related to the maximum distance between two nodes. Table 1 shows the relationship between the maximum distance between any two nodes in the CAN bus system and the bit rate. The table also shows the values ​​of the bit timer configuration registers BCR2 and BCR1 of the LF2407A. The setting of these values ​​is related to the main clock frequency of the LF2407A. Generally, the bit rate can be calculated according to the following formula:

Baud rate = ICLK/[(BRP+1)×bitTime] (1)

Among them, ICLK is the DSP system frequency, and BRP is determined by the bit timer configuration register BCR2.

bitTime=(TSEG1+1)+(TSEG2+1)+1 (2)

TSEG1 and TSEG2 are determined by the bit timer configuration register BCR1.

2.2 Frame Structure Design

According to the CAN2.0 specification, the message transmitted on the CAN bus consists of 3 to 11 bytes, including 3 bytes of control bytes and 0 to 8 bytes of data bytes.

A valid CAN data frame consists of a frame start, arbitration field, control field, data field, check field, response field, and frame end. The CAN controller of TMS320LF2407A supports two different frame formats: standard frame and extended frame. The main difference between them is the different arbitration field formats. The arbitration field of the standard frame consists of an 11-bit identifier and a remote transmission request bit RTR; the arbitration field of the extended frame consists of a 29-bit identifier and a substitute remote request bit SRR bit, a flag bit, and a remote transmission request bit RTR, as shown in Figure 3.

The identifier is the name of the message and is first sent to the bus during the arbitration process. It is used in the receiver's acceptance judgment and in the arbitration process to determine access priority.

The remote transmission request bit (RTR) is used to determine whether to send a data frame or a remote frame. When RTR is high, the CAN controller sends a remote frame; when it is low, it sends a data frame.

The data length code (DLC) is used to determine the number of data bytes to be sent per frame, up to 8 bytes.

The control command indicates the meaning of this frame. The meaning of the control command word in this article is shown in Table 2.

2.3 Program flow design

Master-slave control is a relatively mature inverter parallel control method. This design adopts the master-slave control strategy to realize communication monitoring of the parallel inverter system.

If mailbox 3 is set as a non-broadcast mailbox, mailbox 2 is set as a non-broadcast mailbox, mailbox 4 is set as a broadcast mailbox, and mailbox 0 is set as a broadcast mailbox, the program flow charts for receiving and sending information are shown in Figures 4 and 5 respectively.

As can be seen from the flow chart, the entire communication system is mainly divided into a master node and multiple sub-nodes. Each sub-node will use mailbox 4 to regularly send a master request to the bus in the form of broadcast at a certain time interval to detect whether the master node is working properly. If it is working properly, the master node will send a response against the master request, and this response is also sent on the bus in the form of broadcast. Therefore, each node on the network will receive a master request and an anti-master request response. The function of mailbox 0 is to receive and distinguish these two types of information, and judge its own status to decide whether to use mailbox 4 to send an anti-master request. The main function of mailbox 2 is to receive the control information of the master node and notify mailbox 3 to send a response message.

Figure 5 shows the information sending process in detail. The program list of the CAN communication main part of this system written by DSP assembly instructions is as follows.

LDP #DP_CAN
SPLK #0040H,TCR ; Mailbox 4 sends master request
LDP #DP_PF2
LAR AR7,#4H
LDP #DP_CAN
MAR *,AR4 ; Send times
LAR AR4,#0FFFFH
W_TA5: LDP #6
SBRK #01H
SAR AR4,30H
LACL 30H
BCND W_TA7,EQ
LDP #DP_CAN
BIT TCR,1 ; Wait for sending response
BCND W_TA5,NTC
SPLK #4000H,TCR
LDP #DP_CAN
MAR *,AR4 ; Send times
LAR AR4,#0FFFFH
W_TA7: LDP #DP_CAN
MAR*,AR4 ; Send times
LAR AR4,#0FFFFH
W_TA6: LDP #6
SBRK #01H
SAR AR4,30H
LACL 30H
BCND W_TA9, EQ; write mailbox content, configure parameters given
LDP #DP_USER
BIT CAN_FLAG1, BIT0; determine whether a response opposing the master node application is received
BCND W_TA6, NTC; if there is no objection, modify the ID1 and ID0 of mailbox 4. When it is 10, it means that this node is the master node
LDP #DP_USER
SPLK #00H, CAN_FLAG1
LDP #DP_CAN
SPLK #4000H, TCR; clear TA4 and MIF4
CALL LOOP11; mailbox 3 sends data

The use of fieldbus control technology can easily build a distributed inverter power local control network, so that the power system has the characteristics of a field network control system (FCS). This method not only inherits the advantages of a distributed control system (DCS), but also integrates digital communication and intelligent network control. The system introduced in this article not only makes the parallel connection of inverter power simple, but also provides stable and reliable data communication for each module, realizes the control functions of system parameter setting, static current sharing of parallel inverter power modules, and module competition, and the system structure is simple and reliable.

Reference address:Research on communication monitoring system of parallel inverter power supply based on CAN bus

Previous article:Improvement of HDTV Image Quality Based on HQV Vida Processor
Next article:Detailed explanation of video transcoding technology and its implementation

Recommended ReadingLatest update time:2024-11-16 19:38

Research on DSP Remote Loading Technology Based on Ethernet
introduction DSP has high-speed computing power and rich peripheral interfaces, and is widely used in embedded systems. Many DSP-based embedded systems are deployed in harsh environments or remote areas. When software upgrades or program updates are required, personnel cannot enter or are difficult to reach
[Embedded]
Research on DSP Remote Loading Technology Based on Ethernet
The principle of X9241 digital potentiometer and its application in DSP
1 Overview of X9241   X9241 is an integrated digital potentiometer produced by Xicor Company. It integrates four 10kΩ digital potentiometers on a single chip. The sliding end of each potentiometer has a total of 64 discrete adjustment nodes, and has four 8-bit E 2 PROM data registers and a wiper control register (WC
[Embedded]
Design of high-speed DSP serial peripheral interface
1 Introduction The advantages of DSP (digital signal processing) include processing complex operations, being particularly suitable for digital filtering, voice, video, image processing, communication, and high-speed real-time measurement and control systems. It has become an important device in modern info
[Embedded]
In-circuit programming of DSP external Flash memory through JTAG port
introduction After the embedded hardware system using TI digital signal processor (DSP) is developed and the software has passed the simulation test in CCS2.0 integrated development environment, how to write the executable file (.Out) generated after compilation and linking and the converted hexadecimal
[Microcontroller]
In-circuit programming of DSP external Flash memory through JTAG port
The solution to realize high-speed communication between DSP and single-chip microcomputer
1 Introduction A digital signal processor (DSP) is a microprocessor suitable for implementing various digital signal processing operations. It has the following main structural features: (1) It adopts an improved Harvard structure with independent program bus and data bus, which can access instruction and data
[Embedded]
The solution to realize high-speed communication between DSP and single-chip microcomputer
Expansion of SPI port of TMS320F240 DSP
Taking the mutual expansion between DSPs and the expansion of serial EEPROM as an example, the function expansion of the serial peripheral interface (SPI) module of TI's TMS320F240 DSP is discussed. Keywords: DSP, serial peripheral interface, function expansion 1 Introduction DSP ch
[Industrial Control]
Expansion of SPI port of TMS320F240 DSP
Design of 5kW off-grid photovoltaic inverter with power inductor based on DSP technology
Solar photovoltaic power generation is the most promising new energy technology in the world today. Solar photovoltaic power generation systems can be divided into off-grid photovoltaic power generation systems, grid-connected photovoltaic power generation systems and hybrid photovoltaic power generation systems accor
[Embedded]
Design of 5kW off-grid photovoltaic inverter with power inductor based on DSP technology
Design of Controller for Electric Wheel Dump Truck Based on DSP
1. Introduction Heavy-duty electric wheel dump trucks are efficient transportation equipment for large open-pit mines and water conservancy projects. At present, there are about 600 heavy-duty electric wheel dump trucks in operation in my country's metallurgical, coal industry and large water conservancy co
[Embedded]
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号