Sunteți pe pagina 1din 34

user's guide

to

mikrome ia
board for ARM
Compact development system rich with on-board peripherals for all-round multimedia development on LPC2148 ARM7 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 Microchip, Atmel, NXP and CYPRESS name, logo and products names are trademarks of Microchip, Atmel, NXP and CYPRESS Inc. in the U.S.A and other countries.

Table of Contents
Introduction to mikromedia for ARM Related material Key Features System Specification 1. USB power supply 2. Battery power supply 3. Programing with In-System Programer Settings Flash magic software step 1 Choose Device step 2 Choose COM port step 3 Select baud rate step 4 Specify oscillator freq. step 5 Browse for .hex file step 6 Erase Flash step 7 Start Programming 14 15 15 16 16 17 18 4 5 6 7 8 9 10 12 step 8 Finished! 4. LPC2148 Microcontroller Key microcontroller features 5. Programing with JTAG programmer/debugger 6. microSD Card Slot 7. Accelerometer 8. Touch Screen 9. Audio Module 10. USB connection 11. Pads 12. Pinout 13. Dimensions 18 19 19 20 22 23 24 26 28 30 31 32

Page 3

ARM Introduction to mikromedia for


The mikromedia for ARM 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 32-bit ARM7 microcontroller LPC2148. The mikromedia for ARM features integrated modules such as stereo MP3 codec, TFT 320x240 touch screen display, accelerometer, two USB connectors: one for communication with the microcontroller one and for ISP programming, MMC/SD card slot and other. Mikromedia is compact and slim, and perfectly fits in the palm of the hand, which makes it convenient platform for mobile devices.

Page 4

Related material

01

Damage resistant protective box

02

mikromedia for ARM development system

03

DVD with documentation and examples

schematic

Compact developm ent system rich with on-board periphera all-round multimed ls for ia development on LPC2148 microcon troller

board for ARM

mikrome ia

04

mikromedia for ARM users guide

05

mikromedia for ARM schematic


Page 5

06

USB cable

Key Features
01 Connection Pads 02 TFT 320x240 display 03 USB MINI-B programmer connector 04 LI-Polymer battery connector 05 USB MINI-B device connector 06 3.5mm headphone connector 07 Power supply regulator 08 FTDI USB Uart controller 09 VS1053 Stereo mp3 coder/decoder 10 Power indicator LEDs 11 Accelerometer 12 LPC2148 microcontroller 13 RESET button 14 MicroSD Card Slot 15 JTAG connector 01

02

Page 6

03

04

05 06

System Specification
power supply Over a USB cable (5V DC)

07

08 09 11 12

power consumption 50mA in idle state (when on-board modules are off) board dimensions 8 x 6cm (3.14 x 2.36 inch)

10

13

weight ~50g (0.11 lbs) 14 15


Page 7

1. USB power supply

You can provide power supply to the board using either of the two miniUSB connectors. On board voltage regulator will make sure to generate the appropriate voltage levels to each part of the board. Power LED will indicate the presence of power supply.
Page 8

Figure 1-1: Powering your mikromedia board with USB cables

VCC-BAT
HDR3 M1X2

VCC-5V

VCC-BAT

C35 2.2uF

E3 10uF

Figure 2-2: Li-polymer battery connected to mikromedia

VCC-BAT D3

VCC-5V

LD3 VCC-5V R52 4K7


STAT

U6

MBRS140T3
PROG

for Charging Current approx. 250mA

2. Battery power supply


Development system can be provided with power supply using Li-Polymer battery, via on-board battery connector. On-board battery charger circuit MCP73832 enables you to charge the battery over USB power supply. Charging current value is ~250mA and charging voltage is 4.2V DC.
Page 9

STAT VSS VBAT

VDD

R53 3K9

MCP73832

Figure 2-1: Battery charger connecting schematic

3. Programming with In-System Programmer


The microcontroller can be programmed with In-System Programmer supported in the hardware itself. Programmer USB connector is connected to the microcontroller through USB-UART connection.

Figure 3-1: Connecting USB cable to programming connector

note

You have to download and install drivers for your USB-UART connection before programming. Drivers can be found on FTDI website: http://www.ftdichip.com/FTDrivers.htm

Page 10

VCC-FTDI

VCC-FTDI

VCC-3.3

C19 U2 P0.1 100nF


OSCO OSCI TEST AGND NC CBUS0 CBUS1 GND VCC RESET# GND 3V3OUT USBDM USBDP

E2 10uF VCC-5V

C21 100nF

