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

Similar documents
mikromedia for dspic33ep Compact development system rich with on-board peripherals for all-round multimedia development on dspic33ep512mu810 device.

mikromedia for PIC24EP Compact development system rich with on-board peripherals for all-round multimedia development on PIC24EP512GU810 device.

TO OUR VALUED CUSTOMERS

mikrommb for PIC18FJ TABLE OF CONTENTS strana

mikromedia for PIC24EP Compact development system rich with on-board peripherals for all-round multimedia development on PIC24EP512GU810 device.

A compact starter kit with your favorite microcontroller and two mikrobus sockets

CEC1702 clicker. a great idea is just a click away

mikromedia for Stellaris M3 Compact multimedia development system rich with on-board peripherals for all-round development on LM3S9B95 device

A compact starter kit with your favorite microcontroller and two mikrobus sockets

TO OUR VALUED CUSTOMERS

Development system. mikrommb for PIC32. User manual

mikromedia for STM32 Downloaded from Elcodis.com electronic components distributor

LV Programmer. User manual

user's guide to Expand development system capabilities by adding 12bit Digital to Analog Converter 12bit-DAC

MINI-M4. development board for MSP432 MINI ARM

mikromedia for dspic33 Compact development system rich with on-board peripherals for all-round multimedia development on dspic33fj256gp710a device.

SHIELD. mikromedia 5. for TIVA ARM

mikrome board for XMEGA

Copyright mikroelektronika, January All rights reserved.

mikroprog Suite for PIC programming software

A compact starter kit with your favorite microcontroller and a socket for click add-on boards. New ideas are just a click away.

user's guide to Expand development system capabilities by adding 8K EEPROM memory accessory board EEPROM

PIC32MZ. A compact starter kit with your favorite microcontroller and a mikrobus socket.

Copyright mikroelektronika, All rights reserved.

mikroboard for ARM 144-pin

mikroboard for ARM 64-pin

Breeze Board. Type B. User Manual.

mikrome board for ATmega user's guide to

MSP 432. A compact starter kit with your favorite microcontroller and a socket for click add-on boards. New ideas are just a click away.

GUI design made easy. Creating the First Project with. additional software

A compact starter kit with your favorite microcontroller and two mikrobus sockets

BIG8051. Development system. User manual

BIGdsPIC6. Development System. User manual

mikrobasic PRO for FT90x Creating the first project in

Clicker 2 for Kinetis

Breeze Board. Type A. User Manual.

SimPLC. User Manual.

A compact starter kit with your favorite microcontroller and two mikrobus sockets

AVRflash. Program. User manual

PIC-LCD-3310 development board Users Manual

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

workstation mikromedia USER'S GUIDE for PIC18FJ, dspic33, PIC24 and PIC32 Four connectors for each port Amazing Connectivity

Easy24-33 v6. Development System. User manual

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 25 th September 2013 Document Revision: 0.

2 in 1. EasyAVR4 User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World

USER'S GUIDE. Two connectors for each port Amazing Connectivity. microcontrollers supported PIC24, dspic33 and pic32

PIC-32MX development board Users Manual

3 in 1 ICD. EASYdsPIC4 User s Manual. MikroElektronika. Software and Hardware solutions for Embedded World

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features

A motorized development platform

SmartMP3. Additional Board. Manual. MikroElektronika

AKKON USB CONTROLLER BOARD

2 in 1. BigAVR User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World

A compact starter kit with a very powerful microcontroller and two mikrobus sockets

MOD-ZIGBEE-PIR sensor development board USER S MANUAL All boards produced by Olimex LTD are ROHS compliant

CONTENTS. dspicpro4 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

2.8 microlcd Intelligent PICASO Display Module

EasyPIC. connectivity USER'S GUIDE. Downloaded from Elcodis.com electronic components distributor. Four connectors for each port Amazing Connectivity

Introduction. Rev.1.2

The Information contained herein is subject to change without notice. Revisions may be issued regarding changes and/or additions.

DATASHEET 4D SYSTEMS. 4Display Shield with 2.2 Display TURNING TECHNOLOGY INTO ART. 4Display-Shield-22

Simplify code portability and maximize return on investment

LPC1788 Mio Board. User Manual. Revision 1.0 1

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

AIS CUBE 2.83 AMOLED DISPLAY. Datasheet & Application Note Rev.A July 2010 Release

