Download as pdf or txt
Download as pdf or txt
You are on page 1of 48

INTELLIGENT LED CONTROL RAPID PROTOTYPING FOR IOT WIRELESS PROTOCOLS

WINTER 2014 NEWS FOR THE ELECTRONICS INDUSTRY ISSUE 2

TECH JOURNAL

EXPLORING THE
INTERNET
OF THINGS
›LIFE ON THE EDGE OF
THE INTERNET OF THINGS
ULTRA-LOW POWER
›A CLASH OF
ARCHITECTURES
ARM vs X86
+
PLUS
n LAMP SERVERS FOR IOT
n ARM SYSTEM IP
n FPGA BASICS

WWW.ELEMENT14.COM/TECHJOURNAL element14.com
A Place Engineers
Call Home
The element14 Community

Connect with 275,000+ members


element14
globally at the world’s largest community
DESIGN CENTER BETA
For the very latest Embedded & Analog development tools
START HERE
Research > Design > Production for design engineers. Discover the latest
development kits, single-board computers
www.element14.com/designcenter
and hot new products that you can
test & review for free at the element14
Design Center! Enjoy cutting-edge webinars,
participate in design challenges and more.

Join for FREE today


at element14.com

COMMUNITY
Welcome
Issue 2 WINTER 2014

4 Exploring the Internet of Things


EXPLORING THE IOT FROM END TO END
IoT: we’ve all heard of it. Some say it’s here,
8 Rapid prototyping for IoT it’s coming, or that it has already come and
RAPID PROTOTYPING THE INTERNET OF THINGS
gone. Whatever view you hold, there is no
Life on the edge of IoT disputing the fact that the amount of information
10
UNDERSTANDING ULTRA-LOW POWER that we gather and have access to is evolving
exponentially. Embedded systems are key
16 Wireless protocols enablers of the Internet of Things. The question
WIRELESS PROTOCOLS EXPLAINED
is, how do we use these powerful embedded
22 The IoT cloud and analog products to gather, utilise and
SHINING A LIGHT THROUGH THE IOT CLOUD
disseminate all the types of information in
order to make IoT a reality?
24 LAMP servers for IoT
DEPLOYING A LAMP SERVER INTO THE IOT
In this edition of the element14 Tech Journal, we will look at
the core components that make up the Internet of Things.
30 Intelligent lamp control In Exploring IoT from End to End, we review what is needed
INTELLIGENT LAMP CONTROL WITH XMC1000 to make the Internet of Things a reality. One of the key
enablers are edge nodes or ‘things’ that take input from all

36 Efficient and intelligent lighting


around us. In Life on the Edge of IoT we explore how the
usage of ultra low power edge node devices are at the heart
USING INFINEON’S RGB LED LIGHTING SHIELD
of these end points and how engineers can better understand
the energy usage of processors in their applications. Where
38 Energy efficient white light this information runs through or is stored is the subject of
THE BIRTH OF ENERGY EFFICIENT WHITE LIGHT Shining a Light on the IoT Cloud where we look at three
models for cloud based services. One of the key methods of

40 ARM vs x86
transmitting data from the edge nodes is through wireless
communication. In Wireless Protocols Explained, we look the
A CLASH OF ARCHITECTURES
most common protocols as well as the parameters needed
to help you decide what works best for your application.
44 System IP Additionally, we have included information on the systems
ARM TECHNOLOGY PART 2 and additional technologies that are available to help you
better understand and bring your IoT designs to market faster.
We hope you enjoy this edition of element14 Tech Journal
and welcome your comments and suggestions. Please feel free
EDITOR-IN-CHIEF CLIFF ORTMEYER to drop us a note.
MANAGING EDITOR ANKUR TOMAR

© Premier Farnell Corp 2015. All rights reserved. No portion of this publication, whether in whole or in part, can be reproduced
without the express written consent of Premier Farnell Corp. All other registered and/or unregistered trademarks displayed in this
publication constitute the intellectual property of their respective holders. Errors and omissions in the printing of this magazine David Shen Chief Technology Officer, Premier Farnell
shall not be the responsibility of Premier Farnell Corp. Premier Farnell Corp reserves the right to make such corrections as may
be necessary to the prices contained herein. Email: editor-TJ@element14.com

WINTER 2014 ELEMENT14 3


EXPLORING THE
INTERNET OF THINGS
FROM END TO END
By STEVE NELSON / EXECUTIVE DIRECTOR, FREESCALE

In the recent past, devices were singular WE NOW HAVE CONSTANT CON- promises of this technology together
nectivity and devices that trade mas- is the Internet of Things (IoT), a con-
entities going about their tasks in silent sive amounts of data; data that holds federacy of devices, networks, and
anonymity. Sure, some industrial secrets we are only beginning to tap. processing power that has vast poten-
Transportation, healthcare, agricul- tial to make life better by address-
systems and computers within ture, machine-to-machine communica- ing truly global problems. Freescale
networked environments collected tions, and entertainment are segments has been a pioneer at every level of
that are already reaping an informa- the IoT phenomenon and offers all of
data and created a community of sorts, tion harvest that was unimaginable the fundamental IoT building blocks
but nothing like what we have today. 10 years ago. The glue that holds the under one roof.

4 ELEMENT14 WINTER 2014


EDGE NODE
SOLUTIONS
IOT GATEWAY
SOLUTIONS

Edge Nodes PAN/LAN Gateway WAN Cloud


CLOUD
Connectivity Connectivity Kinetis SOLUTIONS
microcontrollers
MCUs Design potential.

Application/Action

Big Data
Realized.
Energy i.MX applications
Industry’s most scalable
Sensors ultra-low-power, processors QorIQ processors built on
mixed-signal MCU
Connectivity solutions based on the Your interface Layerscape Architecture
ARM Cortex-M and to the world Accelerating the network’s IQ
Cortex-M0+
architectures. Industry’s most versatile Industry’s first software-aware,
solutions for multimedia core-agnostic networking system
and display applications, architecture for the smarter,
with multicore scalability more capable networks of
Freescale sensing and market-leading tomorrow, end to end.
Intelligent contextual power, performance
and integration.
●●INFRASTRUCTURE OF THE INTERNET OF THINGS sensing
The right combination
of intelligent
integration, logic and
customizable software
on the platform to
deliver smarter,
more differentiated
applications.

Edge nodes
●●FREESCALE IOT
SOLUTIONS MAPPING

Sensors measurements and monitoring


The story of IoT begins at the We can easily recognise many edge battery replacement. Their structures
node devices as integral parts of our must provide low complexity for inter-
edge node, the entry point for all lives, and the many forms of edge node operability and must be robust and
information. This information devices are leading the growth of the industrial grade for prolonged use
collection is the primary role of IoT space. Smart phones, thermostats, and reliability. These devices must
entertainment and health tracking be unobtrusive so that they can be
the edge node and the possibilities devices are a few familiar manifesta- incorporated into a small form factors
for measurement are limited only tions. While these applications are well and low cost for rapid development
understood, there are other devices and implementation.
by the imagination. Temperature, that will soon impact life as we know There are two primary classes of
pressure, motion, position and many it. For example, automobiles monitor edge node devices: those that are bat-
other factors can be measured, road conditions and informatics around tery powered and those that receive a
driving. Cities are beginning to imple- steady stream of energy. The device’s
processed and transmitted. ment integrated traffic, weather and requirements will form the design
infrastructure monitoring systems parameters and as a result the power
that offer the potential of improved source. Is an edge node in a remote
safety and transportation efficiency. location where power will not be avail-
Healthcare providers are using monitor- able? Is the device mission critical in
ing devices to collect vital information such a way that its data collection
such as blood pressure and blood sugar could have an impact on safety or a
levels. These devices need the ability company’s bottom line? Is the reporting
to sense information, process it and of information only required at inter-
maintain connectivity with gateways. mittent cycles or is a steady stream of
The endpoint in edge nodes is usu- data communication required? Those
ally composed of sensors, an embed- that operate on a battery must push the
ded processor (typically an MCU), a absolute limits on power management
connectivity method and an energy technologies in order to both collect
source. The demands of endpoint data and then transmit this information
devices are familiar. They are ideal- on a regular basis, and also maximise
ly low power in order to operate for the time between battery charging
long periods between charging or or replacement. E

WINTER 2014 ELEMENT14 5


With the proliferation of intelligence and
connectivity in previously unimagined
applications, time-to-market pressures will
intensify in the IoT space. Freescale is the only
supplier that delivers IoT solutions from the
edge node, to the network to the cloud. We
are focused on providing application-specific
reference designs and platforms that empower
developers with real-world implementations
and enable rapid design prototyping. n

Freescale offers a wide array


●●KINETIS KL03 MCUS FOR EXTREMELY LOW
of software-operating systems,
POWER, SMALL FORM FACTOR APPLICATIONS
protocol stacks, middleware and
application software that assist
PROCESSING in overcoming development
The processing at the end node level is gaining hurdles, and we engage the right
importance as devices have more sophisticated partners to further streamline
processing power and hence the ability to com- development and reduce risk.
municate important trends or differentials. Once
data has been gathered, sensors usually conduct
●●KINETIS KW2X
basic algorithms such as threshold detection and MCUS FOR EDGE
NODE APPLICATIONS
simple data analysis. This is important as the IoT
landscape is moving from higher-level, cloud-
based processing to a distributed intelligence CONNECTIVITY
model in which data-driven decision making is The key to IoT is the connection of disparate
migrating toward the edge nodes. The ultimate devices with multiple hardware and software
goal is that they will begin to learn, adapt and approaches. Without dependable connectivity
act independently in a predictive manner. For the web of developing information is dead in the
example, in a healthcare application the process- water. A product can be designed to reliably con-
ing might involve triggering communication if nect to a certain set of gateways or other devic-
blood pressure is above an advisable level, but es. But, in the real world, a device may connect
a constant transmission of blood pressure val- to any number of unknown products, which is
ues that are within limits and are not changing is why standards and compliance are critical.
unnecessary. In a smart city application the sens- Freescale has worked hard in developing and ●●QORIQ LS1
TOWER SYSTEM
ing could involve monitoring and making sense engaging in partnerships and important stand- MODULE FOR GATEWAY
DESIGNS (TWR-LS1021A)
of temperature, moisture wind or infrastructure ards bodies. Freescale connectivity solutions
changes. The key is that these devices operate work seamlessly with a number of protocols. On
based on the exception, not the rule. Constantly the consumer side Freescale has been a partner GATEWAY
reporting a non-changing value is of little impor- and developer with consortiums such as Wi-Fi, As with many elements of IoT, the gateway is
tance. That the value is changing, and maybe by Bluetooth Smart, ZigBee, 6LoWPAN and HPGP. also a shape-shifting component, free from form
how much and how quickly, is much more rel- On the industrial side Freescale has been instru- factor constraint. Gateways are not required to
evant information. mental in Wireless Hart, ISA100, EtherCAT, and assume a standard form and can manifest in dif-
Freescale’s embedded processor solutions Modbus. Freescale’s networking processors are ferent ways. Even a cell phone can act as a gate-
deliver optimised performance and power to designed with a systems view to deliver high- way in some instances. The gateway is not a one
match virtually any IoT application, from battery- performance connectivity that scales with the system fits all, there are a range of possibilities,
powered consumer devices to cars, homes, civil needs of the emerging infrastructure demands of depending on the additional functions that they
engineering and industrial automation. Freescale the IoT market. gateway may perform.
offers the smallest package for an MCU, the CSP The future of connectivity will involve the forward The gateway allows for the transferal of data
that measures only 2x2mm with the full capa- looking partnerships such as Thread. These part- through a variety of protocols. As the gateway
bility of a 32-bit microcontroller and the low- nerships will allow a host of devices to not only appliance takes information, it applies a minimal
power performance of the ARM Cortex-M0+, network but create mesh environments where level of processing and further conveys data on
that not only will improve the accuracy of the information moves in a web across devices. This its way to further processing. This ecosystem of
acquired data, but also improve the battery life type communication requires processors that can the gateway is composed of a number of com-
and achieve the smallest form factor so that the meet demanding throughput requirements with plex relationships including software, processors,
patient can forget he is wearing a device at all. robust real-time, point-to-point communication. security and protocols.

6 ELEMENT14 WINTER 2014


Intelligent design,
Incredible scale

Make it with Kinetis Microcontrollers


If you can imagine It, you can build it with Freescale Kinetis MCUs,
the world’s most scalable, energy-efficient MCU portfolio.
Make it smarter — Create smaller, cheaper, greener and longer-lasting products
with the world’s most energy-efficient portfolio of ARM Powered® MCUs.
Make it faster — Reuse your code from prior designs—regardless of size or
power—instead of starting from scratch every time.
Make it smaller — Enable intelligent processing and connectivity in mobile
and other compact designs with the industry’s smallest form factor MCUs.
Make it easier — Access the industry’s easiest-to-use, most widely supported
development tools to reduce costs and speed your time to market.
Whatever your design needs, wherever you are in the world, we’re here to
help you make it better. Learn more at freescale.com/Kinetis

