Using an Integrated Script Control Unit (ISCU) to Assist the Power Electronics Education

: An integrated script control unit (ISCU) is invented to work as the digital controller in power electronics educations. The ISCU mainly consists of two parts, a control board and computer software. The computer software enables college students to write speciﬁc scripts, which can be compiled and saved on the control board, to design the control ﬂow and algorithms. The processor on the board will realize the algorithms that are designed by the user. All of the variables can be monitored by the computer software, which is helpful to ﬁnd the bugs in the algorithms. ISCU can help the under-graduate students to design converters even if they are unfamiliar with the programming languages and developing environment. Users can write and validate algorithms for converters quickly without writing any tedious codes (such as initialization, dealing with the interrupts) for speciﬁc processors with ISCU. The college students who lack the necessary skills to program the processor, can beneﬁt when they are studying the power electronic techniques. Importantly, the ISCU is considered to be free for everyone. The details and the principles of ISCU are introduced, and a bi-directional DC-DC converter is built based on ISCU to validate the proposed characteristics.


Introduction
In recent years, power electronic converters have gained much attention and are widely used in many industrial and commercial fields, such as motor drives, power sources, and wind power generation [1][2][3][4][5][6][7][8].Digital processors are usually adopted because of their low cost, high reliability, and high performance.Some examples are described in [9][10][11][12].Literature [9] studied the inherent relationship between two pulse width modulation methods for multilevel converters and carried out an experiment based on TMS320F2812.The processor sent the switching states to the ePWM module (digital-to-analog converter).The developer could set the ePWM module parameters and modify the registers according to the datasheet.In [10], the unbalanced-load correction capability of two H-bridge based on three-phase three-stage modular PET topologies are analyzed.The authors built a prototype and the control algorithm was programmed in Digital Signal Processing (DSP) chip TMS320F28335.Literature [11] presents a novel islanding search sequence technique that is applied to four islanding detection methods.A 32-bit CPU floating point DSP was used to implement the control firmware.In [12], a predictive torque control scheme for the B4 inverter-fed induction motor was proposed.The experimental setup was based on the 32-bit floating point DSP TI TMS320F28335.
The digital processors such as TMS320F2812 and TMS320F28335, are powerful enough to carry out the control algorithm in power electronic converters.Many proposals have been designed based on such chips.For example, literature [13] presents a full digital control design proposal by using TMS320F28335.Literature [14] also explains a current sensing technique for DC-DC converter by using TMS320F28335 DSP.In [15], general recommendations are given on utilizing TMS320F28335 digital signal controller as the controller for voltage source converters.What is more, literature [16] presents a hybrid control approach for the bi-directional DC-DC converter, and its prototype system is controlled by TMS320F2812 DSP.Besides, there are also some examples using similar chips, like TMS320F2808, for the overall control of various converters [17][18][19].However, these chips are not easy to learn.There are lots of registers, modules, and peripherals on the chip.The user needs to write many codes to initialize the chip and control the peripherals.Usually in the authors' lab, the post-graduate students need at least three months to learn and master the DSP TMS320F28335.Then, it is impossible for them to build a converter based on the chip, even when there are many documents and examples about the chip.
Typically, the under-graduate students in our university will study "Power Electronics" in grade three.They learn several kinds of converters such as buck converters, boost converters and rectifiers.However, because they are not familiar with the digital processors, they are not able to finish the experiments on their own.As a result, this prevents the students from getting a better understanding of the power electronics.They cannot try or design their own control algorithm for the converter because they are not able to handle the processor.
In order to help the college students to implement the control algorithm in power electronics converters quickly, integrated script control unit (ISCU) is proposed in this paper.It makes it possible to design the algorithm for a converter without writing any code for the processor.Figure 1 shows the concept of ISCU.The ISCU provides a script system, which is simple and easy to learn for the users.The algorithm written in the script system can be translated and executed by the ISCU, and as a result, the converter can be controlled.The quality of the power electronics education is therefore improved.using TMS320F28335 DSP.In [15], general recommendations are given on utilizing TMS320F28335 digital signal controller as the controller for voltage source converters.What is more, literature [16] presents a hybrid control approach for the bi-directional DC-DC converter, and its prototype system is controlled by TMS320F2812 DSP.Besides, there are also some examples using similar chips, like TMS320F2808, for the overall control of various converters [17][18][19].However, these chips are not easy to learn.There are lots of registers, modules, and peripherals on the chip.The user needs to write many codes to initialize the chip and control the peripherals.Usually in the authors' lab, the postgraduate students need at least three months to learn and master the DSP TMS320F28335.Then, it is impossible for them to build a converter based on the chip, even when there are many documents and examples about the chip.
Typically, the under-graduate students in our university will study "Power Electronics" in grade three.They learn several kinds of converters such as buck converters, boost converters and rectifiers.However, because they are not familiar with the digital processors, they are not able to finish the experiments on their own.As a result, this prevents the students from getting a better understanding of the power electronics.They cannot try or design their own control algorithm for the converter because they are not able to handle the processor.
In order to help the college students to implement the control algorithm in power electronics converters quickly, integrated script control unit (ISCU) is proposed in this paper.It makes it possible to design the algorithm for a converter without writing any code for the processor.Figure 1 shows the concept of ISCU.The ISCU provides a script system, which is simple and easy to learn for the users.The algorithm written in the script system can be translated and executed by the ISCU, and as a result, the converter can be controlled.The quality of the power electronics education is therefore improved.
College students who are not familiar with the digital processors.