ICP05 IBOARD LITE ICP05. - iboard lite

UM PCAL6524 demonstration board OM Document information

CBC-EVAL-06. EnerChip CC Real-Time Clock Evaluation Kit. Product Discontinued - Not for New Designs

EasyPIC. connectivity USER'S GUIDE. Four connectors for each port Amazing Connectivity. Supports 3.3V and 5V devices Dual Power Supply

AVR-Ready2. Additional Board. Manual. MikroElektronika

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 8 th January 2014 Document Revision: 1.

AVR-Ready1. Additional Board. Manual. MikroElektronika

MOD-MRF24J40 development board Users Manual

PIC-P67J60 development board Users Manual

ESK32-A2A Inch TFT LCD Module User Manual

PIC-P40 development board Users Manual

ESPino - Specifications

Ethernet1 Xplained Pro

USER GUIDE. Atmel maxtouch Xplained Pro. Preface

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. microusb Programming Adaptor. USB to UART Serial Bridge

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. USB to Serial UART Bridge Converter. Document Date: 5 th September 2012 Document Revision: 1.

DATASHEET 4D SYSTEMS. 4D Arduino Adaptor Shield TURNING TECHNOLOGY INTO ART. 4Display-Adaptor-Shield

BV511 Hardware Guide ByVac ByVac Revision 1.0

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

Manual of Board ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22

DATASHEET 4D SYSTEMS. uusb-pa5 uusb-pa5-ii. microusb Programming Adaptor TURNING TECHNOLOGY INTO ART. USB to UART Serial Bridge

USER GUIDE. ATWINC1500 Xplained Pro. Preface

EasyPIC5 Development System

LPC2148 DEV BOARD. User Manual.

mikromedia+ for Stellaris ARM

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

TCP/IP Base Board Setup Instructions (JGS_ETH24_BASE)

UNI-DS3. Development System. User manual

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

mikromedia+ for STM32 ARM

Freedom FRDM-KV31F Development Platform User s Guide

keyestudio Keyestudio MEGA 2560 R3 Board

Evaluation Board for CS3308. Description CS Channel. Digitally Controlled Analog Volume Control. PC or External Serial Control Input

Transcription:

mikromedia for PIC8FJ Compact development system rich with on-board peripherals for all-round multimedia development on PIC8F87J0 device.

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. Nebojsa Matic General Manager The PIC, dspic, PIC, PIC and Windows logos and product names are trademarks of Microchip Technology and Microsoft in the U.S.A. and other countries. Page

Table of Contents Introduction to mikromedia for PIC8FJ Package Contains Key Features 6 System Specification 7. USB power supply 8. Battery power supply 9. Microcontroller PIC8F87J0 0 Key microcontroller features 0. Programming the microcontroller Programming with mikrobootloader step Connecting mikromedia step Browsing for.hex file step Select.hex file step.hex file uploading step Finish upload Programing with mikroprog programmer 6 mikroprog Suite for PIC Software 7 Programing with ICD or ICD programmer 8. Crystal oscillator 0 6. microsd Card Slot 7. Touch Screen 8. Audio Module 9. USB connection 6 0. Accelerometer 8. Flash Memory 9. Pads 0. Pinout. Dimensions. mikromedia Accessories 6. What s Next? Page

Introduction to mikromedia for PIC8FJ The mikromedia for PIC8FJ is a compact development system with lots of on-board peripherals which allow development of devices with multimedia contents. The central part of the system is a 8-bit PIC8F87J0 microcontroller. The mikromedia for PIC8FJ features integrated modules such as stereo MP codec, TFT 0x0 touch screen display, accelerometer, USB connector, MMC/SD card slot and other. It comes pre-programmed with USB bootloader, but can also be programmed with external programmers, such as mikroprog or ICD/. Mikromedia is compact and slim, and perfectly fits in the palm of the hand, which makes it convenient platform for mobile devices. Page Page

Package Contains 90 www.mikroe.com Copyright 0 Mikroelektronika. All rights reserved. Mikroelektronika, Mikroelektronika logo and other Mikroelektronika trademarks are the property of Mikroelektronika. All other tradmarks are the property of their respective owners. Unauthorised copying, hiring, renting, public performance and broadcasting of this DVD prohibited. 0 Damage resistant 0 protective box mikromedia for PIC8FJ development system 0 DVD with documentation and examples 0 mikromedia for PIC8FJ 0 user s guide mikromedia for PIC8FJ schematic 06 USB cable Page