VREF XTAL1 XTAL2 P1.28 GNDA P0.23 RESET P1.29 P0.20 P0.19 P0.18 P1.30 VCC3 GND

P1.27

VBAT

P0.0 P0.14 MCU-RST# VCC3

R23 R24 R25

100 100 100

TXD RXD RTS# VCCIO DTR# RI# GND NC DSR# DCD# CTS# CBUS4 CBUS2 CBUS3

P0.22 RTXC1 P1.19 RTXC2 GND VCCA P1.18 P0.25 D+ DP1.17 P0.28 P0.29 P0.30
P1.16

P0.21

LPC2148

GND P0.0 P1.31 P0.1 P0.2 VCC3 P1.26 GND P0.3 P0.4 P1.25 P0.5 P0.6 P0.7 P1.24

P0.31

P0.17 P0.16 P0.15 P1.21 VCC3 GND P0.14 P1.22 P0.13 P0.12 P0.11 P1.23 P0.10 P0.9 P0.8

P1.20

VCC-3.3
R26

100

R11 100

LD1 VCC-3.3 RED

D2 MBRS340T3

VCC-FTDI FP1 FERRITE


CN3

GND 5 USB-ID ID 4 USBDP D+ 3 USBDM D- 2 VCC-USB VBUS 1

C18 C20 100nF

USB MINI-B

FT232RL

100nF

Figure 3-1: ISP programming lines are connected with USB-UART

Page 11

Settings
Device Manager on your PC contains informations on which COM port is used for USB communication with the mikromedia board for ARM. In this case the COM4 port is used. 04 01 Right click on USB port, then on properties in the drop-down list.

04

02 05 03

01 02 03

From the drop menu select COM port on your PC. Set Baud Rate to 19200. Enter 12 in the Oscillator field (if you use different oscillator enter its value in MHz instead). 05 06

06 Select the Port Settings tab from pop-up window. Click on the Advanced... button.

Page 12

07

07

In pop-up window uncheck the Serial Enumerator option and click OK.

note

Steps 4 7 should be adjusted only once.


Page 13

Flash Magic software

step 1 Choose Device

01

Figure 3-2: Flash Magic window after installation Programming is done using specialized programming software called Flash Magic, which is available for download from the mikromedia for ARM webpage.
Page 14

Figure 3-3: Selecting target device 01 Click on Select device button and browse for LPC2148 microcontroller from ARM7 family of microcontrollers.

step 2 Choose COM port

step 3 Select baud rate

01

Figure 3-4: Selecting COM Port

Figure 3-5: Selecting baudrate

01 From the dropdown list choose the COM Port assigned to your mikromedia board after connecting it to your PC over USB cable.
Page 15

01 From the dropdown list select 19200 bps baudrate which is the correct UART communication speed for mikromedia.

step 4 Specify oscillator freq.

step 5 Browse for .hex file

01 01 01

Figure 3-6: Specifying oscillator frequency

Figure 3-7: Browsing for HEX file

01 Specify the value of on-board crystal oscillator 12.000 MHz

01 Click on Browse and find the HEX file you want to program your mikromedia with. The path to the target file will be shown in the edit field.
Page 16

step 6 Erase Flash

01

02

03 01

Figure 3-8: Erasing Flash memory before programming 01 Click on the Erase Flash icon in the main toolbar. 02 Tick the first checkbox to specify erasing the entire flash. 03 Click on Erase button to start erasing flash.

Figure 3-8: Write program

01 Click OK when Erasing is completed.

Page 17

step 7 Start Programming

step 8 Finished!

01 01

Figure 3-9: Program uploading

Figure 3-10: Uploading is finished

01 We are now ready to program the microcontroller. Click on Start button to start uploading your program.
Page 18

01 When everything is completed, you will receive a message in the status bar.

4 package. kB of on-chi p ash mem ory. s high-speed 60 MHz op for The mikromedia er ARM development system comes with ation. gramming LPC2148 microcontroller. This high-performance 32-bit the (ISP/IAP) via on-chi ms anmicrocontroller with its p boot loader softwar in combination integrated modules and d programm e. ing of 256 by te in 1 m for with other on-board modulessis ideals. multimedia applications. faces oer re al-time debu gging with th g of instruct eon-chip ion executio n. er with 2 kB of Keyendpoint RAM. microcontroller features f on-chip RA M accessible to USB 8) 10-bit AD 32-bit architecture; by DMA). Cs provide a total hannel. - 512KB of programof 6/14 analog inputs memory; , put (LPC21-4 32KB of RAM memory; 2/44/46/48 only). th four capt- 64 pins; ure and four compare - 128 bit wide interfacechannels each), enables
- USB 2.0 Full Speed compliant Device - 2-UART, 2-SPI, 2-I2C; etc.