Subparts of the ISCU
The ISCU is made up of two components, which are the control board and computer software.
(1) The control board is based on a digital processor.It has the necessary interfaces to control the converter, for example, analog-to-digital ports, digital input/output ports and PWM ports.On

Subparts of the ISCU
The ISCU is made up of two components, which are the control board and computer software.
(1) The control board is based on a digital processor.It has the necessary interfaces to control the converter, for example, analog-to-digital ports, digital input/output ports and PWM ports.
On the control board, there is an external storage chip, in which the scripts are stored.The digital processor will load the scripts in the storage chip and execute them when power up.(2) The computer software provides environment for the users to write scripts and save them into the storage chip on the control board.Also, it can show that the waveforms of the variables defined in the scripts by the user.Figure 2 shows the structure of ISCU.
Energies 2017, 10, 1802 3 of 19 the control board, there is an external storage chip, in which the scripts are stored.The digital processor will load the scripts in the storage chip and execute them when power up.(2) The computer software provides environment for the users to write scripts and save them into the storage chip on the control board.Also, it can show that the waveforms of the variables defined in the scripts by the user.Figure 2 shows the structure of ISCU.

The Hardware Platform
The control board has a number of digital and analog interfaces for the applications.Also, the control board provides an external data bus for further expansion.Figure 3 shows the picture of the experimental platform using ISCU.The computer and the control board are connected by a pair of optical fiber.

Resources and Supporting Functions
The control board of ISCU is shown in Figure 4.

The Hardware Platform
The control board has a number of digital and analog interfaces for the applications.Also, the control board provides an external data bus for further expansion.Figure 3 shows the picture of the experimental platform using ISCU.The computer and the control board are connected by a pair of optical fiber.
Energies 2017, 10, 1802 3 of 19 the control board, there is an external storage chip, in which the scripts are stored.The digital processor will load the scripts in the storage chip and execute them when power up.(2) The computer software provides environment for the users to write scripts and save them into the storage chip on the control board.Also, it can show that the waveforms of the variables defined in the scripts by the user.Figure 2 shows the structure of ISCU.

The Hardware Platform
The control board has a number of digital and analog interfaces for the applications.Also, the control board provides an external data bus for further expansion.Figure 3 shows the picture of the experimental platform using ISCU.The computer and the control board are connected by a pair of optical fiber.

Resources and Supporting Functions
The control board of ISCU is shown in Figure 4.

Resources and Supporting Functions
The control board of ISCU is shown in Figure 4.As we can see, there are a digital processor and an external FLASH chip on the board.Apart from these two core chips, a number of terminals make up the necessary interfaces, which sends the control signals between the processor and the converters.The whole resources on the control board and their supporting functions are listed in Table 1.A server program resides in the processor on the board.When powering up, the program will read the scripts in the storage chip and execute the scripts in every switching period.As we can see, there are a digital processor and an external FLASH chip on the board.Apart from these two core chips, a number of terminals make up the necessary interfaces, which sends the control signals between the processor and the converters.The whole resources on the control board and their supporting functions are listed in Table 1.A server program resides in the processor on the board.When powering up, the program will read the scripts in the storage chip and execute the scripts in every switching period.