Freescale, the Freescale logo and Kinetis are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. ARM is the registered trademark
of ARM Limited. ARM Powered is a trademark of ARM Limited. All other product or service names are the property of their respective owners.
© 2014 Freescale Semiconductor, Inc.
RAPID PROTOTYPING THE
INTERNET OF THINGS
O HELP DEVELOPERS
T take advantage of the green
field that is IoT, semicon-
ductor vendors are developing low
cost, easy to use baseboards and
By ADRIAN FERNANDEZ / PRODUCT MANAGER, TEXAS INSTRUMENTS leaving the extended functions like
wireless connectivity, LED and LCD
controls and the like, to be integrat-
ed onto add-on cards that designers
can then add to their system if need-
ed. An example of this type of base-
board and accessory board system
that is designed for rapid prototyp-
i n g i s t h e L a u n c h Pa d a n d
BoosterPack ecosystem from Texas
Instruments. These development

Rapid Prototyping.
Quicken time to market.
Sink or swim.
The onset of the Internet
Micr
ophone senso
r RF B
ooster & Potenti
om
of Things is exciting
r&
ste
ete
and developers are
oo

hard at work to add


RF B

cloud‑connectivity to
existing applications
or inventing new
solutions all together.
From wearables to
home automation to
the tweeting fridge, the
cloud is poised to add
ode
CC

00
kN
32

or
+C et w new intelligence and
RF B

C110 N
L ( R F ) C e n tral
oos

value-add to a broad
or

&H
ter

se
ns

um IR
i d it y
sensor R F B o oster &
P set of solutions.

RF r RF r
Boos nso Boos nso
ter & Lig ht s e ter & R a n g e s e OVERVIEW OF A CLOUD-CONNECTED WIRELESS
SENSOR NETWORK THAT WAS RAPIDLY PROTOTYPED
USING OPEN SOURCE MODULAR HARDWARE.

8 ELEMENT14 WINTER 2014


Texas Instruments
CC3200 LaunchPad
element14.com/LaunchPad
Created for the Internet of Things, the
CC3200 LaunchPad is a wireless MCU that
integrates a high‑performance ARM Cortex-M4.

CC3200 Wi-Fi application processor, Standalone


development platform featuring sensors, LEDs and
push-buttons, Supports 4 wire JTAG and 2 Wire
SWD, GDB (GNU Debugger) support over OpenOCD.
VISUALISING THE SENSOR DATA IN OUR SUBGHZ RF STAR NETWORK THAT WE ARE AGGREGATING
USING THE CC3200 WI-FI LAUNCHPAD, WHICH SERVES AS OUR SUBGHZ-TO-WI-FI GATEWAY.

tools are open source, modular and may work with the baseboard without quickly create a public web dashboard
affordable, which enables developers additional software/driver porting. that enables anyone anywhere in the
to plug together various sub-circuitries An example of how this type of rapid world to visualise and monitor the data
to build complete systems. Where addi- prototyping system can work is where in the star network that we created.
tional functionality is known to be need- designers may need to develop an While modular, open source hardware
ed, such as in the case of low-power application that is out of their normal is important to enable efficiency in a
wireless connectivity to enable IoT expertise, such as the development fast paced industry, open source and
endpoint communications, the base of a complete wireless sensor net- easy-to-use software examples are just
boards may integrate additional func- work. Here we have started with the as critical.
tionality such as the TI CC3200 Wi-Fi TI CC3200 Wi-Fi LaunchPad which will To create the system above, we used
LaunchPad, which is a complete devel- serves as a sub-1GHz-to-Wi-Fi gate- a tool called Energia (energia.nu).
opment kit that features the CC3200, way. By adding a CC110L SubGHz Energia is an open source, community
a single chip microcontroller + Wi-Fi RF BoosterPack on top of the CC3200 driven software development envi-
network processor. Many of the base- Wi-Fi LaunchPad, we are able to eas- ronment that is a fork of the popular
boards also include an on-board debug- ily create a cloud-connected gateway Wiring/Arduino framework. Through
ger/programmer as well as a stand- that operates as the centre of a sub- software abstraction, Energia offers
ardised interface for accepting their 1GHz RF star network. In this exam- intuitive APIs and libraries that are at
accessory boards or plug in modules. ple, each sensor node is made up of the functional level, enabling develop-
Some manufacturers such as TI have a Texas Instruments Microcontroller ers to focus on what they want to do
developed their own standardised type LaunchPad kit + CC110L SubGHz RF as opposed to spending time figuring
of plug in modules called BoosterPacks. Wireless BoosterPack + a sensor. In out how to actually do it.
The benefit of this type of system is this configuration, each node sends its With the help of these rapid prototyp-
that a designer is assured to have a sensor data to the CC3200 LaunchPad ing tools, developers are well-equipped
tested accessory solution that they can via SubGHz RF. The CC3200 receives to solve the problems of a connecting
get up and running with little effort. the data, encodes the datapoints into world. Through open source method-
Many manufacturers have chosen to a JSON object and publishes it to the ologies, developers are able to freely
use add-on boards with footprints that cloud over Wi-Fi via MQTT, a light- share and collaborate to develop the
might be compatible with a wide range weight publish/subscribe communi- building blocks we need to build the
of accessories from other manufactur- cation protocol. IoT. Hardware and software develop-
ers (such as Arduino Shields) which Once the data is in the cloud, we ers are able to benefit from these tools
can potentially broaden the field of can visualise the real-time sensor data that bring powerful technology to a
applicable accessories, with the limi- on a cloud-side dashboard as shown growing developer community and
tation however that not all accessories above. In this example, we were able to lower the barrier of entry. n

WINTER 2014 ELEMENT14 9


Powering loT for Next-Gen Designs
Atmel® gives Makers and designers all the basic building blocks for Internet of Things (loT) applications. This includes everything from
embedded processing and connectivity to sensors, security, and software. We tie it all together with a rich ecosystem of design tools
and development partners to bring innovation, ease-of-use, and integrated solutions to your next big loT design.

Embedded Processing Security


Atmel AVR and Atmel | SMART ARM -based MCUs and
® ®
Atmel CryptoAuthentication™ devices provide protected
MPUs deliver a unique combination of performance and power hardware key storage and offer the ideal way to ensure
efficiency. Flexible and highly integrated, Atmel devices are products are genuine and that the data transferred back and
designed to optimize your system control, connectivity, and forth is confidential and has not been tampered with. Atmel
user interface management, all while delivering low power takes care of all the ultra-secure crypto engineering, and
and ease-of-use. delivers tiny protected hardware devices that come complete
Featured Products: with all the tools needed to make it easy to add security into
any digital system, without the need to be a crypto expert.
• Atmel | SMART SAMA5 ARM Cortex®-A5 series of MPUs
feature high-performance, market leading low-power, and Featured Product:
advanced security for cost-sensitive industrial and consumer • ATECC108 provides a robust,
applications cost-effective, and easy-to-use
• Atmel | SMART SAM D ARM Cortex-M0+ based MCU hardware security that offers
series sets new benchmarks for flexibility and ease-of-use best-in-class feature sets and is
while combining performance and energy efficiency supported by industry-leading
personalization services for added
• megaAVR 8-bit MCUs deliver low power, additional analog value and trust
functionality, pin-to-pin compatibility, and easy-to-use
interface for any smart and connected design
Communication
Sensing Atmel offers SmartConnect solutions in SoC (systemon-chip)
Onboard sensors are an essential part of the loT, giving and modules that provide self-contained, low-power, and FCC
connected devices the ability to track and respond to certified products, bringing wireless Internet connectivity to
environmental conditions. Atmel offers a complete system any embedded design, without you needing 802.11, IP stack
solution running on the Atmel platform allowing you to focus or RF design experience.
on differentiating your product features, enhancing the user Featured Product:
experience, and providing faster time-to-market.
• SAM W25 Wi-Fi module is a
Featured Product: fully-integrated single-source
• Atmel | SMART SAM G MCU + IEEE 802.11 b/g/n Wi-Fi
ARM Cortex-M4 based MCUs are solution. Use Atmel Studio 6
optimized for ultra-low-power and development tools to provide
high-performance applications. They battery-powered endpoints that
are available in small form factors with a last for years
highly-efficient set of serial peripherals
By MARKUS LEVY / PRESIDENT, EEMBC

LIFE ON THE
EDGE OF IoT
UNDERSTANDING
ULTRA-LOW POWER

THE SIMPLIFIED STRUCTURE OF THE INTERNET


OF THINGS CONSISTS OF THE CLOUD, THE HUBS
(COLLECTORS OR AGGREGATORS) AND THE EDGE
NODES (OTHERWISE KNOWN AS THE ‘THINGS’)

ANY ‘THINGS’ LIV- the person while in use. Examples

