MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide 2013 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.
Object of Declaration: DM240015, MPLAB® Starter Kit for Intelligent.Integrated.Analog 2013 Microchip Technology Inc.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide NOTES: DS50002172A-page 4 2013 Microchip Technology Inc.
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG USER’S GUIDE Table of Contents Preface ........................................................................................................................... 7 Chapter 1. Introduction to the Starter Kit 1.1 Overview ...................................................................................................... 13 1.2 What’s in the Kit ........................................................................................... 14 1.3 Hardware .
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide NOTES: DS50002172A-page 6 2013 Microchip Technology Inc.
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG 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.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide DOCUMENT LAYOUT This document describes how to use the MPLAB Starter Kit for Intelligent.Integrated.Analog as a development tool to emulate and debug firmware on a target board, as well as how to program devices. The document is organized as follows: • Chapter 1. “Introduction to the Starter Kit” provides a brief overview and hardware description of the Starter Kit. • Chapter 2.
Preface CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Represents Examples Arial font: Italic characters Initial caps Referenced books MPLAB® IDE User’s Guide Emphasized text ...is the only compiler...
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide 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 the MPLAB Starter Kit for Intelligent.Integrated.Analog. Other useful documents are listed below.
Preface 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.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide 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 Field Application Engineer (FAE) for support. Local sales offices are also available to help customers.
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG USER’S GUIDE Chapter 1. Introduction to the Starter Kit Thank you for purchasing the MPLAB Starter Kit for Intelligent.Integrated.Analog. This board is intended to introduce the PIC24FJ128GC010 family of advanced analog microcontrollers and demonstrate its wide range of on-chip analog features. This chapter introduces the Starter Kit and provides an overview of its features. Topics covered include: • • • • 1.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide 1.2 WHAT’S IN THE KIT Your MPLAB Starter Kit for Intelligent.Integrated.Analog should contain the following: • MPLAB Starter Kit board • USB cable (A to mini-B) • An insert card with links to the web site for this manual and the demo application 1.3 HARDWARE Figure 1-1 identifies the major features of the Starter Kit.
Introduction to the Starter Kit 1. PICkit On Board (PKOB) USB Programmer/Debugger and Connector The PKOB is used to program the PIC24FJ128GC010 MCU on the Starter Kit. It connects via USB to MPLAB X, Microchip’s programming and debugging environment, and eliminates the need for an external hardware programmer. For more information on loading your own application into the Starter Kit (or reloading the original application), see Section 3.1 “Reprogramming the Starter Kit Using the PKOB”. 2.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide 9. Digital Temperature Sensor (U9) and Jumper, JP7 The TC77 is a digital temperature sensor in a SOT-23 package. It uses an SPI interface to communicate to the microcontroller. The TC77 is powered as part of the SWITCHED_VDD bus. When installed (default), jumper, JP7, connects the TC77 chip select to port pin, RE9. If the TC77 is not needed, removing JP7 allows port pin, RE9, to be used as a general purpose I/O resource. 10.
Introduction to the Starter Kit 14. Breakout Connectors (J7/J8) Connectors, J7 and J8, provide a direct interface to select functions of the PIC24FJ128GC010 microcontroller. Connector, J7, is a standard riser and can accept standard 0.025” square posts. J8 is a parallel connected set of through holes. The mapping of microcontroller pins to riser pins is listed in Table 1-1. Many of the microcontroller pins are multiplexed with several functions. Refer to Appendix A.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide 1.3.1 Power Sources The Starter Kit can be powered in one of three ways, depending on the usage: • PKOB USB Connector (J6). This will power the entire MPLAB Starter Kit board, including the PICkit programming circuitry. Jumper, J10, must be placed into the USB position (Pins 2-3), which is the default position. Both power LEDs (D4 and D5) will light. • USB Device Port (J3).
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG USER’S GUIDE Chapter 2. The Demonstration Application This chapter describes the preprogrammed demonstration on the Starter Kit. The application is essentially free-standing and does not require a host application running on a computer. The board can be powered from either USB mini-B connector (J3 or J6). 2.1 START-UP DISPLAY The application displays a 24-hour clock (hh:mm, with flashing colon).
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide 2.2.1 Clock Demo The 24-hour clock is the home page for the demo. This is a 24-hour clock with a blinking colon for seconds. The clock uses the on-board 32 kHz Secondary Oscillator (SOSC) for an accurate time base. To set the clock to the proper time: 1. Press when the LCD is displaying the clock. 2. The display shows, hh:mm, where ‘hh’ is the current hour and ‘mm’ is the current minute.
The Demonstration Application 2.2.3 Pipeline A/D Demo This section of the demo uses the 12-bit Pipeline A/D Converter. For more information on this module and its operation, refer to the “PIC24F Family Reference Manual”, “12-Bit, High-Speed Pipeline A/D Converter” (DS30686). The Pipeline A/D demo uses two analog input channels of the Pipeline A/D Converter to display a pair of bar graphs. The bar graphs extend, left-to-right, across the LCD.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide 2.2.7 Audio/Microphone Demo This section uses a bar graph display to represent the output of the unamplified electret microphone. The 12-bit Pipeline A/D Converter is used to measure the amplitude of the output signal. To use this section, it is necessary to first connect MIC OUT (J7/J8, Pin 5) to ADC1 IN (Pin 11) with a jumper wire (22 gauge recommended).
The Demonstration Application 2.3 OTHER HARDWARE RESOURCES ON THE STARTER KIT Connector, J2, is configured as a USB host. As it is connected in parallel with the USB device port connector, J2 cannot be used while J3 is in use. A footprint (R5) is provided on the board for an add-on thermistor. The footprint is designed to accommodate an NTC thermistor in an 0805 package size. Typical values are 10 kΩ and 47 kΩ.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide NOTES: DS50002172A-page 24 2013 Microchip Technology Inc.
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG USER’S GUIDE Chapter 3. Developing New Applications The MPLAB Starter Kit for Intelligent.Integrated.Analog may be used with MPLAB® IDE, the free Integrated Development Environment available on Microchip’s web site. MPLAB IDE allows the starter kit to be used as an in-circuit debugger as well as a programmer for the featured device.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide MPLAB X refers to it as “Starter Kits (PKOB)”; see Figure 3-2. In the MPLAB X example, the Serial Number (SN) of the board will differ from the one shown. In all cases, be sure to select PIC24FJ128GC010 as the device name in the Project window. FIGURE 3-2: SELECTING THE PKOB The application originally included with the Starter Kit is not protected; you may overwrite it with your own code.
Developing New Applications 3.2 HARDWARE CONSIDERATIONS FOR NEW APPLICATIONS When developing your own application for the Starter Kit board, it is important to set each pin on the microcontroller’s I/O ports to the proper type (analog or digital) and to the proper state (input or output). Certain I/O pins on the PIC24FJ128GC010 microcontroller (and the corresponding pin on J7/J8) can be used as general purpose I/Os.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide NOTES: DS50002172A-page 28 2013 Microchip Technology Inc.
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG USER’S GUIDE Chapter 4. Troubleshooting This chapter discusses common operational issues and how to resolve them. 1. The demo application does not run. The Starter Kit board must be plugged into a powered USB hub, computer or other USB host device. Start by plugging into the USB device port, J2. LED, D4, should light when VBUS is detected. If D4 is not lit, verify that the USB host side port is functional.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide NOTES: DS50002172A-page 30 2013 Microchip Technology Inc.
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG USER’S GUIDE Appendix A. Starter Kit Schematics The following schematic diagrams are included in this appendix: Application: • Figure A-1: Application Microcontroller and Associated Components • Figure A-2: LED Display and other Application Components Programmer/Debugger: • Figure A-3: PICkit On Board Programmer/Debugger 2013 Microchip Technology Inc.
USB- A GND ID D+ D- VBUS J2 5 4 3 2 1 VBI D_P D_N SW_VDD R7 10K 470 Ohm R47 VBUS 0.
USB-B 6 J3 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 35 36 37 38 39 40 Shield J8 D+ D- VBUS 5 4 3 2 1 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 35 36 37 38 39 40 D_P D_N CMA-4544PF-W AVREF+ RG8 LED1 RESET SDO LED2 WAKE OPA_2+ CH1+IN CH0+ RE9 (VBUS054B-HS3-GS08) 0.1 PF 0.
PK3V3 4 3 2 1 (BUS POWERED) Shield 6 J6 SI SCL HOLD VDD 25LC256-I/SN VSS WP SO CS U5 D+ D- VBUS 5 6 7 8 ICSP_PGEC_PICKIT3 ICSP_PGED_PICKIT3 5 4 3 2 1 ICSP_MCLR_VPP_PICKIT3 PK3V3 USB INTERFACE R26 2.2K UTIL_WP UTIL_SDI UTIL_CS 6 5 4 3 No Load R27 10K J5 2 1 R25 10K PK3V3 USB_D_P USB_D_N D_VBUS UTIL_SDO UTIL_SCK PK3V3 1 μF C29 PK3V3 PK3V3 R18 0.
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG USER’S GUIDE Appendix B. LCD Panel Information This section provides specific pinout and multiplexing information for the Microchip custom LCD display panel. It is furnished for those users who desire to design custom applications using the MPLAB Starter Kit for Intelligent.Integrated.Analog display. The layout of the display elements is shown in Figure B-1.
MPLAB® Starter Kit for Intelligent.Integrated.
LCD Panel Information TABLE B-2: LCD PANEL DISPLAY ELEMENT MAPPING COL1 COL2 COL3 COL4 COL5 COL6 COL7 COL8 SEG1 D1A D1B D1C D1D D1E D1F D1G T1 SEG2 D2A D2B D2C D2D D2E D2F D2G T2 SEG3 D3A D3B D3C D3D D3E D3F D3G T3 SEG4 D4A D4B D4C D4D D4E D4F D4G T4 SEG5 D5A D5B D5C D5D D5E D5F D5G T5 SEG6 D6A D6B D6C D6D D6E D6F D6G T6 SEG7 D7A D7B D7C D7D D7E D7F D7G T7 SEG8 D8A D8B D8C D8D D8E D8F D8G T8 SEG9 D9A D9B D9C D9D D9E D9F
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide NOTES: DS50002172A-page 38 2013 Microchip Technology Inc.
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG USER’S GUIDE Appendix C. Optional Microphone Amplifier By default, the electret microphone on the MPLAB Starter Kit for Intelligent.Integrated.Analog is configured as a simple audio detector; it does not provide sufficient amplification for voice or more advanced audio applications. To achieve better performance, a microphone amplifier needs to be implemented.
MPLAB® Starter Kit for Intelligent.Integrated.Analog User’s Guide NOTES: DS50002172A-page 40 2013 Microchip Technology Inc.
MPLAB® STARTER KIT FOR INTELLIGENT.INTEGRATED.ANALOG USER’S GUIDE Index A P Ambient Light Sensor ............................................. 16 Audio Output Driver ................................................ 16 Audio/Microphone Demo ........................................ 22 PICkit On Board (PKOB) ...................................15, 25 Pipeline A/D Demo .................................................. 21 Potentiometer ..........................................................
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.