Schematic and Layout Diagrams
The major units of the schematic diagram for ISCU are shown in Figure 5.

Schematic and Layout Diagrams
The major units of the schematic diagram for ISCU are shown in Figure 5.The microcontroller unit is composed of a DSP-F28335 chip and a TPS767D301 chip, which is used to provide both 3.3 V and 1.8 V for the DSP chip as a dual voltage regulator.In the digital output unit and PWM unit, SN54ALS244C chips are used to memorize the state of signals from the DSP chip.The ISO1050 works as a galvanically isolated CAN transceiver in the CAN unit, while the power comes from a DC/DC converter, which is the B0505S chip.The other resources in Figure 5 are all interfaces with various functions.
As for the layout diagram of ISCU, the interfaces are designed on the edges of the control board, while the other components are placed in an orderly manner, as shown in Figure 6.The well-designed control board can be installed in a standard industrial box.Users just need to focus on the interfaces they will use, which is quite convenient and easy to operate.The microcontroller unit is composed of a DSP-F28335 chip and a TPS767D301 chip, which is used to provide both 3.3 V and 1.8 V for the DSP chip as a dual voltage regulator.In the digital output unit and PWM unit, SN54ALS244C chips are used to memorize the state of signals from the DSP chip.The ISO1050 works as a galvanically isolated CAN transceiver in the CAN unit, while the power comes from a DC/DC converter, which is the B0505S chip.The other resources in Figure 5 are all interfaces with various functions.
As for the layout diagram of ISCU, the interfaces are designed on the edges of the control board, while the other components are placed in an orderly manner, as shown in Figure 6.The well-designed control board can be installed in a standard industrial box.Users just need to focus on the interfaces they will use, which is quite convenient and easy to operate.

"Why Selected" Discussion
All of the resources and components on the control board are selected based on the consideration of proper size, economic, and most importantly, the supporting functions ISCU need to realize.
1. TMS320F28335 DSP chips, one kind of Texas Instruments C2000 microcontrollers, are widely used in many industrial fields with the advantages of high precision, low cost, small power consumption, and high peripheral integration.In order to validate algorithms for converters in power electronic education, the digital processor of ISCU need to have powerful abilities of controlling and signal processing.Given the considerations mentioned above, a DSP-F28335 chip is used as the digital processor.2. SST39V800A devices are 512 K × 16 CMOS Multi-Purpose Flash with high performance CMOS Super flash technology.They are suited for applications that require convenient and economical updating of program, configuration, or data memory.Using such a device as an external FLASH chip on the control board makes it possible to store all the data transmitted from the burn file before being loaded and executed.3.All of the terminals are designed to form relevant signal transmission paths between the control board and the computer or the converters.They are all economical and widely used in industrial applications.It is proved that they all can ensure high precision of transmitting signals.

The Computer Software
Basically, the computer software has two pages, as shown in Figure 7.The first page is used to edit, compile and transfer the scripts to the control board.The second page is used to observe the waveforms of the variables created in the scripts by the user.The software supports as much as 104 commands, which are about mathematical operations, judgments, communications, regulators, and so forth.The users can write scripts to realize specific functions and observe the variables in the software.Figure 7 also shows an example about how to create a 10 Hz square waveform and output it.In the scripts, "ifLarger/but/overIf" is used to change the value of variable "counter" and control the digital output port.

"Why Selected" Discussion
All of the resources and components on the control board are selected based on the consideration of proper size, economic, and most importantly, the supporting functions ISCU need to realize.

1.
TMS320F28335 DSP chips, one kind of Texas Instruments C2000 microcontrollers, are widely used in many industrial fields with the advantages of high precision, low cost, small power consumption, and high peripheral integration.In order to validate algorithms for converters in power electronic education, the digital processor of ISCU need to have powerful abilities of controlling and signal processing.Given the considerations mentioned above, a DSP-F28335 chip is used as the digital processor.2.
SST39V800A devices are 512 K × 16 CMOS Multi-Purpose Flash with high performance CMOS Super flash technology.They are suited for applications that require convenient and economical updating of program, configuration, or data memory.Using such a device as an external FLASH chip on the control board makes it possible to store all the data transmitted from the burn file before being loaded and executed.3.
All of the terminals are designed to form relevant signal transmission paths between the control board and the computer or the converters.They are all economical and widely used in industrial applications.It is proved that they all can ensure high precision of transmitting signals.

