Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Engineers’ Guide to
Microchip Technology
22018
018 Edition
Securing data comes with challenges, but the main challenge is providing
a secure authentication and securely handling private keys in a production
environment. This has led cloud providers to push towards hardware-based
ZLJ\YP[`VI[HPUZ[YVUNKL]PJLPKLU[P[`[VH]VPKZWVVÄUNHUKWYV[LJ[HNHPUZ[
\UH\[OVYPaLKÄYT^HYL\WKH[LZHUKWYVSPMLYH[PVU
4PJYVJOPW»ZWYLJVUÄN\YLK(;,**4(/(>TLL[Z[OLZLJOHSSLUNLZI`
SL]LYHNPUN(>:0V;1\Z[0U;PTL9LNPZ[YH[PVU10;910;9JVTIPULK^P[O[OL
T\[\HSH\[OLU[PJH[PVUOHUKZOHRLLUHISLZI\SRJLY[PÄJH[L\WSVHKPUNVUJLH
system is deployed.
Zero Touch Secure Provisioning Kit
Key Features
(AT88CKECC-AWS-XSTK-B)
,SPTPUH[LWYP]H[LRL`ZTHUPW\SH[PVUMYVTZVM[^HYL\ZLYZHUKTHU\MHJ[\YLYZ
Provide secure mutual authentication and unique trusted identity
3L]LYHNL(>:0V;HUK10;9MVYI\SRJLY[PÄJH[L\WSVHKPUN
www.microchip.com/AWSECC508
The Microchip name and logo and the Microchip logo 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.
© 2017 Microchip Technology Inc. All rights reserved. 11/17
DS00002581A
Welcome to the 2018 Engineers’ ENGINEERS’ GUIDE TO
Guide to Microchip Technology MICROCHIP TECHNOLOGY
2018
Vice President & Publisher
Microchip Technology Inc. (NASDAQ: MCHP) is a leading provider of Clair Bright
microcontroller, mixed-signal, analog and Flash-IP solutions, providing low- Editorial
risk product development, lower total system cost and faster time to market Editor-in-Chief
for thousands of diverse customer applications worldwide. Microchip offers Caroline Hayes ❘ chayes@extensionmedia.com
Managing Editor
outstanding technical support along with dependable delivery and quality. Anne Fisher ❘ afisher@extensionmedia.com
Senior Editors
This Engineers’ Guide was designed to provide valuable information and insight Gabe Moretti ❘ gmoretti@extensionmedia.com
Dave Bursky ❘ dbursky@extensionmedia.com
on Microchip Technology as well as many Microchip Design Partners. We hope
you enjoy this edition of the Engineers’ Guide to Microchip Technology.
Creative/Production
Production Traffic Coordinator
For your convenience, a digital version of this guide can be found at Marjorie Sharp
www.microchip.com/engineersguide2018. Production Manager/Graphic Designer
Nicky Jacobson
Graphic Designer
Simone Bradley
Product Showcases
Extension Media, LLC Corporate Office
Embedded Design Group Martin Company
Embedded System Design and Electronics Engineering President and Publisher
Development 29 and Manufacturing 30 Vince Ridley
vridley@extensionmedia.com
(415) 255-0390 ext. 18
FzPro S.r.l.s. Shenzhen A&D Technology Co., Ltd.
Vice President & Publisher
EMU01 29 Shenzhen A&D Technology Co., Ltd. 31 Clair Bright
cbright@extensionmedia.com
GERMAN POWER GmbH TechToys Company Human Resources / Administration
Power Supplies 29 ArduoHDMI Shield 31 Darla Rovetti
2 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
It’s all about the parts
www.FutureElectronics.com
Engineers’ Guide to Microchip Technology
Cooperating on Creativity
A good partner supports the freedom to innovate and provides the tools to help designers
explore and push boundaries. Microchip sees the customer as a partner, working
together with a mutual end goal, writes Caroline Hayes, Senior Editor
4 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
•
•
•
•
•
•
ŽŶƐƵŵĞƌ DĞĚŝĐĂů /ŶĚƵƐƚƌŝĂů
ΪΪ
ǦȋǨȌ
•
•
•
͵ʹǡͳǡͺ
•
ZΘĂŶĚ^ĂůĞƐKĨĨŝĐĞ
• ŝŐŝĂƉ^ŽůƵƚŝŽŶƐ͕>>͘
• ϱϮϲϬtĞƐƚďƌĞĞnjĞĐƚ͘
• ,ŝůůŝĂƌĚ͕K,ϰϯϬϮϲ
• tĞď͗ǁǁǁ͘ĚŝŐŝnjĂƉƐŽůƵƚŝŽŶƐ͘ĐŽŵ
• ǡ ŵĂŝů͗ƐĂůĞƐΛĚŝŐŝnjĂƉƐŽůƵƚŝŽŶƐ͘ĐŽŵ
•
WŚŽŶĞ͗;ϲϭϰͿϯϴϵͲϯϬϮϮ
•
•
ǡ
• ǡ
•
• ǡǡ
Engineers’ Guide to Microchip Technology
THE TOOLS TO INNOVATE Many projects may bridge multiple disciplines. Some specialties, how-
Development tools are a key part of the support structure available ever, may not be available to the design team. For example, vehicles
from Microchip. Efficient tools can reduce design time and save a are requiring more in-vehicle connectivity and the Internet of Things
customer’s resources. For ease of access, tools are scalable across the relies on it. Yet connectivity requires particular RF and protocol exper-
company’s product lines. Many of Microchip’s software tools are also tise. Microchip’s portfolio includes a wide selection of connectivity
available as free downloads or free trials. modules across many wireless technologies. The modules can be easily
integrated into a design because they include an integrated antenna
Designers who have selected any of the company’s 8-, 16, or 32-bit as well as FCC, IC and CE certifications. These whole-package modules
PIC® MCUs or 16-bit dsPIC® DSCs can take advantage of MPLAB® eliminate the need for wireless expertise when building a connected
X Integrated Development Environment (IDE) or the cloud-based design while also reducing overall development time.
MPLAB Xpress IDE along with a suite of tools that includes com-
pilers, programmers, debuggers and software as well as development
boards designed for specific applications. As an excellent example
of the ease of use philosophy behind this ecosystem of tools, there
is also MPLAB Code Configurator (MCC). This free, graphical pro-
gramming environment generates C code for use in design projects
and configures functions and peripherals specific to an application.
It also features a drag-and-drop operation to show the engineer
the various options available, saving valuable time in researching
choices and in writing code.
6 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Engineers’ Guide to Microchip Technology
For those wanting an easy to use Bluetooth® solution, the SAMB11- lowering the investment and effort required for development. The
ZR is a fully certified ultra-low power Bluetooth Low Energy module solution addresses common security needs such as trusted boot,
with integrated ARM® Cortex®-M0 based MCU and application Flash secure communications and firmware updates, secure storage and
memory (Figure 2) in a 10 x 7 mm package. It supports numerous trusted device identification.
application profiles making the device a versatile SoC suitable for a
wide variety of connected designs. Using a complete Bluetooth solu- To provide security design expertise to its customers, Microchip has
tion like the SAMB11-ZR saves developers time, cost and board space created a Security Design Partner Program. All companies in the pro-
– all positive elements in the design process. gram are trusted partners who have not only been vetted as a genuine
security expert on Microchip technologies, but have demonstrated
SMART AND SECURE their expertise with products available for customers to integrate into
There are innumerable conversations about security happening at any designs to save on development time and costs. The network includes
given moment; however, security is not just to protect the end user leading cloud-providers, TLS stack providers and certificate authority
from accidental or malicious attacks. Protecting Intellectual Property companies – all of which can work with customers to identify security
(IP) and devices from such threats is critical as it protects revenue needs as well as help in the implementation of secure designs.
streams for the customer and can negate the need for costly redesigns
as a result of a hack. Security not only includes designing in security measures from a
system’s inception, but also being reactive to new potential threats.
There is not a one-size-fits-all security solution. What’s important Given that technology is constantly evolving, standards that may
when designing a system is to be able to create a unique, trusted have once provided sufficient protection may become more suscep-
identity that can be securely authenticated and protected. There tible over time. In late 2017, the KRACK Wi-Fi vulnerability surfaced.
are different ways to implement this trust and additional measures This vulnerability wasn’t hardware-based but was actually a security
can be added based on the level of security a particular system vulnerability of the widely used WPA2 (Wi-Fi Protected Access II)
requires. Microchip has a scalable security portfolio that spans industry protocol. Microchip was on the front lines fighting this
both hardware and software and their sales team can help identify vulnerability and was one of the first vendors to issue a patch to its
what a customer’s security needs are and the best way to implement customers. Providing solutions to security challenges is a priority for
those safeguards. Microchip and it is tackling these challenges from every angle.
To safeguard a customer’s IP and a device’s private keys, CryptoAu- TOTAL SYSTEM SOLUTIONS
thentication™ products, like the ATECC608A secure element, add The reach of Microchip’s products extends across automotive and
hardware-based root of trust storage to verify the identity of anyone aerospace, to telecoms, power tools and lighting. As Ayotte puts it:
who is trying to gain access. Placing the secret keys in hardware “If it plugs in, or has a battery, we are in it – or should be.” In many
removes them from the reach of attackers while ensuring that keys instances, such as the connected car, or smart lighting in home auto-
cannot be copied, cloned, counterfeited or tampered with. This secure mation, these application areas blend more than one discipline of
element can also be used to authenticate accessories or disposables, electronics design.
such as printer cartridges, to ensure a compatible accessory is being
used that will provide an optimal user experience. For this reason, the 1,000-member sales team concentrates on
understanding and enhancing customer knowledge. Acting as a
For systems looking to implement security measures such as secure partner, each member of the team considers the customer’s current
boot, asymmetric encryption for public key cryptography, hashing for skill set and can provide an overview of what may need to be added
authentication and anti-cloning and elliptical curves for encrypting for a particular project.
and decrypting data, there is the CEC1702 MCU. This ARM Cortex-M4
based MCU ensures boot code has not been compromised, which is By being omnipresent in the marketplace, engaging with customers
becoming increasingly important in the rapidly growing IoT landscape. and discussing present and future projects, the sales team is able to
The 32-bit MCU safeguards firmware with pre-boot authentication bring in experts and identify opportunities. Crucially, it can address
and verifies that firmware updates are from a trusted source and not how to solve challenges such as connectivity or security in new
corrupted. There is also authentication of system-critical commands, system designs. Ayotte describes the team as taking a consultative
ensuring they are from a known source, and encryption protects code role, bringing in Microchip’s embedded systems expertise together
and data from theft and attacks. with availability of a range of resources that can be tailored for a
specific application.
If a customer is looking for a software-based approach, they can
explore the IoT Security Suite for Microchip’s SAMA5D2 micro- The selection of products that are scalable across all product groups,
processors (MPUs) that Microchip announced earlier this year in and resources that can be provided as and when required, can be a
conjunction with Sequitur Labs. The suite enables device OEMs to flexible approach - used by the customer to make money, save money
use hardware-based isolation and cryptography while dramatically and reduce risk in a dynamic, innovative market.
2018 r&/(*/&&34(6*%&50.*$30$)*15&$)/0-0(: 7
Engineers’ Guide to Microchip Technology
Balance of Power
6W[PTPaL@V\Y)H[[LY`7V^LYLK+LZPNUZ^P[O,ULYN`,ѝJPLU[IP[4PJYVJVU[YVSSLYZ
S
aving power to extend battery life is a pressing design hardware and software tools and reference designs that will help
requirement for developers of the latest solutions for the you understand and evaluate the innovative low-power features
consumer, industrial, medical and personal care market [OLZL4*<ZVɈLY;OLZLSV^WV^LYL]HS\H[PVURP[Z^PSSTHRLP[
segments. This is especially important in applications that easy to prototype your design using SAM and PIC32 MCUs:
target the Internet of Things (IoT) such as wearable devices,
SAM L21 Xplained Pro Evaluation Kit
smart locks, thermostats, industrial sensors, portable EKG
monitors and connected cosmetics. Power consumption is SAM L22 Xplained Pro Evaluation Kit
also a concern in LPWAN nodes that are intended for use on SAM G55 Xplained Pro Evaluation Kit
LoRaWAN™ or Sigfox networks. SAM D21 Xplained Pro Evaluation Kit
SAM D11 Xplained Pro Evaluation Kit
To meet the needs of power-constrained applications that also
YLX\PYL OPNO M\UJ[PVUHSP[` 4PJYVJOPW VɈLYZ H IYVHK YHUNL VM PIC32MX274 XLP Starter Kit
low-power and ultra-low-power 32-bit microcontrollers (MCUs)
The Power Debugger (ATPOWERDEBUGGER) and Data
[OH[LɈLJ[P]LS`IHSHUJLWV^LYJVUZ\TW[PVUHUKWLYMVYTHUJL
Visualizer GUI allow you to analyze and monitor your SAM
Devices in this portfolio range from the smallest SAM D to the
4*<IHZLKHWWSPJH[PVU»ZYLHS[PTLWV^LYWYVÄSL^OPSL[OLXLP
ultra-low-power SAM L to the higher-performing SAM G and
Battery Life Estimator allows you to estimate the battery life
the eXtreme Low Power (XLP) PIC32MX4*<ZLHJOVɈLYPUN
of batteries that are most commonly used in SAM and PIC®
MLH[\YLZ [OH[ ^PSS JH[LY [V [OL ZWLJPÄJ ULLKZ VM H SV^WV^LY
MCU-based embedded applications.
embedded design.
Take advantage of our proven ultra-
The SAM devices are designed from the ground up to utilize low
low-power technology along with our
leakage processes and libraries and provide industry-leading
many support resources to develop
low power consumption. As a result, they feature active cur-
J\[[PUNLKNL LULYN`LɉJPLU[ KLZPNUZ
rents of under 35 μA/MHz and sleep currents of 200 nA. They
\ZPUN IP[ 4*<Z ;OL` VɈLY `V\ [OL
HSZV VɈLY H ]HYPL[` VM PUUV]H[P]L WV^LYZH]PUN MLH[\YLZ Z\JO
ÅL_PIPSP[` [V LHZPS` JYLH[L H OPNOS` VW[P-
as multiple power domains, performance levels, SleepWalking
mized low-power solution in no time.
peripherals and an Event system.
Visit our 32-bit MCUs web page to get
Getting started with your low-power design is quick and easy started today.
with our comprehensive development resources that include
Visit the digital edition at www.microchip.com/engineersguide2018 for links to more information on the products and tools mentioned.
8 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
MAXIMUM
IMPACT
Create Compelling Graphical User
Interfaces to Make Your Product Stand Out
I
n today’s competitive marketplace, an easy-to-
use and well-designed Graphical User Interface
(GUI) can often be the primary driver in brand
ZMKWOVQ\QWVIVLK][\WUMZXZMNMZMVKMNWZI[XMKQߦK
product. However, most developers don’t have any
graphic design experience and sometimes lack the
tools they need to create compelling GUIs. With
our Visual Design Tools, we now make it easy for
you to develop professional-looking GUIs for your
32-bit PIC® MCU-based embedded design without
needing any special training or design skills.
MPLAB Harmony Graphics Composer displays, cutting your development time from weeks to hours.
)UWLMZVIVLߧM`QJTM/=1KWUXW[MZ\WWT\PI\KIVJM][MLQV 1\IT[WWߥMZ[[MIUTM[[KWV^MZ[QWVWNLI\I[PMM\\QUQVO^IT]M[
designs that use PIC32 microcontrollers, MPLAB Harmony to simulated timing waveforms. The adaptive LCC graphics
Graphics Composer (MHGC) is free and available through driver supports standard and non-standard display resolu-
362'( .GXSUT_ )UTߟM[XGZUX and MPLAB X Integrated tions and aspect ratios, lowering the barrier of entry for novice
Development Environment (IDE). It works in conjunction with graphics developers.
the MPLAB Harmony Graphics Library and your own custom
MHGC Highlights
graphic assets to help you develop professional-looking GUIs
ڧGo from concept to glass in minutes without writing a single
without writing a single piece of code. It takes care of all con-
line of code
ߦO]ZI\QWV ZMY]QZMUMV\[ IVL OMVMZI\M[ \PM VMKM[[IZa [W]ZKM
ڧ+WVߦO]ZMXZWRMK\[NWZaW]Z/=1ZMY]QZMUMV\[
code. MHGC’s intuitive, user-friendly interface lets you easily
import images and fonts and add them into your project. The ڧDrag and drop widgets and objects directly into the design
\WWTIT[WITTW_[aW]\WILLLMTM\MUW^M[KITMIVLKWVߦO]ZM with WYSIWYG design simplicity
objects within the application. These objects can be interac- ڧExtend your brand by importing custom images
tive—including sliders, dials and buttons—without any need ڧDesign directly for MPLAB Harmony Graphics Primitive Library
for you to understand the underlying graphics code.
SEGGER emWIN Pro
If you prefer, you may choose to use SEGGER emWin Pro as
aW]ZOZIXPQK[TQJZIZaIVL\ISMIL^IV\IOMWNQ\[ZWJ][\WߥMZQVO
of widgets and shape drawings for applications that operate
_Q\PIOZIXPQKIT4+,1\Q[:<7;QVLMXMVLMV\ZMY]QZM[WVTaIV
ANSI-compliant C compiler and enables you to take advantage
of the SEGGER development tool chain and utilities. This library
is available within MPLAB Harmony under license and available
for free for use with our 16- and 32-bit PIC® MCUs and 16-bit
dsPIC® Digital Signal Controllers (DSCs). Documentation and
some demonstration examples are also available to assist you
with your GUI development.
Ready to Create?
To help jumpstart your GUI development, our Multimedia
If you have used MPLAB Harmony v.1x to create GUIs in the
Expansion Board II (DM320005-2) is a highly integrated,
past, you should note that the latest release, MPLAB Harmony
KWUXIK\ IVL ߧM`QJTM XTI\NWZU \PI\ _WZS[ _Q\P W]Z PIC32MZ
v2.02, incorporates a completely new graphics library and
Embedded Connectivity with FPU (EF) Starter Kit. It features
WߥMZ[ aW] M^MV UWZM NMI\]ZM[ IVL IL^IV\IOM[ QV KZMI\QVO
a 4.3" WQVGA PCAP touch display, an on-board 24-bit stereo
GUIs. A migration guide is provided within MPLAB Harmony
audio codec, a VGA camera, an 802.11 b/g wireless module,
v2.02 that will assist you in enabling your designs in the new
a Bluetooth® HCI transceiver, a temperature sensor, a microSD
framework. Download the Migration FAQs for additional infor-
slot and an analog accelerometer.
mation or contact your nearest 3OIXUINOVYGRKYUߡIK if you
need more assistance. If you’re ready to give your next GUI design the maximum
impact, simply download MPLAB Harmony software frame-
/TJ[YZX_ڜY,OXYZ-;/:UURLUX)UTߟM[XOTM?U[X work and MPLAB Harmony Graphics Composer MPLAB X plug
Own Display in for free from the MPLAB Harmony web pageAW]_QTTߦVLI
<PMVM_,Q[XTIa5IVIOMZQ[\PMQVL][\Zaߦ[ڞZ[\/=1JI[ML\WWT number of other helpful resources there too, including training
for prototyping new and non-standard displays that are not materials, documentation and information on third-party tools
[]XXWZ\MLQV584)*0IZUWVa1\JZQVO[ZMTM^IV\KWVߦO]ZI\QWV and support to make it even easier to get started.
settings to one screen to speed up the prototyping of new
Visit the digital edition at www.microchip.com/engineersguide2018 for links to more information on the products and tools mentioned.
10 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Engineers’ Guide to Microchip Technology
PIC®4PJYVJVU[YVSSLYZ^P[O*VYL0UKLWLUKLU[7LYPWOLYHSZ6ќLYH5L^3L]LSVM
Integration to Take on Tough Design Challenges
E
mbedded systems have become an indispensable part of The need to meet these market demands puts embedded
life. The latest technological innovations have opened up designers under constant pressure to innovate. Their go-to
exciting new business opportunities for industry giants as ZVS\[PVU[OLTPJYVJVU[YVSSLY4*<HSZVT\Z[RLLW\W^P[O[OL
^LSSHZZ[HY[\WZ,U[O\ZPHZ[PJHIV\[[OLWV[LU[PHSVMZPNUPÄJHU[ JOHSSLUNLVML]VS]PUNZ`Z[LTULLKZ6]LY[OLWHZ[ZL]LYHS`LHYZ
ÄUHUJPHSZ\JJLZZTHU`JVTWHUPLZHYLTV[P]H[LK[VPU]LZ[PU 4PJYVJOPW OHZ ILLU PU[YVK\JPUN 70*® 4*<Z ^P[O UL^ SL]LSZ
developing future products that feature these emerging tech- of integration to deliver the right combination of features and
nologies. This creates intense competition in many market M\UJ[PVUHSP[`HKLZPNULYULLKZMVYHZWLJPÄJWYVQLJ[;OLZLUL^
ZLJ[VYZ;VKPɈLYLU[PH[LPU[OPZJYV^KLKZWHJLJVTWHUPLZULLK 70* 4*<Z ^P[O VUJOPW *VYL 0UKLWLUKLU[ 7LYPWOLYHSZ *07Z
[V LUOHUJL [OLPY WYVK\J[ VɈLYPUNZ HUK JVZ[VW[PTPaL VɈLYÅL_PIPSP[`ZJHSHIPSP[`HUKLUOHUJLKWLYMVYTHUJL^OPSLZ[PSS
their designs. remaining low-power and cost-competitive solutions for many
HWWSPJH[PVUZ:VTLVM[OLZWLJPHSH[[YPI\[LZVM*07ZPUJS\KL!
N
INDEPE DENCE 0UKLWLUKLU[TVK\SLZ[OH[M\UJ[PVU^P[OV\[[OLJVUZ[HU[
RE
CO HI
G Z\WLY]PZPVUVM[OLJLU[YHSWYVJLZZPUN\UP[*7<
H
TY
TH
+LKPJH[LKOHYK^HYLMVYOPNO[OYV\NOW\[HUKULHYaLYVSH[LUJ`
LI
RO
BI
UG
HPU
IBILITY/SC
ZLSMZ\Z[HPUPUNJSVZLKSVVWZ`Z[LTZVɈLYPUNOPNOLYPU[LNYH[PVU
T
0U[LSSPNLU[TVK\SLZ[OH[YLX\PYLHSTVZ[UVWYVJLZZVY
resources to function
FLEX
ON
WV^LYZH]PUNTVKLZTHRPUN[OLTPKLHSMVYSV^WV^LYKLZPNUZ
TE
LO
IN
W
2018 r&/(*/&&34(6*%&50.*$30$)*15&$)/0-0(: 11
Engineers’ Guide to Microchip Technology
Peripheral Integration
*07Z HYL MV\UK VU THU` 70* 4*<Z PUJS\KPUN 70* 70*
70*KZ70*HUK70*44MHTPSPLZ:VTLVM[OL*07ZH]HPS- Figure 2: Flash and RAM Requirements for Encryption/Decryption
able on some families of 16-bit PIC24 MCUs and dsPIC® Digital
Signal Controllers+:*ZHUK32-bit PIC32MM MCUs include
H7LYPWOLYHS;YPNNLY.LULYH[VY7;.*VUÄN\YHISL3VNPJ*LSSZ (Z H OHYK^HYL TVK\SL [OL JY`W[V LUNPUL OHZ H ]LY` OPNO
*3* JY`W[V LUNPUL ^P[O 9HUKVT 5\TILY .LULYH[VY 95. throughput as compared to a similar implementation in soft-
OPNOZWLLKJVTWHYH[VYZ^P[OISHURPUNHUKKPNP[HSÄS[LYM\UJ[PVUZ ^HYL 0[ JHYYPLZ V\[ LUJY`W[PVU HUK KLJY`W[PVU HWWYV_PTH[LS`
HUK4\S[PWSL*HW[\YL*VTWHYL7>44**7 [LU [PTLZ MHZ[LY [OHU H ZVM[^HYL JY`W[V PTWSLTLU[H[PVU ^OPSL
consuming almost the same amount of power. This improves
[OLV]LYHSSLULYN`LɉJPLUJ`VM[OLHWWSPJH[PVUI`HWWYV_PTH[L-
ly ten times. These are important factors for power-sensitive
HWWSPJH[PVUZ [OH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PTLPZ]LY`PTWVY[HU[!
these resources are available to perform other functions
:`UJOYVUPaPUNTV[VYJVU[YVS7>4HUK7-*7>4
YLX\PYLKI`[OLHWWSPJH[PVU
;YPNNLYPUN(UHSVN[V+PNP[HS*VU]LY[LY(+*HJ[PVUZ
HUKZ^P[JOPUN(+*JOHUULSZ\ZLKMVYTV[VYJVU[YVSHUK
7-*ZPNUHSZ
12 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
PIC18F “K42” Family
MCUs For Every Space
The PIC18F “K42” family features the highest integration of Core Independent
Peripherals (CIPs), high-resolution analog, Direct Memory Access (DMA) and
vectored interrupts for fast processing. CIPs allow many functional tasks to
be done in hardware—reducing code, validation time, core overhead and
power consumption.
Highlights
ϯ Largest total memory of any 8-bit PIC® MCU
ϯ Up to 128 KB Flash ϯ Up to 8 KB SRAM
ϯ DMA controller for fast data transfers
ϯ Vectored interrupts for fast response times, reducing software overhead
ϯ 12-bit ADC with computation
ϯ Low-power features and multiple communication interfaces
ϯ Quick code development with the MPLAB®*VKL*VUњN\YH[VY
www.microchip.com/K42
The Microchip name and logo, the Microchip logo, MPLAB 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. © 2017 Microchip Technology Inc. All rights reserved. 6/17
DS30010161A
Engineers’ Guide to Microchip Technology
)V[OVM[OLZLYLX\PYLTLU[ZHYLLɈLJ[P]LS`OHUKSLKI`HZPUNSL +TNGTIOTM6XUJ[IZ5ߞKXOTMY
7;.TVK\SL>OLU[OL7;.PZ\ZLK[VLUHISL[OLPU[LNYH[PVUVM ;V JV\U[LY PU[LUZL JVTWL[P[PVU THU` JVTWHUPLZ HYL VU H
7-*^P[OTV[VYJVU[YVSH[^VJOPWKLZPNUPZLSPTPUH[LK^OPJO X\LZ[[VKPɈLYLU[PH[L[OLPYWYVK\J[ZHUKLUOHUJL[OLPYWYVK\J[
ZPNUPÄJHU[S`YLK\JLZ[OLZ`Z[LTSL]LSJVZ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:PUJL[OL/:*VTWHYH[VYKVLZUV[OH]L[OLSV^LY
ZHTWSPUNYH[LSPTP[H[PVUVMHUVYTHS(+*P[LSPTPUH[LZ[OLULLK
MVYHOPNOZWLLK(+*PU[OL4*<
*07Z Z\JO HZ [OL *VUÄN\YHISL 3VNPJ *LSS *3* OLSW PTWYV]L
[OLHJJ\YHJ`VMWOHZLKPɈLYLUJLTLHZ\YLTLU[I`L_[LUKPUNP[Z
JHWHIPSP[`[VPTWSLTLU[[OLOHYK^HYLWOHZLKL[LJ[VY(JVTIP-
UH[PVU VM [OL *3* HUK [OL 0UW\[ *HW[\YL 0* WLYPWOLYHS JHU
TLHZ\YL[OLWOHZLKPɈLYLUJLIL[^LLU[^VZPNUHSZVM[OLZHTL
Figure 4: Power Savings Modes of XLP PIC® MCUs
14 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Engineers’ Guide to Microchip Technology
MYLX\LUJ` ;OPZ PTWSLTLU[H[PVU VɈLYZ IL[[LY YLZVS\[PVU HUK HUK PU[LNYH[LK VWLYH[PVUHS HTWSPÄLYZ PU H ZPUNSL JOPW ;OLZL
NP]LZSLHKSHNPUMVYTH[PVUHZ^LSS0[L_[LUKZ[OLM\UJ[PVUHSP[`VM integrated analog modules eliminate the need to create a
*3*LUHISLKLUOHUJLTLU[Z^P[OV\[[OLULLK[VTPNYH[L[VH T\S[PJOPW KLZPNU ( ZPUNSLJOPW ZVS\[PVU ZPNUPÄJHU[S` YLK\JLZ
TVYLL_WLUZP]LOPNOLYWLYMVYTHUJL4*< Z`Z[LTSL]LSJVZ[HUKZH]LZ7*)YLHSLZ[H[LMVYIL[[LYVW[PTP-
aH[PVU VM ZWHJLJVUZ[YHPULK KLZPNUZ Z\JO HZ ^LHYHISLZ HUK
sensor applications.
6UJOPW*07ZHSZVOLSWPUPTWSLTLU[PUNL_[LUKLKHWWSPJH[PVUZ
HUKVɊVHKPUNTHU`VM[OLKL[LYTPUPZ[PJYV\[PULZMYVT[OL*7<
(ZHYLZ\S[HUHWWSPJH[PVUPTWSLTLU[H[PVU\ZPUN*07ZYLX\PYLZ
ML^LYWYVJLZZVYYLZV\YJLZSPRLIHUK^PK[O-SHZOHUK9(4)`
YLTV]PUN [OL SVHK MYVT [OL *7< *07Z LUHISL T\S[PWSL WHYHS-
lel processes to be implemented without expensive multi-core
4*<Z (Z OHYK^HYL TVK\SLZ *07Z YLZWVUK MHZ[LY [V Z[PT\SP
and implement a target function with a higher throughput.
These attributes eliminate the need to migrate to higher-mem-
VY` OPNOLYWYVJLZZPUNJHWHIPSP[` 4*<Z [OLYLI` VW[PTPaPUN
design costs.
Figure 6: The Phase Detector IC Helps Improve the Accuracy of
7OHZL+PߜLYLUJL4LHZ\YLTLU[Z
(Z [OL YLX\PYLTLU[Z HUK I\ZPULZZ JOHSSLUNLZ MVY LTILKKLK
Z`Z[LTZJVU[PU\L[VL]VS]L[OL*VYL0UKLWLUKLU[7LYPWOLYHSZ
PU V\Y 70* 4*<Z ^PSS IL YLHK` [V UV[ VUS` TLL[ `V\Y WYLZLU[
Design Optimization YLX\PYLTLU[ZI\[HSZV[VOLSW`V\VɈLYPUUV]H[P]LUL^KLZPNUZ
(S[OV\NO KPɈLYLU[PH[PVU TH` IL H WYPTHY` MVJ\Z VM THU` PU [OL M\[\YL =PZP[ www.microchip.com to discover how our
KLZPNULYZ Z`Z[LTSL]LS JVZ[ VW[PTPaH[PVU JHUUV[ IL JVT- wide range of products and outstanding technical support can
WYVTPZLK 70* 4*<Z VɈLY H ]HYPL[` VM MLH[\YLZ [V HZZPZ[ ^P[O OLSW`V\Z[H`HOLHKVM[VTVYYV^»ZKLZPNU[YLUKZ
this goal. Some include highly integrated analog modules
PUJS\KPUNHUVUJOPWZPNTHKLS[H(+*OPNOZWLLK:(9(+*
Visit the digital edition at www.microchip.com/engineersguide2018 for links to more information on the products and tools mentioned.
2018 r&/(*/&&34(6*%&50.*$30$)*15&$)/0-0(: 15
Engineers’ Guide to Microchip Technology
So Many Choices
*46:]Z)PWVSHY6WLYH[PVUHS(TWSPÄLYZ!>OPJOPZ)LZ[MVY4`(WWSPJH[PVU&
T
oday’s system designer has many choices when it comes HIPWVSHY[YHUZPZ[VY[OLJVUK\J[PVUWH[OPZI\YPLKKV^UPUZPKL
[V ZLSLJ[PUN VWLYH[PVUHS HTWSPÄLYZ VW HTWZ ;OL [OYLL [OLZPSPJVU6UH*46:[YHUZPZ[VY[OLJ\YYLU[ÅV^PZULHY[OL
largest op amp manufacturers collectively have over Z\YMHJLTHRPUNP[Z\ZJLW[PISL[VKLMLJ[ZPU[OLZ\YMHJLVM[OL
sixteen hundred products from which to choose, and that ZPSPJVU^OPJOPUJYLHZLZ[OLSV^MYLX\LUJ`UVPZL([OPNOLYMYL-
KVLZU»[ PUJS\KL ZWLJPHS[` HTWSPÄLYZ /V^ KVLZ VUL NV HIV\[ X\LUJPLZMUVPZLPZULNSPNPISLHZ[OL^OP[LUVPZLMYVTV[OLY
ZVY[PUN [OYV\NO [OPZ V]LY^OLSTPUN U\TILY VM KL]PJLZ& 6UL ZV\YJLZ ILNPUZ [V KVTPUH[L *46: [YHUZPZ[VYZ OH]L H SV^LY
way to start narrowing down the options is to select the proper [YHUZJVUK\J[HUJLYLSH[P]L[VZPTPSHYS`ZPaLKIPWVSHY[YHUZPZ[VYZ
WYVJLZZ [LJOUVSVN` 4VZ[ THU\MHJ[\YLYZ JSLHYS` SHILS HU VW ^OPJOYLZ\S[ZPUOPNOLYIYVHKIHUKUVPZL0UNLULYHSIPWVSHYVW
HTW HZ *46: IPWVSHY VY L]LU )P*46: I\[ ^OH[ KVLZ [OPZ HTWZOVSKHUPUOLYLU[HK]HU[HNLV]LY*46:^OLUP[JVTLZ[V
TLHU^P[OYLNHYK[V[OLHJ[\HSHWWSPJH[PVU& UVPZLWLYMVYTHUJL
16 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Low-Power, High-Precision
5VKXGZOUTGR'SVROߟKXY
Enable Extended Battery Life
and High Accuracy
Key features:
ϯ 4H_PT\TVMMZL[#|=
ϯ 3V^X\PLZJLU[J\YYLU[ U([`WPJHS
ϯ :WLJPњLKVWLYH[PVUKV^U[V=
www.microchip.com/MCP6031
The Microchip name and logo and the Microchip logo 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. © 2017 Microchip Technology Inc. All rights reserved. 8/17
DS20005831A
Engineers’ Guide to Microchip Technology
JVZ[ZMVYHNP]LUJ\YYLU[JHWHIPSP[`*46:[YHUZPZ[VYZ[HRL\W of the circuitry and will end up resulting in an error voltage at the
TVYL ZPSPJVU HYLH [OLU IPWVSHY [YHUZPZ[VYZ YLZ\S[PUN PU H SHYNLY V\[W\[VM[OLHTWSPÄLY;OLSLZZIPHZJ\YYLU[[OLIL[[LYHUKPU
ZPSPJVU KPJL :V L]LU [OV\NO [OL ^HMLY JVZ[Z TH` IL SV^LY [OPZYLNHYK*46:OHZHKPZ[PUJ[HK]HU[HNL
[OLYLHYLSLZZKPLWLY^HMLY[O\ZULNH[PUN[OLJVZ[ILULÄ[0U
the end, the cost structure of these two process technologies =NOIN6XUIKYYOY(KYZLUX'SVROߟKXY%
PZ]LY`ZPTPSHY ;OPZ PZ H X\LZ[PVU [OH[ OHZ ILLU KLIH[LK PU [OL WHZ[ HUK PZ
L_WLJ[LK [V JVU[PU\L [V IL H WVPU[ VM KPZJ\ZZPVU MVY `LHYZ [V
(SHYNLYZPSPJVUZVS\[PVUHSZVSPTP[ZHTHU\MHJ[\YLY»ZWHJRHNPUN JVTL )PWVSHY HTWSPÄLYZ HYL NYV\UKLK PU OPZ[VY` I\[ *46:
VW[PVUZ;OPZJHUILHZPNUPÄJHU[SPTP[H[PVUHZZ`Z[LTKLZPNULYZ HTWSPÄLYZ VɈLY ZVTL PUOLYLU[ HK]HU[HNLZ )P*46: WYVJLZZ-
HYLJVUZ[HU[S`[HZRLK^P[OWSHJPUNTVYLWLYMVYTHUJLHUKM\UJ- LZ HYL [OL YLSH[P]L UL^JVTLYZ [V [OL ÄLSK I\[ [OPZ O`IYPK
[PVUHSP[`PU[VZTHSSLYHUKZTHSSLYMVYTMHJ[VYZ:L]LYHSWHJRHN- [LJOUVSVN` [HRLZ [OL ILZ[ VM IV[O ^VYSKZ HUK WYV]PKLZ Z\WL-
LZ Z\JO HZ [OVZL ^P[O )HSS .YPK (YYH`Z ).(Z HUK SLHKSLZZ YPVY WLYMVYTHUJL H[ H WYPJL WVPU[ [OH[ PZ ILJVTPUN TVYL HUK
WHJRHNLZOLSWHKKYLZZ[OPZZP[\H[PVU TVYLJVTWL[P[P]L
Visit the digital edition at www.microchip.com/engineersguide2018 for links to more information on the products and tools mentioned.
18 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Engineers’ Guide to Microchip Technology
Solving the
Security Conundrum
How Hardware Cryptography Solutions for Securing Internet of Things Nodes Can
Minimize Your Embedded Design Costs
S
ecuring the Internet of Things (IoT) is a hot topic right now, the ecosystem with limited or no human interaction. In order to
especially as new instances of security breaches come do this, their cryptographic credentials must be stored in the
to light. Stories of hackers taking control of a vehicle that device itself. Since edge nodes are often physically accessible,
^HZ JY\PZPUN VU [OL OPNO^H` H[ TPSLZ WLY OV\Y VM H Å`PUN these credentials are in danger of exposure to hackers.
WSHULILPUNOHJRLK]PHP[ZPUÅPNO[LU[LY[HPUTLU[Z`Z[LTHUKVM
There are three major pillars for securing IoT designs:
smart meters in Spain being compromised for energy theft have
authentication, encryption, and secure key storage. While
helped to make IoT security a huge concern for consumers as
authentication and encryption are equally important building
^LSS HZ LTILKKLK KLZPNULYZ ;OL ]HS\L HUK ILULÄ[ VM ZTHY[
blocks in the security equation, it’s important to recognize that
connected devices has been overshadowed by uncertainty
encryption doesn’t ensure security in IoT applications. Since
about the security issues that may come with them.
it is generally too daunting and time consuming to hack into
:LJ\YP[` YLX\PYLTLU[Z MVY [OL 0V; HYL YHKPJHSS` KPɈLYLU[ MYVT complex authentication and encryption systems, the majority
those of traditional embedded designs because small, intel- of hacks are usually implemented by using imposter devices
ligent IoT nodes must be able to authenticate themselves to to break into the areas where secret keys are stored. The loss
of these secret keys severely impacts the authentication and
encryption processes. In other words, once hackers get a hold
of the keys, the other two protection mechanisms can also be
compromised or breached. Therefore, an IoT system is really
only as strong as the process that is used for the storage of
secret keys.
2018 r&/(*/&&34(6*%&50.*$30$)*15&$)/0-0(: 19
Engineers’ Guide to Microchip Technology
TLHZ\YL [OH[ ZVTL[PTLZ VUS` VɈLYZ H [LTWVYHY` ZVS\[PVU 6U resource-sensitive cloud computing at the other end. It can only
[OLV[OLYOHUKOHYK^HYLIHZLKZ`Z[LTZHYLMHYTVYLKPɉJ\S[ be truly secure when the secret keys are stored in protected
to spoof or hack than software-based systems, making them a hardware. Using security co-processors in a node or gateway
more complete security solution. KLZPNU ^PSS ZHMLN\HYK WYP]H[L RL`Z JLY[PÄJH[LZ HUK V[OLY ZLU-
sitive security data to ensure authentication and protection
against software, hardware and back-door attacks.
The IoT’s Hardware Security
Blueprint
In IoT designs, the authentication and cryptography security
elements need to be implemented fairly early in the develop-
ment cycle. Therefore, it is critical that IoT developers have a
clear understanding of an end-to-end ecosystem for creating a
robust security roadmap. The traditional approach to hardware
security involves building the security stack on top of a micropro-
JLZZVY47<VYTPJYVJVU[YVSSLY4*</V^L]LYHZPNUPÄJHU[ (ZLJ\YP[`JVWYVJLZZVYVYJY`W[VLSLTLU[VߠVHKZ[OL
amount of computing power is required to carry out security authentication tasks from the main MCU
operations. For instance, precious CPU cycles are required to
HJJLSLYH[L[OLH\[OLU[PJH[PVUVMHWWSPJH[PVUZHUKÄYT^HYL(Z ( ZLJ\YP[` JVWYVJLZZVY PZ H JVZ[LɈLJ[P]L HKKP[PVU HUK P[Z
a result, hardware solutions built around a central MPU or MCU crypto elements consume very low power, which is essential
have seen limited success because this compute-intensive in IoT designs. Some other reasons to consider using security
authentication burdens the overall system and eventually slows co-processors include:
KV^U[OLKL]PJLWLYMVYTHUJL(SZVZLJ\YP[`ZVS\[PVUZI\PS[VU
They are equipped with hardware cryptographic acceleration
top of processors generally store the secret keys into memory,
[VJHYY`V\[Z[YVUNH\[OLU[PJH[PVU^OPSL[OL`VɊVHKJY`W-
which can be accessed by clever hackers via intrusion mecha-
tographic code and math from the central processor of an
nisms like snooping. Security co-processors or crypto elements
IoT node
can help resolve this design conundrum.
;OL`ZPTWSPM`[OLTHU\MHJ[\YPUNWYVJLZZI`LɈLJ[P]LS`
dealing with the key provisioning, a process of loading
Enter Security Co-processors ZLJ\YP[`RL`ZHUKV[OLYZLJ\YP[`MLH[\YLZSPRLJLY[PÄJH[LZ
onto a product
( ZLJ\YP[` JVWYVJLZZVY PZ H ZLWHYH[L JOPW [OH[ VɊVHKZ
;OL`HYLWYLSVHKLK^P[O\UPX\LRL`ZHUKJLY[PÄJH[LZ[V
security tasks from the main microprocessor or microcontroller
ensure that encryption keys are secure throughout the
while making authentication faster and less taxing on the overall
manufacturing process, which also reduces complexities in
WYVK\J[ KLZPNU 0[Z JY`W[V LSLTLU[Z VɈLY WYV[LJ[PVU HNHPUZ[
manufacturer supply chains
a wide array of security threats including IP theft, cloning,
over-building, reverse engineering and infecting IoT devices They replace the traditional approach of using the Hardware
with rogue code. Security Module (HSM), which uses a database approach
to store, protect and manage keys, as well as requires a
(U 0V; UVKL VY NH[L^H` PZ [OL JLU[YHS ULY]V\Z Z`Z[LT [OH[ ZPNUPÄJHU[PU]LZ[TLU[PUPUMYHZ[Y\J[\YLHUKSVNPZ[PJZ
handles a horde of sensors and other “things” at one end and They can also replace Trusted Platform Module (TPM) chips,
which have their roots in the computer industry and are not
well-positioned for low-price IoT edge applications; instead
ZLJ\YP[`JVWYVJLZZVYZMHJPSP[H[LJLY[PÄLK0+WSH[MVYTZHUK
can be deployed in IoT node-to-cloud environments, even at
smaller scales
20 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
IoT Security Suite
Making the Complex Simple
The IoT Security Suite for the SAMA5D2 MPU enables rapid and easy use of its
advanced security features, such as ARM® TrustZone® technology and hardware
cryptography, without a long learning curve. The suite covers the security
requirements for IoT device manufacturers in a single, easy-to-use package. It
supports storing, encrypting, decrypting and exchanging keys between devices
and applications, and its easy-to-use APIs save you time.
ϔ 7UXVWHG'HYLFH,'Ϣ<UPX\LKL]PJLJLY[PњJH[L[PLK[V[OL9V;
ϔ 6HFXUH6WRUDJHϢ:LJ\YLZ[VYHNLVMRL`ZJLY[PњJH[LZHUKKH[H
ϔ 6HFXUH)LUPZDUH8SGDWHϢ:LJ\YLS`\WNYHKLњYT^HYLYLTV[LS`
Download the IoT Security Suite Evaluation Kit (free) to get started.
www.microchip.com/SAMA5D2
The Microchip name and logo and the Microchip logo are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. ARM and Cortex are registered trademarks of ARM Limited
(or its subsidiaries) in the EU and other countries. All other trademarks are the property of their registered owners. © 2017 Microchip Technology Inc. All rights reserved. 8/17
DS60001511A
Engineers’ Guide to Microchip Technology
0M`V\ULLK^VYSKJSHZZHUKJVZ[LɈLJ[P]LLTILKKLKZLJ\YP[`
solutions for your IoT system design, visit the Atmel® Security
ICs web page to learn more about how our hardware-based
security devices can reduce your costs and ensure trust for
every system design.
;OL(;,**(JY`W[VLSLTLU[ߝYZ[NLULYH[LZP[ZV^URL`HUK
then carries out ECC operation to authenticate IoT nodes
Visit the digital edition at www.microchip.com/engineersguide2018 for links to more information on the products and tools mentioned.
22 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Optimize Your Power
Delivery Solutions
UPD360 - USB Power Delivery Controller
4PJYVJOPWϦZ7V^LY+LSP]LY`7+*VU[YVSSLY<7+PZH<:)0-JLY[PњLK<:)
Type-C™7+*VU[YVSSLY<7+PU[LNYH[LZ[OLM\UJ[PVUHSISVJRZYLX\PYLKMVY
<:);`WL*HUK7+JVTT\UPJH[PVUZ^OPJOPUJS\KLZ=CONN-,;ZHUKWVY[WV^LY
JVU[YVSSLYZ<7+JHUVWLYH[LPUHZ[HUKHSVULTVKLVYHJVTWHUPVUTVKL
PU[LYMHJPUN[V4*<ZLTILKKLKJVU[YVSSLYZVY<:)O\IZV]LY02C/SPI interface.
<7+JHUILKLZPNULKPU[VHWWSPJH[PVUZ[OH[YLX\PYL<:)JVUULJ[P]P[`
HS[LYUH[LWYV[VJVSZ]Pa+PZWSH`7VY[HUKTHUHNLWV^LYHZH:V\YJLVY:PUR\W
to 100 W over USB Type-C connectors.
Highlights
ϯ USB Type-*HUKWV^LYKLSP]LY`M\UJ[PVUHSP[`
ϯ 0U[LNYH[LKWV^LYZ^P[JO
ϯ 0U[LNYH[LK=CONN FETs
ϯ +LHKIH[[LYy support
ϯ I2C/SPI interface
www.microchip.com/UPD360
The Microchip name and logo and the Microchip logo are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. USB Type-C and USB-C are trademarks of the USB
Implementers Forum. All other trademarks are the property of their registered owners. © 2017 Microchip Technology Inc. All rights reserved. 10/17
DS00002566A
Engineers’ Guide to Microchip Technology
Suite Success
D
igital power designs can be challenging, but Microchip
has you covered. Our Digital Power Design Suite, which
supports applications using our dsPIC33 “GS” family of
Digital Signal Controllers, is a set of software tools and design
examples to make your development process easy. The Digital
Power Design Suite includes four packages: the Digital Com-
pensation Design Tool (DCDT), MPLAB® *VKL *VUÄN\YH[VY
(MCC), Microchip Compensator Libraries and Design Examples.
24 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Engineers’ Guide to Microchip Technology
Visit the digital edition at www.microchip.com/engineersguide2018 for links to more information on the products and tools mentioned.
2018 r&/(*/&&34(6*%&50.*$30$)*15&$)/0-0(: 25
Engineers’ Guide to Microchip Technology
0TWSLTLU[PUNH*VZ[,ѝJPLU[9VI\Z[HUK:JHSHISL7O`ZPJHS3H`LY:VS\[PVUMVY
/PNO:WLLK5L[^VYRLK(\[VTV[P]L0UMV[HPUTLU[:`Z[LTZ
H
istorically, high-bandwidth In-Vehicle Infotainment (IVI) To respond to the market’s demand for a lower-cost IVI
systems with data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VU[YVSSLKPTWLKHUJLLUHISPUNM\SSK\WSL_TVKL
PIPSP[` ,4* WLYMVYTHUJL HUK P[Z HIPSP[` [V Ä[ PU[V [OL SPTP[LK of operation
ZWHJLH]HPSHISLPU]LOPJSLZ/V^L]LYPUZWP[LVM[OLZLMLH[\YLZ Enabling power transmission as well as data transmission
P[ZJVZ[OHZILLUHIHYYPLY[VP[ZHKVW[PVUI`ZVTLOPNO]VS\TL over the same cable
JHYTHU\MHJ[\YLYZ
*VH_PHS JHISLZ OH]L ILLU \ZLK PU [OL H\[VTV[P]L PUK\Z[Y` MVY
decades with a proven track record for point-to-point connec-
[PVUZ-VYL_HTWSL[OL`OH]LILLU\ZLK[VJVUULJ[[OLHU[LUUH
and radio and to connect the antenna to a Global System for
4VIPSL.:4JVTT\UPJH[PVUTVK\SL(ZHYLZ\S[[OLL_PZ[PUN
PUMYHZ[Y\J[\YL MVY OPNOS` H\[VTH[LK WYVK\J[PVU HUK [OL JVYYL-
ZWVUKPUNZ\WWS`JOHPUPZ^LSSLZ[HISPZOLK*VH_PHSJHISLZTLL[
H\[VTV[P]L [LTWLYH[\YL YHUNL HUK TLJOHUPJHS YLX\PYLTLU[Z
;OL` HYL Z\WWVY[LK I` H Z[HUKHYK MVY H\[VTV[P]L JVUULJ[VY
TVKLSZ·RUV^UHZ-(29(·[OH[OHZILLUHKVW[LKI`KPɈLYLU[
26 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Engineers’ Guide to Microchip Technology
Z\WWSPLYZ -(29( JVUULJ[VYZ L_PZ[ PU THU` KPɈLYLU[ ZOHWLZ ;OL JSHZZPJ YPUN [VWVSVN` VU H JVH_PHS WO`ZPJHS SH`LY JHU IL
HUK HYL H]HPSHISL ^P[O KPɈLYLU[ JVSVY HUK TLJOHUPJHS JVKPUN PTWSLTLU[LKHZZOV^UPU-PN\YL;OPZ[`WLVMUL[^VYR[VWVSV-
ZJOLTLZHSSV^PUNLHZ`HUKLɉJPLU[HZZLTIS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UPJH[PVUHUK-+JVTT\UPJH[PVUJHUHSZVILLHZPS` Figure 3: Infotainment System Consisting of Two Nodes in
PTWSLTLU[LK;HISLZ\TTHYPaLZ[OLWVZZPISL[VWVSVNPLZ[OH[ Point-to-Point Connection Based on a Full Duplex Coaxial
JHUILZ\WWVY[LK\ZPUNHJVH_PHSWO`ZPJHSSH`LY Physical Layer
2018 r&/(*/&&34(6*%&50.*$30$)*15&$)/0-0(: 27
Engineers’ Guide to Microchip Technology
Visit the digital edition at www.microchip.com/engineersguide2018 for links to more information on the products and tools mentioned.
28 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Product Showcases
t Datalogger functions of
battery data throughout the
life of the machine, either
during discharge or charging.
t Communication with an external battery charger via
CANBUS protocol to optimize power saving during
charging of batteries.
t Increase the autonomy and avoid overcharging thanks
to the function called “AGV” that allows EMU01 to be
interfaced with PLC or similar systems.
t EMU01 is equipped with a software developed for the
Windows operating system, with which end-user can fully
configure the board and its functions quickly and easily.
2018 r&/(*/&&34(6*%&50.*$30$)*15&$)/0-0(: 29
Product Showcases
TAKE YOUR PROJECT
IDEA FROM CONCEPT
TO COMPLETION
From class III medical devices to commercial
products, Occam Technology Group provides
design and development services for:
Embedded Systems
IoT Devices
Communications Solutions
Secure Systems
t"OBMPH
%JHJUBM$JSDVJUT
Services Specializing In t4DIFNBUJDT
#0.
t Vulnerability Analysis and t IoT Edge Node Design t1$#-BZPVU
t'JSNXBSF
4PGUXBSF t*40$FSUJmFE
Threat Modeling t TLS Integration t&NCFEEFE$JSDVJUT
4ZTUFNT t'U2 Labs and Offices
t Security Architecture Design t PKI & Key Management t)B[BSEPVT"SFB%FTJHO t5FTUJOHPG4ZTUFNT
t Hardware Integration Support t AWS IoT Implementation
Contact us today! 281-342-7431 email@martincomp.com
t Secure Firmware t CryptoAuthentication™
Development Discover the difference of working with a reliable, long-running
ATECC508/ATECC608 electrical engineering company.
t Security Consultation
Martin Company
Lynx Corporation 5330 Reading Road
www.lynxcorp.com Rosenberg, TX 77471
contact@lynxcorp.com Tel: (281) 342-7431
Tel: (719)488-8696 Fax: (281) 342-5925
http://www.martincomp.com
30 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Product Showcases
Seamless work with OEMs/ Brands in audio and mobile accessory t HDMI shield compatible with Arduino® Uno form factor.
products for nearly 2 decades. t Bridge a low-end microcontroller to high definition TV
(HDTV) of 1080p@60Hz via HDMI interface.
t Arduino library in C++ available.
t Port to Graphics Library of Microchip’s MPLAB® Harmony.
Apple MFi Developer Licensee
Product designs
t HomeKit/IoT accessory
t Wireless charging
t Charging case for TWS earbuds
t MFi accessory
t Bluetooth speaker
t DAB Radio
t Soundbar
t CD Microsystem/ Boombox
2 018
2018
201
20 r & /(*
/ /&&
/( &&34
34
4 (66 *%&
*% 50
0..** $30
$3
$ 30 $
30 $)
$)*
)*
)*115
15
5 &
&$
&$)
r&/(*/&&34(6*%&50.*$30$)*15&$)/0-0(: $)/
$) /0-
/0
0
0--0(
0(
(: 31
3 1
Product Showcases
Create exponential value to your customers and your business by rapidly building advanced IoT solutions
Write to us at info@thinxtream.com to know how we can help you with our products, solutions and software
engineering services to deliver on the full potential of IoT promise.
t Application software
development and integration Engineers’ Guide to
with embedded designs Microchip Technology
22018
018 Edition
t Over 25 years’ experience
with Rail, Mining, Electrical
Utilities and Manufacturing
t Rapid development and prototyping
t Microchip Design Partner, Microsoft Certified Partner,
National Instruments Alliance Partner
t ISO9001:2015 registered
Everything you need to
build your next design is
available at Microchip
TLC Engineering Solutions
St Andrews Office Park,
Epsom Downs
Gauteng, 2021, South Africa
Tel: +27 11 463 3860
sales@tlc.co.za
www.tlc.co.za
32 &/(*/&&34(6*%&50.*$30$)*15&$)/0-0(:r 2018
Low-Cost AVR® and SAM
Device Programming
Add Your Custom Code to an
AVR or SAM Device!
-VY[OLÄYZ[[PTLL]LY`V\JHUHKK`V\YJ\Z[VTJVKL[VTVYL[OHU
AVR®HUK:(4KL]PJLMHTPSPLZHSVUN^P[OULHYS`HSS70*®4*<ZHUK
TLTVY`KL]PJLZKPYLJ[S`MYVT[OLTHU\MHJ[\YLY]PHTPJYVJOPW+09,*;
RECEIVE 3
-YVT]LY`ZTHSSY\UZ[V]LYPM`[OH[[OLJVKLPZ^VYRPUNHSS[OL^H`\W FREE
[OYV\NOM\SSZJHSLWYVK\J[PVUY\UZ[OPZJVZ[LќLJ[P]LWYVNYHTTPUNZLY]PJL PRE-PROGRAMMED
SAMPLES WITH
VќLYZ`V\[OLÅL_PIPSP[`[VHKK`V\YJVKL[VHU`VYKLYZPaL(KKP[PVUHSS` YOUR ORDER
LHJOÄYZ[]LYPÄJH[PVUVYKLYPZJVTWSPTLU[HY`HUKPUJS\KLZ[OYLLMYLL
ZHTWSLZWYVNYHTTLK[V`V\YL_HJ[ZWLJPÄJH[PVUZ
.L[[PUNZ[HY[LKPZLHZ`JOVVZL[OLWHY[VUTPJYVJOPW+09,*;[OLU
HKK`V\YJVKLHUKV[OLYJVUÄN\YH[PVUZL[[PUNZZOV^UVU[OLPU[\P[P]L
VUSPULMVYTKPYLJ[S`PU[V[OLLUJY`W[LK^LIZP[L;OL4*<Z^PSS[OLUIL
WYVNYHTTLKKPYLJ[S`I`4PJYVJOPW^P[OUVULLK[VPU]VS]LH[OPYKWHY[`
WYVNYHTTPUNVYTHU\MHJ[\YPUNMHJPSP[`
www.microchipdirect.com/programming
The Microchip name and logo, the Microchip logo, AVR 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. © 2017 Microchip Technology Inc. All rights reserved. 12/17
DS00002463B