4. LPC2148 Microcontroller er in
a tiny LQFP6

2 kB to 512

LPC2148
FAST GENE RAL PURPOSE I/O ARM7 Loca
Internal SR AM controller 8 kB/16 kB / 32 kB SRAM

TEST DEBU G INTERFACE ARM7TDMI-S AHB BRIDGE

system clock USB clock

PLL0 PLL1

SYSTEM FUNCTION S

l Bus

VECTORED INTERR CONTROLLER UPT (Advanced AMBA AHB High-perfo rm AHB TO VP B BRIDGE VPB DIVIDER ance BUS)

Internal FLAS H controller


32 kB/64 kB /128 kB/ 256 kB/512 kB FLASH

8 kB RAM SHARED WI TH USB DMA(3 )

AHB DECODE

dent power high speed 60 MHz operation and 32 kHz clock input.

EXTERNAL INTERRUPT GENERAL PURPOSE I/O

CAPTURE/ COMPARE (W/EXTERN AL CLOCK) TIMER 0/TIM ER 1

DATA BUS VPB (VLSI pe rip


A/D CONVERTERS 0 AND 1(2) PWM0 SYSTEM CONTROL

heral bus)
USB 2.0 FU LL-SPEED DEVICE CONT ROLLER WITH DMA(3 )

D/A CONVERTER

WATCHDOG TIMER

SPI AND SS P I2C-BUS SE SERIAL RIAL INTERFACES INTERFACES 0 AN D1 REAL-TIME UART0/ CLOCK UART1

Page 19

5. Programing with JTAG programmer/debugger

Figure 5-1: Enabling JTAG using jumper Besides In-System programming mikromedia for ARM supports JTAG programming and debugging interface. In order to use it, you have to solder 2x10 header to the JTAG connection pads on the back side of your mikromedia board. It is also necessary to solder and set the JTAG jumper, located right next to the JTAG connector (Figure 5-1), in order to enable this type of programming.
Page 20

P1.27 P1.31 P1.28 P1.29 P1.26 P1.30

R6 R1 R2 R4

R3

CN4

P1.31 P1.28 P1.30 P1.29 P1.26 P1.27 MCU-RST#

M2X10

Figure 5-2: JTAG interface schematics


Page 21

6. microSD Card Slot


Board contains microSD card slot for using microSD cards in your projects. It enables you to store large ammounts of data externally, thus saving microcontroller memory. microSD cards use Serial Peripheral Interface (SPI) for communication with the microcontroller.

Figure 6-2: microSD card

P1.24 P0.6 R33 27 P0.4 P0.5 R32 27 R34 27

CN5 MICROSD CARD

FERRITE FP2

Figure 6-1: Inserting microSD card


Page 22

CD

7. Accelerometer
The accelerometer is used to measure acceleration in three axis: x- y- and z-. The acceleromers function is defined by the user in the program loaded into the microcontroller. Communication between the accelerometer and the microcontroller is performed over the I2C interface.
VCC-3.3 VCC-3.3

R16 10K
VCC-3.3

R15 10K
P0.2

U3

VCC GND NC GND GND VCC

SDI SDO NC NC INT2 INT1


ADXL345

P0.3

VCC-3.3

VCC-3.3

C11 100nF

CS

ADXL345

Figure 7-1: Accelerometer module

SCLK

C12 100nF

Figure 7-2: Accelerometer connecting schematic

Page 23

8. Touch Screen
The development system features a TFT 320x240 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 262.000 different colors.

01

02

Figure 8-1: Touch Screen There are two SMD jumpers, or zeroohm resistors on board for selection of TFT communication mode. By soldering the resistor in the desired position you can select following TFT operating modes: 01 16-bit interface mode 02 8-bit interface mode

Page 24

P0.13

D4

VCC-5V

R36 1K

Q4 BC846

VCC-5V

BAT43

Q2 BC846 Q3 BC846

R37 12
P0.11

IM0
VCC-3.3

GND GND GND GND GND GND

P0.22 RTCX1 P1.19 RTCX2 GND VCCA P1.18 P0.25 D+ DP1.17 P0.28 P0.29 P0.30
P1.16

P0.21

VREF XTAL1 XTAL2 P1.28 GNDA P0.23 RESET P1.29 P0.20 P0.19 P0.18 P1.30 VCC3 GND