Key Features 0 0 0 0 0 06 07 08 09 0 6 Connection Pads TFT 0x0 display USB MINI-B connector LI-Polymer battery connector.mm headphone connector Power supply regulator Serial Flash memory VS0 Stereo mp coder/decoder RESET button PIC8F87J0 microcontroller Accelerometer Crystal oscillator Power indicator LED microsd Card Slot ICD/ connector mikroprog connector 0 0 Page 6

0 0 0 System Specification 06 07 power supply Over a USB cable (V DC) 09 08 power consumption ma with erased MCU (when on-board modules are inactive) 0 board dimensions 8 x 6cm (. x.6 inch) weight ~,g (0.0 lbs) 6 Page 7

. USB power supply Figure -: Powering your mikromedia board with USB cable You can apply power supply to the board using MINI-B USB cable provided with the board. On-board voltage regulators will make sure to regulate the appropriate voltage levels to each part of the board. Power LED will indicate the presence of power supply. Page 8

. Battery power supply DATA BUS R 0K R9 K7 LDB RED R6 0K -BAT E7 -BAT CN -SYS BATT CONN C0 Figure -: Connecting Li-polymer battery to mikromedia board STAT VSENSE -BAT R6 K7 R K7 Q BC86 R9 K7 LDA GREEN R7 R8 0K 0K E Q 0uF BC86 -SYS R6 K E E 0uF 0uF R 0uF K.uF U STAT PROG VSS R VBAT VDD K9 MCP78 Charging Current approx. 0mA -USB REG R Vin 0K Vout LD9080DT M DMP60UW -BAT D PMEG00ER -SYS You can also power the board using Li-Polymer battery, via on-board battery connector. On-board battery charger circuit MCP78 enables you to charge the battery over USB connection. Charging current is ~0mA and charging voltage is.v DC. Figure -: Battery charger and power management connection schematic Page 9

. Microcontroller PIC8F87J0 The mikromedia for PIC8FJ development system comes with the PIC8F87J0 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 MIPS 8-bit Core - nanowatt - 8MHz Level Stack Instruction Data Program Counter PIC8FJ Data Address Addresse Decode - USB V.0 Compliant SIE; - Two External Clock modes, up to 8 MHz; - Internal khz Oscillator, Tunable Internal Oscillator; khz to 8 MHz; - 0-Bit, up to -Channel Analog-to-Digital (A/D); - Address Capability of up to Mbytes; - 8-Bit or 6-Bit Interface; - -Bit, 6-Bit and 0-Bit Addressing modes; etc. USB Flash (Up to 8KB) PMP Timers Comparators Data/Memory Bus RAM (Up to.9kb) Data Bus ADC 0-Bit VREG EUSART CCP MSSP Page 0

. Programming the microcontroller Figure -: PIC8F87J0 Microcontroller The microcontroller can be programmed in three ways: 0 0 0 Page Via USB HID mikrobootloader Using mikroprog external programmer Using ICD/ external programmer

Programming with mikrobootloader You can program the microcontroller with bootloader which is preprogrammed into the device by default. To transfer.hex file from a PC to MCU you need bootloader software (mikrobootloader USB HID) which can be downloaded from: step Connecting mikromedia http://www.mikroe.com/eng/products/view/8/ mikromedia-for-pic8fj/ 0 0 After software is downloaded unzip it to desired location and start mikrobootloader USB HID software. Figure -: mikrobootloader USB HID 0 Connect mikromedia board with a PC via USB cable and USB icon will turn red. Page 0 Click the Connect button within s, otherwise existing microcontroller program will execute.

step Browsing for.hex file step Select.hex file 0 0 0 Figure -: Browse for HEX Figure -: Selecting HEX 0 Click on Browse for HEX button 0 0 Select.hex file via open window Click on Open button Page

step.hex file uploading 0 Figure -: Begin uploading Figure -6: Progress bar 0 0 To start.hex file uploading click on Begin uploading 0 button You can monitor.hex file uploading via progress bar Page

step Finish upload 0 Figure -7: Restarting MCU Figure -8: mikrobootloader ready for next job 0 To finish uploading click on OK button Page

