Advertisement

Quick Links

mikromedia
for PIC18FJ
®
Compact development system rich with on-board peripherals for all-round
multimedia development on PIC18F87J50 device.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the mikromedia PIC18FJ and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for mikroElektronika mikromedia PIC18FJ

  • Page 1 mikromedia ™ for PIC18FJ ® Compact development system rich with on-board peripherals for all-round multimedia development on PIC18F87J50 device.
  • Page 2 TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and for having confidence in MikroElektronika. The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs.
  • Page 3: Table Of Contents

    Table of Contents Introduction to mikromedia for PIC18FJ Programing with mikroProg programmer ™ ® ™ Package Contains mikroProg Suite for PIC Software ™ ® Key Features Programing with ICD2 or ICD3 programmer ® ® System Specification 4. Reset Button 1. Power supply 5.
  • Page 4: Introduction To Mikromedia ™ For Pic18Fj

    Introduction to mikromedia for PIC18FJ ™ ® mikromedia for PIC18FJ is a compact ™ ® development system with lots of on-board peripherals which allow development devices with multimedia contents. The central part of the system is a 8-bit PIC18F87J50 microcontroller. The mikromedia for PIC18FJ ™...
  • Page 5: Package Contains

    Package Contains Damage resistant mikromedia for PIC18FJ Two 1x26 male headers ™ ® protective box development system and one 1x5 header Reset pin 5V power supply VSYS Reference Ground Reference Ground left ch. audio out right ch. Analog Lines PWM lines Interrupt Lines Digital I/O lines Digital I/O lines...
  • Page 6: Key Features

    Key Features Connection Pads TFT 320x240 display USB MINI-B connector CHARGE indication LED LI-Polymer battery connector 3.5mm headphone connector Power supply regulator Serial Flash memory RESET button VS1053 Stereo mp3 coder/decoder PIC18F87J50 microcontroller Accelerometer Crystal oscillator Power indication LED microSD Card Slot ICD2/3 connector mikroProg connector Page 6...
  • Page 7: System Specification

    System Specification power supply Via USB cable (5V DC) power consumption 52 mA with erased MCU (when back-light is ON) board dimensions 81.2 x 60.5 mm (3.19 x 2.38 inch) weight ~45.5g (0.10lbs) class B product Product complies with the Class B limit of EN 55022 and can be used in the domestic, residential, commercial and industrial environments.
  • Page 8: Power Supply

    1. Power supply USB power supply You can apply power supply to the board using MINI-B USB cable provided with the board. On-board voltage regulators provide the appropriate voltage levels to each component on the board. Power LED (GREEN) will indicate the presence of power supply.
  • Page 9 VCC-SYS VCC-USB VCC-USB HDR1 HDR2 VCC-BAT FERRITE VBUS PMEG3010ER DMP2160UW BATT CONN 10nF USB MINIB VCC-BAT VCC-SYS VCC-3.3 VCC-1.8 VCC-BAT VREF-1.8 VCC-1.8 VCC-1.8 2.2uF 10uF VSENSE FERRITE Vout 220K 10uF MIC5250-ADJ 100K VCC-3.3 VCC-3.3 VCC-3.3 M1X26 M1X26 VCC-3.3 VCC-3.3 VCC-3.3 VCC-BAT VCC-SYS E7 10uF...
  • Page 10: Pic18F87J50 Microcontroller

    2. PIC18F87J50 microcontroller The mikromedia for PIC18FJ development system comes with ™ ® PIC18F87J50 microcontroller. This high-performance 8-bit microcontroller with its integrated modules and in combination with other on-board modules is ideal for multimedia applications. Key microcontroller features - Up to 12 MIPS Operation; - 8-bit architecture;...
  • Page 11: Programming The Microcontroller

    3. Programming the microcontroller Figure 3-1: PIC18F87J50 microcontroller The microcontroller can be programmed in three ways: Via USB HID mikroBootloader Using mikroProg external programmer ™ Using ICD2/3 external programmer ® Page 11...
  • Page 12: Programming With Mikrobootloader

    Programming with mikroBootloader step 1 – Connecting mikromedia Microcontroller is preprogrammed with USB HID Bootloader, which can be used to upload new device firmware. To transfer firmware .HEX file from a PC to MCU you need to use mikroBootloader USB HID application, which can be downloaded from: http://www.mikroe.com/downloads/get/1682/ mikrobootloader_pic18f87j50_v210.zip...
  • Page 13: Step 2 - Browsing For .Hex File

    step 2 – Browsing for .HEX file step 3 – Selecting .HEX file Figure 3-3: Browse for HEX Figure 3-4: Selecting HEX Click the Browse for HEX button and from a Select .HEX file using open dialog window. pop-up window (Figure 3.4) choose the .HEX file Click the Open button.
  • Page 14: Step 4 - Uploading .Hex File

    step 4 – Uploading .HEX file Figure 3-5: Begin uploading Figure 3-6: Progress bar In order to upload .HEX file click the .HEX file uploading can be monitored via progress bar. Begin uploading button. Page 14...
  • Page 15: Step 5 - Finish Upload

    step 5 – Finish upload Figure 3-7: Restarting MCU Figure 3-8: mikroBootloader ready for next job Click the button after uploading is finished. The board will be automatically reset and after 5 seconds your new program will be executed. Page 15...
  • Page 16: Programing With Mikroprog Programmer

    Programing with mikroProg ™ programmer mikroProg The microcontroller can be programmed with ™ programmer mikroProg Suite for PIC software. The ™ ® mikroProg programmer is connected to the development ™ system via the CN6 connector, Figure 3-9. mikroProg is a fast ™...
  • Page 17: Mikroprog Suite ™ For Pic ® Software

    mikroProg Suite for PIC Software ™ ® mikroProg programmer requires ™ special programming software called mikroProg Suite for PIC . This ™ ® software is used for programming Microchip microcontroller ® families, including PIC10 PIC12 ® ® PIC16 , PIC18 , dsPIC30/33 , PIC24 ®...
  • Page 18: Programing With Icd2

    Programing with ICD2 or ICD3 programmer ® ® The microcontroller can be also ICD2 or ICD3 programmed with ® ® programmer. These programmers connects with mikromedia board ICD2 CONNECTOR BOARD. Figure 3-11: Connecting ICD2 ® or ICD3 programmer ® In order to enable the ICD2 and ICD3 programmers to be connected to the development system, it is ®...
  • Page 19 VCC-3.3 MCLR# VCC-3.3 PGD1 PGC1 R15 100 M1X6 R14 100 VCC-3.3 PGC1 PGD1 MCLR# M1X5 22pF MCLR# PGC1 MCLR PIC18F87J50 CLKO Vcap OSC2 22pF CLKI VCCcore/Vcap OSC1 PGD1 RF4/D+ RF3/D- Vcap 10uF Figure 3-12: mikroProg and ICD2 /ICD3 programmer connection schematic ™...
  • Page 20: Reset Button

    4. Reset Button Board is equipped with reset button, which is located at the top of the front side (Figure 4-2). If you want to reset the circuit, press the reset button. It will generate low voltage level on microcontroller reset pin (input). In addition, a reset can be externally provided through pin 27 on side headers (Figure 4-3).
  • Page 21 VCC-3.3 VCC-3.3 100nF HDR2 R7 1K MCLR PIC18F87J50 Vcap OSC2 VCCcore/Vcap OSC1 10uF RF4/D+ RF3/D- VCC-3.3 M1X26 Figure 4-3: Reset circuit schematic Page 21...
  • Page 22: Crystal Oscillator

    5. Crystal oscillator Figure 5-1: Crystal oscillator module Board is equipped with 8MHz crystal oscillator (X1) circuit that provides external clock waveform to the microcontroller CLKO and CLKI pins. This base frequency is suitable for further clock multipliers and ideal for generation of necessary USB clock, which ensures proper operation of bootloader and your custom USB-based applications.
  • Page 23 VCC-3.3 22pF MCLR PIC18F87J50 CLKO Vcap OSC2 22pF CLKI VCCcore/Vcap OSC1 RF4/D+ RF3/D- Vcap 10uF Figure 5-2: Crystal oscillator schematic Page 23...
  • Page 24: Microsd Card Slot

    6. microSD Card Slot Figure 6-1: microSD card slot microSD card slot Board contains for using microSD cards in your projects. It enables you to store large amounts of data externally, thus saving microcontroller memory. microSD cards use Serial Peripheral Interface (SPI) for communication with the microcontroller.
  • Page 25 VCC-MMC VCC-3.3 SD-CS# MISO1-RC4 SD-CD# VCC-3.3 VCC-MMC FERRITE E6 10uF 100nF MCLR CN4 MMC CARD MICRO PIC18F87J50 Vcap OSC2 VCCcore/Vcap OSC1 SD-CS# MOSI1-RC5 R4 56 MOSI1-RC5 +3.3V MISO1-RC4 SCK1-RC3 RF4/D+ SCK1-RC3 RF3/D- MISO1-RC4 Dout R5 56 SD-CD# Vcap 10uF Figure 6-2: microSD Card Slot module connection schematic Page 25...
  • Page 26: Touch Screen

    7. Touch Screen The development system features a 320x240 display covered with a resistive touch panel. Together they form a functional touch screen. unit called a It enables data to be entered and displayed at the same time. The TFT display is capable of showing 262.144 diffe rent colors.
  • Page 27 TFT1 VCC-SYS VCC-3.3 L ED- K VCC-SYS BC846 L ED- A1 L ED- A2 L ED- A3 L ED- A4 LCD-BLED BAT43 BC846 VCC-3.3 LCD-RST RESET VSYNC HSYNC DOTCL K BC846 T-D7 DB17 T-D6 DB16 PMWR T-D2-RJ2 T-D5-RJ5 DB15 T-D3-RJ3 T-D4-RJ4 DB14 T-D3-RJ3...
  • Page 28: Audio Module

    8. Audio Module The mikromedia for PIC18FJ features stereo audio codec VS1053. This ™ ® module enables audio reproduction by using stereo headphones connected 3.5mm to the system via a connector CN2. All functions of this module are controlled by the microcontroller over Serial Peripheral Interface (SPI). Figure 8-1: On-board VS1053 MP3 codec Figure 8-2: 3.5mm...
  • Page 29 VCC-3.3 VCC-3.3 VCC-1.8 VCC-3.3 10uF 100K 3.3nF MP3-CS# MP3-RST# 10uF 3.3nF 100K MP3-BSYNC XDCS/BSYNC IOVDD1 AGND3 LEFT LEFT LEFT DGND1 AVDD2 XTALO RCAP RIGHT MP3-CS# VS1053 XTALI AVDD1 GBUF IOVDD2 GBUF MP3-BSYNC DGND2 AGND2 PHONEJACK DGND3 AGND1 MCLR PIC18F87J50 RIGHT DGND4 RIGHT MP3-CS#...
  • Page 30: Usb Connection

    9. USB connection Figure 9-1: Connecting USB cable to MINI-B USB connector PIC18F87J50 microcontroller has integrated USB module, which enables you to implement USB communication functionality to your mikromedia board. Connection with target USB host is done over MINI-B USB connector which is positioned next to the battery connector. Page 30...
  • Page 31 VCC-3.3 22pF MCLR PIC18F87J50 Vcap CLKO OSC2 22pF CLKI VCCcore/Vcap OSC1 USBDP RF4/D+ USBDM RF3/D- Vcap USBDP USBDM VCC-USB VBUS FERRITE 10uF 10nF USB MINIB Figure 9-2: USB module connection schematic Page 31...
  • Page 32: Accelerometer

    10. Accelerometer Figure 10-1: Accelerometer module ADXL345 On board accelerometer is used to measure acceleration in three axis: x, y and z. The accelerometer function is defined by the user in the program loaded into the microcontroller. Communication between the accelerometer and the microcontroller is performed via the interface.
  • Page 33 VCC-3.3 VCC-3.3 VCC-3.3 SCL2-RD6 SDA2-RD5 ACC ADDRESS VCC-3.3 INT2 INT1 ADXL345 SMD JUMPER VCC-3.3 VCC-3.3 100nF 100nF MCLR PIC18F87J50 Vcap OSC2 VCCcore/Vcap OSC1 RF4/D+ RF3/D- Vcap 10uF Figure 10-2: Accelerometer connection schematic Page 33...
  • Page 34: Flash Memory

    11. Flash Memory Figure 11-1: Flash memory module Since multimedia applications are getting increasingly demanding, it is necessary to provide additional memory space to be used for storing more data. The flash memory module enables the microcontroller to use additional 8Mbit flash memory.
  • Page 35 VCC-3.3 22pF MCLR PIC18F87J50 CLKO Vcap OSC2 22pF CLKI VCCcore/Vcap OSC1 FLASH-CS# VCC-3.3 R4 56 MOSI1-RC5 VCC-3.3 MISO1-RC4 RF4/D+ VCC-3.3 SCK1-RC3 RF3/D- R5 56 100nF FLASH-CS# MISO1-RC4 HOLD Vcap SCK1-RC3 R3 56 MOSI1-RC5 10uF M25P80 Figure 11-2: Flash memory module connection schematic Page 35...
  • Page 36: Pads

    12. Pads VCC-3.3 VCC-SYS HDR2 HDR1 T-D2-RJ2 T-D3-RJ3 PGC1/RB6 PIC18F87J50 MCLR T-D0-RJ0 Vcap T-D1-RJ1 OSC2 T-D2-RJ2 VCCcore/Vcap OSC1 T-D3-RJ3 PGD1/RB7 T-D4-RJ4 MOSI1-RC5 T-D5-RJ5 MISO1-RC4 RF4/D+ SCK1-RC3 RX1-RC7 RF3/D- TX1-RC6 SCK1-RC3 SCL2-RD6 MISO1-RC4 SDA2-RD5 MOSI1-RC5 VCC-3.3 Vcap VCC-3.3 M1X26 M1X26 10uF Pads HDR1 Pads HDR2 Figure 12-1: Connecting pads schematic...
  • Page 37: Pinout

    13. Pinout Reset pin 5V power supply VSYS Reference Ground Reference Ground left ch. audio out right ch. Analog Lines PWM lines Interrupt Lines Digital I/O lines Digital I/O lines UART SCK2 SCL2 SPI2 SDI2 SDA2 SDO2 3.3V power supply 3.3V 3.3V power supply 3.3V...
  • Page 38: Dimensions

    14. Dimensions 81.15 3195 73.66 2900 63.5 2500 2.54 2.67 Legend 57.6 2268 69.3 2728 Page 38...
  • Page 39: Mikromedia Accessories

    15. Mikromedia accessories We have prepared a set of extension boards pin-compatible with your mikromedia, which enable you to easily expand your board basic functionality. call them mikromedia shields. But we also offer other accessories, such as Li-polymer battery, stacking headers, wire jumpers and more.
  • Page 40: What's Next

    ™ your GUI. It will automatically create necessary code which is compatible with mikroElektronika compilers. Visual TFT ™ is rich with examples, which are an excellent starting point for your future projects. Just load the example, read well commented code, and see how it works on hardware.
  • Page 41 Notes: Page 41...
  • Page 42 Notes: Page 42...
  • Page 43 No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local use, but not for distribution.
  • Page 44 If you want to learn more about our products, please visit our website at www.mikroe.com If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/support If you have any questions, comments or business proposals, mikromedia for PIC18FJ Manual ver.
  • Page 45 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: MikroElektronika MIKROE-607...

Table of Contents