M
ing on the edge must include smart watch, smart glasses,
utilise ultra-low heart rate monitor, pedometer, GPS
p owe r m i c ro c o n - tracking device, blood sugar moni-
trollers to handle the tor, music or video player, and wire-
user interfaces, collect and trans- less headset/microphone. There are
mit sensor data, provide security also categories for health, environ-
functions, and manage other tasks. mental, and others.
One issue faced by ‘thing’ design- Many edge nodes in the ‘weara-
ers is ensuring that these micro- ble’ domain, as well as other domains
controllers are really optimised to can be considered ultra-low power
meet the performance needs of applications. These applications
their applications and to enable the are typically running with battery-
long battery lives that are expected. powered operation and implement
Edge nodes can be grouped more short, occasional periods of activity
or less arbitrarily according to their interspersed with long periods of
application domain. For example, inactivity, and possibly infrequent
home automation encompasses human intervention. It’s this latter
anything that is used to control or point that highlights energy efficien-
monitor the home or office systems cy as a key performance criterion
and devices, such as lighting or for such devices, and dictates bat-
environmental control, appliances tery lives of weeks, months, years,
(e.g. freezer, washing machine, cof- or even decades (i.e. a smartphone
fee maker, or fire alarm. On the other is not an ultra-low power device,
hand, ‘wearable’ or ‘portable’ is although some companies would
anything that is worn or carried on choose to market it as such). E

WINTER 2014 ELEMENT14 11


WHAT IS ULTRA-LOW POWER?
What is this ‘holy grail’ of ultra-low power? At a fundamental level,
ultra‑low power implies different things to different applications.
The lowest active current is required when the power source is
severely limited (e.g. energy harvesting). Alternatively, the lowest
sleep current is required when the system spends most of its time
in standby or sleep mode, waking up infrequently (periodically
or asynchronously) to process some workload. Furthermore,
ultra-low power can also imply great energy efficiency, whereby
the most work is performed in a limited time period.

IoT applications can be designed variety of things. Other factors


utilising a combination of the above that help to yield ultra-low power
attributes, but it requires careful claims include integrated memory
analysis and balancing of trade- subsystems, extensive clock gat-
offs. Which brings up the ‘shocking ing, and of course, advanced pro-
truth’ that an increasing number of cess technologies.
microcontroller vendors are ‘claim- From the discussion in the last
ing’ ultra-low power capabilities few paragraphs, you might see
and application developers should why developers should not rely
not rely on datasheet parameters on datasheet parameters alone to
alone. The ultra-low power claims compare and select an appropriate
can often be connected to reality microcontroller or to determine the
due to features supported by mod- microcontroller’s real-world func-
ern-day microcontrollers. For exam- tionality. The bottom line is that
ple, devices can support super-opti- ‘energy efficiency’ is a nebulous
mised power modes: although some phrase. Most vendors utilise differ-
devices have such elaborate power ent specifications when quantify-
modes it takes great effort to deter- ing parameters. What workload
mine the optimal approach (it’s a should be used for the analysis?
balance of the application’s active- It could be something as simple
mode duty cycle and the ability to as a few lines of code running a
execute the application correctly; ‘while’ loop. Or perhaps it’s some-
in other words, ensuring that the thing a bit more real-world. Besides
device returns from its low power the workload determination, what
mode in the required latency). should the conditions and the physi-
Modern-day microcontrollers cal setup be for the device under
also sport a variety of intelligent test? What duty cycles should be
peripherals that serve to offload used to represent the transitions
the CPU. These peripherals perform from active to low power state?
functions such as analog-to-digi- How should the clock source be
tal conversion (ADC), pulse-width utilised? Should the workload run
modulation, and communication from flash or RAM? What is the
protocols. In IoT applications, the input voltage? All of these details
ADC could be used for sensors must be specified and utilised by
handling pressure changes, moni- all vendors in order to allow you to
toring temperature, or an infinite make apples-to-apples comparisons.

12 ELEMENT14 WINTER 2014


The path to standardised
datasheet parameters
Atmel
In 2013, vendors including Analog Devices, ARM, SAMA5D3 Xplained
Atmel, Cypress, Freescale, Microchip, Renesas, element14.com/SAMA5D3
Silicon Labs, Spansion, STMicroelectronics, and The SAMA5D3 Xplained is a rapid
prototyping and evaluation platform
TI, began work on an industry standard method for microprocessor‑based design.
to quantify energy efficiency for ultra-low power ■■
SAMA5D36 ARM Cortex-A5 Microprocessor
microcontrollers. The outcome of this is the EEMBC ■■
2GBit DDR2 – Micron, 2GBit Flash – Micron

ULPBench, a benchmark providing a consistent ■■


Gigabit Ethernet, 10/100 Ethernet
USB Device connector, 2 USB Host connectors
method to measure energy efficiency, demonstrating
■■

■■
Arduino R3 compatible headers
both active power and idle (sleep) power.

The workload of ULPBench core best to compile the code for maxi-
profile consumes 10,000-20,000 CPU mum performance (minimise the
cycles each duty cycle, depend- active cycles). Not only can this Texas Instruments
ing on the microcontroller’s archi- be accomplished by selecting the
CC3200 LaunchPad
tecture. Although the number of most optimal compiler flags, but
CPU cycles varies, each microcon- the selection of the compiler itself element14.com/LaunchPad

troller is required to perform the is very important (just like it is for Created for the IoT, the CC3200 LaunchPad
same amount of work (as opposed any code development). is a wireless MCU that integrates a
high‑performance ARM Cortex-M4.
to necessitating an arbitrary num- If the main (faster) crystal oscil-
ber of cycles). The diagram below lator is power hungry, another way ■■
CC3200 Wi-Fi application processor
portrays the duty cycle, whereby to lower energy consumption is ■■
Standalone development platform featuring
the device enters the active mode to try and run from a low power sensors, LEDs and push-buttons
once per second; the testing setup 32kHz crystal with the main crystal ■■
Supports 4 wire JTAG and 2 Wire SWD
requires a real-time clock (RTC) for oscillator switched off completely. ■■
GDB support over OpenOCD
waking up, typically with an accu- Furthermore, if the device’s leakage
racy of 20-30 ppm. current during the active state is
There are no golden rules for high, it might make sense to switch
achieve the best ULPBench results. to a faster clock during active state
Obviously, since the active mode and finish processing the workload
makes a big portion of the ener- quicker (and in turn return to sleep
gy consumed during the test, it’s mode quicker). E

Freescale
Freedom KE06
Approx 10k to 14k Clock cycles on Cortex-M processors (0 wait states) element14.com/FreedomBoard
Featuring Freescale Kinetis E low-power, highly
1 SECOND robust, mixed-signal 32-bit microcontroller built
on ARM Cortex-M0+ core, 48 MHz, 128k flash.

IrDA transmitter and receiver


SLEEP

■■

■■
CAN communication
■■
MMA8451Q accelerometer, thermistor
INITIALISATION MEASUREMENT ■■
Motor control function for simple BLDC
motor control on APMOTOR56F8000E
ULPBENCH RUNS WITH A DUTY CYCLE WHERE THE DEVICE IS EXPECTED TO WAKE UP ONCE PER
SECOND. THE ENERGYMONITOR CAPTURES ENERGY CONSUMPTION DATA FOR 10 SECONDS.
■■
Form factor compatible with Arduino R3 pin layout

WINTER 2014 ELEMENT14 13


THE ENERGYMONITOR GUI CONTROLS AND RECORDS THE ENERGY MEASUREMENT FOR ULPBENCH.

Achieving accurate
energy measurement
Most microcontroller vendors in the ultra-low power domain
have integrated proprietary tools for measuring energy and/or
power into their evaluation/development boards. There are
also a variety of energy measuring tools, the most obvious is
the traditional oscilloscope, but these are relatively pricey.

To support the ULPBench energy Fundamentally, the Energy-Monitor


measurement and reach a sub-$100 is not an energy measuring tool, it’s
price point, EEMBC determined actually a specialised power supply.
that it was necessary to develop Using patent-pending technology,
a new measuring tool. Hence, the it ‘counts’ the number of times its
organisation has produced the on-board capacitor is discharged,
EnergyMonitor, a USB-powered which in turn sources current to
voltage/current supply for the tar- the device under test (this is an
get device under test. It connects over-simplified explanation).
to a target device through a 100mil, In the ultra-low power domain
2-pin header, and can measure the of IoT devices, battery life is one of
energy consumption of literally the key attributes. The energy con-
anything running on 3V and up sumption of microcontrollers varies
to 28mA. So, although the prima- tremendously, so choose carefully.
ry purpose of the EnergyMonitor Claims of ‘ultra-low power’ must be
is to measure microcontroller backed by concrete data, which
energy, it could also be used to can only be obtained if measure-
measure things such as sensors ments are equitably made. The
for Internet of Things applica- difference of a few micro Joules/
tions. However, most importantly, second can mean the difference
it integrates directly with EEMBC between a device that needs a bat-
ULPBench and provides a stand- tery replaced every year versus one
ardised method for measuring that needs a battery replaced only
energy consumption. after 10 years. n

14 ELEMENT14 WINTER 2014


ELEMENT14.COM/INTERNETOFEVERYTHING

The Internet of Things is here


and more engineers than ever
are optimising their designs
for an increasingly connected
world. Here we present
the webinars that have taken
place on element14 over
the last few months, where
industry experts explain
the intricacies of the IoT and
discuss the opportunities
that a connected world
can bring for EE design.

8 Useful webinars to help you


build the Internet of Things

Designing for the Home automation Opportunities and Architecture and


Internet of Things at your fingertips challenges with IoT protocols session
This webinar addresses Learn how you can build This webinar reviews the This session provides a
the three main problems your very own open opportunities and chal- short overview of the IoT
with designing an IoT home automation solution lenges ahead for the IoT architecture and its proto-
solution. It divides the using Eclipse SmartHome from a market and techni- cols. This comprehensive
focus into three areas: and the wide range of cal point of view includ- architecture addresses
cost, security, and fea- bindings, from EnOcean ing the various connectiv- these new concerns and
tures. The aim of the to Philips Hue, available ity technologies, micro- presents a meaningful
webinar is to help attend- from the open-source controllers and processors path forward for organi-
ees strike a balance. openHAB project. available with a strong sations developing and
focus on applications. consuming IoT solutions.

Connecting your IoTise your The Internet of Enable your


project to the cloud embedded projects! Things: in production smart home
This webinar explains Learn about the Eclipse Dr. Verena Majuntke A practical introduction
how to quickly and easily IoT initiative, and how you explains what impact the on how to enable your
connect, control and can effectively use pro- Internet of Things will have smart home with the
monitor all your projects jects like Paho, Californium, on manufacturing and how use of Raspberry Pi and
with the cloud via Wi-Fi, SmartHome or Kura to it might change business EnOcean sensors.
completely free! build IoT applications. for manufacturers.

WINTER 2014 ELEMENT14 15


Of the countless
design challenges
attendant with wireless
connectivity, perhaps
the most immediate is
the vast landscape of
available technologies.

I-FI, BLUETOOTH,
W Bluetooth low ener-
gy, ANT, ZigBee,
RF4CE and many others have
come to comprise a design
menu that can be rather hard
to choose from. It’s a nice

WIRELESS
problem to have – an embar-
rassment of options – but as
the number of potential solu-

PROTOCOLS
tions increases, the task of
compar ing them g rows
increasingly difficult.

EXPLAINED
Choices, choices
In selecting the appropri-
ate wireless technology, the
designer must consider, for
example, whether a propri-
By DAVID FINCH / NEWARK ELEMENT14 and DANA MYERS / TEXAS INSTRUMENTS etary solution is required or if

16 ELEMENT14 WINTER 2014


NETWORK TOPOLOGY
Network topology is another an office, for example – the
key design factor. Starting network remains alive, but
with a simple point-to-point communication with that
●●POINT-TO-POINT (P2P) connection, topologies endpoint ceases. All the
can be made more and more other workstations remain
complex by the addition, functional within the
arrangement, and function of network. However, should the
interoperable nodes. central connection between
For example, if you were clusters fail, due for instance
to attach additional nodes – to loss of wireless connection,
often referred to as endpoints then the entire tree may fail.
or clients – to one of the Enter the mesh network.
endpoints (the hub) in a P2P Mesh networks empower
●●STAR NETWORK connection, the result would each node with transmission
be a star network topology, and node-to-node
or LAN. In this configuration, communication capability.
the hub is responsible for Data is transferred from one
the exchange of information point to another by hopping
between all the endpoints. wirelessly from node to node,
Attaching multiple star making a mesh network
networks forms a slightly not only autonomous but
●●MESH NETWORK more complex topology inherently self-healing. When
known as a tree. A WAN one node in the network fails,
(wide area network) is an the other nodes communicate
example of a tree network; with each other to determine
the exchange of information the best alternate route for
is managed within each the data to get from Point A
local star cluster by their to Point B. So, the more nodes
respective hubs, and data that exist in a mesh network,
passes from cluster to the more paths there are for
cluster along a bus. If an data to get where it needs to
endpoint in any cluster goes be and the more robust the
offline – a workstation in transmission system.
●●TREE NETWORK

an industry standard should battery. Other factors, such hardware and software is cycle restrictions in the
be adopted. The frequency as systems compatibility available to you. sub-1GHz band as well. By
band must be determined, and network topology, will Each of the three most comparison, the 5GHz band
as well as the standard wire- also influence most wireless popular bands – sub-1GHz, affords designers the high-
less benchmarks of transmis- connectivity designs. 2.4GHz, and 5GHz – has est available data rate of
sion range, power consump- cer tain advantages and the three, at the expense of
tion, and data throughput. Operating band disadvantages for any given transmission range.
Within these benchmarks, of The operating band is one application; it all depends Sub-1Ghz and 5GHz bands
course, there are trade-offs, of the design points that upon the benchmark you’re both currently have a conges-
especially when it comes to many developers struggle designing for. For example, tion advantage over 2.4Ghz,
power. Data throughput, for with. If the various stand- range is generally reduced which has been embraced
example, impacts the over- ards-based technologies by about half as frequen- by consumer technology and
all power consumption; a comprise a menu of design cy doubles, so long-range as such has grown rather
54Mbps Wi-Fi-based network options, then selecting an applications may require crowded. For this reason,
might last a day or two on operating band is not unlike sub-1GHz operation. One some consumer applica-
a single Lithium Ion source, choosing the style of food of the trade-offs with lower- tions are beginning to target
while an IEEE 802.15.4-based you want: Italian, Thai, frequency operation is data 5GHz operation. But for all
sensor network shuttling American (whatever that is). rate, which diminishes with its crowding issues, 2.4GHz
data at 250kbps might sur- Whatever band you select frequency. Designers may remains a popular choice
vive a few years on a small helps to narrow down which run into the issue of duty for wireless connectivity. E

WINTER 2014 ELEMENT14 17


AT A GLANCE...

the STANDARD TECHNOLOGIES


●●Wi-Fi IEEE 802.11 a/b/g/n n wi-fi.org
Wi-Fi continues to dominate the ing data rates up to 54Mbps. less options: think Lithium Ion
world of wireless connectivity. Transmission range can reach batteries as opposed to AAAs
Current growth projections for 100 meters at 2.4GHz, better or coin cells for portable appli-
the IoT alone indicate 50 bil- than Bluetooth and other low- cations. However, some new
lion connected devices by 2020, energy options, but less than embedded Wi-Fi solutions, like
and it’s no wonder. Wi-Fi offers what you might get from a TI’s new SimpleLink Wi-Fi plat-
secure, high-bandwidth con- Sub-1GHz radio frequency. But form, have lower performance
nectivity and Internet access for this performance makes Wi-Fi but can run on 2 AA batteries
medical, consumer, and indus- relatively power-hungry with for over a year, changing the
trial applications, while boast- respect to other 2.4GHz wire- game where Wi-Fi can play.

●●Bluetooth n bluetooth.com
With an installed base of more mise power consumption; AAA and unlicensed in most coun-
than 3 billion units, Bluetooth batteries are sufficient sources tries. Data throughput is less
is designed for lower-power of power for Bluetooth prod- than that offered by Wi-Fi but
wireless connectivity between ucts. Bluetooth operates in the still in the 2 Mbits/second range
devices. Bluetooth devices can industrial, scientific, and medi- to support higher data-rate
power down during periods of cal (ISM) band at 2.4 GHz to applications, including multime-
SMART inactivity, which helps to mini- 2.485 GHz, which is available dia products.

●●Bluetooth low energy n bluetooth.com/le


Taking a good situation and and wellness markets. Compared be on. Requiring only a fraction
making it better, Bluetooth low to classic Bluetooth capabilities, of the power consumption of tra-
energy was designed to suit the Bluetooth low energy technol- ditional Bluetooth technology,
needs of ultra-low-power wire- ogy is a connectionless protocol, Bluetooth low energy can enable
less applications, including the which significantly reduces the target applications to operate on
ever-growing wearable sports amount of time the radio must a coin cell for more than a year.

●●ZigBee IEEE 802.15.4 and ZigBee RF4CE n zigbee.org


The ZigBee standard was cre- nology specifically targeted for alternative to traditional line-of-
ated to address the need for a wireless sensor networks, ZigBee sight remote control technology,
cost-effective, standards-based 802.15.4 can be used in any such as IR. In addition to non-line-
wireless networking solution monitoring and control applica- of-sight control of remote devices,
that supports low data rates, low tion that requires a wireless link. RF4CE offers a longer range, long-
power consumption, security, and ZigBee RF4CE, on the other hand, er battery life, and richer commu-
reliability. ZigBee supports self- is something completely different. nication to support enhanced fea-
healing mesh networking. A tech- RF4CE was developed as an RF tures and functionality.

●●ANT n dynastream.com
ANT provides a simple, low-cost trast to BLE, ANT has a relative- able for P2P or star topologies,
and ultra-low power solution ly simple protocol and doesn’t while ANT supports the full
for short-range wireless com- require a lot of overhead. It range, including tree and mesh.
munication in point-to-point and specifies 64-bit security versus On a side-by-side, technological
more complex network topolo- 128-bit utilised by BLE. Both comparison, ANT is arguably
gies. Suitable for a wide range offer data rates of about 1Mbps, the more appealing option for
of applications, ANT is today accommodate a range of a few wearable/IoT applications, if
a proven and established tech- tens of meters, and boast years for no other reason than mesh
nology for collection, automatic of life on a coin cell battery. But support. But it’s worth noting
transfer and tracking of sensor perhaps the greatest difference once more the numbers associ-
data within sports, wellness for system-minded designers ated with Bluetooth: it’s hard
management and home health lies in the network topologies to ignore an installed base of
monitoring applications. In con- supported by each; BLE is suit- 3B units.

18 ELEMENT14 WINTER 2014


wi-fi for All
®

connect more. anywhere. anything. anyone.

Connect more with TI’s SimpleLinkTM Wi-Fi®


CC3100 and CC3200 solutions for the
Internet of Things www.ti.com/simplelinkwifi

The platform bar is a trademark of Texas Instruments. © 2014 Texas Instruments Incorporated
E It offers a reasonably high customised specifically for proprietary option. But with
data rate, decent range, no the application, decreas- these sacrifices come the
duty cycle restrictions, and,
notably, 2.4GHz band works
STANDARDS ing the software footprint,
among other things. And the
real advantages of OEM-
independent interoperable
worldwide, making it a slam- BASED dual-edged nature of any pro- nodes – namely, a freer user
dunk for designers.
SOLUTIONS prietary design applies to
wireless connectivity: propri-
experience for consumers
and greater opportunities
Proprietary vs standard AFFORD THE etary devices may be simpler for network expansion.
The decision to develop a
proprietary solution versus
DESIGNER A to design because they only
have to operate within one
The more nodes, the big-
ger the network.
leveraging a standard tech- WEALTH OF defined network, but those
nology such as Bluetooth
often boils down to the
CONSUMER same devices won’t be able
to communicate with stand-
Honed on the range
Among the most important
basic functionality required. FRIENDLY ard consumer devices. wireless connectivity design
Highly-specialised functions
may necessitate a proprie-
CONNECTIVITY Standards-based solutions,
on the other hand, afford
parameters is transmission
range, which consists of two
tary implementation, which OPTIONS. the designer a wealth of key factors: transmission
immediately limits the num- consumer-fr iendly con- power and receiver sensitiv-
ber of solutions available nectivity options. You just ity. These are critical specs
from OEM suppliers. The have to cough up the code to consider when exploring
upside is that a proprietary space and possibly sacri- IC options from semiconduc-
wireless platform may be fice some power versus the tor OEMs.

So, which technology is right for me?


In an ideal world, technology alone would be the ultimate factor in any design decision.
But, here in the real world, technology selection is driven by a number of other factors…
?
Ease of design is one SimpleLink portfolio, for wireless development and installation or leverage
such critical factor. example, is a platform certification by minimising the vast landscape of
Especially if you’re a of solutions that simpli- the amount of RF exper- standard solutions,
smaller firm or contract fies wireless connectivity tise you need to wirelessly when it comes to
designer, it is important design. The SimpleLink enable your application. wireless design,
to find the solution that family provides self- So, whether you you’ve got options.
can get your product to contained solutions that choose to develop And that’s a decidedly
market quickly. TI’s were designed to simplify your own proprietary good thing. n

WINTER 2014 ELEMENT14 21


ECHNOLOGY AND SOLU-

SHINING A LIGHT T tions for intelligent end nodes,


wearable devices, communi-
cation gateways and data aggregators

THROUGH THE is continuously evolving with respect


to optimising performance, integration,
energy efficiency and security. With

IOT CLOUD the help of these solutions, a huge


amount of data is being harvested from
various sources e.g. Sensor data relat-
ed to air quality, health vital signs,
diagnostics and preventive mainte-
nance information from industrial floors
etc. All of this data has to be run
By VANDANA LOKESHWAR / SENIOR TECHNOLOGY DEVELOPMENT MANAGER, NEWARK ELEMENT14 through, or stored on the cloud.

THE INTERNET OF THINGS


(OR EVERYTHING), A WORLD
WITH SMART DEVICES
(THINGS) AND SYSTEMS,
NETWORKED TOGETHER
AND RUNNING ON
things CLOUD BASED SERVICES
AND APPLICATIONS.
IDC PREDICTS THAT THERE
WILL BE OVER 50 BILLION
CONNECTED ‘THINGS’
BY THE YEAR 2020.

Cloud computing enables ubiquitous business operation. Cloud based ser- infrastructure setup within the data
network access to connected hard- vices are largely subscription based centres. Private clouds are typically
ware and software in remote locations or pay-per-use (metered). The metered within organisations, behind a firewall
over the internet. The model allows services allow for customers to use and quite capital intensive. Hybrid
for applications, software, process only what they need, thereby keeping clouds are a cluster or combination of
management and data to be stored expenses low. private and /or public clouds, to sup-
on virtualised servers. Users can then The deployment models are primarily port temporary growth requirements.
access the data and connected devices based on the resource management, Clearly the IoT paradigm will eventu-
through mobile apps, web browsers accessibility, elasticity and most impor- ally work for all of us, but not without
or lightweight desktop environments. tantly the security of the cloud: pri- first addressing the challenges related
The shared resource structure for stor- vate, public or hybrid clouds. Public to security, data control, non-standard
age, software, networks and services clouds service providers such as AWS, infrastructure and the handling of vol-
allows for a scalable and lower cost Microsoft and Google have their own umes of heterogeneous data. n

22 ELEMENT14 WINTER 2014


THERE ARE THREE KEY SERVICE MODELS FOR CLOUD COMPUTING
●●SOFTWARE AS A SERVICE SaaS
End Users have access to the database service providers, which would also
and ‘on-demand’ application software imply all maintenance and support
(front office and back office) with requirements to be handled by them.
a thin client via a web browser. All This is primarily a metered service.
the infrastructure for hardware/ Typical examples would include
software is provided by the cloud email, CRM software etc.
VISUALISATION
APPLICATIONS

NETWORKING
MIDDLEWARE
RUNTIME

STORAGE
SERVERS

●●PLATFORM AS A SERVICE PaaS


DATA

O/S

Application developers are able to Hadoop, an open source software


design, develop, test, deploy and framework allows distributed
MANAGED BY VENDOR host applications on virtualised computing and processing of large
servers, with access to programming amounts of data; a file system that
languages, platforms and tools. It has high throughput access to
● SOFTWARE AS A SERVICE naturally extends to running existing application data. It uses a simple
applications and services including programming model that allows the
versioning, testing and build tools. use of standard servers.
Solutions for PaaS designed for Access to the embedded developers
Internet of Things (IoT) and Machine community (including DIYers) for
to Machine (M2M) applications are such services has been facilitated by
being offered by various service several providers.
providers today. In most cases the Xively’s public cloud and web-based
platforms provide end-end solutions tools, help design, build and debug
VISUALISATION
APPLICATIONS

NETWORKING
MIDDLEWARE

for support security/authentication, connected products. It includes


networking, data communication, enablement libraries to interoperate
RUNTIME

STORAGE
SERVERS

interoperability and device with many languages, platforms,


management. XML or JSON data gateways and smart devices. These
DATA

O/S

from the IoT devices is acquired and open source libraries allow for easy
collected through RESTful APIs to the integration of the Xively APIs onto
cloud. The information thus obtained embedded products. For example, the
YOU MANAGE MANAGED BY VENDOR
is then computed and applications Xively ARM mbed library allows you
developed to communicate/control to develop on industry-standard ARM
● PLATFORM AS A SERVICE the devices. Real-time messaging architectures to make your code easily
is supported with MQTT (Message portable to production-grade chips.
Queued Telemetry Transport) and Similarly Plot.ly also allows sensor
similar connectivity protocols. Data data to be streamed directly from
analytics, querying and reporting hardware platforms like Arduino,
capabilities are well supported Raspberry Pi and also from MATLAB
with data visualisation tools as data acquisition systems. The
well. Higher end complex machine data received can be plotted into
learning algorithms are also being interactive charts using Python, R,
VISUALISATION
APPLICATIONS

NETWORKING
MIDDLEWARE

implemented in such models. Excel and can be shared and edited


There is a need for scalable systems in a web browser. Plotly charts can be
RUNTIME

STORAGE
SERVERS

that can support the storage and exported to any image format through
processing of these large amounts of their Workspace or APIs, including
DATA

data. At an enterprise level, Apache pdf, png, eps, and jpg.


O/S

YOU MANAGE MANAGED BY VENDOR


●●INFRASTRUCTURE AS A SERVICE IaaS
● INFRASTRUCTURE AS A SERVICE
Infrastructure as a service is a in general. Thinking about moving?
provision model for hardware Check the air quality and alleviate any
components such as storage, asthma concerns. Planning a trip to
servers and networking. System the Caribbean? Get notifications on
administrators install operating- any shark movements…. Thingful a
system images and their application powerful search engine provides
software on physical or virtual a geographical index for all the IP
machines on the cloud. The cloud connected devices on the IoT network.
VISUALISATION

user patches and maintains the It enables people find devices (eg,
APPLICATIONS

NETWORKING
MIDDLEWARE

operating systems and the application other Raspberry Pi users in the


software. The client typically pays on geographic proximity), datasets and
RUNTIME

STORAGE
SERVERS

a per-use basis. real-time data sources by geo-location


DATA

The true success of the IoT revolution (like air quality, seismic activity,
O/S

is going to be dependent on the animals etc), and presents it using


storage, processing, interpretation and a proprietary ranking methodology.
YOU MANAGE analytics of the data acquired, such Users can keep track and monitor the
that it can be applied effectively to real-time status of these devices and
improve the environment and society be alerted of any changes.
● PACKAGED SOFTWARE

WINTER 2014 ELEMENT14 23


● ● ● ●

L A M P
LINUX APACHE MYSQL PHP

By AL FECZKO / VP OF SALES AND FIELD ENGINEERING, TIMESYS

Deploying a
purpose-built I
N THIS ARTICLE, WE’LL
ex p l o re w hy a b l e n d e d

LAMP Server
approach increasingly makes
sense and also show how it’s become
easier to implement and deploy a pur-
pose-built embedded LAMP (Linux,

into the IoT


Apache, MySQL, and PHP) server into
the Internet of Your Things.
Most of the attention in the IoT space
these days seems to be around sensors
and edge devices, the endpoints where
‘big data’ is being generated, gathered
As reported in a recent WIRED magazine article by and then passed up to more intelligent
Cameron Graham, there are two major entry points into parts of the system. And in some ways
that is understandable, because that's
IoT across industries: servers and embedded processors. where the really big numbers are: as
But with the increasing capabilities of modern SOCs, the many as 25-50 billion units or more
over the next few years, if you believe
line between these two entry points continues to blur. what some industry analysts and

24 ELEMENT14 WINTER 2014


semiconductor company executives deployed with microcon- good start towards a
are saying (or, perhaps hoping for?). trollers (MCUs) and running full LAMP server. The
But in reality, for the IoT to truly
deliver on its promise, it needs to be
either bare metal code or at
most an RTOS with a TCP/
WHILE THESE microSD card also
comes with a rich
thought of from a system perspec- IP stack, a custom software DAYS MOST OF assortment of other
tive, not simply as a loose collection
of autonomous, distributed devices
update server is required.
That’s where the purpose-
THE ATTENTION useful software pack-
ages including Qt5
that are smart and connected directly built LAMP server comes in. IN THE IOT graphical toolkit, Xfce
to the open Internet. In reality, most
companies building embedded devices
You benefit by having a small
but powerful connected serv-
SPACE SEEMS lightweight desktop,
dropbear SSH server,
are also designing and managing a sub- er that can query the edge TO BE AROUND OpenSSL, GStreamer
network to monitor and manage their
devices. While it’s fine for cell phones
devices to determine their
current software level and
SENSORS AND multimedia framework
and Firefox browser.
and tablets to connect directly to the then push security fixes and/ EDGE DEVICES, While it provides a
Apple App Store or Google Play store,
most device manufacturers prefer to
or code updates out to the
devices when appropriate.
IT’S IMPORTANT nice out-of-the-box
demonstration and
insert their own purpose-built servers Another benefit of building TO CONSIDER development environ-
into the device ecosystem. As such,
powerful yet efficient low-cost LAMP
a custom purpose-built serv-
er is that LAMP really doesn’t
THE ENTIRE ment, it’s not likely to
include the right set
servers can play this role, by collecting, have to be LAMP. Worried ARCHITECTURE. of software for your
storing, processing, and analysing the about security issues or com- par ticular applica-
distributed device data, and also by plexity in Apache or MySQL? tion req uirements.
controlling, managing, and maintain- Then substitute lighttpd and However, you can
ing the devices themselves. SQLite in their place. Do your effectively create your
developers prefer Python over PHP? own purpose-built LAMP server and
Why deploy a purpose-built Not a problem, simply build and deploy add in Apache or some other light-
LAMP server into IoT? Python instead. weight embedded web server such
Whenever people talk about the chal- One of the lesser known benefits as lighttpd. Using the free Timesys
lenges of the IoT, some common points recently experienced in the world of LinuxLink Cloud Factory, it’s easy to
that seemingly come up on a regu- embedded Linux is that the Shellshock reconfigure and rebuild the Gizmo 2
lar basis are connectivity, scalability, vulnerabilities only applied to Bash — platform software to use a different
power management, and security/ whereas many embedded Linux devic- package set.
software updates. Introducing a LAMP es are deployed with BusyBox, whose
Server into the IoT architecture can play built-in shell was not susceptible to the Leveraging a GPU on a
a key role in three of these four areas. Shellshock vulnerability. purpose-built LAMP server
LAMP servers are widely deployed Increasingly, GPUs are being used to
and understood in IT circles. LAMP Scalability and intelligence accelerate applications that have noth-
servers provide many benefits, includ- Adding processing power into the IoT ing to do with graphics. For example,
ing full control and configurability, is also important, because edge devices SQL database operations and perfor-
straightforward upgrades for new fea- are typically 8-bit MCUs, or increas- mance can be dramatically improved
tures, modules or security fixes, high ingly lower end 32-bit MCUs with only by implementing some parts of the
performance and scalability, and more. KBs of memory. A purpose-built LAMP SQL virtual machine directly on the
server — built for example with an AMD GPU. Alternatively, the increasingly
Security and software updates G-Series SOC containing quad or dual popular Open Computing Language
Designing your devices to be secure 64-bit x86 cores and gigabytes of DDR3 (OpenCL) framework allows for any
is important, but as evidenced by the RAM — can really turbocharge the intel- number of applications to programmati-
frequency of updates on your PC and ligence of the IoT by adding much more cally access the GPU for non-graphical
mobile phones, it's equally or even processing power per watt into the parallel computing.
more important to be able to update IoT architecture and enabling more
the devices when new threats emerge advanced data fusion and processing, Summary
or existing ones evolve. number crunching and analytics. While these days most of the attention
This means that an important capa- in the IoT space seems to be around
bility for your architecture is to have Example of a purpose- sensors and edge devices, it’s impor-
an ability to push security and soft- built LAMP server tant to consider the entire architecture.
ware updates out to the edge devices. For an inexpensive and compact, yet A purpose-built LAMP Server can play
Since many embedded devices being extremely powerful 64-bit x86 plat- an important role in the IoT, by collect-
built and deployed today are not run- form, consider the AMD G-Series SOC ing, storing, processing and analysing
ning iOS or Android, the App Store powered Gizmo 2 platform. It ships the distributed device data as well as
and Google Play aren’t relevant. With with a bootable microSD card that by controlling, managing and maintain-
many low-cost edge devices being contains Linux, SQLite, and Python — a ing the devices themselves. n

WINTER 2014 ELEMENT14 25


A HARDWARE OVERVIEW LARK BOARD
FPGA with Dual Core ARM
Cortex-A9 @ 800MHz
A fully featured Cyclone V SoC
evaluation board integrated
with a FPGA and ARM-based
dual‑core Hard Processor System
(HPS) in a single package and
operates at speeds up to 800
MHz. The combined technologies
help to reduce the overall system
cost and power.

INTRODUCTION TO

FPGAs
FPGAS
ARE VERY
VERSATILE
DEVICES AND
THAT THE ONLY
LIMITATION IS
HAVE YOU WANTED TO START DESIGNING THE CAPACITY
WITH FIELD PROGRAMMABLE GATE ARRAY OF THE DEVICE
BUT FOUND THE WHOLE TOPIC VERY AND YOUR
DAUNTING? WELL YOU ARE NOT ALONE… IMAGINATION.
By SIMON HOLT / STRATEGIC ALLIANCE MARKETING MANAGER, PREMIER FARNELL

HIS ARTICLE AIMS TO GIVE of many thousands, even millions and require the user program their
T you a great starting point to
enter into the world of pro-
of transistors. These Transistors are
grouped together to perform an array
design onto it.

grammable logic. Once you have start- of functions, from a simple logic gate Disadvantages
ed to understand this technology, it is to a complex Clock circuitry block. The Probably one of the biggest reasons
surprisingly easy to use and will offer majority of these blocks are available why people don’t want to use FPGAs
you an electronics design option differ- to you to configure using the FPGA is the steep learning curve in designing
ent to anything else available on the software tools. with them. It can take many hours to
market today. learn the design tools, coding language
We will start by covering the basics Advantages of FPGA and debug software in order to get your
of FPGAs, explaining the difference FPGAs are completely customisable design into the device and working as
between the three most popular pro- and as long as there are enough build- you want.
gramming technologies currently avail- ing blocks in the FPGA you are using, In the past the price of FPGAs has
able. This will be followed by an over- they can be configured to perform any often put designers off using them, but
view of the different building blocks digital design. Due to the layout of an in recent years the prices have dropped
that can be found within an FPGA. FPGA they lend themselves nicely to to a level which is more attractive bear-
An FPGA is a programmable device parallel processing designs, aided by ing in mind the flexibility they offer.
that allows you to create your own the high I/O count normally found The architecture of an FPGA means
digital chip. The basic building block on them. Depending on the type of that it generally consumes quite a bit
of an FPGA is the humble transistor. FPGA you use, they have the ability of power, although there are some
Depending on the density of the FPGA to be re-programmed. These devices design techniques available to com-
device you decide to use, it can consist are completely blank on power up bat this issue. E

26 ELEMENT14 WINTER 2014


TYPES OF PROGRAMMABLE LOGIC DEVICES
There are three main types of FPGA technology, which are SRAM, Antifuse and Flash‑based
devices. These differ by the way in which their internal routing is programmed.

SRAM technology Antifuse technology Flash technology


Most FPGAs that are used for design today are based In contrast to SRAM based devices, Antifuse Flash based devices are basically a
on SRAM configuration cells. The big advantage to FPGAs are instant-on and keep their design cross between the benefits of SRAM and
using these devices is that they can be programmed code when switched off. The devices are con- Antifuse technologies. They store their
and re-programmed multiple times. The two main figured by blowing fuses to create the inter- configuration code in the device simi-
manufacturers of FPGA devices, Altera and Xilinx, connect circuitry. This is a one-time operation lar to an Antifuse device, but this can be
both produce SRAM based products and it is these that is carried out before soldering them to changed like an SRAM based device. From
devices that lead the industry in terms of product your printed circuit board in a special pro- a security point of view these devices
development and adopting new approaches to FPGA grammer and cannot be reversed. The advan- come with a user-defined key and only the
design. A downside to using SRAM based devices is tage of Antifuse devices is that they are very person with access to this key can read/
that they require programming every time they are secure; it is nearly possible to clone an Antifuse write data to and from the device. These
powered-up. This operation can be performed by the FPGA. They are also ideal for harsh environ- devices tend to lag behind SRAM based
use of an external memory device or a microproces- ments, particularly military, aerospace and devices in process node due to longer
sor that provides the bitstream (configuration) code. space applications. development times.

WINTER 2014 ELEMENT14 27


IN SIMPLE TERMS AN FPGA IS
A COLLECTION OF ELECTRONICS LOGIC BLOCK

DESIGN BLOCKS CONNECTED


TOGETHER BY MANY, MANY ROWS INTERCONNECT
AND COLUMNS OF WIRES.
Over the past few decades they have
developed from devices which contain
just a few logic cells, to ones which now
have dual ARM A9 processors, high speed PROGRAMMABLE I/O
interfaces and hundreds of thousands of
logic cells like Altera’s Cyclone V SoC devices.

The make up of an FPGA


Logic blocks Both Altera and Xilinx have heavily reduces the number These routing lines have low
Logic blocks (these have brought out devices with of logic blocks left for non- skew rates and go to every
various names) differ slightly Dual Cortex A9 processor RAM functions. Knowing internal clock node on the
from one manufacturer to blocks integrated in them. the size of RAM blocks avail- device, enabling synchro-
another, but generally they able on your chosen FPGA nised designs.
contain a number of combi- Input/Output (I/O) Blocks is very important as you can
natorial logic elements and The I/O Cells in an FPGA can design with them in mind, Programming
one or more flip flops. Logic be found around the outer making the most of the A Configuration block is used
blocks make up the largest edge of the device. They are blocks available. to program all the different
portion of an FPGA and often used to connect the internal blank blocks inside a SRAM
have other design blocks blocks to the physical pins on Interconnect/routing FPGA on power up. Boot up
mixed in-between them to the outside of the chip. These Each of the logic blocks time needs to be considered
allow for a faster, better utili- blocks can be programmed on their own is not much and they are not instant on.
sation of the device. The dia- to perform a huge number of good, as they need to be SRAM have these configura-
gram above shows a typical different types of I/O stand- linked together to make tion blocks whilst flash and
architecture of an FPGA. ards. Some more complex larger design blocks. This is Antifuse do not need this
devices have I/O cells that achieved by interconnecting configuration block due to
Hard Intellectual can process high-speed sig- routing between the blocks. their design. n
Property (IP) Cores nals; these are referred to as There are many different
In recent years there has Transceivers blocks. types of routing within an
been an increase in the num- FPGA. Some of the routing
ber of custom blocks being RAM Blocks is short and goes from one READ MORE
included in FPGAs. These are The Majority of FPGAs avail- block to its nearest neigh-
If reading this short introduction
normally referred to as hard able today have dedicated bour whilst other intercon- to FPGAs has made you keen
IP cores/blocks. RAM blocks distributed nect lines go from the top to learn more, then head on
These custom blocks alongside the logic blocks. to the bottom of the device. over to element14’s Community
pages. We have a dedicated
allow for more efficient use These blocks are really use- Special routing can also be group set up to just talk
of the FPGA. A very popu- ful if your design uses RAM found over the whole device, about FPGAs.
lar hard IP core being rolled as implementing these RAM which is known as global www.element14.com/
out by FPGA manufacturers blocks in standard logic routing. An example of this community/groups/fpga-group
is hard processor systems. blocks is very inefficient and would be the clock circuitry.

28 ELEMENT14 WINTER 2014


Exclusively from
INTELLIGENT
LAMP CONTROL
with Infineon XMC1000
By ATTILA TOMASOVICS / SENIOR ENGINEER, INFINEON

INTELLIGENT LED LIGHTING IN


OFFICES, RETAIL, HOSPITALITY AND
HEALTHCARE, AMONG OTHERS,
IS RAPIDLY GAINING POPULARITY.
AN ESSENTIAL REQUIREMENT
IS HIGH QUALITY COLOUR AND
DIMMING CONTROL. FOR ALL THESE
APPLICATIONS, THE BRIGHTNESS,
COLOUR AND DYNAMIC BEHAVIOUR
OF LEDS NEED TO BE CONTROLLED
AS ACCURATELY, PRECISELY
AND CHEAPLY AS POSSIBLE.

HIS IS ACHIEVED BY

T
modulating the current
of LEDs. An additional,
ver y challenging, re-
quirement is flicker-free
lighting. Modulated LEDs are prone to
flickering but absolutely no flicker is
allowed in these applications. Custom-
ers expect to see the colour they want
to see at the desired dimming level and
want to experience no flicker. Lighting
applications are also becoming more
complex which increases time to mar-
ket. XMC1200 and XMC1300, members
of the high-performance XMC1000 fam-
ily of 32-bit microcontrollers, have a
Brightness and Colour Control Unit
(BCCU) which is a dedicated multi-chan-
nel lighting hardware module that ena-
bles fast development of high-quality
lighting systems.

30 ELEMENT14 WINTER 2014


Modulation dimming INTELLIGENT CONTROL GEAR
To control the brightness of an LED, its
current needs to be controlled. The most Driver stage
with colour and
accepted method to control the perceived dimming control
brightness of LEDs is modulation dimming.
LED driver
The LED current level is fixed (e.g. at 100 mA) and
perceived brightness is controlled by modulating LED driver
this current. Modulation basically means switch- AC in AC-DC
ing the LED on and off very quickly. If the switch-
LED driver
ing rate is high enough, then we see the lamp as a
constant light source due to persistence of vision.
Luminous intensity of the lamp is determined LED driver
by the average time the LED is switched on,
relative to the time it is switched off. e.g. an XMC1000
LED modulated by a square wave spends 50%
of the time on. Its average luminous intensity
will be half as high as when it is always on.
Dali, DMX512 Sensors
The LED current is controlled by a driver. The
desired brightness, represented by a digital value,
●●INTELLIGENT LIGHTING
is converted into an ON-OFF signal by a modu-
lator. This ON-OFF signal, which is represented
by a bit stream, enables/disables the driver.
Many different modulation methods exist, XMC1000
such as Pulse-Density Modulation (PDM), Pulse-
Width Modulation (PWM), Pulse-Amplitude BCCU
Modulation (PAM), etc. The BCCU module in PDM LED Driver
Infineon microcontrollers generates pulse-
density modulated bit streams by randomised
PDM LED Driver
first-order sigma-delta modulators.
The PDM signal contains ON and OFF pulses.
PDM LED Driver
Every pulse has the same fixed, user-config-
urable length called the bit-time. The resolu-
PDM LED Driver
tion is 12 bits so all brightness information is
contained in a frame of 4096 pulses. Due to
PDM
randomisation for better EMI behaviour, the
frames are not identical but contain the same PDM
number of ON and OFF pulses if the bright- PDM
ness value is constant. The ON and OFF bits
PDM
are distributed in the frames as uniformly as
possible to achieve the maximum number PDM
of ON-OFF and OFF-ON transitions and to
minimise the stable time between transitions. E
●●PULSE-DENSITY MODULATED BIT STREAMS●
TO CONTROL LEDS ON UP TO 9 CHANNELS

ON time OFF time


DC
PDM 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 1

ON pulses OFF pulses

●●LED MODULATED BY A SQUARE WAVE ●●SMALL SECTION OF A PULSE-DENSITY MODULATED BIT STREAM

BIT STREAM
BRIGHTNESS Modulator LED Driver PERCEIVED
VALUE BRIGHTNESS
N 1

●●LED BRIGHTNESS CONVERTED INTO A MODULATION SIGNAL

WINTER 2014 ELEMENT14 31


Managing flicker
If the bit time is too long or there are too many
identical pulses next to each other, the eye may
detect the switching and distinguish between
ON and OFF levels instead of seeing the
average value, which is experienced as flicker.

The eye is particularly sensitive to flicker when


it moves. To avoid flicker, the lighting system
has to ensure that time between two transitions
is always below a certain value. This value is
commonly called the flicker fusion threshold.
This threshold is not an exact value and it
depends on the person watching the lamp,
the colour, the environment, etc. To avoid any
kind of perceptible flicker, the time between
transitions has to be kept shorter than 333
µs. Furthermore, taking videos of LED lights
with cameras may also cause flickering or
●●RECORDED LAMP REFLECTION WITH BANDING AND WITHOUT BANDING
banding in the recorded footage. The general
recommendation is that the period should
be maximum 20-100 μ s, depending on the
camera, which is an even more challenging
requirement. However, there is currently no
official standard.
For truly high quality lighting the ON and
OFF times have to be kept really short. The
OFF times are more critical because the eye
is more sensitive to flicker at low illumination
levels. Pulse-density modulation inherently
supports flicker-free designs due to its high
rate of switching, since the ON and OFF bits
are distributed as uniformly as possible. The
modulators in the BCCU module can generate
pulses shorter than 100 ns. The bottleneck is
the LED driver as it needs a minimum stable
ON time to stabilise the LED current. With
most LED driver solutions it is not possible
to have pulses shorter than 1 µ s. This cre-
ates a potential flicker problem at very low
brightness levels as the ON pulses are too few
and far between. If the OFF time is too long
between two ON pulses, the human eye may
experience flicker and camera footage will
look banded, not natural.
The only solution is to disallow these very
low brightness values. Every BCCU channel
contains a flicker watchdog that ensures that
the OFF time is never too long. If the OFF time
reaches the user- definable threshold, an ON
bit is inserted and the sigma-delta modula-
tor is reset.

32 ELEMENT14 WINTER 2014


Dimming and colour change BCCU
For intelligent lighting it is also important
to control the dynamic behaviour of
AMBER
the brightness value over time in a way INTENSITY
that appears natural and is comfortable ● AMBER
PDM LED Driver
to the human eye. BRIGHTNESS

BLUE
When the LEDs are organised into multiple INTENSITY
channels, dynamic change can be divided PDM LED Driver
● BLUE
into two distinct transitions. One is overall BRIGHTNESS

brightness change, also known as dimming.

DIMMING LEVEL
GREEN
The other is colour change, a change in rela- INTENSITY

tive intensities. The internal structure in BCCU PDM LED Driver


● GREEN
BRIGHTNESS
mimics multi-channel lamps with colour and
dimming information clearly separated. BCCU RED
INTENSITY
can automatically change both the dimming
PDM LED Driver
level and the colour of multiple lamps in a ● RED
BRIGHTNESS
natural way.
During dimming, all channels change their
brightness level but their relative intensities
remain the same, to preserve the colour of the
lamp. Due to logarithmic brightness percep-
●●DIMMING LEVEL AND CHANNEL INTENSITIES SEPARATED
tion, the human eye is more sensitive to low
levels of illumination. If the brightness level
changes linearly over time, it look non-linear.
For natural-looking dimming, it needs to be
exponential. The ability to dim along an expo-
N
nential curve is also a requirement by DALI,
one of the most popular lighting communica-
tion standards.
BCCU contains dimming engines, hardware
BRIGHTNESS

modules, which automatically perform expo-


nential dimming without CPU load. The user
only needs to select target brightness levels
and fade rates, and the dimming engines auto-
matically adjust the brightness levels along an
exponential curve. Since the dimming engines T
do not rely on interrupts, they can follow the TIME
curve very closely without additional CPU load.
The human eye is most sensitive to changes at
the lower part of the exponential curve, where ●●EXPONENTIAL DIMMING

the brightness level is very low. At low fade


rates, each individual step in brightness may
be visible. BCCU adds dither to these steps to G R
make the transition look smooth and gradual N
to the human eye.
Multi-colour lamps combine a number of
channels of different types of LEDs, each with
a different dominant wavelength. What colour B G
N/2
the human eye sees depends on the relative
intensities of these channels. The colour can
INTENSITY
CHANNEL

be changed smoothly and gradually by using


the linear walk. The user only needs to set R B
the target colour and the desired fade time.
All affected channels change their intensity Linear Walk TIME
simultaneously until the new colour is reached. E SPRING GREEN ORANGE

●●LINEAR WALK EXAMPLE IN AN RGB SYSTEM

WINTER 2014 ELEMENT14 33


Software development
With so much hardware support,
hardly any software development is
needed for high quality LED control.

Much of what little software is necessary


can be generated by DAVE, Infineon’s free
IDE which offers an easy-to-use graphical
interface, automatic resource allocation and
code generation to allow fast time to market.

●●LIGHTING PROJECT IN DAVE

Conclusion
Infineon’s XMC1000 Cortex-M0 family is the
ideal choice for intelligent LED lighting appli-
cations. It offers the resources required for a
single microcontroller to automatically control
multiple LED channels with high dimming
and colour quality, communicate over DALI or
DMX512, with more than enough bandwidth
available for the end application. n

www.infineon.com/xmc

34 ELEMENT14 WINTER 2014


EAGLE Version 7.2

now
available
For more information,
visit www.cadsoftusa.com
EFFICIENT &
INTELLIGENT
LIGHTING
Using Infineon’s RGB LED Lighting ■■ www.infineon.com/arduino
■■ www.infineon.com/xmc
Shield with XMC1202 for Arduino ■■ www.infineon.com/xmc-dev

36 ELEMENT14 WINTER 2014


LED lighting is gaining popularity due
to government legislation and its overall
benefits compared to traditional solutions.

EDs are used for lamps and full control of brightness, colour and DALI, one of the most popular lighting
L light engines in offices, retail,
hospitality, street lighting, high
dynamic behaviour of LEDs as accu-
rately, precisely, efficiently and cheaply
communication standards.
The little software required to con-
bay lighting, healthcare, and more. as possible. trol the BCCU can be created with
LED lighting is efficient, allows maxi- BCCU generates pulse-density modu- DAVE™ IDE. DAVE supports automatic
mum design freedom, and it can be lated bit streams with randomisation code generation, provides DAVE Apps
intelligent as well as easy to use. for better EMI behaviour, and bit pack- with GUI programming, and exam-
Thanks to the latest RGB LED Light- ing feature to be compatible with sev- ple projects.
ing Shield with XMC1202 for Arduino eral LED driver designs. Infineon’s XMC1200 MCU series as
developers can easily explore, eval- To offload the CPU automatic dim- part of the XMC portfolio is the ideal
uate and build their next LED pow- ming is provided by adjusting the choice for intelligent LED lighting solu-
ered product. brightness levels along an exponen- tions. XMC1200 microcontrollers pro-
The RGB LED Lighting Shield with tial curve: the user only needs to se- vide all essentials for high quality colour,
XMC1202 for Arduino is built on the lect target brightness levels and fade such as full dimming control, flicker-free
XMC1200 MCU series which has a rates, and the dimming engines take light at all dimming levels with low
Brightness and Colour Control Unit care of the rest. energy consumption and ease-of-use
(BCCU). BCCU is dedicated for multi- The ability to dim along an expo- thanks to the new RGB LED Lighting
channel lighting engines by offering nential curve is also a requirement by Shield with XMC1202 for Arduino. n

Arduino™ Connector Debug Interfaces


to XMC1202

Isolated DMX512
XMC1202 Control Interface I²C, GPIO SWD
(optional) XMC1202

LED String Connector

DC Input Voltage

DMX512 LED Current


Power-on LED Control with PDM
DCDC LED Driver Stage
Arduino™ Connector

RGB LED LIGHTING SHIELD WITH XMC1202 FOR ARDUINO.

WINTER 2014 ELEMENT14 37


THE BIRTH OF

ENERGY
EFFICIENT
WHITE LIGHT
WIRE BOND
ANVIL
POST

ANODE

CATHODE

By CABE ATWELL / COMMUNITY WRITER, ELEMENT14

38 ELEMENT14 WINTER 2014


HOLE

P-LAYER

ACTIVE
LAYER
N-LAYER

ELECTRON

SURE, THEY’RE BLUE, BUT WE CAN’T IT’S ALL IN THE GaN: GALLIUM NITRIDE REVOLUTIONISED
HAVE WHITE LIGHT WITHOUT THEM. BLUE LED LIGHTING PAVING THE WAY FOR WHITE.

Scientists win Nobel Prize in physics with their creation of blue LEDs
ONS AGO (ROUGHLY to the fact scientists couldn’t produce In the early 90s, Professors Isamu

E
1907), scientists began blue light in LED form. Akasaki (Nagoya University), Hiroshi
messing with the idea of Confused yet? Okay, let’s break it down Amano (Nagoya University) and Shuji
LEDs in the form of elec- in simple terms- in order to create bright, Nakamura (University of California)
troluminescence using a efficient white light, green or red LEDs began working on a way to grow gal-
crystal of silicon carbide and a cat’s- need to be combined with a blue LED. lium crystals big enough to be used to
whisker detector. Apparently, Edison’s They could also be shown through a emit blue light. They found that they
light bulb was no longer cutting the phosphor that emits red and green light. could do so using a specially designed
mustard and people wanted tiny little Sure there have been blue LEDs in ex- scaffold made in part with sapphire.
lights in their radios, which is probably istence since the 70s but the material That’s the key, different materials emit
why RCA was playing around with they are made from made them pretty a different colored light when applied
gallium arsenide-based semiconductors much useless in the broad spectrum to LEDs and gallium was the ticket in
back in 1955. (pun intended) of practical applications. emitting blue.
Regardless, LEDs have come a long way By the late 80s, the people’s demand Gallium isn’t without its troubles as
in the last hundred years and has become for bright, shiny things continued to it tends to become poisoned when ex-
the dominant light source on the planet grow and there still were not any de- posed to hydrogen. The people would
overtaking incandescent and fluorescent vices (much less radios) with tiny LEDs have to wait a few years more before
lighting. While the LEDs manufactured that glowed bright white or blue. No- they would get bright, shiny blue or
today are highly efficient, energy saving ticing those demands, three material white lights. To get around that issue,
and environmentally friendly, they do scientists decided the world could wait the scientists ‘doped’ up the gallium
have their drawbacks, in this case the no longer for bright, efficient blue LEDs using aluminium or zinc but ultimately
ability to generate a broad spectrum of and began developing their own using went with indium, which protects the
colours. More specifically, white light due gallium nitride. gallium from the hydrogen used in
manufacturing the semiconductor the
LED resides on.
The hard work that all three endeav-
ANODE (p-electrode) oured over the years to get an efficient
blue LED earned the trio a Nobel Prize
this year in physics. Not only does
p-GaN
their work provide bright and shiny
p-AIGaN LEDs in our mobile devices but also
Zinc-doped InGaN reduces the power draw on the grid
when used for lighting our homes. Not
n-AIGaN only that, they are also better for the
environment over compact florescent
n-GaN
lighting (CFLs) due to the fact that the
GaN Buffer Layer latter is filled with mercury. The trio
Sapphire Substrate received their prizes in December,
where their breakthroughs could be
CATHODE (n-electrode) seen lighting up the homes all over
the city. n

WINTER 2014 ELEMENT14 39


>

>

i v e rka>ge
Dr t Pac
/ or
BBoSarPd Supp

8 6
X

AR
M
ARM vs x86
A CLASH OF
ARCHITECTURES
DECISIONS MADE DURING UCH OF THE TIME THESE of Things (IoT) in the balance, both

DESIGN PROCESSES SHAPE M choices are not clear cut and


few reside in the proverbial
camps are going for the jugular, each
(and their respective ecosystems ) hop-
THE POSSIBILITIES OF SUCCESS ‘no brainer’ category. For the design
engineer trying to decide whether to
ing that their latest development will
help them sell in the embedded mar-
AND FAILURE OF A COMPONENT, select an ARM or x86 architecture for ket the way beer sells in a college town.
SUB‑SYSTEM OR END PRODUCT. his/her embedded project the deci- In this article we will show how and
sion, as Ringo Starr once put it, “you why the decision to go with x86 or
know it don’t come easy.” Indeed, with with ARM has become more complex
By MURRAY SLOVICK / COMMUNITY WRITER, ELEMENT14 huge potential markets like the Internet and difficult than ever, as there are

40 ELEMENT14 WINTER 2014


clear benefits available for each be the choice, On the other hand,
architecture, depending on the if high-end functionality involves
task and design requirements. only video and audio capabilities,
ARM would be the nominee.
The background Other important traditional (and
But before we leap ahead of the I have been using the term tradi-
story – and to be properly prepared tional deliberately because as we
to evaluate both contestants – a bit will shortly see, things are fast
of background is in order. ARM changing on both sides of the
and Intel (x86) chips have differ- playing field) factors are, for ARM:
ent processor architectures and ■■ No BIOS (ARM uses a

instruction sets, so an applica- bootloader) and, therefore, no


tion compiled for the Intel archi- BIOS-related issues
tecture will not run on an ARM ■■ Power consumption in the

device and similarly you can’t range of about 2 to 20 watt


run code compiled for ARM on Similarly, traditional advantages
Intel devices. An ARM proces- of x86 processors include:
sor has a Reduced Instruction ■■ Well established Linux support

Set Computer (RISC) architecture ■■ Very high computing

while the X86 (for the purposes of power and very short real-
this article x86 will refer to both time response.
32-bit x86 and 64-bit x64, ARM As for run-time stability (uptime
will refer to all ARM derivatives) without crashes), which can be
has a Complex Instruction Set a key deciding factor, no clear

> > Computer (CISC) architecture. cut winner here: Both ARM and
CISC chips have an instruction set x86 processors are relatively well
capable of doing complex things suited to be used in industrial
with a single instruction while and other embedded systems
BSP a RISC processor has a smaller that require stable, reliable and
Boa / Dr
rd S number of more general purpose deterministic run-time behaviour.
upp
ort
iver instructions. It is important to Now to the changes I alluded to.
Pac > note, however, that the simpler ARM and Intel chips are growing
kag nature of a RISC instruction allows closer to each other and the tra-
e
it to be processed in usually just ditional lines distinguishing them
one clock cycle (and often with are starting to blur. Here are a few
fewer transistors, making the for instances.
silicon less expensive and more Intel is positioning Quark, its
power efficient). Generally speak- smallest processor, in the IoT
ing, a RISC-based ARM processor device space supported by a
also requires more memory than new VxWorks 7 version of the
a CISC-based processor. widely used real time operating
Traditionally ARM’s low power system (RTOS), developed by the
has enabled battery life that Intel subsidiary Wind River, As a
would be better than an x86 counter-measure ARM is launch-
equivalent and with its built-in ing a new, and free low power
multimedia decoding capabilities operating system to manage web-
it also enables 1080p HD video connected devices that use micro-
playback in a small package rela- controllers based on the compa-
tive to the real estate an x86 sys- ny’s 32-bit Cortex-M architecture.
tem would require. ARM’s OS for this is called mbed,
KEY DIFFERENCES OF X86 VS. ARM Typically, too, for complex tasks Although technically not a true
VA BOARD SUPPORT PACKAGE, AN such as would be needed to pro- RTOS (as a strict definition would
IMPLEMENTATION OF SPECIFIC SUPPORT cess and analyse millions of piec- require a predictable response
CODE – SOFTWARE – FOR A GIVEN BOARD THAT es of data, the raw performance time to an interrupt), ARM’s mbed
CONFORMS TO A GIVEN OPERATING SYSTEM. from x86 often outstrips that of an takes what the company calls an
ARM equivalent. If we want high- ‘event based’ approach; the pro-
IT IS COMMONLY BUILT WITH A BOOTLOADER. IN end devices to perform telemetry cessor wakes up only if events
EMBEDDED SYSTEMS BSP IS SYSTEM AND DEVICE and data transmission over the need to be managed. ARM says
DRIVERS FOR ALL THE DEVICES ON THE BOARD. Internet for critical applications, that predictable response is not
Source: Embedded Logic for instance, x86 would still likely always needed and allowing the E

WINTER 2014 ELEMENT14 41


E processor to complete one task and mobile Internet devices. At
before switching to another allows the same time upper range ARM
power savings over traditional processors such as Cortex A9 have
RTOS requirements. been introduced with high-speed
Intel’s x86 chips have been interfaces and multi-core tech-
improving in power consumption. nology to increase performance.
Intel started with a more expen- Processors such as Freescale
sive, high performance architec- i.MX 6 Cortex A9 now are com-
ture and has been lowering its peting with x86 platforms such
power consumption and making as Intel’s Bay Trail-based Atom
its lower-end chips more price chips as well as AMD’s Embedded
competitive. In particular designs G-Series. All of these processors
based on processors such as the intended for embedded applica-
Intel Atom permit small, fanless tions are one-chip platforms with
and relatively efficient power solu- one, two or four CPU cores. All also
tions. Atom microprocessors have feature clock frequencies around
been used in a variety of embed- 1GHz, DDR3 memory and high

‘‘QSEVEN
ded applications ranging from speed interfaces like PCI Express
health care to advanced robotics and HDMI. SUPPORTS
ARM, INTEL AND
AMD PROCESSORS
’’
BOARD & MODULE FORM FACTORS
Boards and modules incorporating ARM processors typically run
Linux, Windows CE (Compact) or Android. Boards and modules
based on Intel and AMD x86 processors run full Windows, or
the embedded versions such as Windows Embedded Standard.
You can also run Linux on these platforms.

Recent trends in processor technol- using Qseven for x86 or Qseven


ogy also are affecting the newer for ARM exclusively; however,
lightweight COM class mod- there some that are moving in
ules such as Qseven, and Smart both directions.
Mobility ARChitecture (SMARC). With regard to Smart Mobility
The new Qseven specification A rch i t e c t u re ( S M A RC ) , t h e
update 2.0 allows using x86 and SMARC pinout is optimised to
®

ARM processors on Qseven mod- support specific I/O functionality


ules and can accommodate the that is more commonly identified
new Intel E38xx Atom processors with ARM in mobile and handheld
as well as such ARM processors devices. For example, Advantech’s
as the Freescale ARM i.MX6 (both ROM-5420 is a SMARC form fac-
supporting a wide variety of I/O tor module only 82mm x 50mm
features). The new USB 3.0 and in size, (with an overall assem-
UART additions are widening the bly height of under 8mm) based
scope of this module family even on the Freescale ARM Cortex-A9
further. The devices’ strong graph- i.MX6 dual core processor. ROM-
ics performance can be used to 5420 supports triple independent
drive HDMI, DVI, DisplayPort and displays and a 1 x MIPI (Mobile
LVDS displays. For example, the Industry Processor Interface)
Qseven module with Intel Atom camera input. Moreover, ROM-
E38xx enables dual independent 5420 also supports lithium-ion
display while the Q7-IMX6 even batteries that have +3 ~ 5.25V
supports triple independent dis- power input design with suspend
play, a feature formerly limited to mode under 0.3W, which makes
high-end computer boards. The them an excellent choice for port-
majority of customers are either able applications.

42 ELEMENT14 WINTER 2014


But SMARC is not exclusively for ARM processors
and board/module suppliers have announced
x86-based SMARC modules as well. Consider
Kontron’s latest SMARC computer-on-modules
(COMs) featuring Intel’s Atom E3800 series pro-
cessor. According to Kontron, it’s the first x86 SoC
to become available on this low-profile COM form
factor, measuring 82mm by 50 mm. The SMARC
s-XBTi COMs, compliant with the Standard Group
for Embedded Technologies (SGeT) specifica-
tion, incorporate up to 8 Gbytes of RAM and can
accommodate up to 64-Gbytes, on-board solid-
state disk to store OS and application data. The
pin-out includes three UARTs with complete GPS
function and support for the MIPI-compliant serial
camera interface. Intel Gen 7 Graphics are carried
out via HDMI 1.4 and LVDS with up to 2500 by
1600 pixels and 60 Hz to the display. Other inter-
faces include one Gigabit Ethernet LAN via Intel’s
Ethernet Controller I210, one USB 3.0 and two USB
2.0. Extensions can be implemented via two SDIO
and three PCIe x1 lanes with 5 Gtransfers/sec.
Operating temperature ranges from −40 to +85°C,
while power consumption ranges from 5 to 10 W. AMD HAS ANNOUNCED IT WILL
Adding to what is already a recipe for brain
freeze AMD has announced it will develop pro-
DEVELOP PROCESSORS, CODE NAMED
cessors, code named Mullins and Beema, which MULLINS AND BEEMA, WHICH WILL
will consist of AMD’s next generation x86-based
core, with an ARM-based core for handling secu-
CONSIST OF AMD’S NEXT GENERATION
rity functions on the same SoC. X86‑BASED CORE, WITH AN ARM‑BASED
At the same time in parallel with the company’s
next-generation of x86 processors, AMD plans to
CORE FOR HANDLING SECURITY
develop its own 64-bit ARM-based CPUs, code FUNCTIONS ON THE SAME SOC
named ‘Project SkyBridge.’ Targeting embed-
ded applications. SkyBridge’s ARM-based unit
will use low-power 64-bit ARM Cortex-57 cores,
while the x86-based chips will feature AMD’s
next-gen Puma+ central processor cores. The
clever bit is that the chips will be ‘pin-compati-
ble,’ meaning they can both use the same circuit
board, simplifying things (somewhat) for device
makers. SkyBridge chips will be manufactured
on a next-generation 20nm process and ship
sometime in 2015.
AMD’s roadmap reminds one of the 1968 film
‘Yours, Mine and Ours’ starring Lucille Ball and
Henry Fonda, in which a widower with ten children
marries a widow with eight, and the twenty of
them try to come together as one big happy family.
In summary, ARM is challenging x86 in the
embedded space and x86 is counterpunching. As
a result the decision whether to go with x86 or
with ARM has become more complex and more
difficult than ever. Two things we do know: 1)
Among the factors that you will have to take into
account are performance, price, power consump-
tion, MIPS/W, hardware and software support,
Source: AMD

