PIC-MX development board User's Manual All boards produced by Olimex are ROHS compliant Document revision B, April 07 Copyright(c) 008, OLIMEX Ltd, All rights reserved
INTRODUCTION: The NEW PIC-MX board uses the new PIC bit MIPS K core processor from Microchip which offers speed and performance at low cost. This board has PICMX0F microcontroller on it with its KB of Flash, KB RAM, 80MHz clock, UARTs, PWMs, DMAs. The board has both ICSP and JTAG connectors so it can be programmed with PIC-ICD or JTAG tool BOARD FEATURES: PICMX0F microcontroller UEXT connector for other Olimex modules like MOD-MP, MOD-NRFLx, MODSMB80, MOD-RFID etc. ICSP/ICD connector for programming with PIC-ICD or PIC-ICD-POCKET. JTAG connector RS interface with driver Quartz crystals 8 MHz and 78 Hz Status LED User Button Reset button Power plug-in jack with diode bridge can be powered with AC or DC power supply voltage regulator Extension slot on every uc pin Gird 00 mils bus Vcc bus Four mounting holes, mm (0,") FR-,. mm (0,0"), green soldermask, white silkscreen component print Dimensions (00 80)mm ~ (.9.)" ELECTROSTATIC WARNING: The PIC-MX 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. BOARD USE REQUIREMENTS: Cables:.8 meter USB A-B cable to connect PIC-KIT, PIC-ICD or PIC-ICD-POCKET to USB host on PC (if you use other programmer, you should read its specification in order to choose a cable). Hardware: PIC-KIT, PIC-ICD, PIC-ID-POCKET Or any compatible tool for programming and/or debugging!!!warning!!! When you want to program this microcontroller with PIC-ICD,
PIC-ICD-POCKET or PIC-ICD-TINY, before connecting the programmer to your target board, you should first connect the programmer to your computer and open MPLAB. There, first from menu Configure Select Device choose the microcontroller you are about to program, then from menu Programmer Select Programmer choose MPLAB ICD, wait while MPLAB is downloading operation system, and after ICD is connected check in menu Programmer Settings Power there is option Power target circuit from MPLAB ICD this option should be forbidden, you could not select it. Now it is safe to connect the programmer to your target board. Software: MPLAB IDE v8. + MPLAB C for developing your own applications. The demo software shows basic functionality and how to blink LED (C source and HEX), how to read a button (C source and HEX), the use of Timer (C source and HEX) and UART functions (C source and HEX). The sources are compiled with MPLAB C C compiler. PROCESSOR FEATURES: High-performance RISC CPU MIPS MK -Bit Core with -Stage Pipeline Single-Cycle Multiply and High-Performance Divide Unit MIPS e Mode for Up to 0% Smaller Code Size User and Kernel Modes to Enable Robust Embedded System Two -Bit Core Register Files to Reduce Interrupt Latency Prefetch Cache Module to Speed Execution from Flash Special Microcontroller Features Operating Voltage Range of.v to.v K Flash and K Data Memory Additional KB of Boot Flash Memory Multiple Interrupt Vectors with Individually Programmable Priority Fail-Safe Clock Monitor Mode Configurable Watchdog Timer with On-Chip, Low-Power RC Oscillator for Reliable Operation Analog Features Up to -Channel 0-bit Analog-to-Digital Converter: 00 ksps conversion rate Conversion available during Sleep, Idle Two Analog Comparators Peripheral Features Atomic SET, CLEAR and INVERT Operation on Select Peripheral Registers Up to -Channel Hardware DMA Controller with Automatic Data Size Detection Two IC Modules Two UART Modules with: RS-, RS-8 and LIN. support IrDA with on-chip hardware encoder and decoder Parallel Master and Slave Port (PMP/PSP) with 8-bit and -bit Data and Up to Addres Lines Hardware Real-Time Clock/Calendar (RTCC) Five -bit Timers/Counters (two -bit pairs combine to create two -bit timers) Five Capture Inputs Five Compare PWM Outputs Five External Interrupts pins High-Current Sink/Source (8 ma/8 ma) on All I/O Pins Configurable Open-Drain Output on Digital I/O
BLOCK DIAGRAM:
MEMORY MAP:
SCHEMATIC: U RESET RST 7 C 7 0uF/.V/TANT + C 00nF 0 8 C9 C0 C 00nF 00nF 00nF 9 C pf C pf C7 7pF C8 7pF Q 8MHz 9 0 Q 78/pF 7 8 A 9 C R 0K R 0K R 0K TXD RXD SCL SDA MISO 7 8 MOSI SCK 9 0 #SS PGD/EMUD/PMA/AN0/VREF+/CVREF+/CN/RB0 RB0 PGC/EMUC/AN/VREF-/CVREF-/CN/RB ENVREG CIN-/AN/#SS/CN/RB CIN+/AN/CN/RB RG RG RG RG7 RG8 RG9 BH0S RF0 RF RF RF RF RF RF SCL 7 SDA SCK MISO MOSI #SS 8 VCAP/VDDCORE VDD_ VDD_ VDD_ VSS_ VSS_ VSS_ OSC/CLKI/RC SOSCI/CN/RC SOSCO/TCK/CN0/RC OC/RD 0 OC/RD AVDD PMWR/OC/IC/CN/RD PMRD/CN/RD AVSS CN/RD CN/RD7 SCL/RG IC/RTCC/INT/RD8 BUT IC/#UCTS/INT/RD9 SDA/RG IC/PMCS/PMA/INT/RD0 IC/PMCS/PMA/INT/RD PMA/SDO/CN0/RG8 9 TXD RXD PMD0/RE0 0 PMD/RE RF0 PMD/RE PMD/RE RF URX/SDI/RF PMD/RE PMD/RE UTX/SDO/RF PMA9/URX/SDA/CN7/RF PMD/RE PMD7/RE7 PMA8/UTX/SCL/CN8/RF #URTS/BCLK/SCK/INT0/RF IN ADJ/ R 0R/% PWR.VAC/VDC C C C 70uF/VDC 00nF A R 90R/% RD0 RD RD RD RD RD RD RD7 RD8 RD9 RD0 RD RXD UCTS A R8 LED R7 0K 0R R 0R BUT SW-TAKT PWR_LED red R 0R C R0 0R PGD PGC WFS JTAG TDO TMS 7 8 TCK 9 0 NC TDI D N89(SS) RST R 00R NC R9 0R A C 00nF BUT LED green CUT!!! BHS U ST C 00nF C7 00nF 0 0R R 0R R 9 C+ C- V+ C8 00nF V- C9 00nF C+ CTOUT TOUT7 TIN TIN RIN RIN 8 ROUT ROUT UPWR _E URTS OUT ICSP RST TXD VR LM7 00n RE0 RE RE RE RE RE RE RE7 PICMX0FH G B-DIL RST C PMA/#SS/CN/RG9 RXD 0 OC/RD0 OC/RD 9 PMA/SDI/CN9/RG7 LED R RST OSC/CLKO/RC PMA/SCK/CN8/RG 8 TXD R 0K RB RB RB CIN-/AN/CN/RB RB CIN+/AN/CN7/RB RB PGC/EMUC/AN/OCFA/RB PGC 7 RB PGD/EMUD/AN7/RB7 PGD 8 RB7 #UCTS/COUT/AN8/RB8 UCTS RB8 PMA7/COUT/AN9/RB9 RB9 TMS/CVREFOUT/PMA/AN0/RB0 TMS RBO TDO/PMA/AN/RB TDO RB TCK/PMA/AN/RB TCK 7 RB TDI/PMA0/AN/RB TDI 8 RB PMALH/PMA/#URTS/BCLK/AN/RB 9 URTS RB PMALL/PMA0/AN/OCFB/CN/RB 0 RB 00nF UEXT 0 #MCLR VCC C0 00nF RS DB9_female 7 8 9
BOARD LAYOUT: POWER SUPPLY CIRCUIT: The typical way of powering the board is applying voltage to the power jack. PIC-MX requires be either (. 9.0)V AC or (.0.0)V DC applied to the power jack. The board can't be sufficiently powered by V DC power supply. The power consumption at V DC is round 70mA. For more options of powering the board refer to the schematic. RESET CIRCUIT: PIC-MX reset circuit includes a capacitor C (00nF) and a resistor R (0KΩ). CLOCK CIRCUIT: Quartz crystals at 8MHz and.78khz are connected to PIC-MX.
JUMPERS DESCRIPTION: _E Enables supply for PICMX and all other devices. Default state closed (shorted). CONNECTOR DESCRIPTIONS: JTAG: Pin # Signal Name Pin # Signal Name NC TDI TDO 7 TMS 8 9 TCK 0 RST (*) NC (*) This pin isn't mounted. TDI TDO TMS TCK Input Test Data In. This is the serial data input for the shift register. Output Test Data Out. This is the serial data output for the shift register. Data is shifted out of the device on the negative edge of the TCK signal. Input Test Mode Select. The TMS pin selects the next state in the TAP state machine. Input Test Clock. This allows shifting of the data in, on the TMS and TDI pins. It is a positive edge triggered clock with the TMS and TCK signals that define the internal state of the device.
ISCP: Pin # Signal Name RST PGD PGC - This connector allows programming and debugging via PIC-KIT or other compatible tool. PWR-CON: Pin # Signal Name VDC/VAC The PWR-CON connector is used to power the PIC-MX board. You can use either AC or DC power supply. The range of each of the powering options are as follows (. 9)V for AC and ( )V for DC. Do not provide more voltage than these maximums values!
UEXT: Pin # Signal Name OUT TXD RXD SCL SDA 7 MISO 8 MOSI 9 SCK 0 #SS UEXT is connector for external plug-in modules. TXD Output Transmit Data. This is the asynchronous serial data output (RS) for the shift register. RXD Input Receive Data. This is the asynchronous serial data input (RS) for the shift register. SCL I/O Serial Clock. This is the synchronization clock for the IC interface. It is output from the master and input for the slave. SDA I/O Serial Data. Data register for the IC interface. MISO I/O Master In Slave Out. When processor is master this is input SPI data register. When processor is slave this is output SPI data register. MOSI I/O Maser Out Slave In. When processor is master this is output SPI data register. When processor is slave this is input SPI data register. SCK I/O Serial Clock. This is the synchronization clock for the SPI interface. It is ouput from the master and input for the slave. #SS I/O Slave Select. Save select signal dor the SPI. It is output from the master and input for the slave. RS: Pin # Signal Name - TXD RXD - - 7 UCTS 8 URTS
9 - TXD Output Transmit Data. This is the asynchronous serial data output (RS) for the shift register on the UART controller. RXD Input Receive Data. This is the asynchronous serial data input (RS) for the shift register on the UART controller. UCTS Input UART Clear To Send. The DCE device is ready to accept data. URTS Otput UART Request To Send. The DTE device (PIC-MX) requests to send data. INPUT/OUTPUT: Button BUT user button connected to PIC-MX PORTD.RD8 (INT). RESET button button connected to the RST pin of PIC-MX Power on LED (red) - its name is PWR_LED and indicates that power is on. Status LED (green) - user LED connected to PIC-MX PORTF.RF pin.
GETTING STARTED In order to get started you need:. PIC-MX board. Power supply (-VDC/.-9VAC). ISP programmer. Cable to connect the programmer to the PC. Cable to connect the programmer to the board. Compiler/Assembler We provide here an example configuration but you could use any compatible programmer/compiler/assembler and the corresponding cables. Example configuration:. PIC-MX board. V DC power supply adapter. Programer PIC-KIT. Cable to connect the programmer to the PC USB cable A-B. Cable to connect the programmer to the board ICD cable (ISCP). Compiler/Assembler MPLAB v8. IDE + MPLAB C To get started you first should apply power to the board, connect the programmer to the board and to the PC, open MPLAB and write your application. After that you should compile and build your project, then you should debug it and if the previous stages are successfully finished, to program PIC-MX. To get your application running you should disconnect the programmer from the board and reset the board.
MECHANICAL DIMENSIONS: All dimensions are in mm.
AVAILABLE DEMO SOFTWARE: All of the demo software is written under MPLAB v8. IDE + MPLAB C...... Blink LED demo software (C source and HEX) Button read demo software (C source and HEX) Timer demo software (C source and HEX) UART basic demo software (C source and HEX) UART interrupt demo software (C source and HEX) All of the demo software may be found on Olimex website: https://www.olimex.com/ ORDER CODE: How to order? You can order directly from our web-shop or via any of our distributors. Check our web-site www.olimex.com for more info. All boards produced by Olimex are ROHS compliant Document revision history: REV.A REV.B - created June 008 - updated April 07 extended power supply ranges
Disclaimer: 008 Olimex Ltd. All rights reserved. Olimex, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other terms and product names may be trademarks of others. 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. Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder. 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.