PIC-LCD-0 development board Users Manual Rev.B, January 0 Copyright(c) 0, OLIMEX Ltd, All rights reserved Page
INTRODUCTION: PIC-LCD-0 is development board with PICFJ0, NOKIA 0 BW x pixels LCD, two LEDs and a joystick. The board has SD-MMC connector, mini USM and all PIC ports are available on two extension connectors. The board have -axis accelerometer MMA0 (seen on the picture). It's perfect for motion datalogging/analyze, -d mouses etc application. BOARD FEATURES: MCU: PICFJ0 with KB Flash memory, 0B SRAM, 0-bit -channel ADC module, PWM, SPI, IC, EUSART, Analog comparators and /-bit Timer/Counters ICSP connector for PIC-ICD/PIC-ICD-POCKET debugger/programmer or PIC-PGx programmers LCD NOKIA 0 black/white x pixels Two status LEDs Joystick with LEFT, RIGHT, UP, DOWN and CENTER action mini USB connector SD/MMC card connector MMA0 accelerometer Extension connectors for all PIC ports +(..0) battery connector PCB: FR-,. mm (0,0''), soldermask, silkscreen component print Dimensions x mm (. x.") ELECTROSTATIC WARNING: The PIC-LCD0 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:. meter USB mini cable to connect to PC. Other cables might be required in case of other programming/debugging tools. Hardware: Programmer/Debugger PIC-ICD, PIC-ICD-POCKET orother compatible programming/debugging tool.!!!warning!!! When you want to program this microcontroller with PIC-ICD, PICICD-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 Page
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 (latest version), MPLAB C Compiler or any other compatible development/programming software. Page
PROCESSOR FEATURES: PIC-LCD0 board use MCU PICFJ0 from Microchip with these features: - USB V.0 Compliant SIE - Low Speed (. Mb/s) and Full Speed ( Mb/s) - Supports Control, Interrupt, Isochronous and Bulk Transfers - Supports up to Endpoints ( bidirectional) - Supports up to Endpoints ( bidirectional) -.-Kbyte Dual Access RAM for USB - On-Chip USB Transceiver - High-Precision PLL for USB - Two External Clock modes, up to MHz - Internal khz Oscillator, Tunable Internal Oscillator, khz to MHz - Secondary Oscillator using Timer @ khz - Fail-Safe Clock Monitor: o Allows for safe shutdown if any clock stops - High-Current Sink/Source ma/ma (PORTB and PORTC) - Four Programmable External Interrupts - Four Input Change Interrupts - Two Capture/Compare/PWM (CCP) modules - Three Enhanced Capture/Compare/PWM (ECCP) modules: o One, two or four PWM outputs o Selectable polarity o Programmable dead time o Auto-shutdown and auto-restart - Two Master Synchronous Serial Port (MSSP) modules supporting -Wire SPI (all modes) and IC. Master and Slave modes - -Bit Parallel Master Port/Enhanced Parallel Slave Port with Address Lines - Dual Analog Comparators with Input Multiplexing - 0-Bit, up to -Channel Analog-to-Digital (A/D) Converter module: o Auto-acquisition capability o Conversion available during Sleep - Two Enhanced USART modules: o Supports RS-, RS- and LIN. o Auto-wake-up on Start bit o Auto-Baud Detect - Address Capability of up to Mbytes - -Bit or -Bit Interface - -Bit, -Bit and 0-Bit Addressing modes -.V Tolerant Inputs (digital-only pins) - Low-Power, High-Speed CMOS Flash Technology - C Compiler Optimized Architecture for Re-Entrant Code - Power Management Features: o Run: CPU on, peripherals on Page
o Idle: CPU off, peripherals on o Sleep: CPU off, peripherals off - Priority Levels for Interrupts - Self-Programmable under Software Control - x Single-Cycle Hardware Multiplier - Extended Watchdog Timer (WDT): o Programmable period from ms to s - Single-Supply In-Circuit Serial Programming. (ICSP ) via Two Pins - In-Circuit Debug (ICD) with Breakpoints via Two Pins - Operating Voltage Range of.0v to.v - On-Chip.V Regulator - Flash Program Memory of 0000 Erase/Write Cycles and 0-Year Data Retention Page
BLOCK DIAGRAM: Page
MEMORY MAP: Page
00nF 00nF Page CONPR-.MM RB/PGD RB/PGC RG/PMCS/CCP/PD RG/PMCS/CCP/PD RG/PMA/RX/DT RG/PMA/TX/CK RG0/PMA/ECCP/PA PICFJ0LPTQFP RB0/FLT0/INT0 RB/INT/PMA RB/INT/PMA RB/INT/PMA RB/KBI0/PMA RB/KBI/PMA0 RB/KBI/PGC RB/KBI/PGD RF/PMA/AN/CINB RF/DRF/D+ RF/AN0/CINB/CVREF RF/AN/CINA RF/#SS/COUT D/#C #SS RG RG RG RG RG 0 RF DD+ RF MIS O R BH0 C NA NA R NA C R NA R 0R/% 0 00nF UEXT C RC/T X S CK /S CL 0R/% S CK R.k/% R 0R/% C RC/RX MIS O /S DA MO S I RE /CS _UE X T R.k/% R k/% uf C _E uf/.v x EXT 0 + RST CE NTE R LE F T RB RB UP DO W N RB /P G C RB /P G D RA0/AN0 RA/AN RA/AN/VREFRA/AN/VREF+ RA/T0CKI RA/AN/CINA R 0R/% LED red RC RC/TX RC/RX RE /LE D RE /LE D RE /CS _UE X T US B _S E NS RE RE RF RF SD-CARD CP CP UP NOKIA_0_LCD UP #RES VDD SCK SDIN D/#C #SCE VOUT #RES LCD VOUT VIN <> <> RIGHT. BAT R 00k/% R 00k/% US B _S E NS DD+ (.-.0)V D BATC R 0k/% R 00k/% +V 0R/% R RIGHT http://www.olimex.com/dev COPYRIGHT(C) 00, OLIMEX Ltd. Rev. A PIC-LCD0 B A T _S E NS uf C VR MCP0-0E/MB <> <> Center push DOWN <> Common<> JOYSTICK_IT-0 DOWN <> LEFT CENTER LEFT + J uf/v C 00nF SCK MOSI D/#C #SS R k/% VBUS DD+ ID 0nF C Z Y X RA RIG HT B A T_S E NS 0uF/0V RE /LE D RE /LE D RE /CS _UE X T US B _S E NS RE RE WP CP 0 LED red +V C R k/% USB ICSP 00nF RE0/PMRD/PD RE/PMWR/PC RE/PMBE/PB RE/PMA/PC/REFO RE/PMA/PB RE/PMA/PC RE/PMA0/PB RE/PMA/ECCP/PA #SM GS GS #RES MOSI MISO/SDA SCK/SCL #SS 0 RC/TX RC/RX SCK MISO MOSI C pf C pf 0R/% k/% k/% CP k/% k/% CD/DAT/CS CMD/DI VSS VDD CLK/SCLK VSS DAT0/DO DAT/RES DAT/RES MINI_USB USB x AVDD AVSS VSS VSS VSS VSS Q /pf RC R R R0 R R WP WP SD/MMC +V RA B A T_S E NS RB RB RB /P G C RB /P G D RG 0 RG RG RG RG RS T 0 VDD VDD VDD RD0/PMD0 RD/PMD RD/PMD RD/PMD RD/PMD/SDO RD/PMD/SDI/SDA RD/PMD/SCK/SCL RD/PMD/#SS 0 MISO/SDA SCK/SCL #SS MOSI 0 0 00nF VDDCORE/VCAP VUSB OSC/CLKO/RA OSC/CLKI/RA ENVREG RC0/TOSO/TCKI RC/TOSI/ECCP/PA RC/ECCP/PA RC/SCK/SCL RC/SDI/SDA RC/SDO/COUT RC/TX/CK RC/RX/DT C0 uf/.v 0nH L WP k/% k/% R0 C0 00nF 00nF C 0 0 #MCLR U C 00nF R R R k/% C C C 0uF/0V C 00nF C 00nF X R k/% R k/% R k/% pf C Q 0MHz RST pf k/% 00nF C Y Z C R k/% R k/% + C 0 R0 k/% R 00nF R MMA0Q VSS VDD NC NC NC NC NC NC NC NC XOUT YOUT ZOUT k/% R k/% C R 0k #SM G-SEL G-SEL k/% EXT C C #SM GS GS U SCHEMATIC:
BOARD LAYOUT: POWER SUPPLY CIRCUIT: PIC-LCD-0 takes power from a battery +(.-)VDC or from the mini USB port. The board power consumption at -VDC the consumption is about 0mA. RESET CIRCUIT: PIC-LCD-0 doesn't have reset circuit. The MCU resets if you apply logical zero () to EXT.pin or to ICSP.pin. CLOCK CIRCUIT: Quartz crystal 0 MHz is connected to PICFJ0 pin (OSC/CLKI/RA) and pin 0 clock out (OSC/CLKO/RA). Page clock in
Quartz crystal. khz is connected to PICFJ0 pin (RC/TOSI/ECCP/PA) and pin 0 (RC0/TOSO/TCKI) and supplies the Timer which could function as a Real Time Clock. JUMPER DESCRIPTION: _E enables. V power supply for the PICFJ0 and all other devices. Default state is closed. INPUT/OUTPUT: Status red LED with name LED connected to PICFJ0 pin (RE/PMBE/PB). Status red LED with name LED connected to PICFJ0 pin (RE/PMA/PC/REFO). Joystick with name J and with five positions left, right, up, down and center. Accelerometer MMA0. NOKIA-LCD 0. EXTERNAL CONNECTORS DESCRIPTION: ICSP: PGD I/O PGC Input for the RST + RB/PGD RB/PGC NC Program Data. Serial data for programming. Program Clock. Clock used for transferring the serial data (output from ICSP, input MCU). Page 0
EXT: + +V RA BAT_SENS RB RB RB/PGC RB/PGD 0 RG0 RG RG RG RG RST BAT_SENS Input battery. PGD I/O PGC Input input for the MCU). Battery Power Supply. This signal tells the processor that it is powered by the Program Data. Serial data for programming. Program Clock. Clock used for transferring the serial data (output from ICSP, Page
EXT: TX RX LED LED USB_SENS through the + +V RC RC/TX RC/RX RE/LED RE/LED 0 RE/CS_UEXT USB_SENS RE RE RF RF Output Input Input Input Input Transmit Data. This is the output data line for the UART. Receive Data. This is the input data line for the UART. This signal controls LED. This signal controls LED. USB power supply. This signal tells the processor that it receives power mini USB port. Page
UEXT: + RC/TX RC/RX SCK/SCL MISO/SDA MISO MOSI SCK 0 RE/CS_UEXT TX Output Transmit Data. This is the output data line for the UART. RX Input Receive Data. This is the input data line for the UART. SCK/SCL I/O Serial (Synchronization) Clock. This is the synchronization clock for the data transfer. When the pin is used for communication through SPI, the name of the signal is SCK and when the communication is through is through IC, the name of the signal is SCL. This could be either input or output depending on whether the MCU is master or slave. MISO/SDA I/O Master In Slave Out /Serial Data. When this pin is used for communication through SPI interface, its name is MISO and if the communication is through IC interface its name is SDA. In case of SPI this could be either input (MCU is master) or output (MCU is slave). In case of IC this could be used as both input and output depending on the data flow direction. MOSI I/O Master Out Slave In. This pin could be used for communication through SPI interface, in which case this is either data output from the MCU (when it is master) or data input for the MCU (when it is slave). SCK I/O Serial (Synchronization) Clock. This is the synchronization clock for the data transfer. If this pin is used for communication through SPI, it could be either input or output depending on whether the MCU is master or slave. Page
BAT: +(.-.0)VDC Mini USB: +V D- D+ NC D- and D+ both form differential input or output depending on the direction of the data flow. Page
SD/MMC card slot: #SS MOSI VDD (+) SCK/SCL MISO/SDA + + 0 WP - - CP #SS Output Slave Select. This signal is Slave Select for the SPI interface. As the MSU is master, this signal is output from it. MOSI Output Master Out Slave In. When the access to the memory is via SPI interface, this is data output from the MCU (which is master) and input for the memory card (which is slave). SCK/SCL Output Serial (Synchronization) Clock. This is the synchronization clock for the data transfer. When the access to the memory card is via SPI, the name of the signal is SCK and when the access is via IC, the name of the signal is SCL. MISO/SDA I/O Master In Slave Out /Serial Data. When the access to the memory card is via SPI interface, this is data input for the MCU(which is master) and data output from the memory card (which is slave). If the access to the memory card is via IC this is both data input and output to the MCU. WP Input Write Protect. This signal is input for the MCU. CP Input Card Present. This signal is input for the MCU. MECHANICAL DIMENSIONS: Page
Page
AVAILABLE DEMO SOFTWARE: Test demo code (C source and HEX) GPS compass with MOD-GPS and PIC-LCD0 (C source and HEX) You could find information about PIC-LCD-0 demo software at www.olimex.com/dev. Page
ORDER CODE: PIC-LCD-0 assembled and tested (no kit, no soldering required) How to order? You can order to us directly or by any of our distributors. Check our web www.olimex.com/dev for more info. All boards produced by Olimex are RoHS compliant Revision history: REV.A REV. B - created July 00 - created January 0 added more detailed mechanical dimensions, latest revision of the scheme and page number. Page
Disclaimer: 0 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. Page