the volume you have in mind and more, and 2) as


always the best place to go for parts and design
help is to your friends at element14.com. n AMD’S MULLINS PROCESSOR

WINTER 2014 ELEMENT14 43


ARM Technology Part 2

System IP
By ASHOK RAO / SENIOR SUPPORT ENGINEER, FARNELL ELEMENT14

Following up from our last article on classes of YSTEM IP IS THAT PART OF


S an embedded system comprising of the vari-
ARM processors, their advantages, applications, ous modules working in the background in
order for the foreground peripherals to function as
we now take a look into the other peripherals and required. This could include the inter-module communi-
technologies surrounding an ARM based core. cation networks, debug and trace IP, cache/DMA/
interrupt/memory controllers etc. In other words,
This article focuses on a few key components these are the nuts and bolts that connect the bigger
of the System IP from ARM, with a focus blocks together. Let us look at them to try and under-
stand in layman’s terms what these are, how they ben-
around the hardware blocks inside an SoC. efit the larger ecosystem and where all this fits.

44 ELEMENT14 WINTER 2014


CoreLink 500 series (CCN: Cache Coherent Network) to be used in enterprise solutions it can support up to 8 CPUs and
CoreLink system IP and design and CCN-508. These provide up to such as storage, servers and net- is optimised for mobile applica-
tools can conveniently be used for 1.6 Tbps throughput. This enables work infrastructure. tions including big.LITTLE tech-
designing and building SoCs based full cache coherency between up The CCN-504 is the little brother nology, automotive infotainment
on the AMBA specifications. The to 16 CPUs for CCN-504 and up of the CCN-508. The performance and enterprise networking. The
AMBA specifications maximise the to 32 CPUs for CCN-508. What do is slightly lower with scaling up to 400 series comprises of CCI-400
efficiency of data movement and these numbers mean? It means, 16 CPUs and up to 1Tbps of sys- (Cache Coherent Interconnect) and
storage without compromising on these can be paired with CoreLink tem bandwidth. NIC-400 (Network Interconnect).
performance. In other words, the DMC-520 (Dynamic memory con- The NIC-400 provides a fully
latency involved in data transfer troller) for DDR3 DRAM interfaces at CoreLink 400 series configurable, hierarchical, low
is considerably reduced using the up to 3200Mbps. What this means The CoreLink 400 series pro- latency, low power connectiv-
AMBA specifications. The CoreLink for you and me? Answer: Very fast vides similar functionality as the ity for devices implementing the
500 series comprises the CCN-504 RAM. The CCN-508 is more likely CoreLink 500 series except that AMBA specifications.

