PIC24F LCD and USB Curiosity Development Board Quick Start Guide Americas Asia/Pacific Overview Australia - Sydney - 61-2-9868-6733 Atlanta - 678-957-9614 Austin - 512-257-3370 China - Beijing - 86-10-8569-7000 The PIC24F LCD and USB Curiosity Development Board (DM240018) is a demon- Boston - 774-760-0087 China - Chengdu - 86-28-8665-5511 stration, development and experimentation platform based on the PIC24FJ512GU410 Chicago - 630-285-0071 China - Chongqing - 86-23-8980-9588 low-power, low-cost microcontroller. The board has a built-in programmer/debugger and Dallas - 972-818-7423 China - Dongguan - 86-769-8702-9880 Detroit - 248-848-4000 provides all the hardware necessary to get started developing a complete embedded China - Guangzhou - 86-20-8755-8029 Houston - 281-894-5983 China - Hangzhou - 86-571-8792-8115 application. Some key features of the board include: Indianapolis - 317-773-8323 China - Hong Kong SAR - 852-2943-5100 PIC24FJ512GU410 General Purpose USB, 16-Bit Microcontroller Los Angeles - 949-462-9523 China - Nanjing- 86-25-8473-2460 New York - 631-435-6000 PICkit On-Board (PKOB) Circuit implements Basic Programming/Debugging China - Qingdao - 86-532-8502-7355 Phoenix - 480-792-7200 China - Shanghai - 86-21-3326-8000 - CDC (UART over USB), supports 115.2k 8N1 only Raleigh - 919-844-7510 China - Shenyang - 86-24-2334-2829 San Jose - 408-735-9110 On-Board 5-Character LCD Panel with Backlight (8 common, 56 segments) China - Shenzhen - 86-755-8864-2200 Toronto - 905-695-1980 MCLR Reset Button plus Two General Purpose Push Buttons China - Suzhou - 86-186-6233-1526 Micro-B USB for developing PIC24FJ512GU410 USB Device Applications China - Wuhan - 86-27-5980-5300 Europe Red/Green/Blue (RGB) LED plus Two General Purpose Indicator LEDs China - Xiamen - 86-592-2388138 Austria - Wels - 43-7242-2244-39 China - Xian - 86-29-8833-7252 Denmark - Copenhagen - 45-4485-5910 Digital Temperature Sensor (TC77) China - Zhuhai - 86-756-3210040 Finland - Espoo - 358-9-4520-820 10k Potentiometer India - Bangalore - 91-80-3090-4444 France - Paris - 33-1-69-53-63-20 32.768 kHz Secondary OSC for RTCC Germany - Garching - 49-8931-9700 India - New Delhi - 91-11-4160-8631 Female Headers for Access to Microcontroller I/O Pins Germany - Haan - 49-2129-3766400 India - Pune - 91-20-4121-0141 Germany - Heilbronn - 49-7131-72400 Japan - Osaka - 81-6-6152-7160 Two mikroBUS Interfaces for Hardware Expansion Germany - Karlsruhe - 49-721-625370 Japan - Tokyo - 81-3-6880-3770 Supports a Wide Variety of Add-On Click boards from MikroElektronika Germany - Munich - 49-89-627-144-0 Korea - Daegu - 82-53-744-4301 (www.mikroe.com) Germany - Rosenheim - 49-8031-354-560 Korea - Seoul - 82-2-554-7200 Israel - Raanana - 972-9-744-7705 Malaysia - Kuala Lumpur - 60-3-7651-7906 Board Power-up Italy - Milan - 39-0331-742611 Malaysia - Penang - 60-4-227-8870 Italy - Padova - 39-049-7625286 The board is intended to be powered through the Micro-B USB connector (J20 PKOB4) in Philippines - Manila - 63-2-634-9065 Netherlands - Drunen - 31-416-690399 the upper left side of the board. The J16 USB connector does not power the board, but is Singapore - 65-6334-8870 Norway - Trondheim - 47-7288-4388 used for developing USB device applications with the PIC MCUs USB peripheral. A Taiwan - Hsin Chu - 886-3-577-8366 Poland - Warsaw - 48-22-3325737 MIC5528 linear regulator (U12) generates the +3.3V rail used by the PIC24FJ512GU410 Taiwan - Kaohsiung - 886-7-213-7830 Romania - Bucharest - 40-21-407-87-50 microcontroller. The board can be powered by a CR2032 coin cell inserted into the B1 battery Taiwan - Taipei - 886-2-2508-8600 Spain - Madrid - 34-91-708-08-90 housing. The default jumper J9 setup is 2 and 3 this configuration can be left for power Thailand - Bangkok - 66-2-694-1351 Sweden - Gothenberg - 46-31-704-60-40 switching between USB and Battery Operation modes. Vietnam - Ho Chi Minh - 84-28-5448-2100 Sweden - Stockholm - 46-8-5090-4654 To measure the power consumption of the board, a meter can be placed between pins 2 and UK - Wokingham - 44-118-921-5800 3 of jumper J1 (that goes to the battery housing). To measure the current of the CPU, cut the trace on the bottom of the board under jumper J1 and place a meter between the two pins. Note: The J16 USB connector does not power the board. 2/28/20 Getting Started The preprogrammed out-of-box demo project for the PIC24F LCD and USB Curiosity Development Board has two main modes of operation, USB Powered and Battery-Powered. USB Powered Mode: In USB Powered mode, there are several different Display modes. Pressing the S2 button will cycle between each of the USB Display modes. The Display modes are listed below. 1. Toggles between the text, PIC24 and LCD. Toggling is done automatically by the PIC MCUs LCD peripheral using the Alternate Display mode of the module. Microchip Technology Inc. 2355 West Chandler Blvd. Chandler, AZ 85224-6199 2. Displays the 12-bit value of the potentiometer. www.microchip.com 3. Displays the build time of the project. Note that this is the build time of the build time.c file. A clean/build will update the time. The Microchip name and logo, the Microchip logo, and PIC are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. PICkit is a trademark of Microchip Technology Incorporated in the 4. Displays the current temperature measured by the TC77 on the board. LCD Alternate U.S.A. and other countries. All other trademarks mentioned herein are property of their respective companies. Display mode toggles between Celsius and Fahrenheit. 2020, Microchip Technology Incorporated, Printed in the U.S.A. All Rights Reserved. 7/20 Note: The backlight only operates while in USB mode. DS50003009AThe potentiometer will change the intensity of the RGB LED channel that is LCD panel pin and segment assignment are shown in Figure 2. currently active. Switch S1 will change which channel is currently active. A COM port can be opened to view the data through the J16 USB connection. FIGURE 2: LCD PANEL PIN AND SEGMENT ASSIGNMENT All of the above data are displayed on the screen (time, temperature, potentiometer, etc.). The PIC MCUs USB peripheral is acting as the UART-USB bridge. Battery-Powered Mode: If the USB power is disconnected, the board can run from a battery backup and will go into Battery-Powered mode. In order to run in Battery mode, a CR2032 needs to be inserted in the B1 battery housing and jumper J9 needs to short between pins 2 and 3. In Battery-Powered mode, the moon icon is displayed. The battery status icon indicates the current battery status. The time will be displayed on the screen. The : blinks using the LCD modules blink feature. The CPU does not need to wake up to update the screen for the :. The CPU wakes up once a minute in this mode to update the time on the screen. LED1 will blink while the CPU is awake. The CPU will also wake up when the USB power is detected. All other functionality from the USB mode is disabled. Note: The backlight only operates while in USB mode. LCD Operation Backlight operation is dependent on the USB 5V supply the LCD backlight is disabled during Battery-Operated mode. Pin assignment and LCD segment assignment are shown in Figure 1. FIGURE 1: MECHANICAL DRAWING AND SEGMENT ASSIGNMENT (DIMENSIONS IN mm) Schematics The schematics for the PIC24F LCD and USB Curiosity Development Board are shown in Figure 3 (microcontroller), Figure 4 (I/O access), Figure 5 (programmer/debugger) and Figure 6 (on-board buffers). DS50003009A