Programing with mikroprog programmer The microcontroller can be programmed with mikroprog programmer and mikroprog Suite fo PIC software. The mikroprog programmer is connected to the development system via the CN6 connector, Figure -9. Figure -9: Connecting mikroprog to mikromedia mikroprog is a fast USB.0 programmer with mikroicd hardware In-Circuit Debugger. Smart engineering allows mikroprog to support PIC0, PIC, PIC6, PIC8, dspic0/, PIC and PIC devices in a single programmer. It supports over 70 microcontrollers from Microchip. Outstanding performance, easy operation and elegant design are it s key features. Page 6

mikroprog Suite for PIC Software mikroprog programmer requires special programming software called mikroprog Suite for PIC. This software is used for programming ALL of Microchip microcontroller families, including PIC0, PIC, PIC6, PIC8, dspic0/, PIC and PIC. Software has intuitive interface and SingleClick programming technology. Just by downloading the latest version of mikroprog Suite your programmer is ready to program new devices. mikroprog Suite is updated regularly, at least four times a year, so your programmer will be more and more powerful with each new release. Figure -0: Main Window of mikroprog Suite for PIC programming software Page 7

Programing with ICD or ICD programmer The microcontroller can be also programmed with ICD or ICD programmer. These programmers connect with mikromedia board via ICD CONNECTOR BOARD. Figure -: Connecting ICD or ICD programmer Figure -: Placing ICD connector In order to enable the ICD and ICD programmers to be connected to the development system, it is necessary to provide the appropriate connector such as the ICD CONNECTOR BOARD. This connector should be first soldered on the CN connector, Figure -. Then you should plug the ICD or ICD programmer into it, Figure -. Page 8

Page 9 Figure -: mikroprog and ICD /ICD programmer connection schematic X 8MHz C pf C pf E9 0uF PGD PGC MCLR# CLKO CLKI RA0/AN0 0 RA 9 RA 8 RA 7 RA RA RB0 8 RB 7 RB 6 RB RB RB RB6 RB7 7 RC0 6 RC RC RC RC RC 6 RC6 7 RC7 8 MCLR 9 OSC 9 OSC 0 core/vcap RD0 7 RD 69 RD 68 RD 67 RD 66 RD 6 RD6 6 RD7 6 RE0 RE RE 78 RE 77 ENVREG VUSB RF 8 RF/D- 7 RF/D+ 6 RF RF6 RF7 RG0 RG 6 RG 7 RG 8 RG 0 RH0 79 RH 80 RH RH RH RH RH6 0 RH7 9 RJ0 6 RJ 6 RJ 60 RJ 9 RJ 9 RJ 0 RJ6 RJ7 8 7 70 A 6 A RE 76 RE 7 RE6 7 RE7 7 U PIC8F87J0 Vcap Vcap ICD/ MCLR# PGD PGC MCLR# PGD PGC R 00 R 00 RB6 RB7 mikroprog CN6 MX 6 CN MX6

. Crystal oscillator Board is equipped with 8Mhz crystal oscillator circuit that provides external clock to the microcontroller OSC 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. U 80 79 78 77 76 7 7 7 7 7 70 69 68 67 66 6 6 6 6 6 Figure -: Crystal oscillator schematic Vcap RH RH RE RE0 RG0 6 RG 7 RG 8 RG 9 MCLR 0 RG core/vcap RF7 RF6 RF 6 RF/D+ 7 RF/D- 8 RF 9 RH7 0 RH6 Vcap E9 0uF RH RH0 RE RE RE RE RE6 RE7 RD0 RD RD RD RD RD RD6 RD7 RJ0 RJ RH RH VUSB ENVREG A A RA RA RA RA0/AN0 RA RA RC RC0 RC6 RC7 RJ RJ PIC8F87J0 6 7 8 9 0 6 7 8 9 0 RJ RJ RB0 RB RB RB RB RB RB6 OSC OSC RB7 RC RC RC RC RJ7 RJ6 60 9 8 7 6 0 9 8 7 6 CLKO CLKI X 8MHz C C pf pf Figure -: Crystal oscillator module NOTE : The use of crystal in all other schematics is implied even if it is purposely left out, because of the schematics clarity. Page 0