CoreLink™
CoreLink technology is a part of the system IP that enables low latency, lower power
consumption, multi channel memory controllers on the high performance Cortex and Mali
processors. It can be safely visualised as the interconnection between the core and the
peripherals. The CoreLink technology is further subdivided into interconnects, memory
controllers, security features such as TrustZone and AMBA® (Advanced Microcontroller
Bus Architecture). This family provides on-chip AMBA connectivity for the different
components implementing the AMBA specifications. Let us now discuss the various
interconnects such as CoreLink 500 and CoreLink 400 series and memory controllers.

Memory controllers cessor performance through QoS tion of memory controllers. For to increase performance.
Shared off-chip memory access mechanisms. These are usually any enterprise level SoC, as the CoreLink 400 is the little broth-
plays a crucial part in influenc- coupled with the CoreLink 400 number of components increases, er of CoreLink 520 that can be
ing system performance, power series of interconnects as dis- so does the demand for data. To used in conjunction with the 400
and cost. CoreLink DMC (Dynamic cussed above. satisfy this need for fast data, series of interconnects as dis-
Memory Controllers) deliver the The CoreLink 500 series of efficient access to the DRAM cussed previously. There is also
best-in-class performance and DMCs implements similar fea- is required and is critical to the an older generation of DMCs, the
power for AMBA based SoCs. tures as the 400 series but is performance of the SoC. The 32x series that was optimised for
The DMCs are further subdivided optimised for enterprise level CoreLink 520 has advanced QoS DDR, DDR2, SDR and other such
into the smaller 400 series and solutions providing additional based scheduling and arbitration older generation of memory tech-
the beefier 500 series. The 400 features such as TrustZone and algorithms that handle read/write nologies. These are still in use but
series significantly enhances end to end QoS. The CoreLink access to the memory. A multi their popularity has considerably
memory bus utilisation and pro- DMC 520 is ARM’s 5th genera- level parallelism is also adopted reduced over the years. E