The Computer Software
Basically, the computer software has two pages, as shown in Figure 7.The first page is used to edit, compile and transfer the scripts to the control board.The second page is used to observe the waveforms of the variables created in the scripts by the user.The software supports as much as 104 commands, which are about mathematical operations, judgments, communications, regulators, and so forth.The users can write scripts to realize specific functions and observe the variables in the software.Figure 7 also shows an example about how to create a 10 Hz square waveform and output it.In the scripts, "ifLarger/but/overIf" is used to change the value of variable "counter" and control the digital output port.

Change the value of "counter".
The switching frequency is 5Hz.So the period of "counter" is 10Hz.

Commands and the Classification
The script system can compile the scripts written by the user and find the mistakes.If the scripts are compiled successfully, then they can be transferred to the control board.The users can create variables in these scripts and call the commands provided in the script system.The 104 commands can be divided into five groups, as shown in Table 2.With the commands provided, the user can design any kinds of algorithm and make the control board work in the expected mode.

The Compilation and Storage for the Scripts
The compiler works in the followings steps: 1. Divided the scripts into a number of pieces.
2. The compiler tries to find the commands and the parameters for each piece.If the format is not correct or the parameters are not available, the compilation will fail.3. Record the variables created by the user.Every variable is stored in 30 bytes, 26 of which are about the variable name.The last 4 bytes are about the initial value of the variable.4. Record each piece into 10 bytes, which are used to store the command type, the parameters and the logic information.Hence, if the number of the variables is m and the number of the pieces is n, the number of the bytes (denoted by q) used to store the script can be calculated as:

Commands and the Classification
The script system can compile the scripts written by the user and find the mistakes.If the scripts are compiled successfully, then they can be transferred to the control board.The users can create variables in these scripts and call the commands provided in the script system.The 104 commands can be divided into five groups, as shown in Table 2.With the commands provided, the user can design any kinds of algorithm and make the control board work in the expected mode.

The Compilation and Storage for the Scripts
The compiler works in the followings steps: 1.
Divided the scripts into a number of pieces.

2.
The compiler tries to find the commands and the parameters for each piece.If the format is not correct or the parameters are not available, the compilation will fail.

3.
Record the variables created by the user.Every variable is stored in 30 bytes, 26 of which are about the variable name.The last 4 bytes are about the initial value of the variable.

4.
Record each piece into 10 bytes, which are used to store the command type, the parameters and the logic information.
Hence, if the number of the variables is m and the number of the pieces is n, the number of the bytes (denoted by q) used to store the script can be calculated as:

Experimental Results and Analysis
Bi-directional DC-DC converters can be alternately operated as step down converters in one direction of energy flow and as step up converters in reverse direction of energy flow [20].Thus, they are widely used in hybrid vehicles, energy storage systems, and energy conversion systems, and so forth [21][22][23][24][25][26].
This paper also builds a bi-directional DC-DC converter to validate the ISCU.The topology of the converter is shown in Figure 8.The photo of the experimental prototype is shown in Figure 3.The input voltage is DC 20~30 V, and the converter can output DC 18 V.