6. microsd Card Slot Board contains microsd card slot 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. Vcap 6 7 8 9 0 6 7 8 9 0 Vcap U E9 0uF RE RE0 MCLR core/vcap RF7 RF6 RF RF 80 RH RH RG0 RG RG RG RG RF/D+ RF/D- RH7 RH6 RH RH 79 RH0 RH 78 RE VUSB 77 RE ENVREG 76 RE A 7 6 RE A 7 7 RE6 RA 7 8 RE7 RA SD-CS# 7 9 RD0 RA 7 0 RA0/AN0 70 SD-CD# 69 RD 68 RD RA 67 RD RA 66 RD RC 6 6 RD RC0 6 7 RD6 RC6 6 8 RD7 PIC8F87J0 RC7 6 9 RJ0 RJ 6 0 RJ RJ RJ RJ RB0 RB RB RB RB RB RB6 OSC OSC RB7 RC RC RC RC RJ7 RJ6 60 9 8 7 6 0 9 8 7 6 R 6 MOSI-RC R 6 MISO-RC SCK-RC R 0K SD-CS# MISO-RC SD-CD# SD-CS# MOSI-RC SCK-RC MISO-RC SD-CD# R6 6 -MMC R0 0K -MMC 6 7 R9 0K E6 C8 FP FERRITE 0uF 00nF CN CS Din +.V SCK Dout CD MMC CARD MICRO Figure 6-: microsd Card Slot module connection schematic G Figure 6-: microsd card slot Figure 6-: Inserting microsd card Page

7. Touch Screen The development system features a TFT 0x0 display covered with a resistive touch panel. Together they form a functional unit called a touch screen. It enables data to be entered and displayed at the same time. The TFT display is capable of showing data in 6.000 diffe rent colors. Figure 7-: Touch Screen Page

Page R K -SYS LCD-RST LCD-RS LCD-CS# LCD-YU LCD-XL LCD-YD LCD-XR E 0uF R 0K R 0K LCD-RST LCD-CS# T-D6 T-D7 LCD-BLED R 00K R 00K LCD-YU LCD-XL Q BC86 R0 -SYS Q BC86 Q BC86 PMRD PMWR C 7nF C 7nF T-D-RJ T-D-RJ T-D-RJ T-D-RJ T-D0-RJ0 T-D-RJ D BAT LED-A DB7 HSYNC RD VSYNC WR/SCL 6 LED-A LED-A LED-A IM0 6 ENABLE IM 7 IM 8 IM 9 DOTCLK SDO RESET 0 RS 7 CS 8 FMARK 9 -IO 0 XR YD XL 6 SDI LED-K YU 7 DB6 6 DB 7 DB 8 DB 9 DB 0 DB DB0 DB9 DB8 DB7 DB6 6 DB 7 DB 8 DB 9 DB 0 DB DB0 -I TFT MI08QT E9 0uF LCD-RST LCD-RS LCD-CS# LCD-YU LCD-XL LCD-YD LCD-XR T-D6 T-D7 PMRD PMWR LCD-BLED T-D-RJ T-D-RJ T-D-RJ T-D-RJ T-D0-RJ0 T-D-RJ RA0/AN0 0 RA 9 RA 8 RA 7 RA RA RB0 8 RB 7 RB 6 RB RB RB RB6 RB7 7 RC0 6 RC RC RC RC RC 6 RC6 7 RC7 8 MCLR 9 OSC 9 OSC 0 core/vcap RD0 7 RD 69 RD 68 RD 67 RD 66 RD 6 RD6 6 RD7 6 RE0 RE RE 78 RE 77 ENVREG VUSB RF 8 RF/D- 7 RF/D+ 6 RF RF6 RF7 RG0 RG 6 RG 7 RG 8 RG 0 RH0 79 RH 80 RH RH RH RH RH6 0 RH7 9 RJ0 6 RJ 6 RJ 60 RJ 9 RJ 9 RJ 0 RJ6 RJ7 8 7 70 A 6 A RE 76 RE 7 RE6 7 RE7 7 U PIC8F87J0 Vcap Vcap X 8MHz C pf C pf CLKO CLKI Figure 7-: Touch Screen connection schematic

8. Audio Module Figure 8-: On-board VS0 MP codec Figure 8-: Inserting.mm headphones jack The mikromedia for PIC8FJ features MP codec audio controller VS0. This module enables audio reproduction by using stereo headphones connected to the system via a.mm connector CN. All functions of this module are controlled by the microcontroller over Serial Peripheral Interface (SPI). Page

