MPLABXpress_Intro Xpress Ecosystem User Guide
User Manual: Pdf
Open the PDF directly: View PDF .
Page Count: 55
Download | |
Open PDF In Browser | View PDF |
Getting Started Using 8-bit MCUs in the MPLAB® Xpress Ecosystem 2018 Microchip Technology Inc. DS50002710A 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, AVR, AVR logo, AVR Freaks, BeaconThings, BitCloud, chipKIT, chipKIT logo, CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KEELOQ, KEELOQ logo, Kleer, LANCheck, LINK MD, maXStylus, maXTouch, MediaLB, megaAVR, MOST, MOST logo, MPLAB, OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip Designer, QTouch, RightTouch, SAM-BA, SpyNIC, SST, SST Logo, SuperFlash, tinyAVR, UNI/O, and XMEGA 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. Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BodyCom, CodeGuard, CryptoAuthentication, CryptoCompanion, CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP, InterChip Connectivity, JitterBlocker, KleerNet, KleerNet logo, Mindi, MiWi, motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PureSilicon, QMatrix, RightTouch logo, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O, SMART-I.S., 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. QUALITY MANAGEMENT SYSTEM CERTIFIED BY DNV Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries. GestIC is a registered trademark 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. © 2018, Microchip Technology Incorporated, All Rights Reserved. ISBN: 978-1-5224-2607-3 == ISO/TS 16949 == DS50002710A-page 2 2018 Microchip Technology Inc. INTRODUCTION TO THE MPLAB® Xpress ECOSYSTEM Table of Contents Chapter 1. Overview of the MPLAB® Xpress Ecosystem 1.1 Introduction ..................................................................................................... 5 1.2 MPLAB Xpress IDE ........................................................................................ 5 1.3 MPLAB Code Configurator ............................................................................. 5 1.4 MPLAB Xpress Evaluation Boards ................................................................. 5 1.5 Other Compatible Hardware ........................................................................... 6 Chapter 2. Equipment Used 2.1 Introduction ..................................................................................................... 7 2.2 Hardware ........................................................................................................ 7 2.3 Software ......................................................................................................... 7 2.4 Additional Resources ..................................................................................... 7 Chapter 3. Programming the Evaluation Board 3.1 Introduction ..................................................................................................... 9 3.2 Opening an Example Project in the MPLAB Xpress IDE ............................... 9 3.3 Download an Example Project to the Evaluation Board ............................... 12 3.4 Setup Serial Communication with the Evaluation Board .............................. 13 3.5 Programming Result ..................................................................................... 14 Chapter 4. Launching MPLAB® Xpress MCC Plugin 4.1 Introduction ................................................................................................... 15 4.2 Opening the MCC Plugin for the First Time ................................................. 15 4.3 MCC in MPLAB Xpress ................................................................................ 19 Chapter 5. Using the MPLAB® Code Configurator (MCC) 5.1 Introduction ................................................................................................... 21 5.2 Project Resources ........................................................................................ 22 5.3 Device Resources ........................................................................................ 23 5.4 Composer Area ............................................................................................ 27 5.5 Pin Manager ................................................................................................. 29 Chapter 6. Building a Serial Communications Link 6.1 Introduction ................................................................................................... 33 6.2 How to Create a New Project in MPLAB XPress IDE .................................. 34 6.3 How to Set Up MCC to Generate Project Code ........................................... 36 6.4 How to Use the MCC-Generated Serial Function ........................................ 39 2018 Microchip Technology Inc. DS50002710A-page 3 INTRODUCTION TO THE MPLAB® Xpress Ecosystem 6.5 How to Display the Serial Message on a Host Computer ............................ 41 Appendix A. MPLAB® Xpress Evaluation Boards A.1 Introduction .................................................................................................. 43 A.2 Powering the Boards .................................................................................... 43 A.3 General Purpose MPLAB Xpress Evaluation Board .................................... 44 A.4 Device-Specific MPLAB Xpress Evaluation Boards ..................................... 45 Appendix B. MPLAB® Xpress Evaluation Board Schematics B-1 General Purpose Evaluation Board Schematic (Application Section) ........ 47 B-2 General Purpose Evaluation Board Schematic (Programmer Section) ....... 48 B-3 20-Pin Device-Specific Evaluation Board Schematic .................................. 49 B-4 28-Pin Device-Specific Evaluation Board Schematic .................................. 50 B-5 40-Pin Device-Specific Evaluation Board Schematic .................................. 51 Index .............................................................................................................................53 Worldwide Sales and Service .....................................................................................55 DS50002710A-page 4 2018 Microchip Technology Inc. GETTING STARTED USING 8-BIT MCUs IN THE MPLAB® Xpress ECOSYSTEM Chapter 1. Overview of the MPLAB® Xpress Ecosystem 1.1 INTRODUCTION MPLAB® Xpress is an ecosystems is comprised of: • • • • 1.2 MPLAB Xpress IDE MPLAB Code Configurator MPLAB Xpress Evaluation Boards Other Compatible Hardware MPLAB XPRESS IDE MPLAB Xpress cloud-based IDE is an online development environment that contains the most popular features of our award-winning MPLAB X IDE. This simplified and distilled application is a faithful reproduction of our desktop-based program, which allows users to easily transition between the two environments. MPLAB Xpress is a perfect starting point for new users of PIC® microcontrollers (MCUs) – no downloads, no machine configuration, and no waiting to get started on your system development. MPLAB Xpress incorporates the latest version of MPLAB Code Configurator, which enables users to automatically generate initialization and application C code for 8-bit and 16-bit PIC MCUs and dsPIC® DSCs using a graphical interface and pin map. With massive amounts of storage available to users, you can store your current projects in the cloud. The Community feature allows you to share your ideas with others, or gain inspiration from the shared code repository. Best of all, MPLAB Xpress IDE is free, and can be accessed from any Internet-connected PC or Mac, anywhere in the world. 1.3 MPLAB CODE CONFIGURATOR MPLAB Code Configurator (MCC) is a free, graphical programming environment that generates seamless, easy-to-understand C code to be inserted into your project. Using an intuitive interface, it enables and configures a rich set of peripherals and functions specific to your application. MPLAB Code Configurator supports 8-bit, 16-bit and 32-bit PIC microcontrollers. MCC is incorporated into both the downloadable MPLAB X IDE, and the cloud based MPLAB Xpress IDE. 1.4 MPLAB XPRESS EVALUATION BOARDS MPLAB Xpress evaluation boards are the easiest way to get started. They feature an easy-to-use USB programmer, and offer full access to the features of the target MCU. 2018 Microchip Technology Inc. DS50002710A-page 5 Using 8-bit MCUs with MPLAB® Xpress 1.5 OTHER COMPATIBLE HARDWARE Additional hardware that may be used with MPLAB Xpress IDE are listed below. Curiosity Development Boards Curiosity Development Boards are cost-effective, fully integrated MCU development platforms targeted at first-time users, makers, and those seeking a feature-rich rapid prototyping board. The family offers a full on-board programmer/debugger, and several add-on board options. Explorer 16/32 Development Board The Explorer 16/32 Development Kit is a flexible, convenient and ready to start development, demonstration and testing platform for 16-bit PIC24 MCUs, dsPIC DSCs and 32-bit PIC32 MCUs. It features all the necessary hardware to begin developing and debugging a complete embedded application. PICkit™ 3 Programmer/Debugger PICkit 3 is a standalone programmer/debugger for use with any PIC MCU or dsPIC DSC DSC. PICkit 3 is the perfect option for those with their own custom prototype hardware. DS50002710A-page 6 2018 Microchip Technology Inc. GETTING STARTED USING 8-BIT MCUs IN THE MPLAB® Xpress ECOSYSTEM Chapter 2. Equipment Used 2.1 INTRODUCTION This content of this document was developed using the tools listed in the following sections: • Hardware • Software • Additional Resources 2.2 HARDWARE • MPLAB Xpress Evaluation Boards: http://www.microchip.com/xpress • USB cable type A to type micro-B 2.3 SOFTWARE • MPLAB Xpress IDE: http://www.microchip.com/xpress • Free Terminal Emulation Software: - Tera Term (Windows only): http://www.teraterm.org - CoolTerm (Windows, Linux, MAC OS): http://freeware.the-meiers.org/ 2.4 ADDITIONAL RESOURCES • MPLAB XC8 C Compiler Homepage: http://www.microchip.com/xc8 • MPLAB Code Configurator Homepage: http://www.microchip.com/mcc • MPLAB Xpress Wiki Homepage: http://microchip.wikidot.com/xpress:start 2018 Microchip Technology Inc. DS50002710A-page 7 Using 8-bit MCUs with MPLAB® Xpress NOTES: DS50002710A-page 8 2018 Microchip Technology Inc. GETTING STARTED USING 8-BIT MCUs IN THE MPLAB® Xpress ECOSYSTEM Chapter 3. Programming the Evaluation Board 3.1 INTRODUCTION The purpose of this lab is to introduce basic concepts of the MPLAB Xpress IDE with one of the available example projects. • • • • 3.2 Opening an Example Project in MPLAB Xpress IDE Download an Example Project to the Evaluation Board Setup Serial Communication with the Evaluation Board Programming Result OPENING AN EXAMPLE PROJECT IN MPLAB XPRESS IDE 1. Navigate to the MPLAB Xpress IDE homepage and click on the Examples link at the bottom of the page under the “Community” heading: https://www.microchip.com/xpress OR You can navigate directly to the examples page via: https://www.microchip.com/xpress/examples OR Navigate to the examples page from within the MPLAB Xpress IDE by clicking on the Examples link at the top of the IDE window. 2018 Microchip Technology Inc. DS50002710A-page 9 Using 8-bit MCUs with MPLAB® Xpress 2. On the MPLAB Xpress Examples homepage, filter through the examples as follows: a) Author: Microchip Technology b) Tags: #GettingStarted c) Board: Xpress Board d) Device:In this example the PIC16F18877 is used. The name of the device populating a given MPLAB Xpress Evaluation Board can be found next to the board's USB connector. Scroll through the available examples and locate “Using MPLAB Xpress Examples”. A description of the example, along with any additional resources which could include videos links to step-by-step tutorials and more, can be accessed by clicking on the title of the example. Open the example inside the online MPLAB Xpress IDE by clicking on the button in the Open column. DS50002710A-page 10 2018 Microchip Technology Inc. Programming the Evaluation Board All source code is available along with information related to the development tools and device that the project was configured to use. 2018 Microchip Technology Inc. DS50002710A-page 11 Using 8-bit MCUs with MPLAB® Xpress 3.3 DOWNLOAD AN EXAMPLE PROJECT TO THE EVALUATION BOARD 1. Connect the MPLAB Xpress Evaluation board to an available USB Port on the computer. 2. Once connected and the device drivers have completed installation, the MPLAB Xpress Board should be recognized as a Mass Storage Device on the Host Computer and listed as an available drive (Windows® Explorer shown here). 3. Click on the Make and Program Device button at the top of the MPLAB Xpress IDE to generate and download a .hex file that will be used to program the PIC16F18877 microcontroller populating this particular MPLAB Xpress Evaluation Board. In some browsers the generated .hex file may be available within the browser window or may need to be accessed from a “Downloads” folder associated with the browser. Navigate to the downloaded .hex file and drag it into the XPRESS directory shown in Step 2. Once the Using_MPLAB_Xpress_Examples.hex file has been dragged and dropped into the XPRESS directory, the LED on the MPLAB Xpress Board will briefly flash red indicating that the PIC16F18877 is programmed. DS50002710A-page 12 2018 Microchip Technology Inc. Programming the Evaluation Board 3.4 SETUP SERIAL COMMUNICATION WITH THE EVALUATION BOARD 1. Open a terminal emulator program on the host computer and select the COM port associated with the MPLAB Xpress board. In this example a free program called CoolTerm is used. If using CoolTerm, open the Connection>Options dialog and configure the serial port at the 9600 baud rate. Note: The COM port number will vary from that shown below. Click OK to continue. 2. Inside the terminal window, click on the with the MPLAB Xpress board. 2018 Microchip Technology Inc. button to establish connection DS50002710A-page 13 Using 8-bit MCUs with MPLAB® Xpress 3.5 PROGRAMMING RESULT Once communication is established, the terminal window should display the message “Hello from your Xpress board!” DS50002710A-page 14 2018 Microchip Technology Inc. GETTING STARTED USING 8-BIT MCUs IN THE MPLAB® Xpress ECOSYSTEM Chapter 4. Launching MPLAB® Xpress MCC Plugin 4.1 INTRODUCTION This chapter demonstrates how to launch the MPLAB Code Configurator (MCC) plugin from within MPLAB Xpress IDE. MCC is a free graphical programming environment that generates seamless, easy-to-understand C code that is inserted into your project. Using an intuitive interface, MCC enables and configures a rich set of peripherals and functions. The example project from the previous chapter will be used. • Opening the MCC Plugin for the First Time • MCC in MPLAB Xpress 4.2 OPENING THE MCC PLUGIN FOR THE FIRST TIME 1. Launch the Manage MPLAB Xpress Code Configurator dialog by clicking on the button at the top of the IDE or through Tools>Embedded>MPLAB Xpress Code Configurator. 2018 Microchip Technology Inc. DS50002710A-page 15 Using 8-bit MCUs with MPLAB® Xpress The Manage MPLAB Xpress Code Configurator dialog should now be open. 2. STEP 1 ensures that the latest Java Runtime Environment (JRE) is installed on your computer. If unsure of the current version of the JRE on your computer, click on the 'Which version do I have installed?' link and follow the steps. DS50002710A-page 16 2018 Microchip Technology Inc. Launching MPLAB® Xpress MCC Plugin Clicking on the green Download & Install JRE button will redirect you to the Java Runtime Environment homepage. To install JRE, simply follow the instructions. 3. STEP 2 is used to download the necessary .jnlp file to launch MCC. MCC is a Java application that runs directly from the internet using a web browser (Chrome is used here). This requires the use of the Java Web Start application software which follows the Java Network Launching Protocol (JNLP) to download and launch the application. a) Click the green Download MCC button to download the JNLP file. Then click on the MCC_Xpress.jnlp file to launch the Code Configurator. b) Click Run when prompted to run the application. 2018 Microchip Technology Inc. DS50002710A-page 17 Using 8-bit MCUs with MPLAB® Xpress c) The Enter Token from MPLAB Xpress window will now open. 4. STEP 3 provides a unique token value that will be used in the Enter Token from MPLAB Xpress window. To locate the token, return to the Manage MPLAB Xpress Code Configurator window. Then click on the Copy button next to the unique token value. 5. Return to the Enter Token from MPLAB Xpress window. Past the copied token value into the “Please enter your Token” field. DS50002710A-page 18 2018 Microchip Technology Inc. Launching MPLAB® Xpress MCC Plugin 6. Click OK to initialize the device-specific libraries for the microcontroller selected and open the MCC. If the token is not valid, refresh the token value in STEP 3 by clicking on the Refresh Token Value button in the Manage MPLAB Xpress Code Configurator window, recopy the new Unique Token Value, and paste into the “Please enter you Token” field of the Enter Token from MPLAB Xpress window. 4.3 MCC IN MPLAB XPRESS The MCC is a graphical programming environment used to configure device features including oscillator setup, peripheral configuration and assign signals within the microcontroller to pins on the device package. You are encouraged to take some time and explore the configurator to see how the MCU was configured to implement the “Using MPLAB Xpress Examples” example project. 2018 Microchip Technology Inc. DS50002710A-page 19 Using 8-bit MCUs with MPLAB® Xpress Source and header files generated for the original project can be viewed in the Project pane of the MPLAB Xpress IDE under the Header Files and Source Files folders. DS50002710A-page 20 2018 Microchip Technology Inc. GETTING STARTED USING 8-BIT MCUs IN THE MPLAB® Xpress ECOSYSTEM Chapter 5. Using the MPLAB® Code Configurator (MCC) 5.1 INTRODUCTION The MPLAB Code Configurator (MCC) is a Graphical User Interface (GUI) that gives the developer a high level view of a given microcontroller making it much easier to configure: • • • • Core device capabilities Peripherals and configuration MCU signal pin assignment Related libraries These features can all be configured through the use of intuitive drop-down menus, check boxes, and fields. In this way the developer can quickly configure the target device, minimizing the amount of time spent reviewing registers in a data sheet. Key MCC tool areas are shown in the screen capture below. Key tool areas are discussed further in these topics: • • • • Project Resources Device Resources Composer Area Pin Manager 2018 Microchip Technology Inc. DS50002710A-page 21 Using 8-bit MCUs with MPLAB® Xpress 5.2 PROJECT RESOURCES Displays device features currently being used in this project. 5.2.1 System Module Configure core parameters such as the system clock, configuration bits and other device-level functions. 5.2.2 Interrupt Module Enable or configure interrupt priority for interrupt sources available in the project. 5.2.3 Pin Module Configuration of individual pins selected from the Pin Manager such as pin direction (input or output), analog functionality and weak pull-up resistors, if available. In some instances a custom name can be given for a pin that will be referenced throughout generated code. DS50002710A-page 22 2018 Microchip Technology Inc. Using the MPLAB® Code Configurator (MCC) 5.3 DEVICE RESOURCES This area displays features that are available for use for the selected target device. Features are added by double clicking on the listing in the Device Resources section. 5.3.1 Product Page Links to the selected device's product homepage where the data sheet and other documentation, such as relevant application notes, can be found. 2018 Microchip Technology Inc. DS50002710A-page 23 Using 8-bit MCUs with MPLAB® Xpress 5.3.2 Peripherals Displays all peripherals that are available on the selected target device. Different devices will have different peripherals. Peripherals are added to the project by double clicking on the listing. DS50002710A-page 24 2018 Microchip Technology Inc. Using the MPLAB® Code Configurator (MCC) 5.3.3 Libraries Lists available libraries that have been created to simplify certain functionality such as using serial communication protocols. These libraries are presented to the user as any other module in the MCC using an easy-to-use graphical interface to configure various library parameters. Libraries are added to the project by double clicking on the listing. 2018 Microchip Technology Inc. DS50002710A-page 25 Using 8-bit MCUs with MPLAB® Xpress 5.3.4 MIKRO-E Clicks MikroElektronika Click Boards are expansion daughter cards featuring various types of sensors, communication modules and other interface components that can be used with the target device to quickly add additional functionality to an application. Click boards are added to the project by double clicking on the listing in the Device Resources, which adds required peripherals as needed that interface with the selected module. DS50002710A-page 26 2018 Microchip Technology Inc. Using the MPLAB® Code Configurator (MCC) 5.4 COMPOSER AREA Main interface area in which a peripheral, library or driver is configured. 5.4.1 Easy Setup Tab This tab presents the peripheral, library or driver at a high level so that it can be configured using intuitive check boxes, value fields and drop-down selections (EUSART peripheral Easy Setup shown). 5.4.2 Registers Tab Presents the registers associated with device peripherals and features. Registers can be configured using either drop-down menus or by entering a hexadecimal value next to the register name representing individual bit settings (EUSART peripheral Registers shown). 2018 Microchip Technology Inc. DS50002710A-page 27 Using 8-bit MCUs with MPLAB® Xpress 5.4.3 Notifications Tab This tab displays important information concerning various modules that have been configured including warnings, hints and general information (EUSART Notifications shown where the System Clock was set to a lower frequency that is insufficient to obtain the desired Baud rate). DS50002710A-page 28 2018 Microchip Technology Inc. Using the MPLAB® Code Configurator (MCC) 5.5 PIN MANAGER Many signals internal to the device can be routed to a user-selectable variety of pins. Signals can even be routed to multiple pins at the same time and pins can be shared by multiple modules. The Pin Manager simplifies this process using Table and Package views. 5.5.1 Pin Manager Table View Lists the pin by package pin number across the top of the table, by Port just below the pin number and by Module, signal Function and Direction along the left side of the table. • Blue colored pins indicate pins that can be used by a module signal. • Green colored pins (with a lock) a module signal. indicate that the pins have been allocated to • Green colored pins (with a chain link) between multiple modules. indicate that the pins are shared • Yellow/Orange colored pins indicate possible alternate pins for an already allocated pin function. • The Package drop down menu can be used to change the Package View to any available package for the target device. 2018 Microchip Technology Inc. DS50002710A-page 29 Using 8-bit MCUs with MPLAB® Xpress 5.5.2 Pin Manager Package View Displays pins on the selected device package. Color codes follow above adding Gray colored pins indicating that the pin is not usable in the selected configuration. Microcontroller signals can also by assigned to pins in this view by right clicking on the pin and selecting the available signal. DS50002710A-page 30 2018 Microchip Technology Inc. Using the MPLAB® Code Configurator (MCC) 5.5.3 Versions This section of the MCC provides information about the versions of the component groups that make up MCC. These component groups are called libraries. Intermediate users can configure the MCC to use a specific version of a library for a given MCC project. More information is available in the MCC User's Guide available in the MCC homepage in the documents section at the bottom of the page: http://www.microchip.com/mcc 2018 Microchip Technology Inc. DS50002710A-page 31 Using 8-bit MCUs with MPLAB® Xpress NOTES: DS50002710A-page 32 2018 Microchip Technology Inc. GETTING STARTED USING 8-BIT MCUs IN THE MPLAB® Xpress ECOSYSTEM Chapter 6. Building a Serial Communications Link 6.1 INTRODUCTION The purpose of this chapter is to demonstrate how to build the serial communications link that has been used throughout this document between an MPLAB Xpress Evaluation Board and a host computer. This communication is enabled by a second MCU with USB capabilities that populates the board along with the target MCU. This second MCU with USB performs the following USB tasks: • USB Mass Storage Device (MSD) Class: Receives .hex files from the host PC and then programs the target device using Microchip's In-Circuit Serial Programming™ (ICSP™) technology. Note: Hardware debugging is not available. • USB Communications Device Class (USB CDC): Translates EUSART data transmissions from the target MCU and transmits over the USB connection to the host PC Using the latter CDC configuration enables the target MCU to send and receive information through the second MCU with USB capabilities to an available USB port on a host computer. Terminal emulation software (see links in Chapter 2. “Equipment Used”) running on the host computer connected to the associated COM Port can then be used to display information from the target MCU or allow the user to send commands back to the microcontroller. 2018 Microchip Technology Inc. DS50002710A-page 33 Using 8-bit MCUs with MPLAB® Xpress 6.2 HOW TO CREATE A NEW PROJECT IN MPLAB XPRESS IDE At this point only existing projects have been covered. In this section, you will create a new original project in MPLAB Xpress IDE. 1. Navigate to MPLAB Xpress IDE. https://mplabxpress.microchip.com/mplabcloud/ide 2. Create a new project by clicking the New Project icon File>New Project. or by selecting 3. In the New Project window, select “Microchip Embedded” in the “Categories” frame and “Standalone Project” in the “Projects” frame. Click Next. DS50002710A-page 34 2018 Microchip Technology Inc. Building a Serial Communications Link 4. Select or type in the MCU being used (PIC16F18877 shown) in the “Device” drop-down in the Select Device window. Click Next. 5. Name the project something relevant, like HelloSerially, in the “Project Name” field of the Select Project Name window. Click Finish. 2018 Microchip Technology Inc. DS50002710A-page 35 Using 8-bit MCUs with MPLAB® Xpress The MPLAB Xpress IDE workspace should look similar to below. 6.3 HOW TO SET UP MCC TO GENERATE PROJECT CODE Once your MPLAB Xpress project is created, you will set up MPLAB Code Configurator (MCC) options for generating code. 1. Open the MCC plugin by clicking on the button at the top of the IDE or through Tools>Embedded>MPLAB Xpress Code Configurator. For details on the MCC GUI, see Chapter 5. “Using the MPLAB Code Configurator (MCC)”. 2. In the open MCC window, the default parameters for the “Project Resources>System” can be used. 3. In the “Device Resources” area, scroll down to locate the EUSART peripheral and expand. Double click on the EUSART to add the peripheral to “Project Resources”. DS50002710A-page 36 2018 Microchip Technology Inc. Building a Serial Communications Link 4. Select the EUSART peripheral under the “Peripheral” heading in the “Project Resources” pane to open the peripheral configuration and configure as follows: a) Enable Transmit b) Baud Rate: 9600 (default) 5. In the “Pin Manager” section, connect the EUSART TX signal to pin RB6 and the RX signal to pin RB7 by clicking on the blue unlock button, turning it to a green locked symbol, for the associated signal row and pin columns as shown below. When communicating with the second microcontroller using USB, the RB6 pin is for the EUSART transmit (TX) signal, and the RB7 pin is for the EUSART receive (RX) signal on most MPLAB Xpress Evaluation Boards, including the green “General Purpose MPLAB Xpress Evaluation Board” and 40-pin variants of the red “Device-Specific MPLAB Xpress Evaluation Boards”. The 20-pin red “Device-Specific MPLAB Xpress Evaluation Board” will use the RA1 pin for EUSART TX and the RA0 pin for the EUSART RX signal. 2018 Microchip Technology Inc. DS50002710A-page 37 Using 8-bit MCUs with MPLAB® Xpress 6. Click the Generate button in MCC to create the appropriate header and source files for this configuration. 7. The new MCC Generated header and source files should now be present in the Project window of the MPLAB Xpress IDE including a new main.c source file. DS50002710A-page 38 2018 Microchip Technology Inc. Building a Serial Communications Link 6.4 HOW TO USE THE MCC-GENERATED SERIAL FUNCTION The MPLAB Code Configurator generates code used to configure the device and selected peripherals. Additionally, a series of functions are generated for a number of the selected resources that enable you to write your own code which can facilitate dynamic system changes to occur at runtime. Function descriptions along with example code can be referenced in the associated peripheral's header file. 1. Highlight the eusart.h file under the “Header Files>MCC Generated Files” folder inside the Project pane of the MPLAB Xpress IDE to open the file. 2. Scroll through the eusart.h file to locate the EUSART_Write() function. Highlight the function and copy using Ctrl+X (Windows keyboard shortcut). Note: 2018 Microchip Technology Inc. Copy and paste within the MPLAB Xpress IDE must be done using keyboard shortcuts. Using these functions from the toolbar or from the right click Context Menu is not supported. DS50002710A-page 39 Using 8-bit MCUs with MPLAB® Xpress 3. Click on the main.c source file in the Project pane to open the file and scroll through the code to locate the // Add your application code comment inside of the while(1) loop inside main(). Paste the copied EUSART_Write() function at this location and replace the arguments within the brackets to a character such as 'A'. 4. Compile and download the project .hex file by clicking on the Make and Program Device button at the top of the MPLAB Xpress IDE. 5. Program the MPLAB Xpress board by dragging the project .hex file from the downloads section of the browser and dropping the file into the XPRESS drive as shown in Chapter 3. “Programming the Evaluation Board”. DS50002710A-page 40 2018 Microchip Technology Inc. Building a Serial Communications Link 6.5 HOW TO DISPLAY THE SERIAL MESSAGE ON A HOST COMPUTER 1. Open a terminal emulator program (see Section 2.3 “Software”) on the host computer and select the COM port associated with the MPLAB Xpress board. 2. Open the Connection>Options dialog and configure the serial port at the 9600 baud rate that was configured earlier in the project when configuring the EUSART in MCC. 3. Inside the terminal window, click on the button to establish connection with the Xpress board. Once communication is established, the terminal window should display the character added to the EUSART_Write() earlier in the project. 2018 Microchip Technology Inc. DS50002710A-page 41 Using 8-bit MCUs with MPLAB® Xpress NOTES: DS50002710A-page 42 2018 Microchip Technology Inc. GETTING STARTED USING 8-BIT MCUs IN THE MPLAB® Xpress ECOSYSTEM Appendix A. MPLAB® Xpress Evaluation Boards A.1 INTRODUCTION MPLAB Xpress Evaluation Boards have been designed to work in conjunction with the cloud-based MPLAB Xpress Integrated Development Environment (IDE). The combination of the IDE and the MPLAB Xpress Evaluation Board provide a platform for rapid development of applications without having to download or update the IDE or compilers. All MPLAB Xpress boards contain two sections: 1. The programmer section, which contains the circuitry necessary to serve as a dedicated drag-and-drop programmer for the target device using Microchip Technology's proprietary In-Circuit Serial Programming (ICSP) protocol. In this way, no additional hardware is needed to program the target device other than a simple USB connection to a host computer. 2. The application section, which contains the circuitry that is used by the microcontroller application. Additionally, MPLAB Xpress Evaluation Boards feature a Communications Device Class (CDC) interface to facilitate serial communication between the target device and a host computer. There are three variants of MPLAB Xpress Evaluation Boards: 1. General Purpose MPLAB Xpress Evaluation Board 2. Device Specific MPLAB Xpress Evaluation Board (20-pin variant) 3. Device Specific MPLAB Xpress Evaluation Board (40-pin variant) A.2 POWERING THE BOARDS The MPLAB Xpress Evaluation Boards can be powered in one of two ways, depending on its usage. It should be noted that only one power source should be connected at a time. A.2.1 USB Connector The USB connector will power the entire MPLAB Xpress Evaluation Board. With USB power connected, the power LED will always be on (green) to indicate that +3.3V is available on the board. A.2.2 2.7V-16V External Power Supply (General Purpose MPLAB Xpress Board Only) The external power supply option is available on the General Purpose MPLAB Xpress Board only. It will also power the entire MPLAB Xpress Evaluation Board. The external power supply is connected to a Low Dropout (LDO) voltage regulator, configured to deliver 3.3V to the board. The external power supply range is from 2.7V to 16V, allowing use with two to six primary cells, 9V alkaline batteries, or one or two-cell Li-Ion batteries. LED D1 will illuminate green when the external power supply is active and supplying sufficient voltage. 2018 Microchip Technology Inc. DS50002710A-page 43 Using 8-bit MCUs with MPLAB® Xpress A.3 GENERAL PURPOSE EVALUATION BOARD The MPLAB Xpress General Purpose Evaluation Board features an 8-bit PIC16F18855 microcontroller. This board differs from other variants in that it also features basic interface components to the target device such as LEDs, potentiometer, switch and more. 1. PIC16F18855 target microcontroller 2. Connection header corresponding to target microcontroller pins 3. mikroBUS™ socket to accommodate a variety of plug-in MikroElektronika Click Boards that can be used in application development 4. Four user LEDs 5. Potentiometer 6. EMC1001 temperature sensor 7. Push button switch 8. Master RESET switch 9. Power LED: a) Green: power to target b) Flashing Red: target being programmed 10. 2.7V-16V Battery/External power connection DS50002710A-page 44 2018 Microchip Technology Inc. MPLAB® Xpress Evaluation Boards A.4 DEVICE-SPECIFIC EVALUATION BOARDS The MPLAB Xpress Device Specific Evaluation Boards contain a specific PIC16 or PIC18 device the board is targeted towards in addition to the built-in programmer. They are available in 20-pin and 40-pin variants based on the device. 1. 2. 3. 4. Target microcontroller Connection header corresponding to target microcontroller pins Master RESET switch Power LED: a) Green: power to target b) Flashing Red: target being programmed 5. Selects 5V from USB supply or 3.3V from LDO regulator output to power target device (default is 3.3V) 2018 Microchip Technology Inc. DS50002710A-page 45 Using 8-bit MCUs with MPLAB® Xpress NOTES: DS50002710A-page 46 2018 Microchip Technology Inc. 2018 Microchip Technology Inc. DNP PICNLW70 3 VPP/MCLR VDD GND ICSPDAT ICSPC LK J4 S2 RA5 3 CW 2 R15 10K 1 CCW +3.3V 2 3 4 5 1 +3.3V R17 10K +3.3V 1K R16 Red Red DNP J7 F188MCLR D5 D4 Red Red 1 2 3 4 5 6 7 8 9 10 11 12 13 14 RA0 RA1 RA2 RA3 RA4 RA5 F188ANA1 F188RST F188CS F188SCK F188MISO F188MOSI F188ANA1 F188RST F188CS F188SCK F188MISO F188MOSI F188CLK F188DAT ALARM2 ALARM1 RA4 1K R14 1K R13 1K R12 1K R11 18 19 20 21 22 23 24 25 27 28 1 2 3 4 7 6 F188SCL F188SDA R18 10K +3.3V R19 10K +3.3V 3 2 4 6 EMC1001-AFZQ -TR VDD ADDR/THERM SMCLK SMDATA ALERT/THERM2 GND U5 0.1μF C8 5 1 R20 20.0K +3.3V R21 DNP +3.3V 0.1μF C7 ALARM2 ALARM1 F188ANA1 F188RST F188CS F188SCK F188MISO F188MOSI PIC16F18855-I/MV 1 2 3 4 5 6 7 8 AN RST CS SCK MISO MOSI +3.3V GND J5 mikroBUS70 +3.3V PWM INT RX TX SCL SDA +5V GND Host Connector J6 RB4/ANB4/ADCACT/T5G/SMTWIN2/IOCB4/PPS RB5/ANB5/T1G/SMTSIG2/CCP3/IOCB5/ PPS RB6/ANB6/CLCIN2/IOCB6/ICSPC LK/PPS RB7/ANB7/DAC1OUT2/T6IN/CLCIN3/IOCB7/ICSPDAT/PPS 1 2 3 4 5 6 7 8 VUSB F188PWM F188INT F188TXM F188RXM F188SCL F188SDA VSS VSS EP F188TXU F188RXU ALARM1 ALARM2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 F188MCLR F188TXU F188RXU F188INT F188SDA F188SCL F188RXM F188TXM F188PWM R22 10K F188PWM F188INT F188TXM F188RXM F188SCL F188SDA 5 16 29 VDD RA0/ANA0/C1IN0-/C2IN0-/CLCIN0/IOCA0/PPS RA1/ANA1/C1IN1-/C2IN1-/CLCIN1/IOCA1/PPS RA2/ANA2/VREF-/DAC1OUT1/C1IN0+/C2IN0+/IOCA2/PPS VPP/MCLR/IOCE3/RE3 RA3/ANA3/VREF+/C1IN1+/MDCIN1/IOCA3/PPS RA4/ANA4/MDCIN2/T0CKI/CCP5/IOCA4/PPS 8 RA5/ANA5/SS1/MDMIN/IOCA5/ PPS PPS/SOSCO/IOCC0/SMTWIN1/T3G/T3CKI/T1CKI/ANC0/RC0 RA6/ANA6/IOCA6/OSC2/CLKOUT PPS/SOSCI/IOCC1/CCP2/SMTSIG1/ANC1/RC1 9 10 RA7/ANA7/IOCA7/OSC1/CLKIN PPS/IOCC2/CCP1/T5CKI/ANC2/RC2 11 PPS/IOCC3/T2IN/SCK1/SCL1/ANC3/RC3 RB0/ANB0/C2IN1+/ZCD/SS2/CCP4/CWG1IN/INT/IOCB0/PPS PPS/IOCC4/SDI1/SDA1/ANC4/RC4 12 13 RB1/ANB1/C1IN3-/C2IN3-/SCL2/SCK2/CWG2IN/IOCB1/ PPS PPS/IOCC5/T4IN/ANC5/RC5 14 RB2/ANB2/SDA2/SDI2/CWG3IN/IOCB2/PPS PPS/IOCC6/CK/ANC6/RC6 RB3/ANB3/C1IN2-/C2IN2-/IOCB3 PPS/IOCC7/DT/RX/ANC7/RC7 15 U4 RA3 RA2 RA1 RA0 DNP J8 FIGURE B-1: D3 D2 GETTING STARTED USING 8-BIT MCUs IN THE MPLAB® Xpress ECOSYSTEM Appendix B. MPLAB® Xpress Evaluation Board Schematics GENERAL PURPOSE EVALUATION BOARD SCHEMATIC (APPLICATION SECTION) DS50002710A-page 47 1 2 LTST-C195KGJRKT R D1 1K MPLAB Xpress Evaluation Board Schematic J2 DNP 7 6 USB - micro B 1 VBUS 2 D_N D3 D_P D+ 4 ID 5 GND BATT 1K R7 2 4 R8 1 3 G D_N D_P +3.3V C4 0.1μF VIN 5 16 29 27 28 1 2 3 4 7 6 12 13 11 17 VOUT 3 MCLR/VPP/RE3 SOSC0/T1CKI/T3G/T3CKI/IOCC0/RC0 SOSCI/CCP2/IOCC1/RC1 AN14/IOCC2/CCP1/P1A/CTPLS/RC2 AN18/CK/TX/IOCC6/RC6 AN19/DT/RX/IOCC7/SDO/RC7 C2 1.0μF +3.3V PIC 18L F25K50-I/ ML RA0/C12IN0-/AN0 RA1/C12IN1-/AN1 RA2/C2IN+/AN2/DACOUT/VREFRA3/C1IN+/AN3/VREF+ RA4/C1OUT/SRQ/T0CKI AN12/SDA/SDI/SRI/FLT0/INT0/RB0 RA5/C2OUT/SRNQ/SS/HLVDIN/AN4 AN10/C12IN3-/SCL/SCK/P1C/INT1/RB1 RA6/CLKO/OSC2 AN8/P1B/CTED1/INT2/RB2 RA7/CLKI/OSC1 AN9/C12IN2-/SDO/CCP2/CTED2/RB3 AN11/P1D/IOCB4/RB4 VSS AN13/T1G/T3CKI/IOCB5/RB5 VSS PGC/IOCB6/RB6 EP PGD/IOCB7/RB7 D-/IOCC4 D+/IOCC5 VUSB3V3 VDD U2 C1 1.0μF U1 2 MCP1703T- 3302E / MB GND 1 DS50002710A-page 48 26 18 19 20 21 22 23 24 25 8 9 10 14 15 PGC PGD R4 R5 R2 R3 R10 10K 100R 100R 100R 100R 1 F188C LK F188DAT F188RXU F188TXU 3 Q1 2N7002 100R R9 1 2 3 4 5 S1 DNP PICKIT 3 VPP/ MCLR VDD GND ICSPDAT ICSPC LK J1 F188MCLR RESET F188 R6 10K +3.3V PGD PGC R1 10K +3.3V FIGURE B-2: 2 VUSB Using 8-bit MCUs with MPLAB® Xpress GENERAL PURPOSE EVALUATION BOARD SCHEMATIC (PROGRAMMER SECTION) 2018 Microchip Technology Inc. 2018 Microchip Technology Inc. 86%0,&52% 9%86 ' 86% ' ,' *1' 7*0&/5 N 5 5 986% 5 5 %$7 0&/5 ' 9'' 8 X) 9 & 9'' 9 & 986% 9 X) 9 & 3,&),-4 ,&63'$75& ,&63&/.5& 5& 5$',&63'$7 5& 5$',&63&/. 5& 5$9330&/5 5& 5$ 5$ 1& 1& 966 3$' 9'' 986%9 8 X) & 0&37('% 9,1 9287 *1' X) X) 9 & 5 35*0&/5 6 N 5 9'' 'B1 'B3 W P$ 9 32:(5 ',6&211(&7 5 5 5 5 0&/5 5 5 7*'$7 7*&/. 5 5 N 5 986% ) 5 * ' '13 0&/5 9'' 966 3*' 3*& - 5% 5% 5% 5% 7*'$7 7*&/. 5$ 7*0&/5 5$ 5$ 5$ 5$ 7*0&/5 5& 5& 5& 5& 5& 5% 9'' 9'' 5$,&63'$7 5$,&63&/. 5$ 5$9SS0&/5 5$26& 5$26& 9'' 8 3,&))3,1'(9,&(6 966 (3 5% 5% 5% 5% X) 5& 5& 5& 5& 5& 5& 5& 5& 3,&3URJUDPPLQJ$GDSWHU 9'' 966 5$ ,&63'$75$ 5$ ,&63&/.5$ 5$0&/5 5$ 5& 5& 5& 5& 5& 5& 5& 5% 5& 5% 5% 5% 8 & 5& 5& 5& 5& 5& 5& 5& 5& 7*'$7 7*&/. 5$ 5& 5& 5& 5% 5% 5% FIGURE B-3: 7+ 986% MPLAB® Xpress Evaluation Board Schematics 20-PIN DEVICE-SPECIFIC EVALUATION BOARD SCHEMATIC DS50002710A-page 49 DS50002710A-page 50 86%0,&52% 9%86 ' 86% ' ,' *1' 7*0&/5 N 5 5 5 986% 5 %$7 0&/5 ' 9'' 8 X) 9 & 9'' 9 & 986% X) 9 & 3,&),-4 ,&63'$75& ,&63&/.5& 5& 5$',&63'$7 5& 5$',&63&/. 5& 5$9330&/5 5& 5$ 5$ 1& 1& 966 3$' 9 8 9'' 986%9 X) & 0&37('% 9,1 9287 *1' X) X) 9 & 5 35*0&/5 6 N 5 9'' 'B1 'B3 W P$ 9 32:(5 ',6&211(&7 5 5 5 5 0&/5 5 5 7*'$7 7*&/. 5 5 N 5 986% ) 5 * ' '13 0&/5 9'' 966 3*' 3*& - 5% 5% 5% 5% 5$ 5$ 5$ 5$ 5$ 5$ 5$ 5$ 5$ 5$ 5& 5& 5& 5& 7*0&/5 5$ 5$ 5$ 5$ 5$ 5$ X) & 9'' 5%3*' 5%3*& 5% 5% 5% 5% 5% 5% 9'' 966 5& 5& 5& 5& 3,&))3,1'(9,&(6 3$' 966 966 5& 5& 5& 5& 5& 5& 5& 5& 0&/59335( 5%,&63'$7 5%,&63&/. 5% 5% 5$ 5$ 5$ 5$ 5$ 5$ 5$ 5$ 9'' 8 3',3 3,&3URJUDPPLQJ$GDSWHU 5(0&/5 5$ 5$ 5$ 5$ 5$ 5$ 966 5$ 5$ 5& 5& 5& 5& 5% 5% 5% 5% 8 9'' 7*'$7 7*&/. 5% 5% 5& 5& 5& 5& 5& 5& 5& 5& 7*0&/5 5& 5& 5& 5& 7*'$7 7*&/. 5% 5% 5% 5% 5% 5% FIGURE B-4: 7+ 986% Using 8-bit MCUs with MPLAB® Xpress 28-PIN DEVICE-SPECIFIC EVALUATION BOARD SCHEMATIC 2018 Microchip Technology Inc. 2018 Microchip Technology Inc. 86%0,&52% 9%86 ' 86% ' ,' *1' 7*0&/5 N 5 5 5 986% 5 %$7 ' 9'' 0&/5 8 X) 9 & 9'' 9 & 986% 9 X) 9 & 3,&),-4 ,&63'$75& ,&63&/.5& 5& 5$',&63'$7 5& 5$',&63&/. 5& 5$9330&/5 5& 5$ 5$ 1& 1& 966 3$' 9'' 986%9 8 X) & 0&37('% 9,1 9287 *1' X) X) 9 & 5 35*0&/5 6 N 5 9'' 'B1 'B3 W P$ 32:(5 ',6&211(&7 9 5 5 5 5 0&/5 5 5 7*'$7 7*&/. 5 5 N 5 986% ) 5 * ' '13 0&/5 9'' 966 3*' 3*& - 5% 5% 5% 5% 5% 5% 7*&/. 7*'$7 5$ 5$ 5$ 5$ 5$ 5$ 5$ 5$ X) & 5$ 5$ 5& 5& 5& 5& 5' 5' 7*0&/5 5$ 5$ 5$ 5$ 5$ 5$ 5( 5( 5( X) & 9'' 9'' 5%3*' 5%3*& 5% 5% 5% 5% 5% 5% 9'' 966 5' 5' 5' 5' 5;5& 7;5& 5& 5& 5' 5' 3,&3URJUDPPLQJ$GDSWHU 5(0&/5 5$ 5$ 5$ 5$ 5$ 5$ 5( 5( 5( 9'' 966 5$ 5$ 5& 5& 5& 5& 5' 5' 3,&))3,1'(9,&(6 5& 5& 5& 5& 5& 5& 5& 5& 5' 5' 5' 5' 5' 5' 5' 5' 5( 5( 5( 0&/59335( 5% 5% 5% 5% 5% 5% 5%,&63&/. 5%,&63'$7 5$ 5$ 5$ 5$ 5$ 5$ 5$ 5$ 966 966 3$' 8 9'' 9'' 352*5$00,1*$'$37(5 8 9'' 5& 5& 5& 5& 5& 5& 5& 5& 5' 5' 5' 5' 5' 5' 5' 5' 5( 5( 5( 7*0&/5 5' 5' 5' 5' 5& 5& 5& 5& 5' 5' 7*'$7 7*&/. 5% 5% 5% 5% 5% 5% FIGURE B-5: 7+ 986% MPLAB® Xpress Evaluation Board Schematics 40-PIN DEVICE-SPECIFIC EVALUATION BOARD SCHEMATIC DS50002710A-page 51 Using 8-bit MCUs with MPLAB® Xpress NOTES: DS50002710A-page 52 2018 Microchip Technology Inc. USING 8-BIT MCUS IN MPLAB® XPRESS Index C Product Page in MCC .............................................. 23 Project Resources in MCC ....................................... 22 Composer Area in MCC ........................................... 27 CoolTerm ................................................................... 7 R D Registers Tab in MCC .............................................. 27 Device Resources in MCC ....................................... 23 Download Example Project ...................................... 12 S E Easy Setup Tab (EUSART) in MCC......................... 27 Enter Token from MPLAB Xpress ............................ 18 EUSART .................................................................. 36 EUSART_Write() ................................................... 39 Example Project ......................................................... 9 Serial Communications ............................................ 13 Build Link .......................................................... 33 System Module in MCC ........................................... 22 T Tera Term .................................................................. 7 U H USB Link .................................................................. 33 Header File .............................................................. 39 V I Versions of MCC Components................................. 31 Interrupt Module in MCC .......................................... 22 J Java Version ............................................................ 16 L Libraries List in MCC................................................ 25 M main.c .................................................................... 40 Manage MPLAB Xpress Code Configurator ............ 16 MikroElektronika Click Boards List in MCC.............. 26 MPLAB Code Configurator (MCC) ............ 7, 21, 36, 39 MCC_Xpress.jnlp.......................................... 17 Plugin ................................................................ 15 MPLAB XC8 C Compiler ............................................ 7 MPLAB Xpress Ecosystem ........................................ 5 MPLAB Xpress Evaluation Boards............................. 7 Device Name .................................................... 10 Device Specific ................................................. 45 General Purpose............................................... 44 Powering ........................................................... 43 Programming ...................................................... 9 MPLAB Xpress IDE.................................................... 7 MPLAB Xpress Wiki ................................................... 7 N New Project.............................................................. 34 Notifications Tab in MCC ......................................... 28 P Peripherals List in MCC ........................................... 24 Pin Manager Package View in MCC ........................ 30 Pin Manager Table View in MCC ............................. 29 Pin Module in MCC .................................................. 22 2018 Microchip Technology Inc. DS50002710A-page 53 Using 8-bit MCUs in MPLAB® Xpress NOTES: DS50002710A-page 54 2018 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 Finland - Espoo Tel: 358-9-4520-820 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 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 Tel: 317-536-2380 Los Angeles Mission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608 Tel: 951-273-7800 Raleigh, NC Tel: 919-844-7510 New York, NY Tel: 631-435-6000 San Jose, CA Tel: 408-735-9110 Tel: 408-436-4270 Canada - Toronto Tel: 905-695-1980 Fax: 905-695-2078 DS50002710A-page 55 China - Dongguan Tel: 86-769-8702-9880 China - Guangzhou Tel: 86-20-8755-8029 China - Hangzhou Tel: 86-571-8792-8115 Fax: 86-571-8792-8116 China - Hong Kong SAR Tel: 852-2943-5100 Fax: 852-2401-3431 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 China - Shanghai Tel: 86-21-3326-8000 Fax: 86-21-3326-8021 China - Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 China - Shenzhen Tel: 86-755-8864-2200 Fax: 86-755-8203-1760 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 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 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-5778-366 Fax: 886-3-5770-955 Taiwan - Kaohsiung Tel: 886-7-213-7830 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 Taiwan - Taipei Tel: 886-2-2508-8600 Fax: 886-2-2508-0102 China - Xian Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany - Garching Tel: 49-8931-9700 Germany - Haan Tel: 49-2129-3766400 Germany - Heilbronn Tel: 49-7131-67-3636 Germany - Karlsruhe Tel: 49-721-625370 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Germany - Rosenheim Tel: 49-8031-354-560 Israel - Ra’anana Tel: 972-9-744-7705 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Italy - Padova Tel: 39-049-7625286 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Norway - Trondheim Tel: 47-7289-7561 Poland - Warsaw Tel: 48-22-3325737 Romania - Bucharest Tel: 40-21-407-87-50 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 Sweden - Gothenberg Tel: 46-31-704-60-40 Sweden - Stockholm Tel: 46-8-5090-4654 UK - Wokingham Tel: 44-118-921-5800 Fax: 44-118-921-5820 2018 Microchip Technology Inc. 10/10/17
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.6 Linearized : No Encryption : Standard V4.4 (128-bit) User Access : Print, Copy, Annotate, Fill forms, Extract, Print high-res Author : Microchip Technology Inc. Create Date : 2018:01:23 10:24:52Z Keywords : embedded developer tools, pic developer tools, online microcontroller ide, mplab, pic mic, embedded systems examples, microcontroller programming, evaluation board, embedded systems projects, embedded projects, development board, arduino alternatives, microcontroller basics, pic microcontroller projects, microcontroller projects, microchip mplab, pic microcontroller programming, microcontroller Visual Programming, embedded software tools, embedded tools, mplab code configurator, mplab xpress ide, xpress development board Modify Date : 2018:01:23 14:08:18-07:00 XMP Toolkit : Adobe XMP Core 5.6-c015 84.159810, 2016/09/10-02:41:30 Format : application/pdf Title : MPLABXpress_Intro.book Description : Get Started Using 8-bit Microcontrollers with MPLAB Xpress Development Boards and Xpress Online IDE. The How-to User Guide has MCC walkthrough, examples, and overview of the Xpress ecosystem. Tutorial uses PIC1618877 Creator : Microchip Technology Inc. Subject : embedded developer tools, pic developer tools, online microcontroller ide, mplab, pic mic, embedded systems examples, microcontroller programming, evaluation board, embedded systems projects, embedded projects, development board, arduino alternatives, microcontroller basics, pic microcontroller projects, microcontroller projects, microchip mplab, pic microcontroller programming, microcontroller Visual Programming, embedded software tools, embedded tools, mplab code configurator, mplab xpress ide, xpress development board Creator Tool : FrameMaker 12.0.4 Metadata Date : 2018:01:23 14:08:18-07:00 Producer : Acrobat Distiller 18.0 (Windows) Document ID : uuid:ab7c1280-2b26-47bf-a35a-03bf7659cf52 Instance ID : uuid:e567a447-9fd8-4559-97d3-8e1e764018a7 Page Mode : UseOutlines Page Count : 55EXIF Metadata provided by EXIF.tools