Portable Weather Station Board User’s Guide 2016 Microchip Technology Inc. Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. • Microchip is willing to work with the customer who is concerned about the integrity of their code. • Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights unless otherwise stated. Trademarks The Microchip name and logo, the Microchip logo, AnyRate, dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KeeLoq, KeeLoq logo, Kleer, LANCheck, LINK MD, MediaLB, MOST, MOST logo, MPLAB, OptoLyzer, PIC, PICSTART, PIC32 logo, RightTouch, SpyNIC, SST, SST Logo, SuperFlash and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. ClockWorks, The Embedded Control Solutions Company, ETHERSYNCH, Hyper Speed Control, HyperLight Load, IntelliMOS, mTouch, Precision Edge, and QUIET-WIRE are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, MiWi, motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PureSilicon, RightTouch logo, REAL ICE, Ripple Blocker, Serial Quad I/O, SQI, SuperSwitcher, SuperSwitcher II, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA 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. Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. QUALITYMANAGEMENTSYSTEM CERTIFIEDBYDNV == ISO/TS16949== page 2 Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries. GestIC is a 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. © 2016, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. ISBN: 2016 Microchip Technology Inc. PORTABLE WEATHER STATION BOARD USER’S GUIDE Table of Contents Preface ........................................................................................................................... 5 Introduction............................................................................................................ 5 Document Layout .................................................................................................. 5 Conventions Used in this Guide ............................................................................ 6 Warranty Registration............................................................................................ 7 Recommended Reading........................................................................................ 7 The Microchip Web Site ........................................................................................ 8 Development Systems Customer Change Notification Service ............................ 8 Customer Support ................................................................................................. 9 Revision History .................................................................................................... 9 Chapter 1. Introduction to Portable Weather Station Board 1.1 Overview ...................................................................................................... 10 1.1.1 XLP Technology ........................................................................................ 10 1.2 Hardware ...................................................................................................... 12 1.2.1 LCD Display .............................................................................................. 13 1.2.2 Deep Sleep/Wake-up Push Button (SW1) ................................................. 13 1.2.3 CR2032 Battery Holder (BT1) ................................................................... 13 1.2.4 Ambient Light Sensor (Q2) ........................................................................ 13 1.2.5 Temperature Sensor (U4) ......................................................................... 13 1.2.6 AA Power Jumper (JP1) ............................................................................ 14 1.2.7 mTouch™ Navigation Touch Pads (Left, Select and Right) ...................... 14 1.2.8 AA Battery Holder (BT2) ............................................................................ 14 1.2.9 Humidity Sensor (U3) ................................................................................ 14 1.2.10 Air Quality Sensor (U5) ........................................................................... 14 1.2.11 Boost Regulator (U2) ............................................................................... 15 Chapter 2. Demonstration Application on PWSB 2.3 Startup .......................................................................................................... 17 2.4 Sections of the Demo ................................................................................... 17 2.4.1 Time ......................................................................................................... 18 2.4.2 Date ........................................................................................................... 18 2.4.3 Temperature .............................................................................................. 19 2.4.4 Humidity .................................................................................................... 19 2.4.5 Ambient Light ............................................................................................ 19 2.4.6 Air Quality .................................................................................................. 20 2.4.7 Sleep Mode ............................................................................................... 20 2.4.8 Deep Sleep Mode ...................................................................................... 20 2.4.9 Vbat Mode ................................................................................................. 21 2.4.10 USB CDC Basic Demo ............................................................................ 21 Chapter 3. Troubleshooting 2016 Microchip Technology Inc. page 3 Portable Weather Station Board User’s Guide Appendix A. PWSB Schematics Appendix B. LCD Panel Information Worldwide Sales and Service .....................................................................................29 page 4 2016 Microchip Technology Inc. PORTABLE WEATHER STATION BOARD USER’S GUIDE Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the document. For the most up-to-date information on development tools, see the MPLAB® IDE online help. Select the Help menu, and then Topics to open a list of available online help files. INTRODUCTION This chapter contains general information that will be useful to know before using the PIC24FJ128GC010. Items discussed in this chapter include: • • • • • • • • Document Layout Conventions Used in this Guide Warranty Registration Recommended Reading The Microchip Web Site Development Systems Customer Change Notification Service Customer Support Revision History DOCUMENT LAYOUT The document is organized as follows: • Chapter 1. “Introduction to Portable Weather Station Board” – This chapter introduces the Portable Weather Station Board (PWSB) and provides an overview of its features. • Chapter 2. “Demonstration Application on PWSB” – This chapter illustrates PWSB preprogrammed application. • Chapter 3. “Troubleshooting” – This chapter lists some troubleshooting scenarios for user’s reference. • Appendix A. “PWSB Schematics” – This appendix provides schematic diagrams for the PWSB. • Appendix B. “LCD Panel Information” – This appendix provides the LCD panel information of the PWSB. 2016 Microchip Technology Inc. page 5 Portable Weather Station Board User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Arial font: Italic characters Represents Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path MPLAB® IDE User’s Guide ...is the only compiler... the Output window the Settings dialog select Enable Programmer “Save project before build” A dialog button A tab A number in verilog format, where N is the total number of digits, R is the radix and n is a digit. A key on the keyboard Click OK Click the Power tab 4‘b0010, 2‘hF1 Italic Courier New Sample source code Filenames File paths Keywords Command-line options Bit values Constants A variable argument Square brackets [ ] Optional arguments Curly brackets and pipe character: { | } Ellipses... Choice of mutually exclusive arguments; an OR selection Replaces repeated text #define START autoexec.bat c:\mcc18\h _asm, _endasm, static -Opa+, -Opa0, 1 0xFF, ‘A’ file.o, where file can be any valid filename mcc18 [options] file [options] errorlevel {0|1} Initial caps Quotes Underlined, italic text with right angle bracket Bold characters N‘Rnnnn Text in angle brackets < > Courier New font: Plain Courier New Represents code supplied by user page 6 Examples File>Save Press <Enter>, <F1> var_name [, var_name...] void main (void) { ... } 2016 Microchip Technology Inc. Preface WARRANTY REGISTRATION Please complete the enclosed Warranty Registration Card and mail it promptly. Sending in the Warranty Registration Card entitles users to receive new product updates. Interim software releases are available at the Microchip web site. RECOMMENDED READING This user's guide describes how to use PIC24FJ128GC010. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources. Release Notes for MPLAB ICD 3 In-Circuit Debugger For the latest information on using PIC24FJ128GC010, read the “Readme for PIC24FJ128GC010.htm” file (an HTML file) in the Readmes subdirectory of the MPLAB IDE installation directory. The release notes (Readme) contains update information and known issues that may not be included in this user’s guide. 2016 Microchip Technology Inc. page 7 Portable Weather Station Board User’s Guide THE MICROCHIP WEB SITE Microchip provides online support via our web site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web site contains the following information: • Product Support – Data sheets and errata, application notes and sample programs, design resources, user’s guides and hardware support documents, latest software releases and archived software • General Technical Support – Frequently Asked Questions (FAQs), technical support requests, online discussion groups, Microchip consultant program member listing • Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE Microchip’s customer notification service helps keep customers current on Microchip products. Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest. To register, access the Microchip web site at www.microchip.com, click on Customer Change Notification and follow the registration instructions. The Development Systems product group categories are: • Compilers – The latest information on Microchip C compilers, assemblers, linkers and other language tools. These include all MPLAB C compilers; all MPLAB assemblers (including MPASM™ assembler); all MPLAB linkers (including MPLINK™ object linker); and all MPLAB librarians (including MPLIB™ object librarian). • Emulators – The latest information on Microchip in-circuit emulators.This includes the MPLAB REAL ICE™ and MPLAB ICE 2000 in-circuit emulators. • In-Circuit Debuggers – The latest information on the Microchip in-circuit debuggers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit™ 3 debug express. • MPLAB® IDE – The latest information on Microchip MPLAB IDE, the Windows® Integrated Development Environment for development systems tools. This list is focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and MPLAB SIM simulator, as well as general editing and debugging features. • Programmers – The latest information on Microchip programmers. These include production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included are nonproduction development programmers such as PICSTART® Plus and PICkit 2 and 3. page 8 2016 Microchip Technology Inc. Preface CUSTOMER SUPPORT Users of Microchip products can receive assistance through several channels: • • • • Distributor or Representative Local Sales Office Field Application Engineer (FAE) Technical Support Customers should contact their distributor, representative or FAE for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the web site at: http://www.microchip.com/support. REVISION HISTORY Revision A (March 2016) This is the initial release of this document. 2016 Microchip Technology Inc. page 9 PORTABLE WEATHER STATION BOARD USER’S GUIDE Chapter 1. Introduction to Portable Weather Station Board The Portable Weather Station Board (PWSB) is a customer engagement board, intended to demonstrate the on-chip peripheral features of PIC24 GC “Intelligent Analog” family of devices. 1.1 OVERVIEW The PWSB demo intends to showcase Analog, Capacitive touch, LCD, RTCC, VBAT and XLP features of PIC24FJ128GC010 microcontrollers. For more information refer to http://www.microchip.com/PIC24FJ128GC010. • Analog features: - A high-speed (up to 10 Msps), 12-bit A/D converter with multiple input channels - A high-resolution, 16-bit Sigma-Delta A/D converter with two input channels - mTouch™ capacitive sensing with multiple input channels • Analog sensors that are interfaced with A/D converters include: - Ambient Light sensor - Temperature sensor - Humidity sensor - Air Quality sensor The PIC24F device drives an on-board Dot-Matrix LCD (8 commons by 59 Segments). The LCD displays the sensor readings and Real-Time Clock and Calendar (RTCC). This demo uses an 8 MHz external crystal and runs at 16 MHz (8 MIPS). 1.1.1 XLP Technology XLP technology uses a combination of proprietary process geometry design techniques, as well as power management features, to reduce power consumption wherever possible. A key part of this strategy is the use of operating modes: a range of software-selectable hardware configurations that allow an application to change its power consumption during run time are implemented. The demo has five selectable operating modes: • Idle mode: CPU is OFF. All peripherals are ON. LCD displays either sensor readings or RTCC. • Run mode: CPU and peripherals are ON. LCD displays either sensor readings or RTCC. • Sleep mode: CPU and peripherals (except RTCC and LCD) are OFF. All sensors are turned OFF. Touch buttons are inactive. LCD Screen displays time in hh:mm format. The screen gets updated once every minute. • Deep Sleep mode: CPU and peripherals (except RTCC) are OFF. The device can wake up from deep sleep using INT0 interrupt (Wake-up Switch assertion). • VBAT mode: RTCC runs with VBAT (no VDD supply). 2016 Microchip Technology Inc. page 10 Introduction For more information on power saving mode and XLP features refer to: • XLP Application Note AN1267 http://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en541031 • Power saving features with deep sleep PIC24FRM http://www.microchip.com/PIC24FJ128GC010 FIGURE 1-1: DEMO MODES STATE MACHINE VDD Restore VDD (2 AA) Restore OR Deep Sleep Wakeup No Yes VBAT Mode Initialize Peripherals Enable RTCC and Timer Interrupt Timer Interrupt Idle Assertion of Wakeup (SW1) Switch Run Mode Tasks Executed Update LCD Screen (Time Screen) No Activity for More than 3 Minutes Sleep Mode RTCC 1 min Interrupt Assertion of SW1 Switch Deep Sleep Mode 2016 Microchip Technology Inc. page 11 Portable Weather Station Board User’s Guide 1.2 HARDWARE Figure 1-2 identifies the major components of the PWSB. FIGURE 1-2: PWSB - FRONT AND BACK VIEWS 1 2 12 11 10 3 4 9 5 6 7 8 Components of PWSB marked in Figure 1-2 are described in Table 1-1. page 12 2016 Microchip Technology Inc. Introduction TABLE 1-1: PWSB COMPONENTS - FRONT AND BACK VIEWS Number Description 1 LCD Display 2 Deep Sleep/Wake-up Push Button (SW1) 3 CR2032 Battery Holder (VBAT) 4 Ambient Light Sensor (Q2) 5 Microchip MCP9700 Temperature Sensor (U4) 6 AA Power Jumper (JP1) 7 mTouch™ Navigation Touch Pads 8 AA Battery Holder (BT2) 9 Humidity Sensor (U3) 10 Air Quality Sensor (U5) 11 Microchip MCP16251 Boost Regulator 12 Microchip PIC24FJ128GC010 16-Bit MCU (U1) Components listed in Table 1-1 are discussed in the following sections: 1.2.1 LCD Display This LCD display panel is organized as a 59-segment by 8-column display. However, the demo utilizes only a 54 x 8 dot-matrix array for alphanumeric or special characters. The LCD panel is directly driven from the I/O pins of the PIC24FJ128GC010 microcontroller, a separate display controller is not required. Multiplexing of the display elements is described in Appendix B. “LCD Panel Information”. 1.2.2 Deep Sleep/Wake-up Push Button (SW1) This is normally a pulled-high push button connected to the port pin, RD0. Asserting this button pulls down RD0 to logic low (ground). As described in 2.4.7 “Sleep Mode” and 2.4.8 “Deep Sleep Mode” the demo application uses this switch to: • Turn ON and OFF LCD backlight in Run mode • Force the device to enter Deep Sleep mode from Sleep mode • Wake up the device from Deep Sleep mode 1.2.3 CR2032 Battery Holder (BT1) The CR2032 battery powers RTCC and Deep Sleep semaphore (DSGPRx) registers of PIC24FJ128GC010 microcontroller in the absence of main VDD (AA batteries). 1.2.4 Ambient Light Sensor (Q2) Q2 is an ambient light sensor (ALS-PT19) consisting of phototransistor in miniature SMD, used to detect indoor ambient light level. The sensor is designed to output a current in the range of 1 μA to 200 μA, proportionate to the varying light flux, from 0 lux to 1000 lux. Disclaimer: The ambient light measured is dependent on the resistor R8. In PWSB R8 is 30k resulting in a maximum ambient light measurement of 500 lux. 1.2.5 Temperature Sensor (U4) Microchip’s MCP9700 is an analog temperature sensor and measures temperature from -40°C to +150°C. The MCP9700 provides a low-cost solution for applications that require measurement of a relative change of temperature. The Temperate sensor is turned ON only in the Temperature screen. 2016 Microchip Technology Inc. page 13 Portable Weather Station Board User’s Guide For more information on MCP9700 temperature sensor refer to data sheet (DS20001942F) www.microchip.com/MCP9700 Disclaimer: The temperature sensor has an accuracy of ± 2°C (typical) from 0°C to +70°C 1.2.6 AA Power Jumper (JP1) The jumper JP1 is used to power the board from two AA batteries. The default setting is jumper mounted. 1.2.7 mTouch™ Navigation Touch Pads (Left, Select and Right) There are three navigation buttons. The Charge Time Measurement Unit (CTMU) module is a constant current source used to detect the change in the pad's capacitance. The buttons are covered in detail in 2.3 “Startup”. A more detailed description of the CTMU module’s operation is provided in the “PIC24F Family Reference Manual”, “Charge Time Measurement Unit (CTMU)” (DS39724). Additional information on the mTouch™ system is available at www.microchip.com/mtouch 1.2.8 AA Battery Holder (BT2) Two AA batteries power up the PWSB board. 1.2.9 Humidity Sensor (U3) U3 is a humidity-sensitive (HR31) resistor made from organic macromolecules. This sensor can measure the humidity from 20% to 95% at temperatures between 0°C to 60°C. The Humidity sensor is enabled only in Humidity screen. Disclaimer: In Humidity screen, the humidity sensor needs about a minute to stabilize. 1.2.10 Air Quality Sensor (U5) U5 is an Air Quality sensor (MQ135) that is used for detecting NH3, NOx, alcohol, Benzene, smoke, CO2, etc. It consists of a micro AL2O3 ceramic tube, Tin Dioxide (SnO2) sensitive layer, measuring electrode and heater, fixed into a crust made by plastic and stainless steel net. The heater provides necessary work conditions for work of sensitive components. The resistance value of the sensor varies based on the gases detected and their concentration. A specific alarm point or a relative message of pollution can be determined after considering the temperature and humidity influence. Disclaimer: 1. To provide accurate readings, the AQ sensor requires 24 hours of continuous operation. However, this would cause a substantial battery drain. Hence, the demo program readings are for educational purposes only, and should not be used to qualitatively monitor/test the environmental air quality. 2. In Air Quality screen, the device will not enter in Sleep mode. page 14 2016 Microchip Technology Inc. Introduction 1.2.11 Boost Regulator (U2) U2, Microchip’s MCP16251 is a compact, high-efficiency, fixed frequency, synchronous step-up DC-DC converter. This booster is used to power the heater coil of the Air Quality sensor. The booster gives a regulated 5V DC. The Boost Regulator is turned ON only in the Air Quality screen. For more information on MCP16251 Boost Regulator refer to data sheet (DS25173A) www.microchip.com/MCP16251 Note: 2016 Microchip Technology Inc. Data from the sensors is for indication only. page 15 Portable Weather Station Board User’s Guide page 16 2016 Microchip Technology Inc. PORTABLE WEATHER STATION BOARD USER’S GUIDE Chapter 2. Demonstration Application on PWSB This chapter describes the preprogrammed demonstration on the PWSB while giving an introduction to the PWSB and an overview of its features. The topics covered are: • Startup • Sections of the Demo 2.3 STARTUP On powerup, the LCD displays one of the following messages indicating the cause of reset: • • • • • Device powered first time Deep Sleep wake-up without VBAT MCLR asserted Power recycled with VBAT intact Deep Sleep wake-up This is followed by a time screen in 24-hour clock (hh:mm:ss) format.The three mTouch™ touch pads are used by the demo code for data entry and navigation: • Left Arrow (◄): Decrement the digit or go to the previous screen. • Select ( ): Configure the time, date and/or set current digit. • Right Arrow (►): Increment the digit or go to the next screen. The mTouch™ software included in the application waits a preset time to verify whether the pad has been touched. The application will not respond to a touch duration that lasts less than 500 ms, a touch longer than that is logged as one tap. 2.4 SECTIONS OF THE DEMO The demo application is divided into several user interface sections, with each section utilizing a unique function of the microcontroller. The sections are organized as a closed-loop menu, that is, the screens are navigated using ► and ◄ keys. The sections are ordered as follows: • • • • • • Time Date Temperature Humidity Ambient Light Air Quality Some sections (e.g., configuring time) have sub-menus, which are selected using the ( ) pad. Detailed information on these section follows. Power Save modes: The two power-save modes implemented in this demo are: • Sleep Mode • Deep Sleep Mode After setting the Time and Date, press ► to return to the Demo. 2016 Microchip Technology Inc. page 17 Portable Weather Station Board User’s Guide 2.4.1 Time The 24-hour time is the home page for the demo. This is a 24-hour time in hh:mm:ss format. The RTCC module is clocked using a 32 kHz on board crystal oscillator. To set the clock: 1. Press when the LCD is displaying the time. 2. The display shows, hh:mm:ss, where ‘hh’ is the current hour, ‘mm’ is the current minute and ‘ss’ is the current second. The first hours digit begins to blink, indicating that it is the current digit to be set. 3. Press the ◄ to decrement the hours digit or press ► to increment the digit. Since this is a 24-hour setting, the digits cycle through 0 > 1 > 2 > 0.... 4. When the correct digit is displayed, press to save it. The current digit stops blinking and the next digit begins to blink. 5. Repeat Step 2 through Step 4 for each of the remaining digits until the display is showing the correct time. Note: While setting the time, the PWSB does not allow returning to the previous digit. If there is an error while making the settings or after pressing , the time setting process must be started all over again. The time LCD display is available in Run mode and Sleep mode. Once the Time is set and running, press ► to go to the Date screen. 2.4.2 Date Date is displayed in mm:dd:yy format in this section. To reset the date, follow the same procedure given for time setting. Note 1: While setting the date, the PWSB does not allow returning to the previous digit. If there is an error while making the settings or after pressing , the date setting process must be started all over again. 2: If the user sets an invalid date, it will be rejected. The date setting process will automatically start again from the first digit. The Date LCD display is available in Run mode only. Once the Date is set, press ► to go to the next Demo screen. page 18 2016 Microchip Technology Inc. Demonstration Application on PWSB 2.4.3 Temperature Microchip MCP9700 analog temperature sensor (U4) is used to measure the ambient temperature. This sensor converts the temperature to analog voltage which is measured by the microcontroller using Pipeline ADC. The demo displays the current temperature in degree Celsius (°C). The Temperature LCD display is available in Run mode only. 2.4.4 Humidity HR31 humidity sensor is a humidity sensitive resistor made from organic macromolecules. It can be used in hospitals, storage rooms, workshops, production floors, restrooms, gardens, laboratories and more. The humidity range varies from 20% to 95% for temperature 0°C to 60°C. The Humidity LCD display is available in Run mode only. 2.4.5 Ambient Light ALSPT19 ambient light sensor (Q2) is used to obtain the ambient light. This sensor consists of a phototransistor which converts light to relative current giving an analog voltage measured by the microcontroller using Pipeline ADC. The demo displays the ambient light in the units of Lux. The Ambient Light LCD display is available in Run mode only. 2016 Microchip Technology Inc. page 19 Portable Weather Station Board User’s Guide 2.4.6 Air Quality Air quality sensor, MQ135, measures the quality of air. MQ135 is sensitive to NH3,NOx, alcohol, Benzene, smoke, CO2, etc. The sensor gives the concentration of these air pollutants which is displayed on the LCD as PPM of pollutant. The Air Quality LCD display is available in Run mode only. 2.4.7 Sleep Mode The PWSB enters Sleep mode when there is no activity on the board for more than 3 minutes. The PIC24FJ128GC010 device provides the ability to manage power consumption by selectively managing clocking to the CPU and the peripherals. For more information on Sleep mode, please refer to the device data sheet at: www.microchip.com/PIC24FJ128GC010 On entering Sleep mode the LCD backlight is turned off and the display switches to Time screen, which shows time in hh:mm format. In Sleep mode: • RTCC is active. • LCD is active. • All other peripherals including mTouch buttons are inactive. 2.4.8 Deep Sleep Mode The device enters into Deep Sleep mode when the wake-up (SW1) switch is asserted in Sleep mode. Deep Sleep mode consumes the lowest levels of power available from the instruction-based modes of the PIC24FJ128GC010 device. Note 1: 2: Before entering Deep Sleep mode, the LCD displays following message. LCD screen goes blank in Deep Sleep mode. On asserting the wake-up switch, the PWSB reverts to active mode by device reset, the Time screen is displayed by default. In Deep Sleep mode: • RTCC is ON. • All other peripherals including LCD and mTouch buttons are OFF. page 20 2016 Microchip Technology Inc. Demonstration Application on PWSB 2.4.9 VBAT MODE The device enters VBAT mode when the main power supply on VDD fails. The power supplied on VBAT only runs two systems: RTCC and Deep Sleep Semaphore Data registers (DSGPR0 and DSGPR1). Note: LCD display is not available in VBAT mode. To demonstrate the VBAT, remove the 'AA' jumper JP1 for 30 seconds. Replace the jumper, and a message 'Power Recycled with VBAT intact' will scroll across the screen. Notice that the displayed time is correct, as the RTCC is still running with the primary power (VDD) removed. TABLE 2-2: CURRENT CONSUMPTION IN DIFFERENT OPERATING MODES Operating Mode Current Comments Idle 2.2 mA Run 2.5 mA Peripherals and Core are ON. LCD in Time screen. Sleep 0.5 mA Only LCD and RTCC peripherals are ON. Deep Sleep 1.2 A Only RTCC and RAM registers are ON. VBAT 800 nA RTCC and Deep Sleep semaphore registers are ON. Note: 2.4.10 Peripherals are ON, Core is OFF. All the readings are taken for 3.0V VDD and 8 MIPS. USB CDC Basic Demo To run the CDC demo, connect the PWSB board to a computer using a USB cable and launch a terminal program. When the switch SW1 is asserted, the device will echo the message “Button pressed.” to the terminal window. When the user types a key in the terminal window, the device will increment the received value and echo the key resulting from the incremented value. For example, if the user types “a”, the device will echo “b”. For more information on this demo refer to “CDC Basic Demo” of the “Microchip Libraries for Applications (MLA) – USB Library”. 2016 Microchip Technology Inc. page 21 PORTABLE WEATHER STATION BOARD USER’S GUIDE Chapter 3. Troubleshooting This chapter discusses common operational issues and how to resolve them. 1. The demo application does not run. The PWSB must be powered using two AA batteries. Ensure that the batteries are new and they are installed correctly. Also, ensure that the Jumper JP1 is mounted. Note: Rechargeable batteries are not recommended. 2. The Humidity sensor reading is not accurate. The humidity of the environment varies from place to place. So the sensor shows different values when measured at different locations. Ensure that no moisture is collected on the humidity sensor. 3. The Air Quality sensor reading is not correct. The Air Quality sensor needs 5V for its coil through on-board boost regulator. Ensure that the batteries are new. 4. The light sensor’s reading saturates under some bright light conditions. The voltage generated by Q2 is set by resistor, R8. The default value is 30 kΩ, so it can measure a maximum brightness of 500 lux. 5. Device does not wake-up from deep sleep. Ensure that the batteries are not dead or low on charge. 2016 Microchip Technology Inc. page 22 PORTABLE WEATHER STATION BOARD USER’S GUIDE Appendix A. PWSB Schematics FIGURE A-3: PORTABLE WEATHER STATION BOARD, SHEET 1 (PIC24FJ128GC010 MICROCONTROLLER) C7 L CD L CD L CD L CD L CD L CD L CD L CD L CD SE G23 SE G24 SE G25 SE G26 SE G27 SE G28 SE G29 SE G30 SE G41 GND 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 L CD SE G5 L CD COM1 L CD COM2 L CD SE G6 L CD SE G7 L CD SE G8 L CD COM3 L CD COM4 L CD SE G9 L CD SE G10 L CD SE G21 L CD SE G22 L CD COM5 L CD COM8 V BAT 10μF 10V C2 MQ135 E nable L T TE MP HUM E NABL E Backlight 0.1uF L CD SE G4 L CD SE G3 L CD SE G2 L CD SE G1 GND RG6/AN17 RG7/AN18 RG8/AN19 VDD MCL R L CD SE G12 C3 0.1uF L CD L CD L CD L CD L CD L CD L CD PGC PGD SE G13 SE G14 SE G15 SE G16 SE G17 SE G18 SE G19 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 RG15 VDD RE 5 RE 6 RE 7 RC1 RC2 RC3 RC4 RG6 RG7 RG8 MCL R RG9 VSS VDD RA0 RE 8 RE 9 RB5 RB4 RB3 RB2 RB1 RB0 PIC24FJ128GC010 VSS RC14 RC13 RD0 RD11 RD10 RD9 RD8 RA15 RA14 VSS OSCO/RC15 OSCI/RC12 VDD RA5 RA4 RA3 RA2 D+/RG2 D-/RG3 VUSB3V3 VBUS/RF7 RF8 RF2 RF3 RB6 RB7 RA9 R A 10 A V DD A V SS SV SS CH0+ CH0CH1+ CH1SV DD RA1 R F13 R F12 R B 12 R B 13 R B 14 R B 15 V SS V DD R D14 R D15 R F4 R F5 L CD SE G11 U1 RE4 RE3 RE2 R G13 R G12 R G14 RE1 RE0 RA7 RA6 R G0 R G1 R F1 R F0 V BAT V CA P R D7 R D6 R D5 R D4 R D13 R D12 R D3 R D2 R D1 VDD Y2 Sw1 L CD SE G42 L CD SE G43 L CD SE G44 L CD SE G45 L CD SE G46 L CD SE G47 OSCO OSCI 32.768kHz C20 12pF GND VDD C21 12pF GND GND L CD SE G20 L CD SE G48 L CD SE G49 L CD SE G50 D+/USB D-/USB C6 0.1uF VDD GND VBUS L CD SE G51 L CD SE G52 L CD SE G53 VDD C10 C4 VDD GND GND SE G34 SE G33 SE G32 SE G31 VDD C5 0.1uF 0.1uF L CD L CD L CD L CD R A 1/A N26 L CD SE G39 L CD SE G38 L CD COM6 L CD SE G37 L CD SE G36 L CD SE G35 CH1+ CH0+ R B 6/A N6 L CD COM7 L CD SE G54 L CD SE G40 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 GND 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 0.1uF GND 03-00081_Rev_0.3.SchDoc 2016 Microchip Technology Inc. page 23 PORTABLE WEATHER STATION BOARD, SHEET 2 (OTHER ON-BOARD CIRCUITS) R13 VDD Backlight CAP TOUCH BUTTONS (THREE) 100 3 VSS 4 PGD 5 PGC C16 0.1uF PGD C1 0. PGC 6 N.C. OSCI 2 OSCO 8MHz 1 Y1 C8 18pF C9 18pF GND L CD SE G54 MQ135 COIL SUPPLY BOOSTER VDD U2 L1 1 GL FR1608T 4R7M-L R 445-3607-1-ND SW 2 3 GND EN VFB 6 COM1 COM2 COM3 COM4 COM5 COM6 COM7 COM8 SE G11 SE G12 SE G13 SE G14 SE G15 SE G16 SE G17 SE G18 SE G19 SE G20 SE G31 SE G32 SE G33 SE G34 SE G35 SE G36 SE G37 SE G38 SE G39 SE G40 SE G54 SE G55 SE G56 SE G57 SE G58 SE G59 C GND 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 SE G1 SE G2 SE G3 SE G4 SE G5 SE G6 SE G7 SE G8 SE G9 SE G10 SE G21 SE G22 SE G23 SE G24 SE G25 SE G26 SE G27 SE G28 SE G29 SE G30 SE G41 SE G42 SE G43 SE G44 SE G45 SE G46 SE G47 SE G48 SE G49 SE G50 SE G51 SE G52 SE G53 5 Touch pads SE G1 SE G2 SE G3 SE G4 SE G5 SE G6 SE G7 SE G8 SE G9 SE G10 SE G21 SE G22 SE G23 SE G24 SE G25 SE G26 SE G27 SE G28 SE G29 SE G30 SE G41 SE G42 SE G43 SE G44 SE G45 SE G46 SE G47 SE G48 SE G49 SE G50 SE G51 SE G52 SE G53 1k 1k Left R3 RG8/AN19 1k +5V MQ135 E nable U5 1 A B H 3 A 6 B CH1+ 5 H 4 MQ135 AIR Quality Sensor C18 C19 0E C12 10μF 10V R5 Select R2 RG7/AN18 VBUS R4 3.09M Right R1 RG6/AN17 2 R16 4 L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD L CD1 L CD 67PIN +5V MCP16251T -I/CH R6 4.7k MQ135 E nable C11 4.7μF 10V VIN GND VOUT 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 L CD COM1 L CD COM2 L CD COM3 L CD COM4 L CD COM5 L CD COM6 L CD COM7 L CD COM8 L CD SE G11 L CD SE G12 L CD SE G13 L CD SE G14 L CD SE G15 L CD SE G16 L CD SE G17 L CD SE G18 L CD SE G19 L CD SE G20 L CD SE G31 L CD SE G32 L CD SE G33 L CD SE G34 L CD SE G35 L CD SE G36 L CD SE G37 L CD SE G38 L CD SE G39 L CD SE G40 MCL R 2 VDD R18 4.7k R17 1 A J2 MCL R C A 330R J1 D-/USB D+/USB 1 2 3 4 5 1M R14 1k 0.1uF R15 20k VBUS DD+ GND 0.1uF GND GND MQ135 AIR QUALITY SENSOR SHL D GND CON_USB_MINI_B_HIROSE GND GND 3 2 0.1uF R12 1 100 2 3 GND GND R7 100k U4 Sw1 C17 0.1uF L T TE MP HUM E NABLE VBAT Q2 L IGHT SE NSOR AMBIENT SMD NC NC 5 CH0+ U3 RA1/AN26 1 GND Vout JP1 BT1(VBAT) 1 1 VDD Vdd 4 R8 30k C14 0.1uF MCP9700T -E /LT MCP9700T -E /LTTR-ND C13 0.1uF 2 2 4 HR31 HUMIDITY SENSOR L T TE MP HUM E NABLE 1 C15 R11 4.7k SW1 ALS-PT-19 T LIGHT SENSOR L T TE MP HUM E NABL E 2 2016 Microchip Technology Inc. MCP9700 TEMPERATURE SENSOR VDD BT 2 BC2AAPC HR31 RB6/AN6 GND GND GND GND BATTER POWER SUPPLY Portable Weather Station Board User’s Guide page 24 FIGURE A-4: 2016 Microchip Technology Inc. TABLE A-3: Quantity BILL OF MATERIALS Designator Description Manufacturer 1 Manufacturer Part Number 1 Supplier 1 Supplier Part Number 1 4 R1, R2, R3, R14 RES SMD 1K OHM 1% 1/10W 0603 Yageo RC0603FR-071KL Digi-Key 311-1.00KHRCT-ND 2 R12, R17 RES SMD 100 OHM 5% 1/10W 0603 Yageo RC0603JR-07100RL Digi-Key 311-100GRCT-ND 1 R13 RES SMD 330 OHM 5% 1/10W 0603 Yageo RC0603JR-07390RL Digi-Key 311-390GRCT-ND 1 R15 RES SMD 20K OHM 5% 1/10W 0603 Yageo RC0603JR-0720KL Digi-Key 311-20KGRCT-ND 1 R16 RES SMD 0E OHM 1% 1/10W 0603 Yageo RC0603FR-071KL Digi-Key 311-1.00KHRCT-ND 1 R5 RES SMD 1M OHM 1% 1/10W 0603 Yageo RC0603FR-071ML Digi-Key 311-1.00MHRCT-ND 3 R6, R11, R18 RES SMD 4.7K OHM 5% 1/10W 0603 Yageo RC0603JR-074K7L Digi-Key 311-4.7KGRCT-ND 1 R7 RES SMD 100K OHM 5% 1/10W 0603 Yageo RC0603JR-07100KL Digi-Key 311-100KGRCT-ND 1 R8 RES SMD 30K OHM 5% 1/10W 0603 Yageo RC0603JR-0730KL Digi-Key 311-30KGRCT-ND 14 C1, C2, C3, C4, C5, C6, C10, C13, C14, C15, C16, C17, C18, C19 CAP CER 0.1UF 25V 10% X7R 0603 Vishay Vitramon VJ0603Y104KXXCW1BC Digi-Key 720-1379-1-ND 1 R4 RES SMD 3.09M OHM 1% 1/10W 0603 Vishay Dale CRCW06033M09FKEA Digi-Key 541-3.09MHTR-ND 1 Y1 CRYSTAL 8MHZ 18PF TXC CORPORATION 9C-8.000MAAJ-T Digi-Key 887-1048-1-ND 1 SW1 SWITCH TACTILE SPST-NO 0.05A 12V TE Connectivity Alcoswitch Switches FSM4JSMATR Digi-Key 450-1759-1-ND page 25 1 L1 FIXED IND 4.7UH 500MA 240 MOHM TDK Corporation GLFR1608T4R7M-LR Digi-Key 445-3607-1-ND 2 C8, C9 CAP CER 18PF 50V 5% C0G 0603 TDK Corporation C1608C0G1H180J080AA Digi-Key 445-1272-6-ND 2 C7, C12 CAP CER 10UF 10V 10% X5R 0805 Samsung Electro-Mechanics CL21A106KPCLQNC America, Inc. Digi-Key 1276-2402-1-ND 1 BT2 HOLDER BATT 2-AA CELLS PC MNT MPD (Memory Protection Devices) BC2AAPC Digi-Key BC2AAPC-ND 1 U2 IC REG BST ADJ 0.65A SYNC SOT23 Microchip Technology MCP16251T-I/CH Digi-Key MCP16251T-I/CHCTND 1 U4 SENSOR TEMP RATIOMETRIC SC70-5 Microchip Technology MCP9700T-E/LT Digi-Key MCP9700T-E/LTTRND 1 C11 CAP CER 4.7UF 10V 10% X5R 0805 Kemet C0805C475K8PACTU Digi-Key 399-3133-6-ND 1 Q2 LIGHT SENSOR AMBIENT SMD Everlight Electronics Co Ltd ALS-PT19-315C/L177/ TR8 Digi-Key 1080-1244-1-ND Quantity BILL OF MATERIALS Designator Description Manufacturer Part Number 1 Manufacturer 1 Supplier Part Number 1 Supplier 1 2 C20, C21 CAP CER 12PF 50V NP0 0603 AVX Corporation 06035A120JAT2A Digi-Key 478-1164-1-ND 1 Y2 CRYSTAL 32.7680KHZ 12.5PF SMD Abracon LLC AB26TRQ-32.768KHZ-T Digi-Key 535-12051-1-ND 1 BT1 (VBAT) HOLDER BATTERY COIN 20MM DIA SMD MPD (Memory Protection Devices) BK-912 Digi-Key BK-912-ND 1 J1 Connector Receptacle USB - mini B Hirose Electric Co Ltd UX60-MB-5ST Digi-Key H2959CT-ND 1 JP1 Jumper Sullins Connector Solutions STC02SYAN Digi-Key S9000-ND 1 LCD1 59X8 Dot Matrix LCD — — — — 1 U1 MCU 16-Bit PIC24FJ128GC010-TQFP100 Pin Microchip Technology PIC24FJ128GC0101-I/PT Microchip Technology PIC24FJ128GC0101 -I/PT 1 U3 Humidity Sensor — HR31 — — 1 U5 Air Quality Sensor — MQ135 — — 2016 Microchip Technology Inc. Portable Weather Station Board User’s Guide page 26 TABLE A-3: PORTABLE WEATHER STATION BOARD USER’S GUIDE Appendix B. LCD Panel Information This section provides specific pinout of the LCD display panel. This information is especially useful for those who want to design custom applications using the PWSB. The layout of the LCD Panel is shown in Figure B-5. Table B-4 shows the mapping of the panel’s pins to display segments and commons. FIGURE B-5: LCD PANEL LAYOUT 2016 Microchip Technology Inc. page 27 Portable Weather Station Board User’s Guide TABLE B-4: LCD Pin LCD PINS LCD Function GC010 Pin LCD Pin LCD Function GC010 Pin 1 COM1 COM0 35 SEG53 SEG12 2 COM2 COM1 36 SEG52 SEG40 3 COM3 COM2 37 SEG51 SEG41 4 COM4 COM3 38 SEG50 SEG55 5 COM5 COM4 39 SEG49 SEG56 6 COM6 COM5 40 SEG48 SEG29 7 COM7 COM6 41 SEG47 SEG42 8 COM8 COM7 42 SEG46 SEG43 9 SEG11 SEG50 43 SEG45 SEG13 10 SEG12 SEG1 44 SEG44 SEG14 11 SEG13 SEG48 45 SEG43 SEG15 12 SEG14 SEG34 46 SEG42 SEG16 13 SEG15 SEG35 47 SEG41 SEG20 14 SEG16 SEG2 48 SEG30 SEG21 15 SEG17 SEG3 49 SEG29 SEG22 16 SEG18 SEG4 50 SEG28 SEG44 17 SEG19 SEG5 51 SEG27 SEG45 18 SEG20 SEG28 52 SEG26 SEG23 19 SEG31 SEG11 53 SEG25 SEG24 20 SEG32 SEG10 54 SEG24 SEG25 21 SEG33 SEG39 55 SEG23 SEG26 22 SEG34 SEG38 56 SEG22 SEG46 23 SEG35 SEG9 57 SEG21 SEG49 24 SEG36 SEG8 58 SEG10 SEG57 25 SEG37 SEG19 59 SEG9 SEG58 26 SEG38 SEG54 60 SEG8 SEG59 27 SEG39 SEG53 61 SEG7 SEG60 28 SEG40 SEG37 62 SEG6 SEG61 29 SEG54 SEG36 63 SEG5 SEG62 30 SEG55 SEG36 64 SEG4 SEG32 31 SEG56 SEG36 65 SEG3 SEG51 32 SEG57 SEG36 66 SEG2 SEG33 33 SEG58 SEG36 67 SEG1 SEG52 34 SEG59 SEG36 — — — page 28 2016 Microchip Technology Inc. Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.com Asia Pacific Office Suites 3707-14, 37th Floor Tower 6, The Gateway Harbour City, Kowloon China - Xiamen Tel: 86-592-2388138 Fax: 86-592-2388130 Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 China - Zhuhai Tel: 86-756-3210040 Fax: 86-756-3210049 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 India - Bangalore Tel: 91-80-3090-4444 Fax: 91-80-3090-4123 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 Germany - Dusseldorf Tel: 49-2129-3766400 Atlanta Duluth, GA Tel: 678-957-9614 Fax: 678-957-1455 Hong Kong Tel: 852-2943-5100 Fax: 852-2401-3431 Australia - Sydney Tel: 61-2-9868-6733 Fax: 61-2-9868-6755 China - Beijing Tel: 86-10-8569-7000 Fax: 86-10-8528-2104 Austin, TX Tel: 512-257-3370 China - Chengdu Tel: 86-28-8665-5511 Fax: 86-28-8665-7889 Boston Westborough, MA Tel: 774-760-0087 Fax: 774-760-0088 China - Chongqing Tel: 86-23-8980-9588 Fax: 86-23-8980-9500 Chicago Itasca, IL Tel: 630-285-0071 Fax: 630-285-0075 Cleveland Independence, OH Tel: 216-447-0464 Fax: 216-447-0643 Dallas Addison, TX Tel: 972-818-7423 Fax: 972-818-2924 Detroit Novi, MI Tel: 248-848-4000 Houston, TX Tel: 281-894-5983 Indianapolis Noblesville, IN Tel: 317-773-8323 Fax: 317-773-5453 Los Angeles Mission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608 New York, NY Tel: 631-435-6000 San Jose, CA Tel: 408-735-9110 Canada - Toronto Tel: 905-673-0699 Fax: 905-673-6509 China - Dongguan Tel: 86-769-8702-9880 China - Hangzhou Tel: 86-571-8792-8115 Fax: 86-571-8792-8116 India - Pune Tel: 91-20-3019-1500 Japan - Osaka Tel: 81-6-6152-7160 Fax: 81-6-6152-9310 Japan - Tokyo Tel: 81-3-6880- 3770 Fax: 81-3-6880-3771 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 China - Hong Kong SAR Tel: 852-2943-5100 Fax: 852-2401-3431 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 China - Shanghai Tel: 86-21-5407-5533 Fax: 86-21-5407-5066 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 China - Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 China - Shenzhen Tel: 86-755-8864-2200 Fax: 86-755-8203-1760 Taiwan - Hsin Chu Tel: 886-3-5778-366 Fax: 886-3-5770-955 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 Taiwan - Kaohsiung Tel: 886-7-213-7828 China - Xian Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 Germany - Karlsruhe Tel: 49-721-625370 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Italy - Venice Tel: 39-049-7625286 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Poland - Warsaw Tel: 48-22-3325737 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 Sweden - Stockholm Tel: 46-8-5090-4654 UK - Wokingham Tel: 44-118-921-5800 Fax: 44-118-921-5820 Taiwan - Taipei Tel: 886-2-2508-8600 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 07/14/15 page 29 2016 Microchip Technology Inc.