Experimental Results and Analysis
Bi-directional DC-DC converters can be alternately operated as step down converters in one direction of energy flow and as step up converters in reverse direction of energy flow [20].Thus, they are widely used in hybrid vehicles, energy storage systems, and energy conversion systems, and so forth [21][22][23][24][25][26].
This paper also builds a bi-directional DC-DC converter to validate the ISCU.The topology of the converter is shown in Figure 8.The photo of the experimental prototype is shown in Figure 3.The input voltage is DC 20~30 V, and the converter can output DC 18 V.The equations of the bi-directional DC-DC converter can be written as ( 2) and (3): The definitions of all the symbols such as v1, i1, and i2, are described in Figure 8.The control scheme is also shown in Figure 8.The inner loop is to control the current i1 on the inductor.The outer loop is to control the output voltage v2.From (2), v2 can be controlled by maintaining (i1 − i2), thus a feed-forward strategy is used.The combination of voltage-current close loop control and current feed-forward control can not only track the reference signals, but also improves the load disturbance regulation characteristics when the load current changes [27][28][29][30][31].
The scripts for the control algorithm are shown in Figure 9.All of the variables defined in Figure 8 are created in the scripts.The codes can be divided in to five parts.The equations of the bi-directional DC-DC converter can be written as ( 2) and (3): The definitions of all the symbols such as v 1 , i 1 , and i 2 , are described in Figure 8.The control scheme is also shown in Figure 8.The inner loop is to control the current i 1 on the inductor.The outer loop is to control the output voltage v 2 .From (2), v 2 can be controlled by maintaining (i 1 − i 2 ), thus a feed-forward strategy is used.The combination of voltage-current close loop control and current feed-forward control can not only track the reference signals, but also improves the load disturbance regulation characteristics when the load current changes [27][28][29][30][31].
The scripts for the control algorithm are shown in Figure 9.All of the variables defined in Figure 8 are created in the scripts.The codes can be divided in to five parts.The parameters of the prototype is shown in Table 3.The power consumed by the load can be calculated as 18 × 18/16 = 20.25 W. The output voltage and current are shown in Figure 10a when the control algorithm in Figure 8 is adopted.The output voltage v2 is kept to be 18 V.When the resistor is on, the current is 1.1 A, which coincides with the theoretical analysis.Also, when the load is changed rapidly, v2 is kept stable, indicating that the performance of the system is high.When the feed-forward path is not used, the experimental results are shown in Figure 10b.When the load is changed, the voltage v2 is also changed and after a short time, v2 is kept to be 18 V again.The two comparative pictures in Figure 10 validate the good performance of the converter.The parameters of the prototype is shown in Table 3.The power consumed by the load can be calculated as 18 × 18/16 = 20.25 W. The output voltage and current are shown in Figure 10a when the control algorithm in Figure 8 is adopted.The output voltage v 2 is kept to be 18 V.When the resistor is on, the current is 1.1 A, which coincides with the theoretical analysis.Also, when the load is changed rapidly, v 2 is kept stable, indicating that the performance of the system is high.When the feed-forward path is not used, the experimental results are shown in Figure 10b.When the load is changed, the voltage v 2 is also changed and after a short time, v 2 is kept to be 18 V again.The two comparative pictures in Figure 10 validate the good performance of the converter.The output voltage and current can also be observed by the computer software because both of them are sampled and the variables are v2 and i2, as shown in Figure 11.
With ISCU, it is possible to monitor all of the variables and thus the debugging of the algorithm is simplified.Figure 12a shows the reference current i1R and the sampled current i1.The zero-error tracking is realized.Figure 12b shows the two curves in a shorter period than Figure 12a.The sampled current is around the reference current.Thus, the current on the inductor is under control and the current loop works well.The output voltage and current can also be observed by the computer software because both of them are sampled and the variables are v 2 and i 2 , as shown in Figure 11.The output voltage and current can also be observed by the computer software because both of them are sampled and the variables are v2 and i2, as shown in Figure 11.
With ISCU, it is possible to monitor all of the variables and thus the debugging of the algorithm is simplified.Figure 12a shows the reference current i1R and the sampled current i1.The zero-error tracking is realized.Figure 12b shows the two curves in a shorter period than Figure 12a.The sampled current is around the reference current.Thus, the current on the inductor is under control and the current loop works well.With ISCU, it is possible to monitor all of the variables and thus the debugging of the algorithm is simplified.Figure 12a shows the reference current i 1R and the sampled current i 1 .The zero-error tracking is realized.Figure 12b shows the two curves in a shorter period than Figure 12a.The sampled current is around the reference current.Thus, the current on the inductor is under control and the current loop works well.Figure 13 shows the three current i1R, i1 and i2 together.It explains the working principles of the feed-forward strategy described in Figure 7.When the load is on, the current i2 rises rapidly.The i1R also goes higher because of (2).When the load is off, the current i2 falls rapidly.The i1R also goes lower.In this way, the transient period is shortened and the output voltage is kept stable.
The efficiency of the converter is tested using different input voltages, as shown in Figure 14.The open circuit power loss of the converter rises when the input voltage is higher.The efficiency of the system is basically above 80%.The peak efficiency is around 96%, and it appears when the input voltage is 30 V.  Figure 13 shows the three current i 1R , i 1 and i 2 together.It explains the working principles of the feed-forward strategy described in Figure 7.When the load is on, the current i 2 rises rapidly.The i 1R also goes higher because of (2).When the load is off, the current i 2 falls rapidly.The i 1R also goes lower.In this way, the transient period is shortened and the output voltage is kept stable.v 2 (16.7V/div) Figure 13 shows the three current i1R, i1 and i2 together.It explains the working principles of the feed-forward strategy described in Figure 7.When the load is on, the current i2 rises rapidly.The i1R also goes higher because of (2).When the load is off, the current i2 falls rapidly.The i1R also goes lower.In this way, the transient period is shortened and the output voltage is kept stable.
The efficiency of the converter is tested using different input voltages, as shown in Figure 14.The open circuit power loss of the converter rises when the input voltage is higher.The efficiency of the system is basically above 80%.The peak efficiency is around 96%, and it appears when the input voltage is 30 V.  The efficiency of the converter is tested using different input voltages, as shown in Figure 14.The open circuit power loss of the converter rises when the input voltage is higher.The efficiency of the system is basically above 80%.The peak efficiency is around 96%, and it appears when the input voltage is 30 V.

