OLIMEX PIC32-HMZ144 User Manual

PIC32-HMZ144
General-purpose development board
USER’S MANUAL
Document revision D, October 2017
Designed by OLIMEX Ltd, 2015
All boards produced by Olimex LTD are ROHS compliant
Page 1 of 26
DISCLAIMER
© 2017 Olimex Ltd. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other product names may be trademarks of others and the rights belong to their respective owners.
The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products.
The hardware design of PIC32-HMZ144 development board is considered open source. Anyone can download the original schematics and board design files. The files describing the hardware are made with CadSoft's EAGLE PCB design software.
The part of the software written by Olimex is released under GPL. However, note that the examples that we distribute are based on the libraries and projects released by Microchip. Make sure that you are acquainted with Microchip's license agreement before using, publishing, or distributing any code based on our software.
It is possible that the pictures in this manual differ from the latest revision of the board.
The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded. This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product.
This evaluation board/kit is intended for use for engineering development, demonstration, or evaluation purposes only and is not considered by OLIMEX to be a finished end-product fit for general consumer use. Persons handling the product must have electronics training and observe good engineering practice standards. As such, the goods being provided are not intended to be complete in terms of required design-, marketing-, and/or manufacturing-related protective considerations, including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards.
Olimex currently deals with a variety of customers for products, and therefore our arrangement with the user is not exclusive. Olimex assumes no liability for applications assistance, customer product design, software performance, or infringement of patents or services described herein.
THERE IS NO WARRANTY FOR THE DESIGN MATERIALS AND THE COMPONENTS USED TO CREATE PIC32-HMZ144. THEY ARE CONSIDERED SUITABLE ONLY FOR PIC32-HMZ144.
Page 2 of 26
Table of Contents
CHAPTER 1: INTRODUCTION ............................................................. 4
1.1 BOARD FEATURES ............................................................................................................... 4
1.2 MINIMAL BOARD USE REQUIREMENTS ...................................................................... 5
1.3 TARGET MARKET OF THE BOARD ................................................................................. 5
1.4 ELECTROSTATIC WARNING ............................................................................................. 6
1.5 DOCUMENT ORGANIZATION ........................................................................................... 6
CHAPTER 2: BOARD DESCRIPTION .................................................. 7
2.1 LAYOUT (TOP VIEW) ........................................................................................................... 7
2.2 PINOUT .................................................................................................................................... 8
CHAPTER 3: BOARD SCHEMATIC AND DIMENSIONS ................. 9
3.1 SCHEMATIC ........................................................................................................................... 9
3.2 PHYSICAL DIMENSIONS .................................................................................................. 11
CHAPTER 4: PROCESSOR DETAILS ................................................ 12
4.1 FEATURES ............................................................................................................................ 12
4.2 MICROCONTROLLER BLOCK DIAGRAM .................................................................. 15
4.3 MICROCONTROLLER MEMORY MAP ......................................................................... 16
CHAPTER 5: CONTROL CIRCUITRY ............................................... 17
5.1 POWER SUPPLY CIRCUIT ................................................................................................ 17
5.2 RESET CIRCUIT .................................................................................................................. 18
5.3 CLOCK CIRCUIT ................................................................................................................ 18
CHAPTER 6: JUMPERS, CONNECTORS AND INTERFACES ...... 19
6.1 JUMPER DESCRIPTION .................................................................................................... 19
6.2 INPUT/OUTPUT ................................................................................................................... 19
6.3 EXTERNAL CONNECTOR DESCRIPTION .................................................................... 19
6.3.1 ICSP CONNECTOR ..................................................................................................................................................... 19
6.3.2 JTAG ROW ................................................................................................................................................................... 20
6.3.3 UEXT ............................................................................................................................................................................. 20
6.3.4 MICROSD CARD ......................................................................................................................................................... 21
CHAPTER 7: AVAILABLE DEMO SOFTWARE ................................ 22
7.1 BLINKING LED MPLABX DEMO .................................................................................... 22
7.2 FULL HARMONY DEMO ................................................................................................... 22
CHAPTER 8: ORDERING INFORMATION AND REVISIONS ...... 24
8.1 DOCUMENT REVISION ..................................................................................................... 24
8.2 BOARD REVISION .............................................................................................................. 25
8.3 USEFUL WEB LINKS .......................................................................................................... 25
CHAPTER 9: WARRANTY AND SUPPORT ....................................... 26
Page 3 of 26
CHAPTER 1: INTRODUCTION
Thank you for choosing this general-purpose development board designed and assembled by Olimex LTD! This document provides a user’s guide for the PIC32-HMZ144 board. As an overview, this chapter gives the scope of this document and lists the board’s features. The document’s organization is then detailed.
The PIC32-HMZ144 development board allows code development of applications running on the PIC32MZ144 processor, manufactured by Microchip Technology Inc from the U.S.A.
PIC32-HMZ144 board is an open-source, open-hardware project and all documents needed to manufacture the board are available to the customer.
The software code written by Olimex LTD is released under GPL. However, the examples that we distribute are heavily based on the libraries and projects released by Microchip Technology Inc, which are non-GPL. Make sure that you are acquainted with Microchip's license agreement before using, publishing, or distributing any code based on the demo software released by Olimex LTD.
1.1 BOARD FEATURES
PIC32-HMZ144 board features a PIC32MZ2048EFG144 processor. It is one of the most-capable PIC32 processors ever made and it has a lot of interfaces available (FPU, 6 x UARTs; 6 x SPIs; 5 x I2Cs; 120 x IO pins; 48-channel ADC; two analog comparators; Ethernet; USB-OTG; JTAG; TRACE; etc.) The board has several ready-to-use interfaces exposed and available on connectors: a microSD card connector; mini USB connector (with OTG functionality); ICSP connector for programming and debugging; UEXT connector for extension modules; user-programmable LED; user-programmable button; 100 pinholes in two rows for measurements and access to IO processor pins; etc.
Starting 20th of October 2017 the PIC32MZ2048ECG144 chip was replaced by a PIC32MZ2048EFG144. The PIC32MZ2048ECG144 was officially declared “not recommneded for new designs” by Microchip and we decided to switch to the officially suggested replacement. The chips are pretty much the same except that the new EFG chip has a floating point unit (FPU), better maximum A/D resolution (12 v 10) and better maximum A/D sample rate (18000KSPS vs 5000KSPS).
The most notable board features are listed below:
PIC32MZ2048EFG144 with 512KB RAM and 2MB flash (PIC32MZ2048ECG144 was
used before)
USB-OTG functionality with mini USB connector MicroSD card connector ICSP for debugging and programming JTAG pins exposed on 0.1" step 6 pins EXT1 and EXT2 50 pin 0.1" connectors that ease the access to the processor RESET and USER buttons PWR and STATUS LEDs Li-Po battery connector and charger UEXT connector Dimensions: (77×52)mm ~ (3×2)mm
Page 4 of 26
1.2 MINIMAL BOARD USE REQUIREMENTS
Hardware required for programming
In order upload code on the board you would need a PIC32 compatible debugger or programmer. Older tools might lack support for PIC32 processor. Please ensure your programmer/debugger is compatible with the PIC32MZ processor family.
The board has no bootloader loaded. You need either a debugger or a programmer tool to upload software to the board. The on-board ICSP interface is available at a 6-pin (1×6) 0.1” step connector.
Software required for programming
You would need software that supports PIC32MZ family of processors. The most commonly used tool for software development for PIC32MZ applications is MPLAB X. The most used tool for binary upload to PIC32MZ is MPLAB IPE. Microchip provides a set of libraries and demo projects for the PIC32MZ family in their “Harmony Integrated Software Framework”.
Note that MPLAB 8.xx does NOT support PIC32MZ.
(Optional) hardware to power the board.
The board requires power supply. If your debugger/programmer is not capable of powering the board via the ICSP connector then you would need either: USB cable (1); or Li-Po battery (2); or 5V external power supply (3).
(1) The USB cable should have male mini USB connector to be able to fit the board's female mini USB connector. (2) The battery requires a male DW02R connector (CI0102) to fit in the on-board female DW02R connector. (3) There are only pinholes available on the board. You would need wires to establish a connection between the external power supply (adapter) with the board.
1.3 TARGET MARKET OF THE BOARD
PIC32-HMZ144 would attract PIC enthusiasts and veterans who want to evaluate the features of the PIC32MZ2048EFG144 processor. Any experience with the development tools required for general­purpose development of code for boards featuring PIC32MZ boards is a great plus.
The board is not suitable for complete beginners – it lacks a bootloader which means that you can't upload software via the USB. You need at least a PIC32-compatible programmer with 6-pin 0.1” step ICSP connector.
In case you are a complete beginner you might want to start with a board with bootloader, like PIC32-PINGUINO-OTG or DUINOMITE. You can upload code to such boards via an USB cable.
Page 5 of 26
1.4 ELECTROSTATIC WARNING
The PIC32-HMZ144 board is shipped in protective anti-static packaging. The board must not be subject to high electrostatic potentials. General practice for working with static sensitive devices should be applied when working with this board.
The product box includes 4 rubber feet – it is recommended to place them in the holes near the edges of the board. This way the board would be safe if placed on conductive surfaces!
1.5 DOCUMENT ORGANIZATION
Each section in this document covers a separate topic, organized as follows:
Chapter 1 is an overview of the board usage and features Chapter 2 contains the general board diagram and layout Chapter 3 provides the schematics and the dimensions of the board Chapter 4 provides a guide for quickly setting up the board and software notes Chapter 5 describes the component that is the heart of the board: the Microchip's
PIC32MZ2048 processor
Chapter 6 is an explanation of the control circuitry associated with the processor Chapter 7 covers the connector pinout, peripherals and jumper description Chapter 8 contains the revision history, useful links and support information Chapter 9 contains the warranty information
Page 6 of 26
OLIMEX© 2017 PIC32-HMZ144 user's manual
CHAPTER 2: BOARD DESCRIPTION
2.1 LAYOUT (TOP VIEW)
The picture below shows the top side of the board and highlights the most important parts:
Page 7 of 26
OLIMEX© 2017 PIC32-HMZ144 user's manual
2.2 PINOUT
Page 8 of 26
CHAPTER 3: BOARD SCHEMATIC AND DIMENSIONS
In this chapter you may find information about the schematics describing logically and physically PIC32-HMZ144.
3.1 SCHEMATIC
The schematic of PIC32-HMZ144 is available for reference on the next page.
The design files are available at our GitHub repository. Refer to chapter 8 to find the link to our repository.
If you are looking for a schematic of an older revision of the board and it isn't available at our web site you may request it by the support e-mail.
Page 9 of 26
Loading...
+ 18 hidden pages