rtbox_launchpadinterfacemanual
rtbox_launchpadinterfacemanual
rtbox_launchpadinterfacemanual
Contents iii
1 Introduction 1
3 Demo Application 9
Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Loading the Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Program the RT Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Connecting the External Mode . . . . . . . . . . . . . . . . . . . . . . . . 13
RT Box Web Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Description of Demo Projects . . . . . . . . . . . . . . . . . . . . . . . . . 15
MCU Reset and Boot of Control Application . . . . . . . . . . . . . 15
Block Current Control of a BLDC Motor . . . . . . . . . . . . . . . 16
Field Oriented Control of a PMSM . . . . . . . . . . . . . . . . . . . 18
Current Control of a H-Bridge Buck Converter . . . . . . . . . . . . 20
Control of a Neutral-Point Clamped Solar Converter . . . . . . . . 22
Contents
4 Appendix 25
LAUNCHXL-F28069M Pin Map . . . . . . . . . . . . . . . . . . . . . . . 26
LAUNCHXL-F28377S Pin Map . . . . . . . . . . . . . . . . . . . . . . . . 29
LAUNCHXL-F28379D Pin Map . . . . . . . . . . . . . . . . . . . . . . . . 32
LAUNCHXL-F28027 Pin Map . . . . . . . . . . . . . . . . . . . . . . . . . 35
LAUNCHXL-F280049C Pin Map . . . . . . . . . . . . . . . . . . . . . . . 37
iv
1
Introduction
2
2
Additionally, the board provides access to some of the analog outputs of the
RT Box via BNC connectors and to unused digital inputs and outputs signals
via shrouded pin headers. For simple status communication with the RT Box
the board features four sliding switches and four LEDs.
Fig. 2.2 shows the top view of the board with a LaunchXL-F28069M attached.
4
Fig. 2.3 shows the top view of the board with a LaunchXL-F28027 attached.
5
2 Interface Board Overview
LaunchPad Headers
A LaunchPad must be attached to the Interface board using the correspond-
ing pin headers. The LaunchPad will extend beyond the edge of the Interface
board. Fig. 2.2 and 2.3 show the correct mounting position.
Tables 2.1 and 2.2 list the pin assignments of the LaunchPad headers and the
RT Box signals.
J1 J3 J4 J2
6
Onboard Voltage Supply
J5 J7 J8 J6
A more detailed table including the available processor functions at each pin
for the supported LaunchPads can be found in the appendix.
7
2 Interface Board Overview
header on the interface board and not from the LaunchPad in order to mini-
mize losses and component stress.
Analog Output
The interface board connects all 16 analog outputs from the RT Box to the
LaunchPad headers. The lower 8 channels AO0 . . . AO7 are also accessible at
the BNC connectors. Each of the analog output channels is clamped with two
Schottky diodes to 0 V and 3.3 V to protect the inputs of the MCU from dam-
age by overvoltage.
To stabilize the analog voltages for the sample and hold capacitors inside the
MCU, each channel is buffered with a 220 pF capacitor against ground.
Digital I/O
Not all of the digital inputs and outputs of the RT Box are connected to
the LaunchPad. The unused digital inputs DI8 . . . DI15 and the outputs
DO8 . . . DO15 are freely accessible at the shrouded headers on the lower
side of interface board. The digital outputs DO28 . . . DO31 are connected to
four orange LEDs in the lower right corner of the board. The digital inputs
DI28 . . . DI31 can be set via four sliding switches.
All other digital inputs and outputs from the RT Box are connected to the
LaunchPad headers. To protect the inputs of the MCU from voltages greater
than 3.3 V, the corresponding outputs of the RT Box are buffered with bus
transceivers.
DO25 is connected to the MCU reset pin via the RST jumper. If the jumper
is set a low-level output at DO25 will reset the MCU. Do not set this jumper
unless you wish to use this feature.
8
3
Demo Application
Software Requirements
The PLECS model can be executed on Windows, MAC or Linux machines with
the following software installed:
• PLECS Standalone (version 4.0.4 or higher)
• PLECS Standalone Coder
However, the control preprogrammed for the TI controlCARD can only be
flashed or updated on a Windows machine (32-bit or 64-bit) with the follow-
ing additional software installed:
• C2Prog – Download from www.codeskin.com (only required to reflash the
MCU).
A license is required to run PLECS and use the code generation feature. You
can request this license from Plexim at www.plexim.com.
3 Demo Application
Switch off the RT Box. Make sure that all jumpers on the LaunchPad, except
JP6, are closed and all dip switches are pointing away from the DSP. Open
the RST jumper located on the interface board.
Connect the JTAG/SCI USB port of the LaunchPad to your PC. Open the Win-
dows Device Manager and confirm that TI Debug Probes are listed.
You may have to install the FTDI drivers if the port is not enumerated.
10
Program the RT Box
11
3 Demo Application
Select your Target Device from the drop-down list and click Accept and
then Build. Your model is now compiled and downloaded to the RT Box au-
tomatically. Verify that the Blue Running LED on the RT Box is illuminated.
12
Connecting the External Mode
Figure 3.4: Connecting to the BLDC Model via the External Mode
Set Switch DI-29 to high to enable the drive control. Open the Scope Cur-
rents in the BLDC model and analyze the control behavior.
Note Switch DI-28 can be used to change the current reference of the control
system.
13
3 Demo Application
The processor load statistic reveals information about the time needed to cal-
culate the model and therefore serves as a convenient tool to validate the cho-
sen step size. Do not overload the processor, maintain a safety margin.
14
Description of Demo Projects
Note A model under actuation requires a higher processing time than an idle
model. Additional processor load is required using the external mode.
Note Switch DI29 of interface board enables or disables the MCU drive.
15
3 Demo Application
Digital
Digital Digital Out
NOT
In Out
z-1 NOT LED 31: Blinking
Disable Switching LED 29: Switching Enabled channel: 31
channel: 22 channel: 29
PWM Signals
BLDC Machine
(Simple) ω u2 K
Model
Ia A Ib A Ic A
Settings
Idc
1 z-1 Model
A K 0
Settings
Enable 1 sec
Speed (rpm)
after model upload
Digital Digital
AND Currents Mechanical
In Out
Switch 28: Current Level Current Level (MCU) DSP_Reset ResetReq Mimic shunt current measurement
channel: 28 channel: 18 channel: 25 on TI BoostXL DRV8301 board
The model outputs three analog voltages and mimics the shunt current mea-
surements on a TI Boost XL DRV8301 board. The rotor position is sensed us-
ing Hall signals via three digital outputs. The control algorithm generates six
PWM signals controlling the inverter switches compliant to the TI Boost XL
DRV8301 board. Table 3.1 shows the detailed pin assignment for this demo
model.
16
Description of Demo Projects
Ia AO12 J7 67
Ib AO13 J7 68
Ic AO14 J7 69
Hall A DO2 J1 5
Hall B DO6 J2 13
Hall C DO7 J2 12
PWM A H DI16 J8 80
PWM A L DI17 J8 79
PWM B H DI18 J8 78
PWM B L DI19 J8 77
PWM C H DI20 J8 76
PWM C L DI21 J8 75
17
3 Demo Application
sw
Digital Digital
NOT is Probe K 0
In Out
the Speed rpm
Disable Switching LED 29: Switching Enabled Scope
channel: 22 channel: 29
/en
PWM sw
Capture
Switch Signals GD
channel: [16:21]
Analog
Out
Iuvw'
channel: [12:14]
is the
Analog
Out
24 V Resolver the'
channel: 4
The model outputs analog voltages for the stator current measurements, the
dc link voltage and the electrical angle. The stator current voltages as well as
the dc link voltage can also be accessed directly via the BNC connectors. The
rotor position and speed is made available using a quadrature encoder module
via three digital outputs. The control algorithm generates six PWM signals
controlling the inverter switches. Table 3.2 shows the detailed pin assignment
for this demo model.
18
Description of Demo Projects
Isa AO0 J3 23
Isb AO1 J3 24
Isc AO2 J3 25
Vdc AO3 J3 26
θe AO4 J3 27
Vdc AO11 J7 66
Iu AO12 J7 67
Iv AO13 J7 68
Iw AO14 J7 69
ENC1A DO6 J2 13
ENC1B DO7 J2 12
ENC1I DO23 J6 52
PWM A H DI16 J8 80
PWM A L DI17 J8 79
PWM B H DI18 J8 78
PWM B L DI19 J8 77
PWM C H DI20 J8 76
PWM C L DI21 J8 75
19
3 Demo Application
Digital Digital
NOT
In Out Io -1
Disable Switching LED 29: Switching Enabled Ib
channel: 22 channel: 29 0
/en
PWM
Capture
Analog
Switch Signals GD Out
channel: [16:19]
Ib Iuv w Iuv w ' Iuvw'
channel: [12:14]
V dc V dc V dc'
Io
Sensing Analog
Out
L: L
A Vdc'
24 V V dc
R: R channel: 11
Value: 24
Analog
Io
Out
Model channel: 4
Settings 0.0000
1 z-1 C
Digital
Out
Enable 1 sec BUCK
after model upload Model ID
channel: [22 17 16]
The model outputs analog voltages for the the positive and negative load cur-
rents as well as the dc link voltage. The load current measurement voltage
can also be accessed directly via the BNC connectors at AO4. The control algo-
rithm generates four PWM signals controlling the h-bridge switches. Table 3.3
shows the detailed pin assignment for this demo model.
20
Description of Demo Projects
-Io AO4 J3 27
Vdc AO11 J7 66
-Io AO12 J7 67
Io AO13 J7 68
PWM A H DI16 J8 80
PWM A L DI17 J8 79
PWM B H DI18 J8 78
PWM B L DI19 J8 77
21
3 Demo Application
Qu Qv Qw Vdc'
Q u4 Qv4 Qw4
channel: [0 2 1 3] channel: [4 16 5 17] channel: [18 20 19 21] channel: 11
abc
αβ V mid
Analog
Out
XY Plot
V dc
Vmid'
channel: 3
Q u1 Analog
Qv1
Qw1 Vg
Scope Out
V uv w
Vg Vgrid'
Iuv w
Q u2 channel: [4 5 6]
V V dc Qv2
Qw2
Ig
1 PV
Sun
Q u3 O ut
Qv3
Qw3
Discrete
V V mid Sine Wave
Q u4
Qv4
Qw4
Digital Digital
Model In Out
Settings
Switch 28: Current Level Current Level (MCU)
Settings channel: 28 channel: 18
Digital
C
Out
1 z-1 NPC
Reset Processor Model ID
Enable 1 sec when model starts channel: [22 17 16]
after model upload
Switch 29: Enable Drive Enable Drive (MCU) DSP_Reset ResetReq -1 LED 31: Blinking
z NOT
channel: 29 channel: 4 channel: 25 channel: 31
22
Description of Demo Projects
The model outputs analog voltages for the load current measurements, the dc
link voltage as well as the mid and grid voltages. The mid and grid voltages
can be accessed directly via the BNC connectors. The embedded control algo-
rithm generates 12 PWM signals controlling the switches of the neutral point
clamped multilevel inverter. Table 3.4 shows the detailed pin assignment for
this demo model.
Vmid AO3 J3 26
Vgridu AO4 J3 27
Vgridv AO5 J3 28
Vgridw AO6 J3 29
Vdc AO11 J7 66
Iu AO12 J7 67
Iv AO13 J7 68
Iw AO14 J7 69
Qu1 DI0 J4 40
Qu2 DI2 J4 38
Qu3 DI1 J4 39
Qu4 DI3 J4 37
Qv1 DI4 J4 36
Qv2 DI16 J8 80
Qv3 DI5 J4 35
Qv4 DI17 J8 79
Qw1 DI18 J8 78
Qw2 DI20 J8 76
Qw3 DI19 J8 77
Qw4 DI21 J8 75
23
3 Demo Application
24
4
Appendix
The tables on the next pages provide more detailed information on the con-
nectivity of the LaunchPad Interface. For each LaunchPad, the RT Box I/O is
shown beside the header pins and the processor peripherals available at those
pins. Note that only peripherals are listed which are compliant with the type
and direction of the RT Box I/O.
4 Appendix
J1 J3
3.3V 1 21
2 22 GND
J1.3 DO0 3 23 AO0 ADCINA7
J1.4 DO1 4 24 AO1 ADCINB1
GPIO12, TZ1 DO2 5 25 AO2 ADCINA2
6 26 AO3 ADCINB2
GPIO18, SPICLKA DI24 7 27 AO4 ADCINA0
GPIO22, EQEP1S DI25 8 28 AO5 ADCINB0
GPIO33, EPWMSYNCO, DI26 9 29 AO6 ADCINA1
ADCSOCBO
GPIO32, EPWMSYNCI DO27 10 30 AO7 NC
J5 J7
3.3V 41 61
42 62 GND
J7.3 DO16 43 63 AO8 ADCINB7
J7.4 DO17 44 64 AO9 ADCINB4
GPIO20, EQEP1A DO18 45 65 AO10 ADCINA5
46 66 AO11 ADCINB5
47 67 AO12 ADCINA3
GPIO21, EQEP1B DO19 48 68 AO13 ADCINB3
49 69 AO14 ADCINA4
50 70 AO15 NC
26
LAUNCHXL-F28069M Pin Map
J4 J2
J8 J6
27
4 Appendix
28
LAUNCHXL-F28377S Pin Map
J1 J3
3.3V 1 21
2 22 GND
GPIO90 DO0 3 23 AO0 ADCIN14
GPIO89 DO1 4 24 AO1 ADCINB1
GPIO41 DO2 5 25 AO2 ADCINB4
6 26 AO3 ADCINB2
GPIO60, SPICLKA, OUT- DI24 7 27 AO4 ADCINA0
XBAR3
GPIO61, SPISTEA, OUT- DI25 8 28 AO5 ADCINB0
XBAR4
GPIO43 DI26 9 29 AO6 ADCINA1
NC DO27 10 30 AO7 NC
J5 J7
3.3V 41 61
42 62 GND
GPIO87 DO16 43 63 AO8 ADCIN15
GPIO86 DO17 44 64 AO9 ADCINA2
NC DO18 45 65 AO10 ADCINA5
46 66 AO11 ADCINB5
47 67 AO12 ADCINA3
NC DO19 48 68 AO13 ADCINB3
49 69 AO14 ADCINA4
29
4 Appendix
50 70 AO15 NC
J4 J2
J8 J6
30
LAUNCHXL-F28377S Pin Map
31
4 Appendix
J1 J3
3.3V 1 21
2 22 GND
GPIO19, SD1_C2 DO0 3 23 AO0 ADCINA14, CMPIN4P
GPIO18, SD1_D2 DO1 4 24 AO1 ADCINC3, CMPIN6N
GPIO67 DO2 5 25 AO2 ADCINB3, CMPIN3N
6 26 AO3 ADCINA3, CMPIN1N
GPIO60, SPICLKA, OUT- DI24 7 27 AO4 ADCINC2, CMPIN6P
XBAR3, SPISIMOB
GPIO22, EPWM12A, SPI- DI25 8 28 AO5 ADCINB2, CMPIN3P
CLKB
GPIO105 DI26 9 29 AO6 ADCINA2, CMPIN1P
GPIO104, EQEP3A DO27 10 30 AO7 ADCINA0
J5 J7
3.3V 41 61
42 62 GND
GPIO139 DO16 43 63 AO8 ADCIN15, CMPIN4N
GPIO56, EQEP2S, SD2_D1 DO17 44 64 AO9 ADCINC5, CMPIN5N
GPIO97, EQEP1B DO18 45 65 AO10 ADCINB5
46 66 AO11 ADCINA5, CMPIN2N
47 67 AO12 ADCINC4, CMPIN5P
GPIO52, EQEP1S, SD1_D3 DO19 48 68 AO13 ADCINB4
49 69 AO14 ADCINA4, CMPIN2P
32
LAUNCHXL-F28379D Pin Map
50 70 AO15 ADCINA1
J4 J2
J8 J6
33
4 Appendix
34
LAUNCHXL-F28027 Pin Map
J4/J6 J2/J2
3.3V 1 21/1
2 22/2 GND
GPIO28, TZ2 DO0 3 23/3 AO0 ADCINA7
GPIO29, TZ3 DO1 4 24/4 AO1 ADCINA3
GPIO34 DO2 5 25/5 AO2 ADCINA1
6 26/6 AO3 ADCINA0
GPIO18, SPICLK DI24 7 27/7 AO4 ADCINB1
DI25 8 28/8 AO5 ADCINB3
DI26 9 29/9 AO6 ADCINB7
35
4 Appendix
36
LAUNCHXL-F280049C Pin Map
J1 J3
3.3V 1 21
2 22 GND
GPIO13 DO0 3 23 AO0 ADCINA5
GPIO40 DO1 4 24 AO1 ADCINB0
DO2 5 25 AO2 ADCINC2
6 26 AO3 ADCINB1
GPIO56, SPICLKA DI24 7 27 AO4 ADCINB2
ADCINC4 DI25 8 28 AO5 ADCINC0
GPIO37, EQEP1B DI26 9 29 AO6 ADCINA9
GPIO35, EQEP1A DO27 10 30 AO7 ADCINA1
J5 J7
3.3V 41 61
42 62 GND
GPIO28, EQEP1A DO16 43 63 AO8 ADCINA6
GPIO29, EQEP1B DO17 44 64 AO9 ADCINB6
ADCINB4 DO18 45 65 AO10 ADCINC14
46 66 AO11 ADCINC1
47 67 AO12 ADCINC3
ADCINA8 DO19 48 68 AO13 ADCINC5
49 69 AO14 ADCINA3
50 70 AO15 ADCINA0
37
4 Appendix
J4 J2
J8 J6
38
LAUNCHXL-F280049C Pin Map
39
electrical engineering soft ware