Page Figure 8-: Audio module connection schematic MP-BSYNC MP-CS# MOSI-RC SCK-RC MISO-RC C0 pf C9 pf C 00nF R M R0 0K R 0K MP-DREQ MP-RST# C0 00nF C 00nF C 00nF C9 00nF R 0K R9 0K C 00nF C 00nF C6 00nF C7 00nF X.88MHz C uf GPIO LEFT RIGHT GBUF -.8 -.8 -.8 -.8 E 0uF E 0uF CN PHONEJACK LEFT RIGHT C6 0nF C 7nF C 0nF R7 0 R0 0 R 0 R8 0 R9 0 R 70 C7.nF R7 00K R 70 C8.nF R8 00K L R C9.uF R6 00K E0 0uF R7 0K -.8 -.8 R0 0R R 7 MCN XRESET D0 CVDD0 IOVDD0 6 CVDD 7 GPIO6 GPIO7 XDCS/BSYNC IOVDD GPIO CVDD XCS D D XTALI 8 XTALO 7 D 6 VCO DREQ 8 MCP/LN IOVDD 9 GPIO 9 GPIO 0 TX 7 RX 6 D 0 SCLK 8 SI 9 SO 0 CVDD XTEST GPIO0 GPIO GPIO 6 A0 7 AVDD0 8 RIGHT 9 A 0 A GBUF AVDD RCAP AVDD LEFT 6 A 7 LN 8 U VS0 -.8 MP-CS# MP-RST# Vin EN Vout ADJ U MIC0-ADJ E9 0uF MISO-RC MP-RST# MP-DREQ MP-CS# RA0/AN0 0 RA 9 RA 8 RA 7 RA RA RB0 8 RB 7 RB 6 RB RB RB RB6 RB7 7 RC0 6 RC RC RC RC RC 6 RC6 7 RC7 8 MCLR 9 OSC 9 OSC 0 core/vcap RD0 7 RD 69 RD 68 RD 67 RD 66 RD 6 RD6 6 RD7 6 RE0 RE RE 78 RE 77 ENVREG VUSB RF 8 RF/D- 7 RF/D+ 6 RF RF6 RF7 RG0 RG 6 RG 7 RG 8 RG 0 RH0 79 RH 80 RH RH RH RH RH6 0 RH7 9 RJ0 6 RJ 6 RJ 60 RJ 9 RJ 9 RJ 0 RJ6 RJ7 8 7 70 A 6 A RE 76 RE 7 RE6 7 RE7 7 U PIC8F87J0 Vcap Vcap MP-BSYNC SCK-RC MOSI-RC R 6 R 6

9. USB connection PIC8F87J0 microcontroller has integrated USB module, which enables you to implement USB communication functionality of your mikromedia board. Connection with target USB host is done over MINI-B USB connector which is positioned next to the battery connector. Figure 9-: Connecting USB cable Page 6

Page 7 Figure 9-: USB module connection schematic X 8MHz C pf C pf E9 0uF USBDP USBDM RA0/AN0 0 RA 9 RA 8 RA 7 RA RA RB0 8 RB 7 RB 6 RB RB RB RB6 RB7 7 RC0 6 RC RC RC RC RC 6 RC6 7 RC7 8 MCLR 9 OSC 9 OSC 0 core/vcap RD0 7 RD 69 RD 68 RD 67 RD 66 RD 6 RD6 6 RD7 6 RE0 RE RE 78 RE 77 ENVREG VUSB RF 8 RF/D- 7 RF/D+ 6 RF RF6 RF7 RG0 RG 6 RG 7 RG 8 RG 0 RH0 79 RH 80 RH RH RH RH RH6 0 RH7 9 RJ0 6 RJ 6 RJ 60 RJ 9 RJ 9 RJ 0 RJ6 RJ7 8 7 70 A 6 A RE 76 RE 7 RE6 7 RE7 7 U PIC8F87J0 Vcap Vcap CLKO CLKI USBDP USBDM -USB C8 0nF FP FERRITE VBUS D- D+ ID CN USB MINIB