ISCU Used in Class and in Industrial Applications
In order to estimate the ISCU, ten students in Grade 3 in our university are selected in class to study the ISCU and later, they are required to accomplish five tasks in 1 hour.The five tasks are: 1. Generate the required PWM signals.The result shows that after a one-hour training, all of the students can finish the above tasks with ease, indicating that they have gained the necessary abilities to build the control system for a power electronic converter.Figure 15 shows the application, which is the combination of ISCU and an industrial inverter.The inverter was controlled by the board on which a DSP-F28335 chip was employed to realize the algorithms.It is difficult to develop DSP programs and realize the algorithms for the beginners.Instead, the ISCU is introduced to replace the DSP chip and it provides a much easier way for the implement of the algorithm.
Figure 16 shows the complementary gate signals generated by ISCU. Figure 16a verifies that the switching frequency is 5 kHz. Figure 16b shows the dead band on the rising edge and falling edge.
Figure 17 shows the three-phase currents on the load.In Figure 16a, it can be found the period is 20 ms and the currents are sinusoidal.Figure 16b shows the details of the currents.The period of the current ripple is 100 μs.The experimental results show that the ISCU can be used to control the three-phase inverter easily and quickly for the students.

ISCU Used in Class and in Industrial Applications
In order to estimate the ISCU, ten students in Grade 3 in our university are selected in class to study the ISCU and later, they are required to accomplish five tasks in 1 hour.The five tasks are: 1.
Generate the required PWM signals.

2.
Sample the required analog signals.

3.
Get the digital input signals.

5.
Generate the required sinusoidal PWM signals.
The result shows that after a one-hour training, all of the students can finish the above tasks with ease, indicating that they have gained the necessary abilities to build the control system for a power electronic converter.Figure 15 shows the application, which is the combination of ISCU and an industrial inverter.The inverter was controlled by the board on which a DSP-F28335 chip was employed to realize the algorithms.It is difficult to develop DSP programs and realize the algorithms for the beginners.Instead, the ISCU is introduced to replace the DSP chip and it provides a much easier way for the implement of the algorithm.
Figure 16 shows the complementary gate signals generated by ISCU. Figure 16a verifies that the switching frequency is 5 kHz. Figure 16b shows the dead band on the rising edge and falling edge.
Figure 17 shows the three-phase currents on the load.In Figure 16a, it can be found the period is 20 ms and the currents are sinusoidal.Figure 16b shows the details of the currents.The period of the current ripple is 100 µs.The experimental results show that the ISCU can be used to control the three-phase inverter easily and quickly for the students.

Working Schemes and Open Source Plan
The working schemes of ISCU can be described in Figure 18.The users can write the scripts, translate the scripts, and transmit the burn file to ISCU in the development period.Then the users can observe and change the variables when ISCU is running.The server program runs in ISCU to realize all of the functions, such as loading the commands from the storage devices and doing the communications.It executes the commands one piece after another.Figure 19 shows the data flow among the script file, the burn file, and how the server program execute the commands.

Working Schemes and Open Source Plan
The working schemes of ISCU can be described in Figure 18.The users can write the scripts, translate the scripts, and transmit the burn file to ISCU in the development period.Then the users can observe and change the variables when ISCU is running.

