Winter 2012 Jan/Feb 2015
Total Page:16
File Type:pdf, Size:1020Kb
Jan/FebWinter 2015 2012 GESTURES AUDIO MEMORY IoT SECURITY MEDICAL Jan/Feb 2015 Contents SHOWCASE DESIGN ARTICLES 4 From Concept to Prototype in Minutes 16 How Fast Is Your Memory? ® 19 Securing Internet of Things Free code configuration plug-in for MPLAB X IDE makes Communication developing firmware on 8- and 16-bit PIC® microcontrollers faster and easier 24 Constant, Off-Time, Buck-Based LED Drivers Using the HV9910B NEW PRODUCTS 28 Designing a Glucose Meter Using an 8-bit Microcontroller 7 It's a Breeze 33 Decoding Windows Media® New controller with GestIC® technology enables one-step design-in Audio in PIC32-Based Designs of 3D gesture recognition in embedded devices 34 A Multi-Screen Approach to Your 9 Speedy and Reliable Digital Strategy Latest additions to low-power 1.8V Serial Quad I/O™ family of 35 Ready, Set, Go! SuperFlash® technology memory devices offer 4-Mbit and 8-Mbit of memory FEATURES 13 Product Spotlight TECHNOLOGY 14 Heartwarming Deals 11 Whole Home Audio Fourth generation JukeBlox® platform delivers the ultimate streaming audio entertainment experience 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. 2 EDITOR’S NOTE Looking Back on 2014 hank you for making MicroSolutions so successful in 2014. As a quick review, we'd like to share some highlights of our product coverage over the past year. TWhile space doesn't permit too much detail, you can visit our MicroSolutions archive to catch up on any articles you may have missed the first time around. Don’t Miss the Next Issue of MicroSolutions 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 Published six times a year, MicroSolutions is a have had to deal with some challenges though. To keep up with the latest trends and valuable resource for product and technology minimize the challenges you face, we introduced a variety of solutions including a news about Microchip’s innovative solutions. turnkey sensor hub for Windows® 8 based systems and our RN4020 Bluetooth® Low Subscribe today to receive email notifications Energy Module. The new PIC24F GB2 family of MCUs offers an integrated hardware when each new issue of MicroSolutions is encryption engine to enable secure data transfer and storage, perfect solutions for IoT- ready. Use the link below: 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 Indepen- dent 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 port- folio 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 Find Us on These Social Channels 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 [email protected]. Microchip Technology Inc. 2355 W. Chandler Blvd. | Chandler, AZ 85224 | www.microchip.com 3 From Concept SHOWCASE 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 mbedded system requirements are flexible, intelligent hardware peripherals, PIC growing as the feature set of many MCUs enable you to create functional building Enew end products is increasing at an blocks that operate efficiently with and autono- exponential rate. Wireless communications, mously of the CPU. These intelligent hardware advanced control techniques and new human peripherals can now be easily configured to interfaces are becoming common across all perform desired functions using the MPLAB embedded markets. This change is driven by Code Configurator, which simplifies software The MPLAB® Code Configurator evolving consumer demand and enabled by development and ultimately accelerates your generates drivers for controlling and massive advances in semiconductor technol- time to market. driving the peripherals inside 8- and ogy. Each new feature or function added to an 16-bit PIC® MCUs. end product requires a corresponding increase The MPLAB Code Configurator is a free, in system complexity and more sophistication user-friendly plug-in tool for the MPLAB X from its control elements. Integrated Development Envi- The generated ronment (IDE) that generates code is reliable and These increasingly complex drivers for controlling and driv- designed for efficient control elements place an ing the peripherals inside 8- and use of CPU and immense burden on product memory resources. 16-bit PIC MCUs, based on the designers, as each new func- settings and selections made in tion requires additional code and debugging its intuitive Graphical User Interface (GUI). It time. For highly integrated systems, the bulk is easy to change peripheral configurations or of an engineer’s design budget is often spent add/remove peripherals from your project. Also, eliminating timing concerns caused by the fea- the generated code is reliable and designed for ture integration. Because of this, managing the efficient use of CPU and memory resources. cost of software development has become a top priority for many companies. Originally released with support for our 8-bit products, the latest version has been expanded Our PIC microcontrollers (MCUs) are designed to include support for more than 50 of our 16-bit to support increasing levels of functional inte- devices in six of our PIC24F families. In addi- gration without concern for timing issues or tion, more than 140 8-bit PIC MCU products increased power consumption. By integrating are supported in the latest release including the (continued on page 5) 4 newly added PIC16LF155X, PIC16F161X, Configurator generates easy-to-read SHOWCASE PIC16F17XX and PIC18F14K22 families. code that includes peripheral config- Support for additional 8-bit and 16-bit devices uration setup, drivers and pin map- will follow in future releases. ping to efficiently solve application development obstacles. This popular tool offers many powerful features such as visual setup for I/O pin MPLAB Code Configurator Is: management with both a chip-level and tab- Flexible—You can use it for simple in-system ular view. Also, once a system-level clock configuration of your microcontroller or to rate is set, the tool will automatically cal- create complex functions with groups of culate timer periods, duty cycles and baud integrated peripherals. Many PIC MCUs and rates for peripherals. With a simple drag- their peripherals are supported, with new and-drop style interface, the MPLAB Code devices added regularly. (continued on page 6) Project Resources Section Module Composer Window • Includes all of the peripherals or functions you want to • This window changes depending on the peripheral selected in the project resources section so use in your project there is a customized GUI to setup each different peripheral • Each peripheral has a simple user interface to set up • Easily set up your GPIOs as inputs or outputs and with the snap of a button—configure them to the basic configuration and related pins start high or