WINTER 2014 ELEMENT14 45


Debug and Trace IP
ARM offers one of the best on-chip debug and real-time trace
solutions for the entire SoC. These make ARM based SoCs some
of the easiest to debug. Technologies such as CoreSight™ and
Trace Macrocells work in parallel to help developers design, debug
and optimise code in the fastest and easiest ways possible.

CoreSight ■■ For application engineers, appli- real time visibility of their code exe- ■■ PTM: is used for program
CoreSight as the name suggests cations can be optimised even cution. An advantage of using the flow trace specifically with the
is something that looks inside the at assembly level using system TMC is that traditional designs tend Cortex-A9.
core. CoreSight technology enables trace and performance counters. to generate dynamic bandwidth ■■ ITM: used for high level software

developers to develop and optimise It can also prove beneficial for of trace. This usually varies with view (the C/C++ layer).
software for ARM based devices with power and performance analysis time, the type of application and ■■ HTM: is used for performance

fewer pins on the SoC itself. For the on the SoC. occasionally causes peaks leading and functional debug at the hard-
Cortex-A series of processors the ■■ For product engineers, it can be to loss of trace data. Whereas the ware level.
debug can be performed with only useful in failure analysis. TMC uses a FIFO model enabling What is the advantage of hav-
two pins using the Serial wire tech- The CoreSight technology has trace over a longer period of time ing all of these macro cells? Well,
nology or alternatively using JTAG. also been applied not only to thus reducing risk of overflows. conventional debugging requires
Some of the other advantages of the Cortex-A series but also the This in turn also allows for a small- breakpoints/watch points to halt the
using CoreSight are listed below: Cortex-R and Cortex-M series of er trace port reducing the cost of processor and use a debug con-
■■ Using the CoreSight DAP and processors as well. On the Cortex-R implementation of a trace port on nection from there to read, examine
embedded cross triggering, it series, CoreSight provides non- the SoC. and modify register contents. This
is possible to perform multicore intrusive trace that helps in under- The Serial Wire Debug is a widely method is intrusive, requires the
debug and run time control while standing and optimising how real known debug technology used processor to stop, is non real-time
also collecting time stamped CPU time software operates on the tar- mostly as an alternate to JTAG. It and does not give an indication of
or system trace to analyse, opti- get. This is achieved using a set of needs just two pins and is avail- true performance.
mise and debug software and Trace macrocells that are discussed able as part of the CoreSight DAP Whereas, using trace capture,
hardware interaction. in the later part of this article. On (Debug Access Port). developers can capture real-time
■■ CoreSight trace macrocells enable the Cortex-M series, CoreSight data including instruction level
developers to examine how the provides a low cost debug and Trace macrocells data, compress it and deliver it
software behaves on the tar- trace functionality using a whole Trace macrocells provide non-intru- either on-chip or off-chip. This
get platform. gamut of macrocells, breakpoints sive visibility of the components in leads to real-time data analysis,
■■ CoreSight also provides provisions and watchpoints. the SoC. These are individual blocks is non-intrusive and does not
for secure debug and trace. It also that help capture trace data based halt the processor and is much
allows designers to implement a CoreSight components on their particular function. There more accurate for performance
debug and trace solution with very The CoreSight components along are four different types of trace analysis. The various trace mac-
low power consumption. with the trace macrocells pro- macrocells viz. Embedded Trace rocells mentioned above are
■■ CoreSight is highly re-usable vide the necessary infrastructure Macrocell (ETM), Program Trace all essential components of the
enabling SoC developers reduce required for effective development Macrocell (PTM), Instrumentation entire debug and trace ecosys-
design and development time. and debugging. Two key compo- trace Macrocell (ITM) and AHB tem for a SoC.
Some of the real world examples nents comprise the CoreSight: the Trace Macrocell (HTM) (AHB: A latest development in the
where CoreSight proves advanta- trace memory controller and the Advanced Hardware Bus). The series of macro cells is the STM
geous are listed below: debug access port (SWD/JTAG). usage of each of these is briefly (System Trace Macrocell) that
■■ For embedded software/middle- The TMC (Trace Memory Controller) outlined below: offers developers printf (the
ware developers, device driver provides low cost real time trace ■■ ETM: used for non-intrusive, cycle well-known C language output
development can be faster by all along the development cycle accurate program and data trace statement) style debugging giv-
observing the CPU trace while (including production) for third party for ARM processors. This occurs ing visibility of the core from the
executing software in real time. software developers giving them at the assembly instruction level. application layer itself.