Working Schemes and Open Source Plan
The working schemes of ISCU can be described in Figure 18.The users can write the scripts, translate the scripts, and transmit the burn file to ISCU in the development period.Then the users can observe and change the variables when ISCU is running.The server program runs in ISCU to realize all of the functions, such as loading the commands from the storage devices and doing the communications.It executes the commands one piece after another.Figure 19 shows the data flow among the script file, the burn file, and how the server program execute the commands.The server program runs in ISCU to realize all of the functions, such as loading the commands from the storage devices and doing the communications.It executes the commands one piece after another.Figure 19 shows the data flow among the script file, the burn file, and how the server program execute the commands.
regVar@Ia,0.0 regVar@Ib,0.0getAd0@Ia,-2048,0.1 getAd1@Ib,-2048,0.In Figure 19, the software developed for ISCU translates the script file into the burn file.During this stage, the software will collect all of the variables declared in the scripts file and find the grammar errors (For example, spelling mistakes, not-declared variables, and et al.) if there are.The burn file will be transmitted to ISCU and the data will be stored into the storage devices partly.As shown in Figure 19, the numbers of the variables and the commands will be stored firstly.Each variable consists of 30 bytes, which are the name (26 bytes) and the value (4 bytes).There are 10 bytes for each command.The first three bytes are about the type and the command to execute when the current command is true/false.The last seven bytes are about the variables to operate.The ISCU server program will execute the commands according to the type.
Figure 19 also shows the management of the variables and commands in ISCU.All of the constant numbers and variables are stored in the list and there is a unique index for each one.
a certain range, which should be less than 20 kHz.In that way, it is not possible to run or execute a very complicated algorithm by ISCU.However, users could make changes about ISCU, such as the microcontroller, after reading the whole open sources.

Comparison with Other Toolboxes
With conventional methods, some commercialized toolkits may have been applied in the relevant situations, such as LABVIEW, MATLAB, PSIM, Saber, dSPACE, and et al.
The most remarkable characteristics of LABVIEW are graphical programming and data flow driving.The source code is replaced by all block diagrams.However, it cannot realize real time control since it is a top-level toolkit.As for MATLAB, its toolboxes combined with A/D interfaces are mostly applied in data collection or instrument control system [32].Users of these two toolkits have to firstly design the host computer interface according to the functions remained to achieve.However, it takes a long time to learn the grammar and logic relationships.Besides, LABVIEW or MATLAB just provides programming environment for users.To validate the prototypes and achieve the whole functions, a hardware platform should be established personally or a data collection board should be properly chosen.
PSIM and Saber are also widely used in the simulation of power electronic circuits [33,34].Users could generate control algorithm codes by using basic logic components or loading dll (dynamic link library) files, and then the algorithm will be validated.These two softwares are both easy to operate.However, they just provide simulation and programming environment.It is not possible to validate a prototype without hardware platform.Besides, the prices of them are both around $600. dSPACE is one set of platform comprised of software and hardware, which can eliminate the process of designing the relevant PCB boards [35,36].The hardware system consists of a digital processor and abundant I/O interfaces, and the software system involves the whole toolkits for automatic generation, load, execution, and debugging of the source codes.With dSPACE, users just need to concentrate on the control strategy, while the rest of processes, such as off-line and real-time simulation, can be implemented automatically by its toolkits.Nevertheless, users must adapt the customized hardware boards that cost about €4000, i.e., $4732.It is expensive for the experiments in power electronics education, and the maintainability is poor.
Comparing with the above, the ISCU has the advantages of easy to learn, convenient for power electronic experiments, high reliability and maintainability.Since it is also made up of both a control board and a computer software, the structure and principles is similar to the dSPACE to some extent.However, ISCU is economical free, and the source codes are open to the public.The users can modify ISCU and add new features on it.The details of the comparison is listed in Table 4.

Conclusions
An integrated script control unit, named as ISCU, is proposed and invented to assist the power electronics educations for the college students.With ISCU, the college students can implement a power electronic converter without any digital processor experience.Other designers and engineers can also develop algorithms quickly with the help of ISCU.The ISCU provides a set of commands to meet the requirements for converters.A bi-directional DC-DC converter is built with ISCU to validate the performance.Only a small number of scripts are needed to implement the close-loop control algorithm with load current feed-forward compensation.The efficiency is tested and it can be as high as 96%.A three-phase inverter for industrial applications is also established based on ISCU.A trial about the ISCU is accomplished in class, showing that it is easy to learn and master.The ISCU is useful for the power electronics educations and can improve the efficiency in power electronic device developments.