0. Accelerometer On board ADXL 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 over the I C interface. Vcap 6 7 8 9 0 6 7 8 9 0 Vcap U E9 0uF RE RE0 MCLR core/vcap RF7 RF6 RF RF 80 RH RH RG0 RG RG RG RG RF/D+ RF/D- RH7 RH6 RH RH 79 RH0 RH 78 RE VUSB 77 RE ENVREG 76 RE A 7 6 RE A 7 7 RE6 RA 7 8 RE7 RA 7 9 RD0 RA 7 0 RA0/AN0 70 69 RD 68 RD RA 67 RD RA 66 RD RC SDA-RD 6 6 RD RC0 SCL-RD6 6 7 RD6 RC6 6 8 RD7 PIC8F87J0 RC7 6 9 RJ0 RJ 6 0 RJ RJ Figure 0-: Accelerometer connection schematic RJ RJ RB0 RB RB RB RB RB RB6 OSC OSC RB7 RC RC RC RC RJ7 RJ6 60 9 8 7 6 0 9 8 7 6 6 U9 Res 7 SCL CS C 00nF SDA ADD Res NC INT INT ADXL C 00nF R 0K SCL-RD6 0 9 8 SDA-RD ACC ADDRESS R 0K J SMD JUMPER Page 8 Figure 0-: Accelerometer module You can set the accelerometer address to 0 or by re-soldering the SMD jumper (zero-ohm resistor) to the appropriate position. Jumper is placed in address position by default.

. Flash Memory 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. It is connected to the microcontroller via the Serial Peripheral Interface (SPI). Vcap FLASH-CS# Vcap E9 0uF 6 7 8 9 0 6 7 8 9 0 U RH 80 RH 79 RH0 78 RE 77 RE 76 RE 7 RE 7 RE6 7 RE7 7 RD0 7 70 69 RD 68 RD 67 RD 66 RD 6 RD 6 RD6 6 RD7 6 RJ0 6 RJ RH RE RE0 RG0 RG RG RG MCLR RG core/vcap RF7 RF6 RF RF/D+ RF/D- RF RH7 RH6 RH PIC8F87J0 RH VUSB ENVREG A A RA RA RA RA0/AN0 RA RA RC RC0 RC6 RC7 RJ RJ RJ RJ RB0 RB RB RB RB RB RB6 OSC OSC RB7 RC RC RC RC RJ7 RJ6 60 9 8 7 6 0 9 8 7 6 CLKO CLKI R 6 Figure -: Flash memory module connection schematic X 8MHz MISO-RC SCK-RC R 6 C C MOSI-RC pf pf R8 0K FLASH-CS# MISO-RC R 6 U0 CS SDO WP C7 00nF 8 7 HOLD 6 SCK-RC SCK MOSI-RC SDI 6 7 8 9 0 6 7 8 9 0 MP80 Figure -: Flash memory module Page 9

. Pads RE RE RE RE RE6 RE7 -SYS HDR RE RG0 RG RG RG RG RF6 RF RF RH6 Vcap RA RA RF RF RF6 RH RH6 RB0 RB RB RB T-D0-RJ0 T-D-RJ T-D-RJ T-D-RJ T-D-RJ T-D-RJ RC0 RA SCK-RC MISO-RC MOSI-RC 6 7 8 9 0 6 7 8 9 0 SCK SDI SDO 6 E9 MX6 0uF RH RA-VREF-.8 RA RA RA RC RC0 TX-RC6 RX-RC7 T-D-RJ T-D-RJ SDA-RD SCL-RD6 T-D0-RJ0 T-D-RJ HDR RST 80 79 78 77 76 7 7 7 7 7 70 69 68 67 66 6 6 6 6 6 L R RC RG0 RG RG RA RE RE RE RE RE RE6 RE7 RB6 RB7 RG RG RX-RC7 TX-RC6 SCL-RD6 SDA-RD 6 7 8 9 0 6 7 8 9 0 RX TX SCL SDO 6 Vcap 6 7 8 9 0 6 7 8 9 0 U RH RH RE RE0 RG0 RG RG RG MCLR RG RH RH0 RE RE RE RE RE6 RE7 RD0 RD RD RD RD RD RD6 RD7 RJ0 RJ core/vcap RF7 RF6 RF RF/D+ RF/D- RF RH7 RH6 RH PIC8F87J0 RH VUSB ENVREG A A RA RA RA RA0/AN0 RA RA RC RC0 RC6 RC7 RJ RJ RJ RJ RB0 RB RB RB RB RB RB6 OSC OSC RB7 RC RC RC RC RJ7 RJ6 60 9 8 7 6 0 9 8 7 6 T-D-RJ T-D-RJ RB0 RB RB RB PGC PGD R 6 MOSI-RC MISO-RC R 6 SCK-RC MX6 6 7 8 9 0 6 7 8 9 0 Pads HDR Figure -: Pads connecting schematic Pads HDR Most microcontroller pins are available for further connectivity via two x6 rows of connection pads on both sides of the mikromedia board. They are designed to match additional shields, such as Battery Boost shield, Gaming, PROTO shield and others. Pads with underlined silkscreen markings have multiple functions (see the complete schematic for more information). Page 0

