2012
Sept/Oct
Perform
UNDER
PRESSURE
with dsPIC DSCs
TOUCH
MOTOR DRIVE
QUICK START
CoaXPress
DEBUG
Sept/Oct 2014
Contents
SHOWCASE
DESIGN ARTICLES
NEW PRODUCTS
6 Ready to Touch
8-bit PIC microcontrollers feature dual ADCs with hardware
support for advanced touch-sensing applications
8 A Boost in Performance
High-voltage capacitive touchscreen line driver improves
Signal-to-Noise Ratio
FEATURES
11 Product Spotlight
12 An Oktoberfest of Deals
26 Big or SmallmicrochipDIRECT
Serves All
28 Learning and Fun Converge at
MASTERs 2014
NEW TOOLS
9 Need a Quick Start?
PIC32 Bluetooth Starter Kit eases development of
Bluetooth-enabled products
10 Up in the Air
Introducing the worlds first development platform with
2D multi-touch and 3D gestures
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. 2014, Microchip Technology Incorporated, All Rights Reserved.
EDITORS NOTE
re you looking for details on a new Microchip product? Do you need some
design tips for your next project? Maybe you want see a demonstration of one
of our new development tools. Or, do you just enjoy learning about the latest
When you visit Microchip's YouTube channel, youll find over 600 videos arranged
into playlists to help you zero in on the topics that interest you. Some are grouped by
USB and Ethernet. Others are arranged by their product areas, such as 8-, 16- and
32-bit PIC microcontrollers and analog devices. You'll also discover a series of tuto-
Recent additions to our YouTube channel include a series of brief videos filmed at the
2014 MASTERs Conference. These highlight our newest products and technologies
which were on display, including demonstrations of user interfaces that use 3D gestures for audio and automotive applications, temperature monitoring using our analog
temperature solutions, a persistence of vision display and a cloud-based Internet of
Things implementation. You'll also find a new series of tutorial videos on using the
Aurea evaluation software for developing applications for the MGC3130 3D Tracking
and Gesture Controller.
Since our video production team is constantly creating new videos, be sure to subscribe
to our channel to get notified about the latest updates. Enjoy your visit to Microchip
Technology on YouTube!
As always, we would be happy to get your feedback on MicroSolutions. Feel free to
email us at MSFeedback@microchip.com.
SHOWCASE
Perform Under
Pressure
dsPIC Digital Signal Controllers (DSCs) Help You
PerformEven in Harsh Environmentsto Meet Your
Deadlines and Application Requirements
Very Large Portfolio Supports a Wide Range of Demanding Applications
R
Target Markets
Motor Control:
HVAC
Pumps, compressors, fans
Appliances
Consumer:
Power tools
Cameras
Projectors
Medical:
high-pressure applications.
Varying environmental
conditions can test an
embedded design.
Pulse oximeters
Sensors
Target Applications
Fuel pumps
Portable O2 concentrators
Industrial:
3D printers
Sewing machines
CNC machines
Automotive:
Fans
Digital Power:
Solar inverters
AC/DC power supplies
DC/DC converters
Conversion family.
It is a digitally con-
in a system.
SHOWCASE
low-cost,
easy-to-use
Kit
A low-cost method
(DM330015)
with mTouch
Starter
built-in debugger.
our website.
Zero-cycle looping
40-bit accumulators for high-precision results
Up to 70 MIPS performance
Ready to Touch
NEW PRODUCT
reating
capacitive
touch-sensing
microcontrollers
Target Markets
Consumer:
Remote controls
Audio players
Cell phone accessories
Small appliances
Wearable devices
Medical:
Blood pressure monitors
Wearable heart rate monitors
Automotive:
Interior controls
Control panels
Industrial:
RFID
Sensors
them well suited for a wide range of applications in the consumer, medical, automotive and
industrial markets.
Development Support
Our full suite of development tools support the
PIC16LF1554/9 MCUs, including the MPLAB X
Integrated Development Environment (IDE),
PICkit 3 In-Circuit Debugger (PG164130),
MPLAB XC8 Compiler for 8-bit PIC MCUs and
MPLAB Code Configurator.
The PIC16LF1554/9 devices are available today
for sampling and production from Microchips
worldwide distribution network or they can
be ordered from microchipDIRECT.
The Complete
Solution
NEW PRODUCT
DSCs
These devices
can power
DSCs and MCUs.
Development Support
The MCP8025 driver is supported by the
MCP8025
TQFP
BLDC
Motor
Driver
NEW PRODUCT
A Boost in
Performance
MTCH65X High-Voltage Capacitive Touchscreen Line Driver
Improves Signal-to-Noise Ratio
Enables Advanced and Robust Projected-Capacitive Touch Designs
range of designs.
Development Support
Our new 3DTouchPad (DM160225)which is
described in a separate article on page 10
incorporates the MTCH652 and demonstrates
its advantages, including advanced touch
performance in a noise-robust design.
Both the MTCH652 and MTCH650 are offered in
28-pin QFN, SOIC and SSOP packages. They
are available today from Microchips worldwide distribution network or they can be
ordered from microchipDIRECT.
NEW TOOL
Need a Quick
Start?
PIC32 Bluetooth Starter Kit Eases Development of
Bluetooth-Enabled Products
The Bluetooth
SPP stack is
optimized for
the on-board
PIC32 MCU.
peer
Bluetooth
devices,
Development Support
The PIC32 Bluetooth Starter Kit is supported
by Microchips free MPLAB X Integrated
Development Environment (IDE) and MPLAB
Harmony Integrated Software Framework.
Additionally, a free Quick Start Package is
available which features an Android application development environment. It also includes
a free Software Development Kit (SDK) with
the application source code and binary for
Microchips Bluetooth SPP library. Both are optimized for the on-board PIC32 MCU and are
available via free download from the PIC32
Bluetooth Starter Kit page.
NEW TOOL
Up in the Air
Introducing the Worlds First Development Platform with
2D Multi-Touch and 3D Gestures
3DTouchPad is PC Peripheral and Gesture Development Platform for
Applications and Drivers
10 cm for 3D gestures.
The new 3DTouchPad includes driverless,
out-of-the-box features for Windows 7/8.X
and OS X operating systems, 3D air gestures,
advanced multi-touch performance includ-
The 3DTouchPad
reinvents
input sensing.
reference design.
10
PRODUCT SPOTLIGHT
11
An Oktoberfest of Deals
ake advantage of the savings you will get with our latest Development Tools Deals.
These special sale prices will be available on microchipdirect.com for the whole month
of October. Simply add the item to your cart and apply the coupon code during checkout.
These are limited time offers so act quickly to get your savings while the deals are still available
and supplies last.
12
13
DESIGN ARTICLE
integrated development environments and debuggers. However, to many users a compiler is the
strangest of the bunch. This essential yet mysterious toolwith its fits of pique and acts of sheer
alchemycan delight and amaze us, holding us in its sway. In this article, well try to dispel the
myth and rumor surrounding compiler operation and reveal its true nature as a file-conversion
program with gland problems.
Traditionally, compilers are conceptualized in five phases:
Lexical analysis
Parsing
Semantic analysis
Optimization
Code generation
Well talk about each of these phases in turn in the following sections to help provide some
additional understanding about how compilers work.
14
DESIGN ARTICLE
link-time optimization.
language in itself. For the most part, it is independent of the source language (C, Modula-2,
BASIC, C#) and also independent of the target
on which the code (generated later) will run.
Modern compilers follow a strategy called
nave code generationthey generate the
most simplistic possible IR of your source code.
You might ask, Why generate the most simpleminded possible intermediate representation?
The answer is clear; research has shown that
a nave IR yields not only the best target for the
transformations (optimizations) that the compiler can bring to bear, but also the best resulting
performance of the generated code. All the
MPLAB XC compilers use nave code generation and apply some transformations that are
so fundamental that theyre not honored with
higher performance.
15
DESIGN ARTICLE
Analog is Everywhere
Power Management
DC/DC conversion
System supervisors
Battery charging
Power measurement
Interface
Thermal Management
Temperature sensors
Fan controllers
Signal Conditioning
Op amps
Comparators
ADCs and DACs
Digital potentiometers
Instrumentation amps
LED Lighting
Off-line
DC/DC
16
Intrinsically Safe.
Safety is vitally important when working in hazardous conditions. Intrinsic safety is the globally
recognized protection technique designed to ensure safe operation of electronic devices in potentially
explosive environments by eliminating the potential for ignition.
Energizer Application Support is proud to announce Energizer Ultimate Lithium AA
and AAA batteries are now certied as a component in intrinsic safety apparatus
according to UL 913 and Directive 94/9/EC ATEX. This means that the worlds longest
lasting battery in high tech devices can readily be used in these applications.
For more information please consult your Energizer sales representative, visit our technical
information website data.energizer.com, or email us at Application.Support@Energizer.com.
2014 Energizer. Energizer, label graphics, and other marks are trademarks of Energizer.
Form No. EBC 10005
DESIGN ARTICLE
prefer machine vision systems to perform inspections when high speed, high precision, high
magnification, around-the-clock operation, and/or repeatability of measurements are required.
There are also scenarios when human inspection isnt practical or safe. To meet the demands
of the machine vision industry, digital cameras and frame grabbers are being designed to operate at ever-increasing speeds and offer very high image resolution as cheaper, lower-speed
cameras are just not capable of acquiring enough data to deliver high-resolution and high-framerate imagery. These lower-speed cameras also cannot process the amount of data necessary for
the systems to apply proper algorithms to produce a useful high-resolution information display.
Up until recently, the deployment of high-resolution camera systems was limited by cost and
bandwidth. The existing Camera Link protocol is expensive and cannot be used in machine vision
systems where long cable lengths and higher speeds are demanded. As a result, the CoaXPress
(CXP) asymmetric, high-speed, point-to-point serial communication standard was developed.
CoaXPress enables improved performance while minimizing cost by enabling a 6.25 Gbit/s transmission rate, power and camera control simultaneously over standard, off-the-shelf 75 coax
with BNC or DIN1.0/2.3 connectors. The three most important machine vision associationsAIA
in the United States, EMVA in Europe and JIIA in Japanhave given their support for CoaXPress
to become a world standard under a G3 Agreement, which will enable CoaXPress to become
universally adopted across the machine vision industry.
CoaXPress makes it much more cost effective for companies to deploy digital high-speed,
high-resolution cameras. It uses standard, off-the-shelf coax to carry the video signals, rather than
expensive, proprietary cables required by other solutions. Coax is also easy to install. It can be run
through ceiling headers and existing cabling channels. Power can be provided by the same coax
cable as well, greatly simplifying cabling which in turn drives installation cost down even further.
CoaXPress is the only solution which enables 6.25 Gbit/s, plus camera control, plus power over
a single coaxial cable.
18
DESIGN ARTICLE
applications including:
Food processing
chipset,
consisting
of
the
19
DESIGN ARTICLE
Receiver
(Host)
Evaluation
Board
Product
Function
Typical Applications
Protocol
EQCO62T20
EQCO62R20
CoaXPress
(CXP)
Transceiver Pair
(Transmitter and
Receiver)
Machine vision,
vehicle traffic
monitoring and
video surveillance
CoaXPress
(CXP), LVDS,
Differential
and 8b/10b
Signaling
SPI
Up to
6.25 Gbit/s
20 Mbit/s
EQCO31T20
EQC031R20
CoaXPress
(CXP)
Transceiver Pair
(Transmitter and
Receiver)
Machine vision,
vehicle traffic
monitoring and
video surveillance
CoaXPress
(CXP), LVDS,
Differential
and 8b/10b
Signaling
Up to
3.125 Gbit/s
20 Mbit/s
20
DESIGN ARTICLE
Creating a High-Voltage
Protection Circuit
inate the possibility of input damage to these devices. The 500V protection circuit shown in
Figure 1 limits the amount of current going into low-voltage, high-impedance measuring instruments. This circuit will protect against destructive high voltages that are inadvertently connected
to the probes (Vmeas) of up to 500 VDC of positive and negative polarity.
Circuit Description
The circuit consists of two transistors, Q1 and Q2, and one resistor, R. Both Q1 and Q2 are Microchip
LND150N8 500V N-channel depletion mode MOSFETs with gate-to-source ESD protection in a
SOT-89 surface mount package. Q1 and Q2 are configured back-to-back as two constant current
sources with a nominal value of 1.0 mA. Resistor R sets the current limiting value. Figure 2
21
DESIGN ARTICLE
can be added.
causing the input voltage to the measurement instrument to clamp to 1.3V above its
where:
Id = desired constant current value,
Vgs(off) = pinch-off voltage, and
Idss = saturation current at Vgs = 0V.
Vgs(off) and Idss are device characteristics
and will vary from lot to lot. Actual constant current values are not critical as long as the power
dissipation of the LND1 is less than 600 mW.
below ground.
22
DESIGN ARTICLE
23
DESIGN ARTICLE
Visit Microchip at
DESIGN ARTICLE
25
microchipDIRECT
Big or Small
microchipDIRECT Serves All
the support of a distributor to assist with a challenging design or provide local or overnight delivery of products, we understand that there are also occasions when you just need a quick and
easy way to find stock and buy a part. Thats why we are happy to offer you both options. Our
global network of world-class distributors is available to provide assistance whenever you need it.
However, if you dont need extra support, microchipDIRECT allows you to purchase products and
development tools from Microchip and our third party partners 24 hours a day, seven days a week.
When Microchip first launched microchipDIRECT, the concept of allowing customers to buy
components online directly from the manufacturer was both innovative and radical. After all, the
conventional go-to-market strategy was to divide customers into two groups: large accounts which
were supported directly by the manufacturer, and then all the other customers who were served
either by franchised distributors or catalog houses. With its recently added support for South
America and, microchipDIRECT is now available in ten different languages and in 68 countries
around the world.
Providing individuals, academics and companies with full access to over 95% of Microchip products,
microchipDIRECT offers a range of features which help to streamline the design and procurement
cycle, from prototyping right through to volume production. The microchipDIRECT website gives
engineers and buyers access to crucial information which helps to ensure efficient planning and
procurement. Services include online device comparisons, available inventory levels, immediate
pricing and fast checkout. Customers can also sign up to receive a weekly email confirming the
current lead-times for all Microchip products. We also provide low-cost device programming of
our PIC microcontrollers or serial EEPROM, SRAM and Flash memories with the customers
code. Regular offerssuch as free shipping, free programmed samples and discounted pricing
on selected product lineshelp customers to save money.
Flexibility has also been an important aspect in microchipDIRECTs strategy. This includes
offering a choice of payment options and support for several different currencies. The speed
(continued on page 27)
26
DESIGN ARTICLE
and
simplicity
of
ordering
devices,
company spend.
Need Bluetooth
Low Energy?
GET THE COMPLETE SOLUTION
Fully Certified Class 2 Bluetooth
4.1 Module
Complete Stack On Board
Simple ASCII UART Interface
Small Form Factor
27
TRAINING ROOM
ur 18th Annual Microchip MASTERs conference held this past August was a huge
success. This year we offered a record-breaking number of classes throughout the week
which offered our attendees a broad spectrum of topics for beginners all the way through
to those with advanced knowledge of PIC microcontrollers and the new MPLAB Harmony
Integrated Software Framework. Other sessions focused on our analog, memory, automotive,
mTouch sensing solutions and wireless products. Many of these classes were hands on, allowing
the attendees to get a better understanding
of the class material. Of course the program
also included one of the all-time MASTERs
favorites, the Tempe Plant Toursbunny
suits and all!
More than 650 participants attended this
year. They enjoyed networking with exhibitors as well as with Microchips employees
in the Ask the Experts area. We also offered a Development Tools store where attendees could
purchase tools at a discounted price to take home and begin working on their new designs. On
Wednesday night, our Keynote session was presented by Microchips CEO, Steve Sanghi. The
following two evenings were full of family-friendly activities such as a FIRST Robotics/VEX demo,
Alien Invasion, Gyrobots and Hover Curling, to name a few.
Through the years weve added two extra pre-conference days of classes, more hands-on
sessions, extra evening classes, a larger exhibitor lobby, a number of sponsorships and more
seats for our fab tour. Weve also introduced complimentary daytime events for the attendees
guests and their families. More attendees have been bringing their families to enjoy the daytime
activities offered by Microchip and the resort, as well as the evening MASTERs events.
Many thanks to everyone that participated in MASTERs 2014 and helped continue to make it
one of the most successful technical training events offered to embedded control engineers.
MASTERs 2015 will be held at the JW Marriott Desert Ridge Resort in Phoenix, Arizona from
August 19-22. We look forward to another successful event and hope to see you next year. For
more information, visit our MASTERs Conference page.
28
Features
microchip.com/medical
The Microchip name and logo, the Microchip logo and PIC are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
All other trademarks are the property of their registered owners. 2014 Microchip Technology Inc. All rights reserved. 5/14
DS00001744A