46 ELEMENT14 WINTER 2014


System controllers
System controllers are the peripherals that work in
conjunction with all the other controllers discussed
above. These involve the cache controller, DMA
controller, Interrupt controller, TrustZone™ and the
system MMU (Memory Management Unit).

Cache controllers fer modes such as Scatter-Gather, cious software attacks? Answer: controller, PS/2 interface, GPIO con-
Cache controllers play a critical part Ping-Pong and Primary-Alternate. Very important. ARM provides trollers to name a few. Detailed dis-
in CPU to on-chip data access. They TrustZone technology to prevent cussion of these is beyond the scope
reduce the latency of off-chip data Interrupt controllers access to selected memory regions of this article.
access by about 10-25%. This reduc- As the complexity increases with and peripherals such as screens
tion in CPU demands for off-chip data multicore CPUs and their handling an and keypads. TrustZone extends the Where does all this fit?
means it can now be used for other ever increasing number of interrupts security to both on-chip and off-chip SoC design is a very complex task
tasks. Lower demand for off-chip data from peripherals, so does the require- memories. The technology works by and various factors need to be con-
also reduces power consumption. ment for interrupt controllers. ARM partitioning the available memory sidered to achieve the required per-
Thus cache controllers contribute to provides many GICs (Generic Interrupt into ‘N’ number of secure regions, formance. This even applies to the
power efficiency and performance. Controllers) to suit various needs. The access to which is restricted. For extent of using the optimum length
GIC-500 is the latest addition and on-chip security, the TrustZone Boot of the metal for interconnections on
DMA controllers supports the ARMv8 architecture. It ROM provides 8-16KB for signature the chip though micro/nano meters
DMA control plays an important part can handle up to 128 CPUs and 480 code check. It also provides on-chip long. At this level of required accu-
in reducing the data transfer load on shared peripheral interrupts. The GIC- memory for secure data and on-chip racy, every single block matters to
the CPU. It takes the task of mov- 400 is the younger sibling that can RAM for secure code and data. For achieve maximum performance.
ing in and out large blocks of data handle up to 8 CPUs and 480 inter- off-chip security, it provides options Nobody likes to wait forever for
from peripherals to memory and/or rupts. The GIC-390 is based on vector to partition the available RAM into software to load or a video to start
from memory to memory. This data addressing and stores the CPUs vec- up to 16 secure regions making playing. DMA controllers, cache
movement activity by a separate unit tor addresses in memory. The PL-190 it immune to software attacks. All controllers, interrupt controllers
greatly reduces the load on the CPU. can handle up to 32 interrupt sources this is controlled by the TrustZone etc, all play a vital part in bring-
ARM provides two DMA controllers: and 16 vectored addresses while the Address Space Controllers TZC-380 ing everything together to help SoC
DMA-330 and DMA-230. The DMA- PL-192 supports up to 32 vectored and TZC-400. designers build the ultimate chip
330 is a highly flexible, configur- interrupts with programmable priority for any dedicated task. Software
able DMAC and is mainly targeted at levels and masking. CoreLink peripherals and application engineers then use
higher end SoCs. The DMA-230 is a A number of APB (Advanced these chips to generate software
simpler version of the DMA-330 and TrustZone controllers Peripheral Bus) are provided from that efficiently utilises all the avail-
is ideal for use with Cortex-M series Question: How important is security ARM to ease building complex SoCs. able resources on the chip to create
designs. Both of these support trans- for your code and stopping mali- Some of these are the UART, SPI immersive and useful applications.