. Pinout System power supply Reference Ground AN/VREF- AN/CINA AN7/CINB AN0/ CINB/CVREF AN/CINA AN/PC/CINC AN/PC/CINC FLT0/INT0 INT INT INT ALE OE WRL WRH BA0 CE TOSO/TCKI T0CKI SCL/SCK SDA/SDI COUT/SDO.V power supply Reference Ground Pin functions VSYS RST Reset pin Reference Ground RA L left ch. RA R right ch. audio out RF RC ECCP/TOSI/PA RF RG0 ECCP/PA RF6 RG CCP/PD RH RG CCP/PD RH6 RA AN/VREF+ RB0 RE AD9/PC RB RE AD0/PB RB RE AD/PC/REFO RB RE AD/PB RJ0 RE AD/PC RJ RE6 AD/PB RJ RE7 AD/PA RJ RB6 KBI/PGC RJ RB7 KBI/PGD RJ RG RX/DT RC0 RG TX/CK RA RC7 RX/DT RC RC6 TX/CK RC RD6 AD6/SCL RC RD AD/SDA.V.V.V power supply Reference Ground Pin functions Programing lines Analog Lines Interrupt Lines SPI Lines IC Lines UART lines PWM lines Comparator lines Page

. Dimensions 80.90 mm (.8 ) 7.0 mm (.87 ) 69.8 mm (.7 ).08 mm (0.0 ) 60.6 mm (.8 ).7 mm (.8 ) 0.7 mm (.98 ) 6. mm (. ). mm (0.7 ). mm (0.0 ).77 mm (0. ) Page

. 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. We call them mikromedia shields. But we also offer other accessories, such as Li-polymer battery, stacking headers, wire jumpers and more. 0 Connect shield 0 BatteryBoost shield 0 PROTO shield 0 Gaming shield 0 Li-Polimer battery 06 Wire Jumpers 07 Stacking headers Page

What s next? You have now completed the journey through each and every feature of mikromedia for PIC8FJ board. You got to know it s modules and organization. Now you are ready to start using your new board. We are suggesting several steps which are probably the best way to begin. We invite you to join the users of mikromedia brand. You will find very useful projects and tutorials and can get help from a large ecosystem of users. Welcome! Compiler You still don t have an appropriate compiler? Locate PIC compiler that suits you best on the Product DVD provided with the package: DVD://download/eng/software/compilers/ Choose between mikroc, mikrobasic and mikropascal and download fully functional demo version, so you can begin building your first applications. Projects Once you have chosen your compiler, and since you already got the board, you are ready to start writing your first projects. Visual TFT software for rapid development of graphical user interfaces enables you to quickly create 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. Visual TFT is also available on the Product DVD. Page

DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. 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. Any modification of this manual is prohibited. MikroElektronika provides this manual as is without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or conditions of merchantability or fitness for a particular purpose. MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall MikroElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages for loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at any time without prior notice, if necessary. HIGH RISK ACTIVITIES The products of MikroElektronika are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or environmental damage ( High Risk Activities ). MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities. TRADEMARKS The MikroElektronika name and logo, the MikroElektronika logo, mikroc, mikrobasic, mikropascal, mikroprog, EasyPIC, EasyPIC PRO, Visual TFT and mikromedia are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies. All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only used for identification or explanation and to the owners benefit, with no intent to infringe. Copyright MikroElektronika, 0, All Rights Reserved. Page

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/esupport If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com mikromedia for PIC8FJ User Manual ver..00 0 00000 09