Professional Documents
Culture Documents
Description Features
The TIDA-01507 reference design is a generic • Up to 200-W Power Stage With Sensorless Field-
development platform for motor-control applications. Oriented Control (FOC)-Based InstaSPIN™
Control for the system comes from the C2000™ Solution or Sensored FOC-Based Resolver for
TMS320F28069M microcontroller (MCU). The 3-phase Brushless DC Motor, Efficiency: > 90% Over Full
BLDC gate driver, DRV8305-Q1 drives a BLDC motor Input Range
whereas the resolver-to-digital converter PGA411-Q1 • 10-, to 18-V Input Voltage Range, 40-A Peak
senses the motor shaft position and velocity. Power Output Current Capability
management integrated circuit (PMIC) TPS65381A-Q1 • Full Protection Features, Includes Overcurrent
supplies the MCU and additional circuits on the board. Protection (OCP), Overvoltage and Undervoltage
Additionally, an isolated Controlled Area Network Protection (OVP, UVP), Overload, Lost Phase,
(CAN) interface allows connection to various host Phase Imbalance, Stall, Start-up Failed, Reverse
systems. Polarity Protection
The implementation of multiple subsystems on a single • Automatic Motor Parameters Identification
printed-circuit board (PCB) allows instant development
start and validation of the in-system performance of • High-Performance Speed Control Includes High
TI's motor control solutions. This reduces learning Trajectory Changes and Speed Reversal Capability
time, speeds up practical development, and reduces Using the InstaSPIN-FOC™ Solution
time-to-market. • Cycle-by-Cycle Overcurrent Limit With Configurable
Threshold for Motor Stall Protection
Resources • Manual, Digital or External Control From Arbitrary-
Waveform Generator (AWG)
TIDA-01507 Design Folder
DRV8305-Q1 Product Folder
• Motor Shaft Angle and Velocity Real-Time
Monitoring Using an Oscilloscope
PGA411-Q1 Product Folder
TPS65381A-Q1 Product Folder Applications
TMS320F28069M Product Folder
• HEV/EV - Inverter & Motor Control
TCAN1042HGV-Q1 Product Folder
• Engine Management - Actuators - eTurbo/Charger
• Engine Management - Actuators - Engine Fan
ASK Our E2E Experts • Electric Power Steering (EPS)
X, Y, Z CAN UART
3 EXC, SIN,
3 CAN UART 6
COS
X, Y, Z
4 4
P12V SPI SPI P5V
6 4
P3V3 PWM GPIO P3V3
6
ADC MCU Resolver
BLDC Driver
P1V8 F28069M Front-End
DRV8305-Q1 4
(C2000) 4×SW PGA411-Q1
P3V3
14 4
JTAG LEDs
12
ADC SPI, ADC
GPIO, BNC
RESET R2R D/A
Converter
10 50Ÿ
Manual External
Control Control
BNC
External
Monitor
P3V3
P12V
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 1
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Description www.ti.com
An IMPORTANT NOTICE at the end of this TI reference design addresses authorized use, intellectual property matters and other
important disclaimers and information.
1 System Description
Increasing popularity of Hybrid Electric Vehicles (HEV) and Electric Vehicles (EV) calls for highly-efficient
motor drives in various applications. Making all systems more efficient helps to extend the operating range
of the electric vehicle or further reduces fuel consumption in the case of the hybrid electric vehicle.
To achieve tight performance requirements, the designer usually selects the FOC method for controlling a
synchronous or induction motor. The FOC achieves superior dynamic performance including fast
acceleration and deceleration, operates smoothly over the full speed range and generates full torque at
zero speed. This makes it the best fit for automotive applications such as traction inverters where dynamic
performance has direct impact on the driving experience of the vehicle.
The main principle of the FOC scheme is decoupling magnetizing flux and torque into two components
that can be visualized as a vector.
The FOC also has some drawbacks. The control scheme is quite complex and requires mathematical
transformations to be carried out quickly. Additionally, the control loop must determine rotor position using
sensors or rotor position prediction mechanisms. Similar to other closed-loop systems, control loop low
time latency and jitter are the key to success. For the detailed FOC theory of operation and applications,
see Sensorless Field Oriented Control of 3-Phase Permanent Magnet Synchronous Motors, Sensored
Field Oriented Control of 3-Phase Induction Motors, Sensorless Field Oriented Control of 3-Phase
Permanent Magnet Synchronous Motors Using F2833x, and Sensored Field Oriented Control of 3-Phase
Permanent Magnet Synchronous Motors.
Figure 1 shows a typical 3-phase motor control system. The position of current sense resistors (shunts)
may differ. In this case, all shunts are on the low side. This allows for inexpensive operational amplifiers
(op amps) configured as a non-inverting amplifier. Current is estimated (calculated) for control phases
when the bottom switch is open and no current flows through the shunt. Such solution is typical for lower-
power, low-voltage applications.
TIDA-01507
VIN Motor Resolver
DCLINK
PMIC 3× PWM Top
V
MOSFET
Driver W
MCU 3× PWM
Bottom
C I
A S 3x ISENSE
N O AFE
POS. Sensing
High-end systems use in-phase current sensing. Figure 2-A shows a shunt located in series with the
motor terminal. Current is read-out during all motor control phases but more expensive current-sense
amplifiers (CSA) or isolated amplifiers (see Figure 2-B) are required due to high common-mode voltage
changes during the operation.
2 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Description
A B C
Shunt Shunt
W W W
+
CSA
To Differential
To ADC ADC or To ADC
Difference AMP
+VCC AGND
Alternatively to shunts, an indirect current sensing based on magnetic sensors is used as Figure 2-C
shows. Magnetic sensors provide intrinsic galvanic isolation needed for high-voltage (HV) systems and
eliminate power dissipation on shunts. Drawbacks are lower accuracy, the need for magnetic simulations,
and eventually shielding or a custom magnetic core.
As previously discussed, for the best results the FOC control loop requires a rotor position sensor. Motor
drives use various sensors such as Quadrature Encoder (QEP), Incremental encoder, or Hall-based
sensing, The automotive industry prefers resolvers in most cases due to its robustness, reliability, and
performance.
VR
, VR
VS VS
VC
VC
A resolver uses the principle of a rotating transformer with a single primary winding and two secondary
windings positioned in right angles from each other (see Figure 3). The generated sinewave, VR, excites
the primary winding and creates magnetic flux Φ that is distributed through secondary windings with
respect to the rotor angle ϴ. The rotor angle ϴ is then calculated from the ratio of voltages VS, VC on the
secondary windings as per Equation 1.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 3
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Description www.ti.com
VS sin T u VR u TS (1)
VC cos T u VR u TS (2)
sin T u VR u TS sin T VS
cos T u VR u TS cos T VC (3)
VS V
tan T oT arctan S
VC VC (4)
See Automotive Resolver-to-Digital Converter for Safety Applications or EMC Compliant Single-Chip
Resolver-to-Digital Converter (RDC) Reference Design for more details on resolvers.
Implementation of the power stage depends on the output power capabilities. Lower-power or low-voltage
systems use typical N-FET transistors due to very low on-resistance (RDS(on)) in mΩ or sub-mΩ range.
High-power and high-voltage applications use insulated-gate bipolar transistors (IGBT) being step-by-step
replaced by silicon carbide (SiC) or gallium nitride (GaN) transistors. All these switching components
require external drive circuitry (a driver). The driver usually implements other features too, such as current
sensing, galvanic isolation or diagnostics for safety-relevant applications.
Although the TIDA-01507 has limited output power capabilities, the system architecture, principles and
control algorithms remain practically the same, independent of the output power. For this reason, the
TIDA-01507 is a very convenient tool to start with high-performance motor control development.
WARNING
Texas Instruments does not claim any safety specifications for this
design. Components intended for safety-related applications are
used in this design for demonstration purposes only.
4 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Overview
2 System Overview
The TIDA-01507 is a complete test setup which allows debugging and exploring motor control without a
need for expensive equipment. The main idea is to implement the most important subsystems for motor
control on a single board. Figure 4 shows the design concept using an acrylic base carrier for the PCB
and the motor-resolver assembly. It is possible to use various motor-resolver combinations with minimal or
no design modifications. Section 4.4 describes selected test setups used at Texas Instruments during
development.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 5
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Overview www.ti.com
Logic signals on the parallel interface represents the binary value of the angle or velocity registers in
the PGA411-Q1. The R-2R resistor ladder converts the binary number into analog value. This solution
allows for real-time monitoring of the angle or velocity using an oscilloscope.
Figure 5 shows a detail of the PCB and highlights important interfaces.
D/A Converter Analog Control
Output (J7) Input (J2)
BLDC Motor
Resolver Terminal (J4)
Terminal (J5)
Serial Interface
(UART) Connector (J3)
TI 14-Pin JTAG
Connector (J200)
Manual Control
(R1)
Status LEDs
(D200íD202)
DIP Switch
Configuration (S200)
CAN Interface
Connector (J6)
6 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Overview
Software provided as a part of the TI design is a motor control example based on a modified MotorWare™
Project. The software example is intended to be a basis for your own development and does not provide
any complex functionality. Texas Instruments recommends controlSUITE ™ and MotorWare software
where you can find many motor control software examples including libraries and source codes. Software
developed for InstaSPIN-FOC devices runs on InstaSPIN-MOTION deceives without any modifications.
Id
Iq PARK
a DRV_acqAdcInt
a EST_run T FLASH/RAM
T DRV_readAdcData
a a Ir_in Ia
\ Irated Ib
Flux It_in CLARKE
a a Ic
T \
Angle
a
Z a FAST¡ •š]u š}Œ Vr_in
Z Va ADC
Speed Flux, Angle, Speed, Torque
Vb Driver
aW aW Motor Parameters ID Vt_in CLARKE
Vc
Torque
a a Vbus
T Z
ROM FLASH/RAM
RDC
a
Rs Enable PowerWarp¡
a
Rr Enable Motor Identification
a
Lsd
a Enable Rs Online Recalibration
Lsq
a Enable Force Angle Startup
\rated
a
Irated Motor Type
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 7
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Overview www.ti.com
X, Y, Z CAN UART
3 EXC, SIN,
3 CAN UART 6
COS
X, Y, Z
4 4
P12V SPI SPI P5V
6 4
P3V3 PWM GPIO P3V3
6
ADC MCU Resolver
BLDC Driver
P1V8 F28069M Front-End
DRV8305-Q1 4
(C2000) 4×SW PGA411-Q1
P3V3
14 4
JTAG LEDs
12
ADC SPI, ADC
GPIO, BNC
RESET R2R D/A
Converter
10 50Ÿ
Manual External
Control Control
BNC
External
Monitor
P3V3
P12V
2.3.1 DRV8305-Q1
The DRV8305-Q1 device is a gate driver IC for three-phase motor-drive applications. The device provides
three high-accuracy half-bridge drivers, each capable of driving a high-side and low-side N-channel
MOSFET. A charge pump driver supports 100% duty cycle and low-voltage operation for cold-crank
situations. The device can tolerate load dump voltages up to 45 V. The DRV8305-Q1 device includes
three bidirectional current-shunt amplifiers for accurate low-side current measurements that support
variable gain settings and an adjustable offset reference.
8 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Overview
2.3.2 PGA411-Q1
The PGA411-Q1 device is a resolver-to-digital converter with an integrated exciter-amplifier and boost-
regulator power supply that is capable of both exciting and reading the sine and cosine angle from a
resolver sensor. The integration of the exciter amplifier and boost supply with protection in the PGA411-
Q1 device enables cost reductions of the bill of materials (BOM) and space reductions on the printed-
circuit board (PCB) because of the elimination of most of the external and passive components.
2.3.3 TPS65381A-Q1
The TPS65381A-Q1 device is a multirail power supply designed to supply microcontrollers (MCUs) in
safety-relevant applications, such as those found in automotive and industrial markets. The device
supports Texas Instruments’ Hercules™ TMS570 MCU and C2000 MCU families, and various other
MCUs with dual-core lockstep (LS) or loosely-coupled architectures (LC).
2.3.4 TMS320F28069M
The F2806x Piccolo family of microcontrollers (MCUs) provides the power of the C28x core and CLA
coupled with highly-integrated control peripherals in low pin-count devices. This family is code-compatible
with the previous C28x-based code, and also provides a high level of analog integration.
An internal voltage regulator allows for single-rail operation. Enhancements have been made to the High-
Resolution Pulse Width Modulator (HRPWM) module to allow for dual-edge control (frequency
modulation). Analog comparators with internal 10-bit references have been added and can be routed
directly to control the ePWM outputs. The ADC converts from 0- to 3.3-V fixed full-scale range and
supports ratio-metric (VREFHI,VREFLO) references. The ADC interface has been optimized for low overhead
and latency.
Devices with F or M suffix have special motor control software located in ROM called InstaSPIN-FOC or
InstaSPIN-MOTION solution. For further details, see the InstaSPIN-FOC™ and InstaSPIN-MOTION™
User's Guide.
2.3.5 TCAN1042HFV-Q1
This CAN transceiver family meets the ISO11898-2 (2016) High-Speed CAN (Controller Area Network)
physical layer standard. All devices are designed for use in CAN FD networks up to 2 Mbps (megabits per
second). Devices with part numbers that include the "G" suffix are designed for data rates up to 5 Mbps,
and versions with the "V" have a secondary power supply input for I/O level shifting the input pin
thresholds and RXD output level. This family has a low-power standby mode with remote wake request
feature. All devices include many protection features to enhance device and network robustness.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 9
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Overview www.ti.com
10 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Overview
PVDD
PVDD THREE-PHASE MOSFET BRIDGE
P3V3
5
P3V3
GH_A 4 Q100 GH_B 4 Q101 GH_C 4 Q102
SQJ858AEP-T1-GE3 SQJ858AEP-T1-GE3 SQJ858AEP-T1-GE3
C100
10uF C101 C102 C103
1
2
3
1
2
3
1
2
3
10V 1uF 1uF 1uF
GND
25V 25V 25V MOT_A MOT_B MOT_C
BLDC DRIVER MOT_A MOT_B MOT_C
GND C104
1uF
5
25V
U100 C105 GL_A 4 Q103 GL_B 4 Q104 GL_C 4 Q105
GND SQJ858AEP-T1-GE3 SQJ858AEP-T1-GE3 SQJ858AEP-T1-GE3
0.1uF Local DC-Link
C106 15
AVDD CP1H
43
1uF
1
2
3
1
2
3
1
2
3
PVDD 46 42 50V
GND DVDD CP1L
C107 P3V3 SL_A SL_B SL_C
25V 41 PVDD CP2H 39
nFAULT_DRV 8 40 0.1uF
C108 nFAULT_DRV FAULT CP2L
50V R100 NT100 NT101 NT102
12
SCLK SCLK
10uF 10 47 10.0k S1_N S2_N S3_N
35V SDI SDI WAKE WAKE_DRV
C109 C110 C111 Net-Tie R101 Net-Tie R102 Net-Tie R103
11 48
SDO SDO VREG/VREF P3V3 1uF 1uF 1uF 0.007 0.007 0.007
9 13 S1_P S2_P S3_P
SCS SCS PWRGD PWRGD_DRV
25V 25V 25V NT103 NT104 NT105
GND 1
EN_GATE
EN_DRV R104
44
VDRAIN PVDD Net-Tie Net-Tie Net-Tie
100 Low-side current sensing - route differentially
PWM_AH 2
INH_A GHA
36 GH_A
PWM_AH
PWM_AL 3
INL_A SHA
35 MOT_A
PWM_AL
P3V3 GLA
33 GL_A GND
SLA 34 SL_A
VOLTAGE SENSING
2
PWM_BH 4
INH_B
PWM_BH
D100 GHB
29 GH_B
Super Red PWM_BL 5
INL_B
MOT_A MOT_B MOT_C PVDD
PWM_BL
R105 31 SL_B
SLB
1
10.0k
32 GL_B R106 R107 R108 R109
GLB
25.5k 25.5k 25.5k 25.5k
R110 30 MOT_B
SHB
220 VSEN_A VSEN_B VSEN_C VSEN_PVDD
VSEN_A VSEN_B VSEN_C VSEN_PVDD
PWM_CH 6
INH_C
PWM_CH
nFAULT_DRV GHC
28 GH_C
PWM_CL 7 R111 R112 R113 R114
PWM_CL INL_C
27 MOT_C S1_N 4.99k C112 4.99k C113 4.99k C114 4.99k C115
SHC
0.1uF 0.1uF 0.1uF 0.1uF
25 GL_C 50V 50V 50V 50V
GLC
C116
26 SL_C 1000pF
SLC
16V S1_P GND GND GND GND
R115 16 23
ISNS_A SO1 SN1
56.0 SP1
24 S2_N
R116 17 21
ISNS_B SO2 SN2
56.0 22 C117
SP2
1000pF
R117 18 19 16V S2_P
ISNS_C SO3 SN3
56.0 20
SP3
S3_N
37 14 TEMPERATURE MONITORING VOLTAGE SENSING PROTECTION
VCP_LSD GND
C118 GND 45
38 49 C119
C123 PVDD
VCPH PAD
C120 C121 C122 1000pF P3V3 U101 D101
2200pF 2200pF 2200pF 1uF 2.2uF DRV8305 16V S3_P
16V 16V 16V 25V 16V GND 5 3 VSEN_B 1 6
VDD OUT TEMP_DRV P3V3
4
VDD
GND GND GND GND
C124 VSEN_C 2 5 VSEN_A
2 0.1uF
GND
1 50V
GND
3 4 VSEN_PVDD
P3V3
LMT86DCKT
PWM_AH GND
TP100
PWM_AL BAT54CDW-7-F
TP101
PWM_BH
TP102
PWM_BL
TP103
PWM_CH
TP104
PWM_CL
TP105 NOTE: This block is based on ti.com/TOOL/TIDA-00901
The programmable motor driver DRV8305-Q1 (U100) controls the power stage. Capacitors C100 and
C108 are bypassing capacitors for each power rail. Capacitors C104, C106, and C123 are output
capacitors for internal voltage regulators. Capacitors C105, C107, and C118 are required for the
integrated charge pump. Six N-FET transistors, Q100–Q105 are for the 3-phase power stage.
Shunt resistors R101–R103 sense current on the low-side of each phase. Capacitors C116, C117, and
C119 add low-pass filter response to the current measurement. RC networks R115–R117 and C120–122
additionally filter the output of the integrated current sense amplifiers (CSA).
Power dissipation in shunt resistors is important when selecting the shunt resistance values. The
maximum root-mean-square current in a motor is 15 A, so the peak-to-peak current is as per Equation 5:
Ip p IRMS u 2 u 2 15 u 2 u 1.4142136 42.43 A (5)
By selecting a 7-mΩ resistor as the shunt resistor with PGA Gain (GPGA) equal to 10, the power loss in the
resistor at 15 ARMS is:
2
PD Rshunt u IRMS 0.007 u 152 1.575 W (6)
From Equation 6, it can be surmised that it is sufficient to select a power 7-mΩ, 2-W, 1% 2512-package
resistor. In this case, the ADC sensing range for the current measurement is defined as per Equation 7:
VADC REF 3.3
Imax 47.1430 A
Rshunt u GPGA 0.007 u 10
where
• VADC-REF is (integrated) voltage reference for the ADC (7)
The group of capacitors C101–C103 and C109–C111 form a local DC-link capacitor located in the close
proximity to each H-bridge transistor pair. This reduces high di/dt spikes and possible EMI issues.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 11
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Overview www.ti.com
Resistors R106–R109 and R111–R114 form four resistor dividers for the control-loop feedback. The
system measures the BEMF on the un-energized winding node. BEMF feedback is needed for sensorless
control to estimate the position of the rotor for accurate commutation. The maximum phase voltage
feedback is defined as per Equation 8:
VADC REF u R106 R111 3.3 u 25.5 k 4.99 k
Vmax 20.164 V
R111 4.99 k (8)
Considering a 5% headroom for this value, the maximum voltage input to the system is recommended to
be 20.164 × 0.95 = 19.1 V.
Capacitors C112–C115 add low-pass filter response as per Equation 9:
1 1
fC 381.3 Hz
R106 u R111 25.5 k u 4.99 k
2S u u C112 2S u u 100 n
R106 R111 25.5 k 4.99 k (9)
Diodes network D101 clamps voltage feedback signals to approximately 3.6 V to protect the inputs of the
ADC.
The resistor R110 set the bias current through the LED diode D100 which visually reports the status of the
fault signal. The R105 is a pullup resistor for the nFAULT_DRV signal. The BLDC driver uses inexpensive
integrated sensor LMT86-Q1 (U101) for onboard temperature monitoring. The capacitor C124 is an
optional charge-bucket filter recommended for interfacing with ADCs. For further details, see to the
application and implementation section of LMT86 2.2-V, SC70/TO-92/TO-92S, Analog Temperature
Sensors.
12 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Overview
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 13
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Overview www.ti.com
3
DNP VDD
4.70k 81
C200 U201 VDD
P3V3 VDDA 91
0.1uF LM4040A20IDBZR VDD
GND VSS
4
R208
2
50V 25 VDDA VSS 15
10.0 VSS 36
5 VDDIO VSS 47
C201 13 62
VDDIO VSS
GND 2.2uF 38 80
VDDIO VSS
U200A 16V 61 92
VDDIO VSS
79
VDDIO
23
ADCINA0 GPIO0/EPWM1A
87 GND 93
VDDIO VSSA
26
VSEN_C PWM_AH
22 ADCINA1 GPIO1/EPWM1B/COMP1OUT 86
VSEN_B PWM_AL
21 84 46
ACTRL ADCINA2/COMP1A/AIO2 GPIO2/EPWM2A PWM_BH P3V3 VDD3VFL
20 ADCINA3 GPIO3/EPWM2B/SPISOMIA/COMP2OUT 83
VSEN_A PWM_BL
P3V3 19
ADCINA4/COMP2A/AIO4 GPIO4/EPWM3A
9
TEMP_DRV PWM_CH
R209 18 10 GND
MAN_CTRL ADCINA5 GPIO5/EPWM3B/SPISIMOA/ECAP1 PWM_CL
49.9 ARES1 17 58
P3V3 ADCINA6/COMP3A/AIO6 GPIO6/EPWM4A/EPWMSYNCI/EPWMSYNCO VA0
16 57
VSEN_PVDD ADCINA7 GPIO7/EPWM4B/SCIRXDA/ECAP2 VA1
P1V8 GPIO8/EPWM5A/ADCSOCAO
54
AMODE
ARES2 28 ADCINB0 GPIO9/EPWM5B/SCITXDB/ECAP3 49
INHB
GND 29 ADCINB1 GPIO10/EPWM6A/ADCSOCBO 74
P1V8 ISNS_A WAKE_DRV
ARES3 30
ADCINB2/COMP1B/AIO10 GPIO11/EPWM6B/SCIRXDB/ECAP1
73
RXD
31
ADCINB3 GPIO12/TZ1/SCITXDA/SPISIMOB
44 P3V3
ISNS_B TXD
ARES4 32
ADCINB4/COMP2B/AIO12 GPIO13/TZ2/SPISOMIB
95 SW1
ARES5 33
ADCINB5 GPIO14/TZ3/SCITXDB/SPICLKB
96 SW2
GND
DIAG_PMIC_A 34
ADCINB6/COMP3B/AIO14 GPIO15/ECAP2/SCIRXDB/SPISTEB
88 LED3
R210 35 55
P3V3 ISNS_C ADCINB7 GPIO16/SPISIMOA/TZ2 SDO
C202 C203 C204 C205 C206 C207
GND 4.70k GPIO17/SPISOMIA/TZ3 52
SDI
11 51 1uF 1uF 1uF 1uF 1uF 1uF
nRST XRS GPIO18/SPICLKA/SCITXDB/XCLKOUT SCLK
64 25V 25V 25V 25V 25V 25V
GPIO19/XCLKIN/SPISTEA/SCIRXDB/ECAP1 nCS_RES
nVREGENZ 90
VREGENZ GPIO20/EQEP1A/MDXA/COMP1OUT
6 EQEP1A
C208 7 EQEP1B
GPIO21/EQEP1B/MDRA/COMP2OUT
0.1uF nTRST 12 98 EQEP1S GND
TRST GPIO22/EQEP1S/MCLKXA/SCITXDB
50V GPIO23/EQEP1I/MFSXA/SCIRXDB
2 EQEP1I
45 TEST2 GPIO24/ECAP1/EQEP2A/SPISIMOB 97 SW3
GND GPIO25/ECAP2/EQEP2B/SPISOMIB 39 DIAG_PMIC
XIN 60 X1 GPIO26/ECAP3/EQEP2I/SPICLKB/USB0DP 78 P1V8
USB_D+
77
GPIO27/HRCAP2/EQEP2S/SPISTEB/USB0DM USB_D-
XOUT 59
X2 GPIO28/SCIRXDA/SDAA/TZ2
50
BMODE0
43 TEST1
X-TAL OSCILLATOR X_20MHZ
TEST3 1
GPIO29/SCITXDA/SCLA/TZ3
41
GPIO42/EPWM8A/TZ1 /COMP1OUT GPIO30/CANRXA/EQEP2I/EPWM7A RX_CAN
TEST4 8 40 C209 C210 C211 C212 C213 C214
GPIO43/EPWM8B/TZ2 /COMP2OUT GPIO31/CANTXA/EQEP2S/EPWM8A TX_CAN
Y200 56 99 SDA 2.2uF 2.2uF 2.2uF 2.2uF 2.2uF 2.2uF
FLTRES_RS GPIO44/MFSRA/SCIRXDB/EPWM7B GPIO32/SDAA/EPWMSYNCI/ADCSOCAO
NX3225GA-20MHZ-STD-CRA-1 42 100 SCL 16V 16V 16V 16V 16V 16V
STB_CAN GPIO50/EQEP1A/MDXA/TZ1 GPIO33/SCLA/EPWMSYNCO/ADCSOCBO
2 1 XIN 48 68 GPIO34
G FAULT_RS GPIO51/EQEP1B/MDRA/TZ2 GPIO34/COMP2OUT/COMP3OUT
4 3 XOUT 53 71 TDI
G OMODE GPIO52/EQEP1S/MCLKXA/TZ3 GPIO35/TDI
65
GPIO53/EQEP1I/MFSXA GPIO36/TMS
72 TMS GND
nCS_BLDC
20MHz 69
GPIO54/SPISIMOA/EQEP2A/HRCAP1 GPIO37/TDO
70 TDO
WDT_TRIG
GND C215 C216 75 67 TCK
PWRGD_DRV GPIO55/SPISOMIA/EQEP2B/HRCAP2 GPIO38/XCLKIN/TCK
15pF 15pF LED1 85 66
GPIO56/SPICLKA/EQEP2I/HRCAP3 GPIO39 nCS_PMIC
50V 50V LED2 89 GPIO57/SPISTEA/EQEP2S/HRCAP4 GPIO40/EPWM7A/SCITXDB 82 TEST2
SW4 94 GPIO58/MCLKRA/SCITXDB/EPWM7A GPIO41/EPWM7B/SCIRXDB 76
nFAULT_DRV
GND GND
TMS320F28069MPZT
D200 DIP-SWITCH CONFIGURATION PMIC DIAG I2C TESTPOINTS ENCODER TESTPOINTS RESERVE
1 2 R211 LED1
1.50k P3V3 TEST1
TP200
TEST2
TP201
Super Red TEST3
TP202
DIAG_PMIC TEST4
D201 TP203
P3V3 ARES1
R212 R213 R214 R215 R216 TP204
1 2 LED2 EQEP1A ARES2
4.70k 4.70k 4.70k 4.70k TP205 TP206
1.50k EQEP1B ARES3
R217 TP207 TP208
DIAG_PMIC_A EQEP1S ARES4
DIAG_PMIC TP209 TP210
Yellow 1 8 SW1 4.70k EQEP1I ARES5
R218 R219 TP211 TP212
2 7 SW2
D202 3 6 SW3 C217 4.70k 4.70k
1 2 R220 LED3 4 5 SW4 0.1uF
680 50V SDA
S200 TP213
SCL
TP214
Green GND GND
GND
The TMS320F28069M (U200) is the biggest member from the C2000 real-time control MCU family. The
microcontroller uses the internal 10-MHz oscillator as a clock source which is sufficient in most
applications. Alternatively, use the external oscillator Y200 with recommended capacitors C215 and C216,
if required. Assembling either the R205 or R207 resistor selects the power source for the core. The
internal voltage regulator supplying the microprocessor core is disabled by default and the safety PMIC
supplies power to the core. Capacitors C202–C207 and C209–C214 form the recommended power rail
bypass scheme. Resistor R208 and capacitor C201 decouple the analog circuitry from the noisy digital
power domain. The ADC integrated in the microcontroller can alternatively use external voltage reference
circuitry based on LM4040A-Q1 (U201), bias resistor R204, and capacitor C200. Adjust voltage
measurement feedback dividers and current sense amplifiers in the BLDC driver block accordingly, in
case the voltage reference is different than the default 3.3 V. The programming connector J200 uses a
standard 14-pin TI JTAG pinout compatible with XDS100V2, XDS110, XDS200, or XDS560 debug probes.
Resistors R200–R203 and R206 set the correct booting option. The recommended RC network R210 and
C208 prevents glitches on the reset pin. The 50-Ω resistor, R209, terminates the external control signal
and matches the typical signal generator source impedance.
CAUTION
The ACTRL signal is unprotected. Any voltages above 3.3 V will permanently
damage the microcontroller.
14 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Overview
Three LEDs D200–D202 with bias resistors R211, R212, and R220, and DIP-switch S200 with pullup
resistors R213–216, provide a basic configurable user interface. The DIAG_OUT signal from the PMIC
multiplexes both digital and analog signals. For this reason, a digital input and ADC channel monitors the
signal. The RC network R217 and C217 adds a low-pass filter for the analog input. For more information,
refer to the diagnostic MUX and diagnostic output pin section of TPS65381A-Q1 Multirail Power Supply for
Microcontrollers in Safety-Relevant Applications. The PCB board has additional testpoints for debugging
purposes. Testpoints TP200–208, TP210, and TP212 are for general purpose. Use testpoints TP205,
TP207, TP209, and TP211 to interface with the QEP encoder. Testpoints TP213 and TP214 with pullup
resistors R218 and R219 are reserved for additional I2C periphery.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 15
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Overview www.ti.com
C308 C309
68pF 68pF
EXCITER BOOST DC-DC VIN SELECTOR 50V 50V
U300
GND GND
R303 4 6
P6V DNP VCCSW VCCSW VCCSW VSW
0
39
R304 QVCC QVCC
C310 22 OE1
P5V
0 58
OE1 RESOLVER ANALOG FRONT-END RESOLVER CONNECTOR
GND VDD
OE2 26 OE2
Either-or 0.1uF 60 QVCC
P5V VCC
50V ORS
9
24
V_AMP VEXT
OSIN
43 OSIN
61 R305
P3V3 VIO
51.0k
P3V3 IZ1
38 IZ1
IZ3 37 IZ3
12 IZ1 R306 IZ1_TVS R307
P3V3 NRESET RESET COS+
COMAFE
35 COMAFE 27.0k 27.0k
C312
C311 31 42 IZ4 68pF
VA0 VA0 IZ4
0.1uF 32 41 IZ2 50V
VA1 VA1 IZ2 R308 R309
50V IZ3 IZ3_TVS
GND COS-
IE1 34 IE1 OCOS 36 OCOS 27.0k 27.0k
IE2 33 IE2
GND 30 AOUT R310
AOUT
1 OUTA C313 C314 20.0k
OUTA
17 2 OUTB 68pF 68pF
NCS NCS OUTB
18
SCLK XOUT
63 XOUT 50V 50V
SCLK
19
SDI OUTZ
64 OUTZ
SDI
20
SDO
GND GND GND
SDO
62 XIN
X_20MHZ
59 15
MONITOR AFE XIN
GND EXTCLKIN PRD
57 ORD0 QVCC
AOUT 16
ORD0
56 ORD1 INPUT / OUTPUT PROTECTION
TP300 FAULT_RS FAULT ORD1
OSIN 55 ORD2
TP301 ORD2
COMAFE 54 ORD3
TP302 ORD3
R311
OCOS 28 53 ORD4
TP303 AMODE AMODE ORD4
51.0k
29 OMODE ORD5 52 ORD5 V_AMP
OMODE
5 BMODE0 ORD6 51 ORD6
BMODE0 R312 R313
C315 R314 7 50 ORD7 IZ2 IZ2_TVS
0.01uF 0 GND BMODE1 ORD7 SIN+
ORD8
49 ORD8 27.0k 27.0k
50V 48 ORD9 C316
5
ORD9
10 47 ORD10 68pF
V_AMP VEXTS ORD10 D301A D301B
ORD11
46 ORD11 50V
GND GND 13 45 ORD12 IZ4 R315 IZ4_TVS R316 OE1 6 OE2 3 BAS40DW-04-TP
INHB INHB ORD12 SIN-
ORD13 44 ORDCLK 27.0k 27.0k
14 FAULTRES
FLTRES_RS
27 ORD[0..11] R317
PBKG ORD[0..11]
4
C317 C318 20.0k
3 68pF 68pF
P3V3 ECLKSEL
DGND
21 50V 50V
11
TEST
QGND
40 GND GND GND GND
PGND 8
25
NC
QVCC U301
23 65
X-TAL OSCILLATOR NC PAD MONITOR INC. ENCODER MONITOR ORD 5
VCC
Y300 GND GND OUTA IZ4_TVS 1 4 IZ1_TVS
PGA411PAP TP304 IO1 IO3
NX3225GA-20MHZ-STD-CRA-1 OUTB ORD12
TP305 TP306
2 1 XIN OUTZ ORDCLK IZ3_TVS 3 6 IZ2_TVS
G TP307 TP308 IO2 IO4
4 3 XOUT
G
20MHz GND
2
GND C319 C320
15pF 15pF TPD4E001QDBVRQ1
50V 50V MONITOR ENCODER GND
GND GND NOTE: This block is inspired by ti.com/TOOL/TIDA-00796 ORD0 ORD3 ORD6
TP309 TP310 TP311
ORD1 ORD4 ORD7
More component optimized version, Symbol is different ORD2
TP312
ORD5
TP313
ORD8
TP314
TP315 TP316 TP317
The resolver front-end uses the PGA411-Q1 (U300) to interface with various resolvers. The PGA411-Q1
implements most of the circuitry needed for resolver signal processing, calculates velocity and angle, and
outputs the information in digital form. Additionally, the AOUT pin represents the information in the analog
domain. Capacitors C300–C303 and resistor R300 form a filter that bypasses voltage rails and decouples
the sensitive analog voltage rail, QVCC, from the rest of the system.
The integrated step-up converter with external capacitors C304–C306, diode D300, and inductor L300
supply the excitation amplifier. This is required to match the typical resolver excitation signal levels (4 or 7
VRMS). Assembling either resistor R303 or R304 sets the supply rail for the integrated step-up converter to
P5V or P6V. The capacitor C311 bypasses the 3.3-V rail used for digital interfaces. The integrated voltage
regulator requires the capacitor C310. Capacitor C315 and resistor R314 are recommended in PGA411-
Q1 Resolver Sensor Interface. The external 20-MHz oscillator Y300 with recommended capacitors C319
and C320 provide clock source for the PGA411-Q1. Alternatively, use the 20-MHz oscillator from the
microcontroller block. In this case, remove Y300, C319, C320 and assembly resistors R2, R3 to the PCB.
Diode network D301 protects the output of the excitation amplifier from ESD damage on the system level.
Resistors R301, R302 and capacitors C307–C309 provide common mode and differential filtering for the
exciter amplifier feedback. Feedback coils analog front-ends are identical for both channels. Resistors
R305 (R311) and R301 (R317) set input common-mode voltage. Resistors R306, R307 (R312, R313) and
R308, R309 (R315, R316) set DC gain of the integrated difference amplifier. Capacitors C312–C314
(C316–C318) set common mode and differential cut-off frequency of the analog front-end. The ESD
protection array TPD4E001-Q1 (U301) protects both analog front-end channels from ESD damage on the
system level. Signals that are not required for the operation but are beneficial for development purposes
are wired to testpoints TP300–TP317.
For more details on the PGA411-Q1 design, see PGA411-Q1 Resolver Sensor Interface or Automotive
Resolver-to-Digital Converter for Safety Applications.
16 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Overview
1GND
1P5V
ISOLATED INTERFACE CAN TRANSCEIVER
NT400
CAN_V+
Net-Tie
P3V3 P3V3 1P5V 1P5V
R400
0
C405 C406 C407 U402
P3V3
GND 1GND 1GND D402
U403 3 7
3
15pF NUP2105LT1G
0 50V
5 12 4 2
RX_CAN OUTC INC RXD GND
7 10
R405 P3V3 EN1 EN2 1P5V R404
TCAN1042HGVDQ1 1GND
DNP20.0k 0
6 NC NC 11
CAN_GND
2 GND1 GND2 9
8 15
GND GND1 GND2
R406
ISO7731FQDWRQ1
0
GND GND 1GND 1GND
GND_OPT
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 17
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Overview www.ti.com
The ISO7731-Q1 (U403) is a triple-channel digital isolator which galvanically isolates the CAN transceiver.
Capacitors C405 and C406 are required bypass capacitors for U403. The TCAN1042-Q1 transceiver uses
recommended wiring. Resistors R401, R402, and the capacitor C409 are the network termination, this is
important to prevent signal reflections. Optional capacitors C408, C410, and the dual diode D402 prevent
damage during ESD and transient events. Common-mode choke L400 is typical for automotive CAN
networks to increase system reliability with respect to EMC. The TCAN1042-Q1 eliminates the need for
the external common-mode choke in many applications. For this reason, it is possible to assemble
resistors R400, R402, and remove the common-mode choke from the PCB. For more information about
choke-less CAN transceivers, see Simplify CAN bus implementations with chokeless transceivers. The
isolated interface requires a low-power isolated 5-V power supply. The push-pull transformer driver
SN6501-Q1 (U401) drives the transformer T400. Diodes D400 and D401 operate as a rectifier. Capacitors
C402 and C402 filter voltage on the secondary side to approx 7 V. The LDO regulator, TPS76350-Q1
(U400), regulates voltage to 5 V and reduces switching noise due to PSRR. The capacitor C404 is the
required output capacitor for the U400. Local bypass capacitors C400 and C401 are recommended. The
0-Ω resistors R404 and R406 allow for different ground terminal configurations on the CAN connector J6.
18 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Overview
P5V GND 4
GND 10
P5V GND 15
21
GND DAC_OUT
7 28
VCC GND
C500 C501 C502 C503 18 34
VCC GND
0.1uF 0.1uF 0.1uF 0.1uF 31 39
VCC GND R500
50V 50V 50V 50V 42
VCC GND
45 B11
20.0k
U500E
GND GND R501
10.0k
B10 R502
20.0k
R503
10.0k
B9 R504
20.0k
R505
10.0k
B8 R506
20.0k
BUFFER FOR THE DAC R507
10.0k
B7 R508
ORD[0..11] R509
ORD[0..11] GND 20.0k
10.0k
R510
10.0k
1 B6 R511
1OE
20.0k
ORD11 47 1A1 1Y1 2 B11
ORD10 46 3 B10 R512
1A2 1Y2
ORD9 44 5 B9 10.0k
1A3 1Y3
ORD8 43
1A4 1Y4
6 B8
B5 R513
U500A 20.0k
R514
10.0k
48 B4 R515
2OE
20.0k
ORD7 41
2A1 2Y1
8 B7
ORD6 40 9 B6 R516
2A2 2Y2
ORD5 38 11 B5 10.0k
2A3 2Y3
ORD4 37
2A4 2Y4
12 B4
B3 R517
U500B 20.0k
R518
10.0k
25 B2 R519
3OE
20.0k
ORD3 36 3A1 3Y1 13 B3
ORD2 35 14 B2 R520
3A2 3Y2
ORD1 33 16 B1 10.0k
3A3 3Y3
ORD0 32
3A4 3Y4
17 B0
B1 R521
U500C 20.0k
R522
U500D 10.0k
P5V
24 B0 R523
4OE
P5V 20.0k
30 19
4A1 4Y1
29 20 R524
4A2 4Y2
27 22 20.0k
4A3 4Y3
26 4A4 4Y4 23
GND
74ACT16244DL
GND GND GND
The 74ACT16244 16-bit buffer does level translation between the 3.3-V logic and the 5.0-V logic and
drives the R-2R resistor ladder. Capacitors C500–C503 are local bypass capacitors for the P5V voltage
rail which is also the voltage reference for the DAC. The resistor, R509, is a pulldown for the output
enable signal. Unused lines are connected to the ground to maintain the known state. Resistors
R500–R508 and R510–R524 are a part of the R–2R resistor ladder. The output of the DAC is connected
to the BNC connector J7.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 19
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
System Overview www.ti.com
R601
10.0k
4
L600 VBAT_PROT
GND 1
2 5
VIN
3 2.2uH
Q601
VCORE LIN. REGULATOR
SQJ422EP-T1-GE3 C600 C601 C602 C603
C604 C605 C606 220uF 220uF C607 C608 C609 220uF 220uF
0.01uF 0.1uF 1uF 50V 50V 0.01uF 0.1uF 1uF 50V 50V Q602
50V 50V 50V 50V 50V 50V P6V BUK92150-55A,118 P1V8
Vcore = 1.8 V
4 3
GND
R602 R603
1
68.0k 101
VDD1_G 0.1%
C610
22uF
R604 16V
VDD1_FB 80.6
GND GND 0.1%
GND GND
13 C623
WDT_TRIG ERROR/WDI
4 0.01uF
31
CP2
50V EXTRA LDO
SEL_VDD3/5
GND 19
VBAT_PROT 6 NRES GND 23 VBCKP
nRST
5
PGND Vbckp = 5 V
32 25
VPROT EN_DRV ENDRV PGND
33
PAD
P6V
TPS65381AQDAPRQ1 R609
GND 3.32k
P6V
0.1%
P5V
C624
4.7uF
P5V
R610 16V
P3V3 3.32k
0.1%
P3V3
VBCKP GND GND
VBCKP
P1V8
P1V8
GND
GND
20 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com System Overview
The diode, D600, transistors Q600, Q601, and resistors R600, R601 provide basic reverse polarity
protection. During the normal condition, the substrate diode of the transistor Q601 conducts and allows
the system to start up. The internal charge pump in U600 generates a voltage on the VCP pin higher than
the input voltage. This voltage opens the source-drain channel of the Q601 with resistance down to RDS(on)
and reduces the voltage drop on the substrate diode. The transistor Q600 starts conducting during the
reverse polarity event and shorts the G-S junction of the Q601. This prevents the transistor Q601 from
opening if the residual charge on the capacitor C617 keeps voltage on the VCP higher than the VTH. The
resistor R601 limits maximum current through the base of the Q600. The diode D600 protects the
transistor Q600 from damage during the normal condition. The resistor R600 prevents the integrated
charge pump from overloading. Capacitors C600–C609 and the inductor L600 form an input π-type filter.
The filter is dimensioned with respect to the BLDC driver. For further details about this circuitry, see
Automotive 12 V 200 W (20 A) BLDC Motor Drive Reference Design. The TPS65381A-Q1 safety PMIC
generates all regulated bias voltages. The system design follows the recommended circuitry from
TPS65381A-Q1 Multirail Power Supply for Microcontrollers in Safety-Relevant Applications. Capacitors
C611–C616 and C622 are bypass capacitors. The internal charge pump requires capacitors C617 and
C623 for proper operation. Resistors R605 and R607 are pullup resistors for ignition and CAN wake-up
signals. Two test-points TP600 and TP601 allow for external control, if needed. The resistor R608 sets the
extension time for the integrated reset circuitry. The PMIC uses a buck converter as a pre-regulator to
reduce the power dissipation inside the device. Resistor R606 artificially increases equivalent series
resistance of the output capacitors C620 and C621. This is important for the hysteretic-based control
because the output voltage ripple must be large enough to overcome the comparator hysteresis. The
inductor L601 and diode D601 make the rest of the step-down converter topology. Capacitors C618 and
C619 suppress-high frequency content from the switching. The output of the integrated linear regulator
VDD1 supplies the MCU core by default. The regulator uses the external N-FET transistor Q602 and
senses the output voltage on the feedback divider R603 and R604. The feedback divider uses 0.1%
tolerance resistors to match the MCU specification. The capacitor C610 is an output capacitor required for
stability. The resistor R602 is recommended in the device data sheet. The TIDA-01507 does not use the
integrated VSOUT1 linear regulator but the regulator is active. 0.1% tolerance resistors R609 and R610
set the output voltage to 5.0 V. The low-ESR ceramic capacitor C624 is required for stability. The output of
the regulator is accessible on the PCB in the area with exposed copper close to the U600.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 21
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Hardware, Software, Testing Requirements, and Test Results www.ti.com
3.1.1 Hardware
Commissioning the reference design requires only an external 12-V power supply and a debug probe
compatible with the MCU. Texas Instruments recommends XDS110 JTAG Debug Probe (TMDSEMU110-
U). Alternatively you may use a C2000 LaunchPad with the XDS100 debugger and wire out JTAG signals.
Additionally, make sure that the power supply output power capabilities match the system and the motor
used.
3.1.2 Software
The "sw/solutions" directory contains example projects, drivers, and modules for motor control. Figure 15
shows the project content, including some files and folders that are described in the following list:
• src_board folder includes hal.c, drv8305q1.c, pga411q1.c and tps65381a.c for device drivers
• src_device folder includes device-support files
• src_driver folder includes the device peripherals driver files, such ADC, PWM, GPIO, and SCI
• src_lib folder includes instaSPIN-FOC FAST and IQmath supporting libraries
22 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Hardware, Software, Testing Requirements, and Test Results
• src_module folder include instaSPIN-FOC files, such as Park, Clarke, and PID
• project_resolver01b.c file includes major functions and ISR for motor control
• main_resolver.h file includes gMotorVars definition
src_board folder includes hal.c, drv8305q1.c, pga411q1.c and tps65381a.c for devices driver.
NOTE: TIDA-01507 hardware typically does not require changes for initial testing.
the debug icon on the CCS Edit tool bar. This downloads the target code to the MCU of the
reference board.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 23
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Hardware, Software, Testing Requirements, and Test Results www.ti.com
4. Power off the board, disconnect the emulator, and then power on the board. The yellow and red LED
are flashing which means the TPS65381A-Q1 is configured properly. Now, reconnect the JTAG
emulator.
5. Click the debug icon to start debugging the project again. You can use either the “FLASH” or “RAM”
configuration in this step.
6. Run the project from the "Run->Resume" menu.
7. Click “View->Scripting Console” in the CCS Debug window. When the windows appears, click on the
Load Scripting Console Command File icon and select proj_resolver01b.js. This imports variables
necessary for debug to the variable expressions view as Figure 16 shows.
8. Enable Silicon Real-time mode by clicking the “clock” icon in the CCS Debug toolbar. Click
“Yes” when the dialog in Figure 17 appears. Then click the run icon to run the project. Stop the
motor first and disable “Real time Debug Mode”, if you want to reprogram the code to on-chip flash.
24 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Hardware, Software, Testing Requirements, and Test Results
NOTE: The motor starts spinning and it takes about 10 s for the initial start-up and motor
parameters identification. The process includes the current, voltage and the resolver angle
offset calibration.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 25
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Hardware, Software, Testing Requirements, and Test Results www.ti.com
5. Turn the potentiometer clockwise to start the motor and set a target speed. The green LED on the
board shows status:
a. LED is off -> motor stopped
b. LED lights constantly -> motor stopped, fault detected
c. LED is flashing -> motor is running, flashing period is proportional to motor speed
The following macros in "main_resolver.h" define the relationship between potentiometer position and
target speed:
// The defines for manual control by potentiometer
#define SPEED_EXT_SET_MAX_RPM 1800 // maximum speed = 1800rpm
#define SPEED_EXT_SET_MIN_RPM 30 // minimum speed = 30rpm
26 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Hardware, Software, Testing Requirements, and Test Results
Ch1 – A phase current of motor, Ch2 – B phase current of motor, Ch3 - DC bus input voltage. Input voltage is 12 VDC.
Figure 18. Motor Parameters Identification in Room Temperature
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 27
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Hardware, Software, Testing Requirements, and Test Results www.ti.com
28 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Hardware, Software, Testing Requirements, and Test Results
Figure 22. Comparison of the FAST Estimated Rotor Angle (Top) and
Resolver Output (Bottom) at 600 RPM
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 29
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Hardware, Software, Testing Requirements, and Test Results www.ti.com
Figure 23. Comparison of the FAST Estimated Rotor Angle (Top) and
Resolver Output (Bottom) at 1500 RPM
30 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Design Files
4 Design Files
4.1 Schematics
Download the schematics from the design files at TIDA-01507.
BLDC
Driver Resolver
Front-End
Power
Management
Isolated CAN
Interface
Input Filter
C2000 MCU
NOTE: Always refer to a device data sheet for the latest design and PCB layout recommendations.
Recommendations in this section may differ due to different design preferences.
Table 8. TIDA-01507 PCB Layout - Selected Design Rules and PCB Properties
SEGMENT DIMENSIONS
General traces (analog, digital) width 6 mil
Power traces – low current < 1-A width 10 mil–30 mil
Preferred via size 28 mil diameter and 12 mil drill
Minimal clearance 6 mil
Components placement Top side only
Passive components package size 0603 (preferred) or larger
Copper plating 18 µm (35 µm after processing) for layer 1 and layer 2; 35 µm for internal plane 1 and
internal plane 2
PCB thickness 1.6 mm
Dimensions 100 mm × 80 mm
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 31
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Design Files www.ti.com
Figure 26 shows inverted internal plane 2. Internal plane 2 distributes positive voltage rails.
QVCC
PVDD
P5V
VAMP
PVDD
VCCSW
P6V
P1V8
1P5V
P3V3
32 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Design Files
Motor Terminal
Current Shunt
Local DC-Link
Current Sensing
Gate-Driver Signals
GND
P3V3
P1V8
Current
Sensing
Voltage
Reference
Voltage
Sensing
VCCA
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 33
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Design Files www.ti.com
V_AMP
Voltage Rail
BOOST DC-DC
34 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Design Files
1GND
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 35
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Design Files www.ti.com
36 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Design Files
4.4.1 Test Setup With Maxon™ EC40 Motor and RES26 Resolver
The test setup with the Maxon EC40 motor and RES26 shown in Figure 32 provides far best performance
due to the fact that motor and resolver come assembled together from the manufacturer with assured
parameters.
Table 10 lists custom components for the test setup shown in Figure 32.
Table 10. List of Custom Components for the Test Setup With EC40 Motor and
RES26 Resolver
Qty Material Design Data File
1 Acrylic Glass 5 mm base_v1.dxf
1 Acrylic Glass 5 mm EC40-RES26_mount_back_v1.dxf
1 Acrylic Glass 3 mm EC40-RES26_mount_v1.dxf
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 37
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Design Files www.ti.com
4.4.2 Test Setup With RS2306 Motor and HAROMAX™ 21BRX709-E23AA Resolver
Figure 33 shows the test setup with RS2306 motor and HAROMAX™ 21BRX709-E233AA resolver. The
setup uses the least-expensive resolver available in single quantities. However, positioning of the rotor
using the 3D printed motor-resolver adapter is not very precise and adds various errors to the angle
readout. TI recommends this test setup for educational purposes only.
Table 11 lists custom components for the test setup shown in Figure 33.
Table 11. List of Custom Components for the Test Setup With RS2306 and
21BRX709-E23AA Resolver
Qty Material Design Data File
1 Acrylic Glass 5 mm base_v1.dxf
1 Acrylic Glass 5 mm 21BRX709-E23AA_mount_v1.dxf
1 Acrylic Glass 3 mm 21BRX709-E23AA_inner_ring_v1.dxf
1 Acrylic Glass 5 mm 21BRX709-E23AA_top_lid_v1.dxf
1 3D print SLS, Nylon PA12 120u (white) 21BRX709-E23AA_adapter_M5x12_v4.stl
38 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Design Files
4.4.3 Test Setup With RS2306 Motor and HAROMAX™ 21BRX701-J42AA Resolver
This test setup shown in Figure 34 is similar to the one described in Section 4.4.2. However, mechanical
dimensions of the resolver are slightly different. For this reason the setup uses a different set of custom
components.
Table 12 lists custom components for the test setup shown in Figure 34.
Table 12. List of Custom Components for the Test Setup With RS2306 and
21BRX701-J42AA Resolver
Qty Material Design Data File
1 Acrylic Glass 5 mm base_v1.dxf
1 Acrylic Glass 5 mm 21BRX701-J42AA_mount_v1.dxf
1 POM 2 mm 21BRX701-J42AA_washer_v1.dxf
1 3D print SLS, Nylon PA12 120u (white) 21BRX701-J42AA_adapter_M5x12-7_v3.stl
5 Software Files
To download the software files, see the design files at TIDA-01507.
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 39
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
Recommended Changes www.ti.com
6 Recommended Changes
A list of recommended changes follows:
1. If the brightness of the D202 LED is too high, increase R220.
2. The UART interface uses the SCIB periphery for the RXD line and the SCIA periphery for the TXD line.
Use one of the spare testpoint signals (for example, TEST2) to fix this.
3. Add a resistor in series with the EN_DRIVE signal. This allows overriding the EN_DRIVE signal and
using DRV8305-Q1 even when the PMIC TPS65381A-Q1 does not operate in normal state.
4. Add a resistor in series with potentiometer R1. This allows full-range operation in case the voltage
reference is different than 3.3 V.
5. Add protection (clamping) to the ACTRL signal.
6. Add an external pullup resistor for the PGA411-Q1 FAULT signal.
7. Remove R202 and R206 to pullup the TDO and GPIO34 pins to high, this enables the MCU run from
FLASH in default mode during powerup.
8. Change C312, C316 to 220 pF if you observe that the tracking loop of the PGA411-Q1 occasionally
fails to lock. The exact value depends on the resolver impedance, phase shift, and wiring harness.
7 Related Documentation
1. Texas Instruments, InstaSPIN-FOC™ and InstaSPIN-MOTION™ User's Guide
2. Texas Instruments, Sensorless Field Oriented Control of 3-Phase Permanent Magnet Synchronous
Motors Application Report,
3. Texas Instruments, Sensored Field Oriented Control of 3-Phase Induction Motors Application Report
4. Texas Instruments, Sensorless Field Oriented Control of 3-Phase Induction Motors Using F2833x
Application Report
5. Texas Instruments, Sensored Field Oriented Control of 3-Phase Permanent Magnet Synchronous
Motors Application Report
6. Texas Instruments, Automotive Resolver-to-Digital Converter for Safety Applications TI Designs Guide
7. Texas Instruments, EMC Compliant Single-Chip Resolver-to-Digital Converter (RDC) Reference
Design
8. Texas Instruments, Automotive 12 V 200 W (20 A) BLDC Motor Drive Reference Design TI Designs
Guide
9. Texas Instruments, LMT86, LMT86-Q1 2.2-V, SC70/TO-92/TO-92S, Analog Temperature Sensors
Data Sheet
10. Texas Instruments, TPS65381A-Q1 Multirail Power Supply for Microcontrollers in Safety-Relevant
Applications Data Sheet
11. Texas Instruments, PGA411-Q1 Resolver Sensor Interface Data Sheet
12. Texas Instruments, Automotive Reinforced Isolation CAN Reference Design
13. Texas Instruments, Simplify CAN bus implementations with chokeless transceivers White Paper
14. Texas Instruments, PGA411-Q1 PCB Design Guidelines Application Report
7.1 Trademarks
C2000, InstaSPIN, InstaSPIN-FOC, Code Composer Studio, InstaSPIN-MOTION, MotorWare,
controlSUITE, FAST, Piccolo, Hercules are trademarks of Texas Instruments.
HAROMAX is a trademark of DYNAPAR.
Maxon is a trademark of MAXON Computer Inc.
All other trademarks are the property of their respective owners.
40 Resolver-Based Motor Control Reference Design With a BLDC Motor and TIDUDO9 – July 2018
C2000™ MCU Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
www.ti.com Terminology
8 Terminology
PMIC— Power Management Integrated Circuit also referred as System Basis Chip (SBC)
BEMF— Back Electromotive Force
DAC— Digital-to-Analog Converter
I2C— Inter-integrated Circuit also known as TWI - Two Wire Interface
FOC— Field Oriented Control also known as vector control
IGBT— Insulated Gate Bipolar Transistor
FET (N-FET)— Field-Effect Transistor (N -channel)
EMI— Electromagnetic Interference
ADC— Analog-to-Digital Converter
CSA— Current-sense Amplifier
JTAG— Joint Test Action Group
QEP— Quadrature Encoder Pulse
EMC— Electromagnetic Compatibility
LDO— Low-drop Output
PSRR— Power Supply Rejection Ratio
ESR— Equivalent Series Resistance
GPIO— General Purpose Input Output
TIDUDO9 – July 2018 Resolver-Based Motor Control Reference Design With a BLDC Motor and 41
Submit Documentation Feedback C2000™ MCU
Copyright © 2018, Texas Instruments Incorporated
IMPORTANT NOTICE FOR TI DESIGN INFORMATION AND RESOURCES
Texas Instruments Incorporated (‘TI”) technical, application or other design advice, services or information, including, but not limited to,
reference designs and materials relating to evaluation modules, (collectively, “TI Resources”) are intended to assist designers who are
developing applications that incorporate TI products; by downloading, accessing or using any particular TI Resource in any way, you
(individually or, if you are acting on behalf of a company, your company) agree to use it solely for this purpose and subject to the terms of
this Notice.
TI’s provision of TI Resources does not expand or otherwise alter TI’s applicable published warranties or warranty disclaimers for TI
products, and no additional obligations or liabilities arise from TI providing such TI Resources. TI reserves the right to make corrections,
enhancements, improvements and other changes to its TI Resources.
You understand and agree that you remain responsible for using your independent analysis, evaluation and judgment in designing your
applications and that you have full and exclusive responsibility to assure the safety of your applications and compliance of your applications
(and of all TI products used in or for your applications) with all applicable regulations, laws and other applicable requirements. You
represent that, with respect to your applications, you have all the necessary expertise to create and implement safeguards that (1)
anticipate dangerous consequences of failures, (2) monitor failures and their consequences, and (3) lessen the likelihood of failures that
might cause harm and take appropriate actions. You agree that prior to using or distributing any applications that include TI products, you
will thoroughly test such applications and the functionality of such TI products as used in such applications. TI has not conducted any
testing other than that specifically described in the published documentation for a particular TI Resource.
You are authorized to use, copy and modify any individual TI Resource only in connection with the development of applications that include
the TI product(s) identified in such TI Resource. NO OTHER LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE TO
ANY OTHER TI INTELLECTUAL PROPERTY RIGHT, AND NO LICENSE TO ANY TECHNOLOGY OR INTELLECTUAL PROPERTY
RIGHT OF TI OR ANY THIRD PARTY IS GRANTED HEREIN, including but not limited to any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information
regarding or referencing third-party products or services does not constitute a license to use such products or services, or a warranty or
endorsement thereof. Use of TI Resources may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
TI RESOURCES ARE PROVIDED “AS IS” AND WITH ALL FAULTS. TI DISCLAIMS ALL OTHER WARRANTIES OR
REPRESENTATIONS, EXPRESS OR IMPLIED, REGARDING TI RESOURCES OR USE THEREOF, INCLUDING BUT NOT LIMITED TO
ACCURACY OR COMPLETENESS, TITLE, ANY EPIDEMIC FAILURE WARRANTY AND ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL
PROPERTY RIGHTS.
TI SHALL NOT BE LIABLE FOR AND SHALL NOT DEFEND OR INDEMNIFY YOU AGAINST ANY CLAIM, INCLUDING BUT NOT
LIMITED TO ANY INFRINGEMENT CLAIM THAT RELATES TO OR IS BASED ON ANY COMBINATION OF PRODUCTS EVEN IF
DESCRIBED IN TI RESOURCES OR OTHERWISE. IN NO EVENT SHALL TI BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL,
COLLATERAL, INDIRECT, PUNITIVE, INCIDENTAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES IN CONNECTION WITH OR
ARISING OUT OF TI RESOURCES OR USE THEREOF, AND REGARDLESS OF WHETHER TI HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
You agree to fully indemnify TI and its representatives against any damages, costs, losses, and/or liabilities arising out of your non-
compliance with the terms and provisions of this Notice.
This Notice applies to TI Resources. Additional terms apply to the use and purchase of certain types of materials, TI products and services.
These include; without limitation, TI’s standard terms for semiconductor products http://www.ti.com/sc/docs/stdterms.htm), evaluation
modules, and samples (http://www.ti.com/sc/docs/sampterms.htm).
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2018, Texas Instruments Incorporated