DSP, Micros & Memory


Microcontrollers simplify automation equipment design

25 June 2014 DSP, Micros & Memory

Automation engineers face new challenges as their tasks become ever more complex. Expectations regarding productivity, profitability, flexibility and the length of innovation cycles are becoming higher.

Furthermore, demands for ever lower power consumption are growing as productivity rises.

For the field and control level, this means efficiency-optimised drives with intelligent controls are needed. As central control units, microcontrollers play a key role in meeting these requirements.

Thanks to its configurability and high degree of software reusability, Infineon Technologies’ XMC4000 family is suitable for a wide range of different industrial applications: electric drives, solar inverters as well as production and building automation.

The five series in the XMC4000 family differ mainly in core frequency, memory capacity, peripheral functions and number of I/Os. The new ‘small brothers’ of the XMC4500 control modules further offer a high-resolution PWM unit for resolutions extending beyond the pulses lying within the CPU clock grid.

Due to their favourable properties regarding dynamic response, positioning accuracy and overload capacity, servo drives are increasingly being used for many applications. Microcontrollers play a central role in their implementation as they are the key component for control of the motors.

For these tasks, all XMC4000 controllers offer timer/PWM units (capture/compare unit or CCU) for signal monitoring and PWM generation. CCU4 is the basic implementation which is extended in terms of advanced features to CCU8. Their identical, modular assembly allows replication of the software and enables reusability in one and the same application or between different applications.

The CCU4/CCU8 module consists of four identical 16-bit time slices. Every slice can be operated in compare or capture mode. The CCU4 has one compare channel available and the CCU8 two. Up to four registers can be used in parallel in capture mode.

Figure 1. The powerful properties of a CCU8 timer slice.
Figure 1. The powerful properties of a CCU8 timer slice.

Every time slice can generate seven events, which can be assigned to four service request lines. A dedicated output works as PWM signal so that one CCU4 (CCU8) can generate up to 4 (8) separate PWM signals. The CCU8 slices additionally have an independent dead time unit for every output with different times for rising and falling edges (Figure 1).

Every timer slice can work in one of the available modes independently of the other slices. Events at the inputs of the slices are assigned to a certain action via a selection procedure (programmable matrix). This flexible assignment of input signals to desired reactions at the output enables true hardware/software co-design: the wiring on hardware level can be realised without knowing the final specification of the software. In addition to this, multiple slices can be interconnected to each other, thus enabling timer operations either 16, 32, 48 or 64 bits wide (Figure 2).

Figure 2. Basic functions of the timer slices of a CCU4/8.
Figure 2. Basic functions of the timer slices of a CCU4/8.

Exact positioning by rotary encoder

All XMC4000 family members have at least one so-called position interface (POSIF) available for motor control applications. Together with the timer units, the POSIF enables optimum use of rotary encoders such as quadrature encoders or Hall sensors. The timer units count and record the decoded POSIF events simultaneously.

Considering the change in these values over a period of time, it is possible to extrapolate the next rotor position or speed change. This has two benefits: the asynchronous encoder events are synchronised in the control loop and, through extrapolation, have a constant resolution. This improves the quality of control, especially in the case of wide dynamic speed ranges (Figure 3).

Figure 3. Synchronisation of the encoder values by extrapolation.
Figure 3. Synchronisation of the encoder values by extrapolation.

High-resolution PWM for digital power control

The high-resolution PWM unit is an extension to the XMC4000 derivatives XMC4400, XMC4200 and XMC4100. This extension is aimed at a variety of applications in the field of digital power conversion. A wide range of circuit topologies (e.g. boost converter, buck converter, forward converter, flyback converter and resonant converter), modulation modes (continuous or discontinuous PWM, phase shifter) and control methods (average or peak current or voltage control) is available for selection.

The advantages of digital control over analog control lie mainly in its easy adaptability. For example, various operating modes and control parameters can be changed dynamically per software. Ageing of passive components and parasitic effects can also be adapted without hardware intervention.

However, digital control has problems with quantisation effects and seldom achieves the quality of an analog variant. This disadvantage is minimised by the high-resolution pulse width modulation unit (HRPWM) of the XMC44/42/41xx modules. A so-called high-resolution channel (HRC) has a step width (pico phase) of only 150 ps.

The following example illustrates the benefit: a conventional timer resolves a 200 kHz buck converter in 20% partial load range with only 6 - 7 bits, presuming a system frequency of 120 MHz (calculation: 20% of 120 MHz/200 kHz = 120 values). Considering that the control variable is captured by an A/D converter with a resolution of 12 bits (20% of 2048 = 410 values), the rough PWM step width limits control.

Using an HRC, a resolution of 12 - 13 bits is obtained with the same calculation, i.e. no limitation of control by the PWM. Up to four HRCs with their own dead time control are implemented on the XMC44/42/41xx and can be connected downstream of the capture/compare units. This allows use of the complex control, trigger and switch-off logic of the CCU4/8. The modular and scalable assembly accommodates the multitude of circuit topologies used (Figure 4).