CONCLUSION channelled properly to the outside world for developers to optimise their
designs and software. All the peripherals discussed in this article are the
The performance of an ARM based processor is not the sole responsibility skeletal connecting blocks, in other words the threads that hold the fabric
of only the core. There are a number of peripherals acting around of the processor together and provide the required throughput. In the next
the core that influence the performance and efficiency of any ARM part of this series, we will discuss some of the other technologies from
based processor. There will also be a number of factors affecting the ARM such as security on ARM based devices and a few other software
communication speed between the core and peripherals which need tools required for an effective design and development of an ARM based
to be optimised. All this processing power and speed also needs to be embedded system. Until the next edition of element14 Tech Journal... n

WINTER 2014 ELEMENT14 47


Designing with Cortex-M MCUs?

Get the same power and spend less, with


KEIL DEVELOPMENT TOOLS
Discover the same functionality found in the Standard Edition – yet supporting only Cortex-M devices. It’s a complete
software development environment for Cortex™-M, processor-based devices, specifically designed for microcontroller
applications. It’s also easy to learn and use, yet powerful enough for the most demanding embedded applications.

THE NEW KEIL-MDK CORTEX-M EDITION OFFERS THE SAME FUNCTIONALITY NOW WITH ARM
CORTEX-M7
AS THE KEIL-MDK STANDARD AT A FRACTION OF THE COST! SUPPORT

Interested in ARM/Keil development tools?


Speak to our ARM certified FAEs: ARMSupport@farnell.com

Developing on an ARM-based processor?

SAVE A BUNDLE!
DSTREAM + DS-5 BUNDLES
We’ve combined DSTREAM hardware and DS-5 software tools into a complementary solution-
package to save you money. Check out both the node locked and floating license versions.

Our ARM Bundles include:

DSTREAM STREAMLINE
The ARM DSTREAM high performance, debug and trace unit enables The ARM StreamlineTM Performance Analyzer is the Linux and
powerful software debug and optimization on any ARM proces- Android performance analysis tool in DS-5.
sor-based hardware target.

ARM C/C++ COMPILER DS-5 DEBUGGER


The ARM Compiler in DS-5 Professional Edition is the only commer- The DS-5 Debugger uses the most advanced ARM technologies to equip
cial compiler co-developed with the ARM processors and specifically developers with a complete debug solution for software development
designed to optimally support the ARM architecture. projects, from hardware bring-up to application development and tuning.

Get yours today! For more information on ARM embedded products and resources please visit
www.element14.com/ARMPromo

You might also like