P1.27

VBAT

R19 10K

LPC2148

GND P0.0 P1.31 P0.1 P0.2 VCC3 P1.26 GND P0.3 P0.4 P1.25 P0.5 P0.6 P0.7 P1.24

P0.31

P0.17 P0.16 P0.15 P1.21 VCC3 GND P0.14 P1.22 P0.13 P0.12 P0.11 P1.23 P0.10 P0.9 P0.8

P1.20

VCC-3.3

P1.23 P1.22 P1.21 P1.20 P1.19 P1.18 P1.17 P1.16

VCC3

R20 10K

VCC-3.3

R28 10K R27 10K

GND

P0.11

P0.10

TFT MODE
VCC-3.3

R48 300K

P0.22 P0.21 P0.20 P0.19 P0.18 P0.17 P0.16 P0.15 GND

P0.25

IM0

R7 NOT MOUNTED

(8-bit)
R47 300K

C37 100nF
P0.28

P0.9 P0.12 P0.8 P0.10

GND

R54 0

(16-bit)

VCC-3.3

GND

C36 100nF

P0.29 P0.30 P0.25 P0.28

MI0283QT2

Figure 8-2: Touch Screen connection schematic


Page 25

TFT 320x240 display

VCC-3.3

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47

TFT1
LED-K LED-A1 LED-A2 LED-A3 LED-A4 IM0 IM1 IM2 IM3 RESET VSYNC HSYNC DOTCLK ENABLE DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 SDO SDI RD WR/SCL RS CS FMARK VCC-IO VCC VCC-I GND XR YD XL YU

9. Audio Module
Figure 9-1: headphones connected with mikromedia

Figure 9-2: Inserting 3.5mm headphones jack

The mikromedia for ARM features MP3 codec audio controller VS1053. This module enables audio reproduction by using stereo headphones connected to the system via a 3.5mm connector CN6. All functions of this module are controlled by the microcontroller over Serial Peripheral Interface (SPI).
Page 26

C28 1uF GBUF

VCC-1.8

VCC-1.8

RIGHT

LEFT

VCC-1.8

C13 100nF

C14 100nF U4

C15 100nF

LEFT

R49 470 C37 3.3nF

E1 10uF

L R2 R26 100K C41 3.3nF E9 10uF R R4 R48 100K

LINE2 AGND3 LEFT AVDD2 RCAP AVDD1 GBUF AGND2 AGND1 RIGHT AVDD0 AGND0

VCC-1.8

P0.18 R38 100K VCC-1.8 VCC-3.3 P0.19 GPIO


VCC-3.3

C17 R40 100nF 100K


VCC-3.3

XDCS IOVDD1 VCO DGND1 XTALO XTALI IOVDD2 DGND2 DGND3 DGND4 XCS CVDD2

MICP MICN XRESET DGND0 CVDD0 IOVDD0 CVDD1 DREQ GPIO2 GPIO3 GPIO6 GPIO7

VS1053

GPIO4 GND GPIO1 GPIO0 XTEST CVDD3 SO SI SCLK TX RX GPIO5

C16 100nF R35 27 P0.5 P0.6 P0.4 GPIO R41 100K R50 RIGHT 470

VCC-3.3

P0.22

XTALO XTAL1

C24 100nF XTALO

C26 100nF XTAL1 GBUF

R39 100K P1.25 LEFT

RIGHT

R49
X3 12.288MHz

1M

R42 10 C29 47nF


VCC-3.3

R45 10 C30 10nF


VCC-3.3

R46 10 C31 10nF


VCC-3.3

LEFT RIGHT GBUF

R43 10 R44 10

CN1

PHONEJACK

C32 22pF

C33 22pF

C23 100nF

C25 100nF

C27 100nF

STEREO OUTPUT

Figure 9-3: Audio module connecting schematic

Page 27

10. USB connection


LPC2148 microcontroller has integrated USB 2.0 module, which enables you to implement USB communication functionality of your mikromedia board. Connection with target USB host is done over miniUSB connector which is positioned next to the audio jack.

Figure 10-1: Connecting USB cable to programming connector

There are two SMD jumpers, or zero-ohm resistors on board for selection of USB communication mode. By soldering the resistor in the desired position you can select following USB operating modes: 01 USB Soft connection OFF 02 USB Soft connection ON
Page 28

ON

R56 0 R57 NOT MOUNTED

OFF

CN7

USB MINIB MBRS140T3 D5

VCC-5V