Figure 4. High-resolution channel (HRC) with a pico phase of 150 ps resolution within an 8,3 ns reference cycle.
Figure 4. High-resolution channel (HRC) with a pico phase of 150 ps resolution within an 8,3 ns reference cycle.

The second extension of the HRPWM unit is aimed at a further weak point of digital power control, namely its slow adjustment. If, in the above example of the boost converter, adjustment is to take place in every PWM cycle, this results in a not inconsiderable critical real-time CPU load.

However, a microcontroller is used in power control exactly where additional communication or actuator tasks are necessary. The extremely time-critical control of the boost converter must therefore run in the background and must not disturb the main application.

The so-called comparator and control signal generator block (CSG) helps here. This is a unit with a comparator that allows monitoring of the fast signals without CPU load and to actuate the corresponding circuit breaker. The comparator has numerous application-supporting properties on its input and output sides.

Thus the negative input can come from two selectable external signals (e.g. peak current and current zero crossing for control at discontinuous conduction mode limit). A fast digital/analog converter (30 MSamples at 10-bit resolution) controls the positive input. A filter and masking logic at the output of the comparator suppresses unwanted short pulses and a terminal logic ensures a defined state on switching on or off.

The peak current control known from the switching power supply world is enabled by a peculiarity of the D/A converter: it can autonomously generate a ramp whose offset and ramp time are programmable by the CPU. This prevents oscillation of this control method.

A CSG block consists of three comparators and three D/A converters and can be used independently or in interaction with the high-resolution PWM, the capture/compare units and the analog/digital converters. The CSG block manages the fast internal control loop autonomously and the CPU is then only responsible for the slow external control loop.

Here, again, the flexibility of the layout offers users a big advantage. Automation applications often need controlled auxiliary voltages with special properties that cannot be realised with off-the-shelf switching power supply ICs. Often there are special requirements regarding the switch-on/off behaviour, operating modes must be switched and safety aspects must be considered.

This is where the advantages of a programmable microcontroller come to bear. The integrated HRPWM unit on the new XMC4000 derivatives improves the resolution, quality and efficiency of digital power control significantly and closes the gap to the analog world.

For more information contact Davis Moodley, Infineon Technologies, +27 (0)11 706 6099, www.infineon.com





Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

GigaDevice expands GD25UF Series density
NuVision Electronics DSP, Micros & Memory
GigaDevice has announced the expanded density range of its GD25UF series 1,2 V ultra-low power SPI NOR Flash, now spanning from 8 Mb to 256 Mb.

Read more...
ARINC 429 line driver evaluation board
ASIC Design Services DSP, Micros & Memory
Holt Integrated Circuits have announced the release of the ADK-85104 Evaluation Board, a compact, ready-to-use platform designed to help engineers rapidly evaluate and characterise Holt’s HI-85104.

Read more...
Highly integrated 24-channel mixed signal IC
EBV Electrolink DSP, Micros & Memory
Microchip Technology has announced the LX4580, a 24-channel mixed-signal IC designed to replace multiple discrete components with a single device that supports synchronised data acquisition, fault monitoring, and motor control.

Read more...
Lower-power Thread and BLE connectivity
iCorp Technologies DSP, Micros & Memory
Espressif has released the ESP32-H21, a low-power wireless SoC aimed at Thread, Matter, Zigbee, and Bluetooth LE device designs.

Read more...
Touch-enabled 32-bit MCU
EBV Electrolink DSP, Micros & Memory
Microchip’s PIC32CM PL10 microcontroller family expands the company’s Arm Cortex-M0+ portfolio, delivering a compact, low-power 32-bit platform designed for cost-sensitive embedded applications.

Read more...
Build smarter with UNO Q
Electrocomp Express DSP, Micros & Memory
The Arduino UNO Q’s hybrid design combines a Linux Debian-capable microprocessor with a real-time STM32U585 microcontroller making it the perfect dual-brain platform for the next innovation.

Read more...
Compact AI modules for imaging
Otto Wireless Solutions DSP, Micros & Memory
SIMCom has introduced two compact smart AI modules, the SIM8666 and SIM8668, designed to simplify the development of imaging-based IoT applications.

Read more...
Compact Renesas MCU rapid development board
Dizzy Enterprises DSP, Micros & Memory
Built around the Renesas R7FA4M2AD3CFP microcontroller, the Clicker 4 board provides engineers with a ready to use solution for prototyping and testing applications that require reliable ARM based processing and flexible expansion.

Read more...
IO Ninja and Python working hand-in-hand
RF Design DSP, Micros & Memory
IO Ninja is a professional all-in-one terminal emulator, sniffer, and protocol analyser that runs natively on Windows, Linux, and macOS, and excels as a UI debugger for serial, network, USB, and all other forms of communication.

Read more...
GHz-speed multi-channel digitiser system
Vepac Electronics DSP, Micros & Memory
A new Star Hub option from Spectrum Instrumentation enables the creation of scalable multi-channel data acquisition systems with ultrafast sampling speeds of up to 10 GS/s.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved