Professional Documents
Culture Documents
2012
Jan/Feb
GESTURES
AUDIO
MEMORY
IoT SECURITY
MEDICAL
Jan/Feb 2015
Contents
SHOWCASE
DESIGN ARTICLES
NEW PRODUCTS
7 It's a Breeze
New controller with GestIC technology enables one-step design-in
of 3D gesture recognition in embedded devices
TECHNOLOGY
FEATURES
13 Product Spotlight
14 Heartwarming Deals
The Microchip name and logo, the Microchip logo, dsPIC, FlashFlex, KEELOQ, KEELOQ logo, MPLAB, mTouch, PIC, PICmicro, PICSTART, PIC32 logo, rfPIC, SST, SST Logo, SuperFlash and UNI/O are
registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor, MTP, SEEVAL and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.
Analog-for-the-Digital Age, Application Maestro, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, HI-TIDE, In Circuit
Serial Programming, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, Omniscient Code Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE, rfLAB, Select
Mode, SQI, Serial Quad I/O, Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA and Z-Scale are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. GestIC and ULPP are registered trademarks of Microchip Technology Germany II GmbH & Co. & KG, a subsidiary of Microchip
Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. 2015, Microchip Technology Incorporated, All Rights Reserved.
EDITORS NOTE
archive to catch up on any articles you may have missed the first time around.
A year ago, we asked if you were ready for the Internet of Things, and based on market
trends, you are. The explosive growth of products catering to IoT means designers
have had to deal with some challenges though. To keep up with the latest trends and
turnkey sensor hub for Windows 8 based systems and our RN4020 Bluetooth Low
Energy Module. The new PIC24F GB2 family of MCUs offers an integrated hardware
encryption engine to enable secure data transfer and storage, perfect solutions for IoT-
based designs. We also named our first Mobile App Developer Specialist; you'll read
about our second partner in this issue.
Meanwhile, featured new devices in our 8-bit PIC MCU portfolio continued to lead
the industry in innovation with on-chip Intelligent Analog modules and Core Independent Peripherals. We also showed you how to Perform Under Pressure using 16-bit
dsPIC Digital Signal Controllers (DSCs), including the new dsPIC33 EV family which
is designed to deal with a variety of harsh environments. Our portfolio of 32-bit MCUs
now offers larger Flash and RAM memory, smaller footprints and lower prices.
To meet the latest requirements touch- and gesture-sensing applications, we introduced
you to our innovative 3DTouchPad and the MTCH6102 family of projected-capacitive
touch controllers. Other articles featured new devices added to our already-vast portfolio of Analog and Interface products and to our SuperFlash technology family of
memory products. We introduced a USB power delivery solution and described some
new additions to the chipKIT embedded platform ecosystem. There was so much
more, including a wide range of design articles and the latest development tool deals.
We look forward to continuing to serve you in 2015 and wish you much success in
all your design endeavors. As always, we would be happy to get your feedback on
MicroSolutions. Feel free to email us at MSFeedback@microchip.com.
Microchip Technology Inc.
2355 W. Chandler Blvd. | Chandler, AZ 85224 | www.microchip.com
SHOWCASE
From Concept
to Prototype
in Minutes
Free Code Configuration Plug-in for MPLAB X IDE
Makes Developing Firmware on 8- and 16-bit PIC
Microcontrollers Faster and Easier
The MPLAB Code Configurator Now Supports 16-bit PIC MCUs
time to market.
The generated
code is reliable and
designed for efficient
use of CPU and
memory resources.
(continued on page 5)
SHOWCASE
development obstacles.
development.
SHOWCASE
mouse click.
It's a Breeze
NEW PRODUCT
of applications.
focused
on
gesture
The on-chip
32-bit digital
signal processor
executes realtime gesture
processing.
embedded devices.
NEW PRODUCT
provide you with the ability to quickly integrate gesture detection features into your
product. Priced at under $2 in high volumes,
the MGC3030 provides the lowest-cost entry
Development Support
The Woodstar MGC3030 Development Kit
(DM160226) includes the AUREA Graphical
User Interface. It allows you to build a complete
reference system, which can be used for the
evaluation and design-in of MGC3030-based
Speedy and
Reliable
NEW PRODUCT
The SST26WF080B/040B
can complete a full chip
erase operation in just
35 ms, approximately
300 times faster than
competing devices.
battery-powered devices.
NEW PRODUCT
10
Whole Home
Audio
TECHNOLOGY
A
The JukeBlox 4 platform allows you to
build solutions that are equipped to directly
stream cloud-based music services.
audio systems.
Easily implement
DSP into your
design, even if
you have no DSP
code-writing
experience.
technology, Multi-Zone/multi-room
multi-band
dynamic
connectivity
features, AirPlay
and DLNA
consumer products.
11
listening experience.
TECHNOLOGY
25,000 albums.
streaming implementation.
12
PRODUCT SPOTLIGHT
13
Heartwarming Deals
hile the weather outside might be frosty, our February Dev Tool Deals can warm your
heart as well as inspire your creativity. To take advantage of these special sale prices,
go to microchipdirect.com and add the item to your cart. Add the coupon code during
checkout. These are limited time offers so act quickly to get yours while the deals are still available
and supplies last.
14
Create a rich user interface for your design with our Projected Capacitive
(PCAP) Touch Pad with Gestures Development Kit. Supported by
our MTCH6301 turnkey projected capacitive touch controller, it includes
everything you need to easily integrate multi-touch and gestures into
your next project. Its on sale now for $74.99.
15
DESIGN ARTICLE
nvented by Silicon Storage Technologies (SST) and later acquired by Microchip, SuperFlash
technology is an innovative and versatile type of NOR Flash memory providing erase times
that are significantly faster than competing Flash memory technologies. It uses a proprietary
split-gate cell architecture which provides superior performance, data retention and reliability over
conventional stacked-gate Flash memory. Recognizing the many advantages of SuperFlash technology, designers have increasingly turned to our portfolio of serial and parallel Flash memory
devices to meet their critical design challenges.
16
DESIGN ARTICLE
17
DESIGN ARTICLE
automotive applications.
latest application.
18
DESIGN ARTICLE
dots and lines. Those lines represent bi-directional communication over the Internet, or more
accurately, the sending and receiving of data between devices in broadcast or unicast fashion.
If only implementing inter-device communication was as easy as drawing a line. More importantly,
once weve connected those devices, how do we secure that communication? The bottom line is
that we know unprotected devices on the Internet will be attacked. With the explosive growth of
connected devices and the Internet of Things (IoT), we cannot afford to address the challenges of
IoT communication security as an afterthought.
We need a security model that works across the different paradigms of device communication.
The key to this model is a secure publish/subscribe (pub/sub) paradigm, and a vital component
of this strategy is to move security onto the network. This article describes design patterns for implementing a secure publish/subscribe network for bi-directional communication for the Internet of
Things. It also explains the critical security requirements of an IoT communication network, each
of which plays a unique role in securing IoT applications and connected devices.
(continued on page 20)
19
DESIGN ARTICLE
20
DESIGN ARTICLE
21
DESIGN ARTICLE
creates a secure design paradigm for streaming information such as the devices online/
offline status, the triggering of a sensor or a
power drain. From a security standpoint, it can
provide up-to-the-second device status and
send alerts about changes in state as they
happen. Its a sideways stream of metadata,
where the network handles the monitoring.
22
DESIGN ARTICLE
every time?
23
DESIGN ARTICLE
Constant, Off-Time,
Buck-Based LED Drivers
Using the HV9910B
simple to design as no feedback compensation is required and the PWM dimming response of the
converters is almost instantaneous.
24
DESIGN ARTICLE
off-time.
25
DESIGN ARTICLE
Input Voltage:
Resistor R1
Vin,min = 9V
Vin,nom = 12V
Vin,max = 16V
Output Voltage (corresponds to two 1W LEDs):
Vo,min = 4.6V
(Equation 2)
Vo,nom = 6.8V
Vo,max = 8V
LED Current:
Io = 350 mA
(Equation 3)
Expected Efficiency:
= 0.85
Switching Frequency
(Equation 4)
26
DESIGN ARTICLE
(Equation 5)
The sense resistor can be then be computed as:
(Equation 10)
The average current through the diode is:
(Equation 6)
if the internal voltage threshold is being used.
Otherwise, substitute the voltage at the LD pin
instead of the 0.25V in Equation 6. The power
rating required for the sense resistor can be
computed using:
(Equation 11)
Choose a 30V, 1A schottky diode.
Step 6: Analysis of the Switching
Frequency Variation
The two extremes of the switching frequency
(Equation 7)
(Equation 12)
(Equation 13)
In this case, the switching frequency varies
(Equation 8)
(Equation 9)
27
DESIGN ARTICLE
mately one million deaths in 2000 to 1.5 million deaths in 2012. One of the primary methods of
managing diabetes is keeping the level of glucose in the blood as close to normal as possible. This
has led to an increase in the use of glucose meters.
A glucose meter is a medical device used to determine the concentration of glucose in a solution.
The glucose concentration is measured in units of milligram per decilitre (mg/dl) or millimole per
litre (mmol/l). Glucose meters have become key elements of home blood glucose monitoring
devices used by people with diabetes mellitus. The measurements can be taken multiple times in
a single day.
Most glucose meters use electrochemical test strips to perform the measurement. A small drop of
the solution to be tested is placed on a disposable test strip that the glucose meter uses for the
glucose measurement. The two most common methods used in electrochemical measurement of
glucose are the colorimetric and the amperometric methods.
In the colorimetric method, sensors such as LEDs or photo sensors form the analog interface. A
transimpedance amplifier is used to measure the glucose concentration. The color reflectance
principle is used to determine the color intensity in the reaction layer of the test strip by photometry.
The meter generates a numerical value that is a measure of the glucose concentration.
In the amperometric method, a capillary is used to draw in the solution placed at one end of
the test strip. The test strip also contains an enzyme electrode containing a reagent such as
glucose oxidase. The glucose undergoes a chemical reaction in the presence of enzymes, and
electrons are produced during the chemical reaction. The charge passing through the electrode
is measured and this is proportional to the concentration of glucose in the solution. An ambient
temperature measurement is also made to compensate for the effect of temperature on the rate
of the reaction. Most glucose meters use this method.
(continued on page 29)
28
DESIGN ARTICLE
the solution.
Digital Implementation
A digital implementation of the glucose meter
can be achieved using an 8-bit PIC16LF178X
microcontroller (MCU). This PIC MCU features eXtreme Low-Power (XLP) operation.
It contains two op amps, two 8-bit DACs, a
12-bit ADC, an internal EEPROM, I2C and a
16-bit timer.
The flow of electrons can be measured with the
help of the current-to-voltage conversion using
the internal op amp of the PIC MCU and the
filtering of high-frequency signals. The filtered
signal is then fed to the 12-bit ADC module.
The PIC MCU should start capturing the
voltage at the ADC channel after about 1.5s
of placing the solution sample. About 2048
ADC readings were taken. The average value
from these was substituted into the regression
equation Y = mX + C, where Y is the glucose
(continued on page 30)
29
DESIGN ARTICLE
and programming.
test strip.
Hardware Design
Firmware Features
The firmware needs to sense the test strip
strip characteristics.
30
DESIGN ARTICLE
time-stamping.
Configuration
The voltage reference of the DAC is connected
to the internal fixed voltage reference, configured for 2.048V. The op amp output (current-to-voltage converter output) is measured
with ADC channel 0. ADC channel 3 is used
to measure the battery voltage to indicate a
low-battery condition. The output of the temperature sensor is connected to the ADC
Conclusion
31
Application Support
Powering your designs!
Energizer Application Support oers free design assistance for your portable power design.
The task of selecting the right power source for your application can be challenging. Energizer
brings over 100 years of experience in the battery industry to make this easier and to ensure
the success of your device design.
Battery Basics
What is the voltage prole?
Application Specifics
How do I choose the right battery
for my application?
Applic
a'on
S
We C
an H
elp Y
ou W
ith:
Batte
r y Se
lecti
on
Devic
e An
alysi
s
In- d
evice
Tes ti
ng
Appl
icati
on S
im u l
Batte
ation
ry C
o mpa
rt m e
Tran
nt De
sport
sign
ation
and
Dispo
sal
uppor
DESIGN ARTICLE
hen you need to add digital audio to your design, the PIC32 family of microcontrollers
(MCUs) offers you the right mix of performance and priceplus a variety of powerful
toolsto make your job easier. They are supported by a variety of software libraries to
Flash (KB)
Program Memory
53.60
44.85
0.43
0.8
31
The Microchip WMA Decoder Library costs $199.97, and you must be a Windows Media
Component Licensee to purchase it. Please visit the Microsoft WMA Decoder Library for
PIC32 page on our website for more information and to complete a form to request additional
purchasing details from the MCU32 Product Marketing team.
33
DESIGN ARTICLE
A Multi-Screen Approach to
Your Digital Strategy
Contributed by Haneke Design
able future, there will be growing groundswell of need in connecting things such as everyday consumer objects and industrial equipment onto the network,
enabling data gathering and management of these devices via a software interface (often mobile).
Todays users are able to access and manage more data and devices via mobile or web
applications than ever before. And its growing at a furious pace. Business Insider Intelligence
research estimates that by 2019, the Internet of Things market will be more than double the size
of the smartphone, PC, tablet, connected car and the wearable market combined.
Haneke Design specializes in creating custom, engaging and interactive user experiences for
desktop, mobile phone, wearable and tablet devices. Our award-winning design and development
methodologies result in intuitive, personalized applications enabling secure access to IoT-enabled
devices and systems at any time and from anywhere. This leads to increased business efficiencies, enablement of new services, or the ability to attain other health, safety or environmental
benefits for a plethora of users across all industries and demographics.
As a recent addition to Microchip's Design Partner Program and designated an App Developer
Specialist, Haneke Design is already collaborating closely with Microchip Design Partners
on holistic, end-to-end IoT solutions for various industries, as well as supporting some of the
worlds leading brands and advertising agencies to deliver
multi-platform, cross-device application initiatives.
To learn more about how Haneke Design can work with
you on the user-interfacing components of your IoT projects or other business applications, visit our website at
www.hanekedesign.com. Visit Microchip's Internet of
Things page for additional resources to get you started
with connecting your embedded system to the cloud.
34
DESIGN ARTICLE
Program offers to university educators, researchers and students worldwide include sponsorships for programs such as the Rochester Institute of Technology Electric Vehicle Team. Read
more about this project in this summary provided by Derek Gutheil, one of the team's leaders.
35
DESIGN ARTICLE
race season.
batteries. Its purpose is to constantly monitor the individual cells in the battery pack in
order to prevent dangerous conditions such
Controller Updates
Another feature of the PIC18 family that has
Other Controllers
and support.
motorcycle. Other controllers, such as our inertial measurement unit, will be measuring many
other performance aspects of the bike includ-
Development
Among others, one of the most critical features
we needed to be able to develop fast and efficient firmware to suit our needs. The less time
we spend debugging and bringing up core features and hardware interfaces, the more time
we would have to refine, improve, and add
features to our system. Microchips extensive
user base, documentation and drivers were
just what we needed to get up and running and
quickly developing our own application.
36