Figure 10-2: USB module connecting schematic


Page 29

11. Pads
RST VCC-5V
L R P0.7 P0.8 P0.9 P0.21 P0.10 P0.12 P0.14 P0.23 P0.25 P0.31 P1.16 P1.17 P1.18 P1.19 P0.11 P1.20 P0.1 P0.0 P0.2 P0.3 VCC-3.3 P0.4 P0.5 P0.6 P0.13 P0.22 P0.28 P0.29 P0.15 P0.16 P0.20 P0.30 P1.21 P1.22 P1.23 P1.24 P1.25 P1.26 P1.27 P1.28 P0.17 P0.18 P0.19 VCC-3.3

PWM

AN

INT

DIR

M1X26

M1X26

Figure 11-1: Pads connecting schematic Pads HDR2 Pads HDR1

Most microcontroller pins are available for further connectivity via two 1x26 rows of connection pads on both sides of the mikromedia board. They are designed to perfectly match additional shields, such as Battery Boost shield, PROTO shield and others.
Page 30

12. Pinout
5V power supply Reference Ground SCK0/CAP0.1/AD0.6 MISO0/MAT0.1/AD0.7 MOSI0/CAP0.2/AD1.0 DTR1/MAT1.1/AD1.4 AD1.7/CAP0.0/MAT0.0 AD0.1/CAP0.2/MAT0.2 AD0.2/CAP0.3/MAT0.3 RI1/EINT2/AD1.5 EINT0/MAT0.2/CAP0.2 MAT1.3/SSEL1/EINT3 AD0.3/EINT3/CAP0.0 PWM5/AD1.6/CAP1.3 AD1.7/CAP0.0/MAT0.0 PIPESTAT2 TRACECLK EXTIN0 RTCK TDO TDI CAP1.2/SCK1/MAT1.2 CAP1.3/MISO1/MAT1.3 MAT1.2/MOSI1/CAP1.2 3.3V power supply Reference Ground Pin functions PWM lines Analog Lines Interrupt Lines SPI Lines
Page 31

5V GND P0.4 P0.5 P0.6 P0.13 P0.22 P0.28 P0.29 P0.15 P0.16 P0.20 P0.30 P0.21 P1.22 P1.23 P1.24 P1.25 P1.26 P1.27 P1.28 P0.17 P0.18 P0.19 3.3V GND

RST GND L R P0.7 P0.8 P0.9 P0.21 P0.10 P0.12 P0.14 P0.23 P0.25 P0.31 P1.16 P1.17 P1.18 P1.19 P0.11 P1.20 P0.1 P0.0 P0.2 P0.3 3.3V GND

Reset pin Reference Ground left ch. audio out right ch. SSEL0/PWM2/EINT2 TXD1/PWM4/AD1.1 RXD1/PWM6/EINT3 PWM5/AD1.6/CAP1.3 RTS1/CAP1.0/AD1.2 DSR1/MAT1.0/AD1.3 DCD1/EINT1/SDA1 VBUS AD0.4/AOUT UP_LED/CONNECT TRACEPKT0 TRACEPKT1 TRACEPKT2 TRACEPKT3 CTS1/CAP1.1/SCL1 TRACESYNC RXD0/PWM3/EINT0 TXD0/PWM1 SCL0/CAP0.0 SDA0/MAT0.0/EINT1 3.3V power supply Reference Ground Pin functions

I2C Lines

UART lines

JTAG lines

13. Dimensions
80.90 mm (3.19") 73.01 mm (2.90")

60.65 mm (2.38)

55.47 mm (2.20)

2.38 mm (0.09)

3.45 mm (0.14")
Page 32

2.54 mm (0.10")

2.77 mm (0.11")

36.55 mm (1.44")

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, mikroC PRO, mikroBasic, mikroBasic PRO, mikroPascal, mikroPascal PRO, AVRflash, PICflash, dsPICprog, 18FJprog, PSOCprog, AVRprog, 8051prog, ARMflash, EasyPIC5, EasyPIC6, BigPIC5, BigPIC6, dsPIC PRO4, Easy8051B, EasyARM, EasyAVR5, EasyAVR6, BigAVR2, EasydsPIC4A, EasyPSoC4, EasyVR Stamp LV18FJ, LV24-33A, LV32MX, PIC32MX4 MultiMedia Board, PICPLC16, PICPLC8 PICPLC4, SmartGSM/GPRS, UNI-DS 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. Mikroelektronika, 2011, All Rights Reserved.

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/en/support If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com

S-ar putea să vă placă și