Figure 1 .
Figure 1.Concept of the proposed integrated script control unit (ISCU).

Figure 1 .
Figure 1.Concept of the proposed integrated script control unit (ISCU).

Figure 3 .
Figure 3.The photo of the experimental platform using ISCU.

Figure 3 .
Figure 3.The photo of the experimental platform using ISCU.

Figure 3 .
Figure 3.The photo of the experimental platform using ISCU.

Figure 4 .
Figure 4.The control board of ISCU.

Figure 4 .
Figure 4.The control board of ISCU.

Figure 6 .
Figure 6.The layout figure of ISCU control board.

Figure 6 .
Figure 6.The layout figure of ISCU control board.
waveform of "counter" created in the scriptsThe user can change any variable's gain, value or offset.

Figure 7 .
Figure 7. Appearances of the computer software.

Figure 7 .
Figure 7. Appearances of the computer software.

Figure 8 .
Figure 8. Topology and control scheme of the bi-directional DC-DC converter.

Figure 8 .
Figure 8. Topology and control scheme of the bi-directional DC-DC converter.

Figure 9 .
Figure 9. Topology and control scheme of the bi-directional DC-DC converter.

Figure 9 .
Figure 9. Topology and control scheme of the bi-directional DC-DC converter.

Figure 10 .
Figure 10.Experimental waveforms of the voltage and current.(a) Use the control diagram in Figure 8; (b) Without feed-forward compensation.

Figure 11 .
Figure 11.Waveforms of the variables v2 and i2.(a) Use the control diagram in Figure 8; (b) Without feed-forward compensation.

Figure 10 .
Figure 10.Experimental waveforms of the voltage and current.(a) Use the control diagram in Figure 8; (b) Without feed-forward compensation.

Figure 10 .
Figure 10.Experimental waveforms of the voltage and current.(a) Use the control diagram in Figure 8; (b) Without feed-forward compensation.

Figure 11 .
Figure 11.Waveforms of the variables v2 and i2.(a) Use the control diagram in Figure 8; (b) Without feed-forward compensation.

Figure 11 .
Figure 11.Waveforms of the variables v 2 and i 2 .(a) Use the control diagram in Figure 8; (b) Without feed-forward compensation.

Figure 13 .
Figure 13.The observation of the feed-forward strategy.

i 1 (Figure 12 .
Figure 12.Waveforms of the variables v 2 and i 2 .(a) Use the control diagram in Figure 7; (b) Without feed-forward compensation.

Figure 12 .
Figure 12.Waveforms of the variables v2 and i2.(a) Use the control diagram in Figure 7; (b) Without feed-forward compensation.

Figure 13 .
Figure 13.The observation of the feed-forward strategy.

i 1 (Figure 13 .
Figure 13.The observation of the feed-forward strategy.

2 .
Sample the required analog signals.3. Get the digital input signals.4. Output digital signals.5. Generate the required sinusoidal PWM signals.

Figure 14 .
Figure 14.The curves of the system efficiency.

Figure 16 .
Figure 16.Complementary gate signals of Phase-A.(a) Gate signals for Insulated Gate Bipolar Transistors (IGBTs); (b) Dead band and gate signals in one sample period.Figure 16.Complementary gate signals of Phase-A.(a) Gate signals for Insulated Gate Bipolar Transistors (IGBTs); (b) Dead band and gate signals in one sample period.

Figure 17 .
Figure 17.Three-phase output currents.(a) Sinusoidal output currents; (b) Details of the currents in one sample time.

Figure 17 .
Figure 17.Three-phase output currents.(a) Sinusoidal output currents; (b) Details of the currents in one sample time.

Figure 17 .
Figure 17.Three-phase output currents.(a) Sinusoidal output currents; (b) Details of the currents in one sample time.

Figure 19 .
Figure 19.The data flow among the script file, the burn file and how the server program execute the commands.

Table 1 .
Resources on the control board and supporting functions.

Table 1 .
Resources on the control board and supporting functions.

Table 2 .
All of the commands in the script system.

Table 2 .
All of the commands in the script system.

Table 3 .
The parameters of the prototype.

Table 3 .
The parameters of the prototype.

Table 4 .
The comparison among ISCU and other toolboxes.