ECE/BaS June 2014 - page 14

June 2014
12
M
ICROCONTROLLERS
The XMC1300 series is specially optimized
for motor drive units. The timer units
CCU4/CCU8 and the position interface POSIF
can be used to calculate the position and
speed of a motor in a simple way. Further-
more, the mathematical coprocessor is capable
of performing vector rotation (PARK trans-
formation) with 24-bit resolution, which in
turn allows powerful algorithms to be imple-
mented for field-oriented motor control.
The capture/compare unit CCU4 can be used
for example for pulse generation or with the
aid of the dither function for stabilizing slow
control loops. In conjunction with the pro-
grammable POSIF block, it is also possible to
evaluate an incremental encoder. For various
applications, using the POSIF allows the accu-
racy to be improved and the software simplified,
since the corresponding data can be recorded
simultaneously. A low-pass filter suppresses
the noise and interference pulses from the Hall
sensor and/or rotary encoder, which could lead
to incorrect position and/or speed readings.
With the CCU8 and the additional compare
channel, it is also possible to define different
time lags for rising and falling edges and to
generate asymmetrical PWM signals. Typical
applications that benefit from this are 3-phase
converters for actuators, 3-level inverters for
solar modules and half-bridge transformers.
The 64MHz mathematical coprocessor consists
of a 32-bit divider and a 24-bit Cordic for
trigonometric calculations. Both the divider
and the Cordic unit can operate in parallel to
the Cortex-M0-CPU. The mathematical unit
increases the processing power for real-time
tasks significantly.
Common to all modern applications is that
the software is becoming increasingly sophisti-
cated. To allow the peripherals to be used effi-
ciently, complex algorithms are often necessary.
In other words, an efficient software develop-
ment environment is required. Ideally, an auto-
matic code generator with predefined and
tested software components (apps) is supported.
This allows the resources required to be allo-
cated automatically and accurately on the chip.
DAVE is a free, integrated development plat-
form for all XMC microcontrollers. Using
DAVE, it is possible to develop an application
library quickly, which abstracts all the hard-
ware-related tasks and also offers middleware
solutions. The some 170 plus DAVE apps cur-
rently available make it possible to combine
and configure software components, to map
these automatically to the available microcon-
troller resources and to generate the C code
for an application library. The C code generated
in this way can then either be further used
within DAVE with the integrated GNU com-
piler and debugger for developing the applica-
tion, or it can be imported into a third-party
tool, such as for example ARM MDK, Atollic
TrueStudio, IAR EWARM, Tasking or Rowley.
In addition, Infineon has licensed the “Silicon
Vendor Edition” of the ARM Microcontroller
Development Kit (MDK). Developers of em-
bedded software can download the ARMMDK
free from www2.keil.com/infineon/mdk. The
free licence comprises all the tools for the devel-
opment of XMC1000 applications up to a code
size of 128KB. An application library developed
with DAVE can be imported with a few simple
clicks via CMSIS-PACK interface into the ARM
MDK. Dedicated application kits provide the
key advantage for users, that the components
are coordinated with each other, allowing them
to start immediately with their application-spe-
cific adaptation. A simple evaluation facility for
the XMC1000 products is provided by so-
named boot kits, which are available for each
Figure 2. Dimming and colour control of
LEDs with the Brightness and Colour Control
Unit (BCCU) of XMC1200 microcontrollers.
Figure 3. Sensorless, field-oriented control with the XMC1300 microcontrollers
Figure 4. The XMC1000 motor control kit supports various motor schemes
Figure 1. The portfolio of the XMC1000
industrial microcontrollers currently includes
more than 60 products in different packages.
1...,4,5,6,7,8,9,10,11,12,13 15,16,17,18,19,20,21,22,23,24,...50
Powered by FlippingBook