40
user's guide to mikrome ia Compact development system rich with on-board peripherals for all-round multimedia development on ATmega1280 device board for ATmega

board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

user's guide to

mikrome ia

Compact development system rich with on-board peripherals for

all-round multimedia development on ATmega1280 device

board for ATmega

Page 2: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 3

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.

The ATMEGA and Windows® logos and product names are trademarks of ATMEL® and Microsoft® in the U.S.A. and other countries.

TO OUR VALUED CUSTOMERS

Nebojsa Matic

General Manager

Page 3: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 3

Introduction to mikromedia for ATmega 4

Package Contains 5

Key Features 6

System Specification 7

1. Power supply 8

2. ATmega1280 microcontroller 10

Key microcontroller features 10

3. Programming the microcontroller 11

Programming with mikroBootloader 12

Identifying COM port 14

step 1 – Choosing COM port 14

step 2 – Establishing connection 15

step 3 – Browse for .hex file 15

step 4 – Select .hex file 16

step 4 – Uploading .hex file 16

step 6 – Progress bar 17

step 5 – Finish upload 17

Programing with exernal programmer 16

4. Reset buttons 20

5. Crystal oscillator 22

6. microSD Card Slot 23

7. Touch Screen 24

8. Audio Module 26

9. USB UART communication 28

10. Accelerometer 30

11. Flash Memory 31

12. Pads 32

13. Pinout 33

14. Dimensions 34

15. Mikromedia accessories 35

What’s next 36

Table of Contents

Page 4: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 4 Page 5

Introduction to mikromedia for ATmega

The mikromedia for ATmega 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 the 8-bit ATmega1280 microcon-

troller. The mikromedia for ATmega features

integrated modules such as stereo MP3 codec, TFT 320x240 touch screen display, accelerometer,

USB connector, audio connector, MMC/SD card

slot, 8 Mbit flash memory, 2x26 connection pads

and other. It comes pre-programmed with USB-

UART bootloader, but can also be programmed

with external AVR JTAGICE mkII. Mikromedia is

compact and slim, and perfectly fits in the palm

of the hand, which makes it convenient platform

for mobile devices.

Page 5: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 4 Page 5

Package Contains

Copyright ©2011 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.

20122011 www.mikroe.com

01 02

04 05

03

06

Damage resistant

protective box

mikromedia for ATmega

development system

mikromedia for ATmega

user’s guide

mikromedia for ATmega

schematic

DVD with documentation

and examples

USB cable

Page 6: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 6 Page 7

Key Features

01

02

01

02

03

04

05

06

07

08

09

10

11

12

13

14

15

Connection Pads

TFT 320x240 display

USB MINI-B connector

CHARGE indication LED (RED)

Li-Polymer battery connector

3.5mm headphone connector

Power supply regulator

USB-UART IC

8MHz crystal oscillator

RESET button

VS1053 stereo audio codec

12.288MHz crystal oscillator

Atmel AVR ATmega 1280 device

Accelerometer

Serial 8Mbit Flash memory

microSD Card Slot

JTAG programmer connector

Power indication LED (GREEN)

1516

1517

18

10

Page 7: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 6 Page 7

System Specification

power supply

Over a USB cable (5V DC)

board dimensions

8 x 6 cm (3.14 x 2.36 inch)

weight

~46 g (0.10 lbs)

power consumption

68 mA with erased MCU

(when on-board modules are inactive)

03

07

09

12

10

13

11

14

15 16

17

05

06

04

18

08

Page 8: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 8 Page 9

1. Power supply

You can apply power supply to the board

using MINI-B USB cable provided with

the board. On-board voltage regulators

will make sure that are avaibale the

appropriate voltage levels to each part

of the board. Power LED (GREEN) will

indicate the presence of power supply.

You can also power the board using Li-Polymer battery,

via on-board battery connector. On-board battery charger

circuit MCP73832 enables you to charge the battery

over USB connection. CHARGE LED (RED) will indicate

battery charging. Led is off when battery is full. Charging

current is ~250mA and charging voltage is 4.2V DC.

2. Battery power supply

1. USB power supply

Figure 1-1: Connecting USB power supply

Figure 1-2: Connecting Li-Polymer battery

Page 9: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 8 Page 9

VCC-SYS VCC-3.3

E310uF

E410uF

R26

2K23

12GND

Vin

Vout

REG1

LD29080DT33

VCC-BAT

D1PMEG3010ER

R443K9

Charging Current approx. 250mA

R394K7

VCC-3.3

E7

10uF

C40

2.2uF

R344K7

R64K7

VCC-BAT

VSENSE

VCC-SYS

VCC-SYS

R4310K

R37

10K

R3610K

VCC-3.3

STAT

R3810K

R451K

VCC-3.3

E510uF

R3510K

VCC-3.3

R494K7

+-

CN1BATT CONN

M1DMP2160UW

23

5

4

1STATVSSVBAT VDD

PROG

U5

MCP73832Q4BC846

Q5BC846

C2810nF

FP2FERRITE

12345 GND

IDD+D-VBUS

CN3

USB MINIB

VCC-USB

C29

2.2uF

VCC-3.3

R4622K

E10

10uF

R47120K

VCC-1.8

VCC-1.8

R5012K1

123

5

4

VinGNDEN ADJ

Vout

U3

AP7331-ADJ

DAT

A BU

S 2728293031323334353637383940414243444546474849505152

HDR1

M1X26

VCC-3.3

VCC-SYS

1234567891011121314151617181920212223242526

HDR2

M1X26

VCC-3.3

LD2CHARGE

LD1POWER

VCC-BAT

Figure 1-3: Power supply schematics

Page 10: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 10 Page 11

The mikromedia for ATmega development board comes with the

AVR ATmega1280 microcontroller. This high-performance 8-bit

microcontroller with its integrated modules and in combination

with other on-board modules is ideal for multimedia applications.

2. ATmega1280 microcontroller

Key microcontroller features- Up to 16 MIPS Operation;

- 8-bit architecture;

- 128KB of Flash memory;

- 8KB of SRAM memory;

- 4KB of EEPROM

- 86 I/O pins;

- UART, SPI, TWI;

- ADC, Analog Comparator;

- JTAG programming interface, etc.

JTAG TWI

AnalogComparator

Watchdog timer

ADC

TIMERS

USART0 USART1 USART2

XRAM

SPI

SRAM

EEPROM

FLASH

USART3

PORTS (A, B, C, D, E, F, G, H, I, J, K, L)

Page 11: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 10 Page 11

3. Programming the microcontroller

01

02

Via USB-UART mikroBootloader

Using external AVR JTAGICE mkII programmer

Figure 3-1:ATmega1280

microcontroller

The microcontroller can be programmed in two ways:

Page 12: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 12 Page 13

Programming with mikroBootloader

You can program the microcontroller with UART bootloader

which is preprogrammed into the device by default. To transfer

.hex file from a PC to MCU you need bootloader software

(mikroBootloader) which can be downloaded from:

After software is downloaded unzip it to desired location and

start mikroBootloader software.

http://www.mikroe.com/eng/downloads/get/1822/mikrobootloader_atmega1280_v210.zip

Figure 3-2: mikroBootloader window

mikroBootloader software

01 When you start mikroBootloader software, a window shown on Figure 3-2 should appear.

Page 13: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 12 Page 13

Connect mikromedia for ATmega with a PC before

starting mikroBootloader softwareNOTE:

Page 14: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 14 Page 15

step 1 – Choosing COM port

Figure 3-4: Selecting COM port

01

0102

03

01

02

03

Click the Change Settings button

From drop down list select COM port which is used for communication with a PC (in this case COM32)

Click OK button

Identifying device COM port

Figure 3-3: Identifying COM port

01 In Device Manager you can see which COM port is assigned to mikromedia (in this case COM32)

Page 15: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 14 Page 15

step 2 – Establishing connection step 3 – Browse for .hex file

Figure 3-5: Connecting mikromedia with mikroBootloader Figure 3-6: Browsing for .hex file

01

01

01 01Reset mikromedia board and within 5s click the Connect button. If connected, caption on a button will be changed to “Disconnect”.

Click the Browse for HEX button and from pop-up window (figure 3-5) select .hex file which will be uploaded to MCU memory

Baud Rate is set to 56000bps by defaultNOTE:

Page 16: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 16 Page 17

step 5 – Uploading .hex file

Figure 3-8: Begin uploading

01

02

01

01 To start .hex file uploading click the Begin uploading button

step 4 – Select .hex file

Figure 3-7: Selecting HEX

01

02

Select a .hex file via open dialog window

Click the Open button

Page 17: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 16 Page 17

step 6 – Progress bar step 7 – Finish upload

Figure 3-9: Progress bar Figure 3-10: Restarting MCU

01

01 01You can monitor .hex file uploading via progress bar Click the OK button after uploading is finished.Reset MCU and your mikromedia will start with new firmware.

Page 18: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 18 Page 19

The microcontroller can be

programmed with an external pro-

grammer (AVR JTAGICE mkII or other

supported programer with JTAG

interface). The external programmer

is connected to the development

system via pads marked with

JTAG, Figure 3-11. In order to

connect the external programmer

to the development system, it is

necessary to solder the 2x5 male

headers provided with the product

to JTAG pads

Programing with external

programmer

Figure 3-11:mikroProg™ JTAG

connectorIf bootloader program is accidently erased you can upload it again via AVR

JTAGICE mkII programmer. Program mikroMedia for ATmega Bootloader Firmware.hex

can be found under Firmware folder (page 12)

NOTE:

Page 19: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 18 Page 19

Figure 3-12: JTAG programmer connection schematics

VCC-3.3

RESET#

JTAG

TDI

TDOTMS

TCK 135 6

42

79 10

8

CN5R62

10K

R63

10K

VCC-3.3

VCC-3.3AVCC

TDI

TDO

TMS

TCK

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

7026

25

76

757473

ATmega1280100pin TQFP

81828384858687888990919293949596979899100

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5PL

4/O

C5B

PL2/

T5A14/PC6

GND

ADC1

1/PK

3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

RES

ET#

R61

R60

10K

10K

Page 20: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 20 Page 21

Board is equipped with two reset buttons. First is located at the back side of

the board (Figure 4-1), and second one is at the top of front side (Figure 4-2).

If you want to reset the circuit, press either of two buttons. 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).

4. Reset Buttons

Figure 4-2: Frontal reset buttonFigure 4-1: Reset button located at the backside of the board

Page 21: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 20 Page 21

Figure 4-3: Reset circuit schematics

30292827 3433 463635 42 43 44 4537 5048 4932 38 39 40 41 473126

78 777980 7681828384858687888990919293949596979899100

58575655545352

72

6968676665646362616059

71

51

70

757473

9

1112

43

2423

181716151413

5678

10

12

22212019

25

R810K

VCC-3.3

C3100nF

T1

R7100

T2

RST

VCC-3.3AVCC

XTAL

1XT

AL2

C222pF

C122pF

X1 8MHz

ATmega1280100pin TQFP

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5

PL4/

OC5

B

PL2/

T5

A14/PC6

GND

ADC1

1/PK

3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

C5100nF

C6100nF

C7100nF

E810uF

VCC-3.3 VCC-3.3 VCC-3.3VCC-3.3

2728293031323334353637383940414243444546474849505152

HDR2

M1X26

VCC-3.3

RST

RST

Page 22: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 22 Page 23

ATmega1280 is equipped with internal 128kHz RC oscillator that can provide

base frequency. Board also contains 8MHz crystal oscillator (X1), which is the

most optimal because chip is powered by 3.3V supply. Since chip does not

have integrated PLL, maximum operating frequency is also 8MHz, which is just

enough for your multimedia applications.

5. Crystal oscillatorFigure 5-1:8MHz crystal oscillator

VCC-3.3

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

ATmega1280100pin TQFP

81828384858687888990919293949596979899100

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5

PL4/

OC5

B

PL2/

T5

A14/PC6

GND

ADC1

1/PK

3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

AVCC

C222pF

C122pF

X1 8MHz Figure 5-2:Crystal oscillator schematics

Page 23: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 22 Page 23

6. microSD Card Slot

SD-CS#

R1110K

R1010K

VCC-MMC

R910K

SD-CD#

VCC-MMC

R16

27

VCC-3.3

E610uF

C38100nF

FP1

FERRITE

CS1

Din2

+3.3V4

SCK5

GND6

Dout7

CDCD GG

CSDin+3.3VSCKGNDDout

CD

GN

D

CN4

MOSI-PB2

SCK-PB1

MISO-PB3

VCC-MMC

VCC-3.3

R5 27

R4 27

AVCC

SCK-PB1MOSI-PB2

SD-CS#SD-CD#

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

ATmega1280100pin TQFP

81828384858687888990919293949596979899100

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5

PL4/

OC5

B

PL2/

T5

A14/PC6

GND

ADC1

1/PK

3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

C222pF

C122pF

X1 8MHz

MISO-PB3

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.

Figure 6-2:Inserting microSD card

Figure 6-1: microSD card slot module connection schematics

Page 24: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 25

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.144

diffe rent colors.

7. Touch Screen

Figure 7-1: Touch ScreenPage 24

Page 25: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 25

VCC-3.3AVCC VREF

-1.8

T-D

2T-

D1

T-D

0

LCD

-YD

LCD

-XL

LCD-BLED

XTAL

1XT

AL2

C222pF

C122pF

X1 8MHz

T-D5T-D6T-D7

T-D4T-D3

PMRDPMWR

LCD-RSLCD-RSTLCD-CS#

T-D8T-D9

T-D10T-D11T-D12T-D13T-D14T-D15

30292827 343358575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

ATmega1280100pin TQFP

81828384858687888990919293949596979899100

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5

PL4/

OC5

B

PL2/

T5

A14/PC6

GND

ADC1

1/PK

3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

R23

1K

VCC-SYS

VCC-3.3

E1310uF

R2510K

VCC-3.3

R2410K

LCD-RSTLCD-CS#

VCC-3.3

LCD-BLED

R4012

VCC-SYS

D2

BAT43

LED-A12

DB1715

HSYNC12

RD35

VSYNC11

WR/SCL36

LED-A23

LED-A34

LED-A45

IM06

ENABLE14

IM17

IM28

IM39

DOTCLK13

GND43

SDO33

RESET10

RS37

CS38

FMARK39

VCC-IO40

XR44

YD45

XL46

SDI34

LED-K1

YU47

DB1616

DB1517

DB1418

DB1319

DB1220

DB1121

DB1022

DB923

DB824

DB725

DB626

DB527

DB428

DB329

DB230

DB131

DB032

VCC41

VCC-I42

TFT1

MI0283QT2

VCC-3.3

Q9BC856

Q10BC846

R58

10K

R411K

VCC-1.8

R15

10K

R31K

VCC-3.3

Q8BC856

VCC-1.8

R55

10K

Q6BC846

R14

10K

C21100nF

R42100K

Q7BC846

R56

10K

C22100nF

R57100K

R541K

VCC-3.3

LCD-XR

LCD-YU

LCD-XL

LCD-YD

DRIVEA

DRIVEB

Q3BC846

Q2BC846

Q1BC846

LCD-RST

LCD-RSLCD-CS#

LCD-YULCD-XLLCD-YDLCD-XR

PMRDPMWR

T-D5T-D6T-D7

T-D4T-D3T-D2T-D1T-D0

T-D8T-D9T-D10T-D11T-D12T-D13T-D14T-D15

DRIVEBDRIVEA

VCC-1.8VREF-1.8

E1110uF

FP3

FERRITE

Figure 7-2: Touch Screen connection schematics

Page 26: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 26 Page 27

mikromedia for ATmega features stereo audio codec VS1053. This module enables audio reproduction by using stereo headphones

connected to the system via a 3.5mm connector CN2. All functions of this module are controlled by the microcontroller via Serial

Peripheral Interface (SPI).

8. Audio Module

Figure 8-1: on-board VS1053

stereo audio codec

Page 27: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 26 Page 27

Figure 8-2: Audio module connection schematics

VCC-3.3AVCC MP3

-DCS

MISO-PB3

XTAL

1XT

AL2

MP3

-CS#

MP3

-DREQ

MP3

-RST

#

C222pF

C122pF

X1 8MHz

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

3272

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

ATmega1280100pin TQFP

81828384858687888990919293949596979899100

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5

PL4/

OC5

B

PL2/

T5

A14/PC6

GND

ADC1

1/PK

3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

MP3-CS#

C2022pF

C1922pF

R1 1M

R2010K

R21

10K

MP3

-DREQ

MP3-RST#

R210K

R1910K

X2

12.288MHz C131uF

VCC-3.3

GPI

O

VCC-3.3

LEFT

RIGHT

GBUF

E1 10uF

E2 10uF

CN2

PHONEJACK

LEFT

RIGHT

C16

10nF

C14

47nF

C15

10nF

R2710

R3020

R3120

R28 10

R29 10

R32

470C173.3nF

R17100K

R33

470 C183.3nF

R18100K

L

R

C29

2.2uF

VCC-3.3

R4622K

E10

10uF

R47120K

VCC-1.8

VCC-1.8

R5012K1

R2227

2345671112

1314

25

24232221

18171615

8 1

19

9102726

20

28 29 30 31 32 33 34 35 36

373839404142434445464748M

CP/L

N1

MIC

NXR

ESET

DG

ND

0CV

DD

0IO

VDD

0CV

DD

1D

REQ

GPI

O2

GPI

O3

GPI

O6

GPI

O7

XDCS/BSYNCIOVDD1VC0DGND1XTAL0XTAL1IOVDD2DGND2DGND3DGND4XCSCVDD2

GPI

O5

RX

TX SCLK

SI SO CVD

D3

XTES

TG

PIO

0G

PIO

1G

ND

GPI

O4

AGND0AVDD0

AVDD2

AGND1AGND2

AGND3LN2

LEFT

RCAPAVDD1

GBUF

RIGHT

VS1053

U2

VCC-1.8 VCC-3.3

MP3-CS# MP3

-RST

#

123

5

4

VinGNDEN ADJ

Vout

U3

AP7331-ADJ

MP3-DCS

MO

SI-P

B2SC

K-PB

1

MIS

O-P

B3

C11100nF

C10100nF

C4100nF

C12100nF

C9100nF

C23100nF

VCC-3.3

C24100nF

VCC-3.3

C26100nF

VCC-3.3 VCC-3.3

C27100nF

VCC-1.8 VCC-1.8 VCC-1.8 VCC-1.8

VCC-3.3

R5 27

R4 27SCK-PB1MOSI-PB2

Page 28: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 28 Page 29

Mikromedia contains USB MINI-B connector which is positioned next to the battery connector. FT232RL USB-UART IC enables you to implement

UART serial communication functionality via USB cable, since ATmega1280 does not support USB protocol. Before connecting the board,

make sure that you have FTDI drivers installed on your computer. Rx/Tx LED flashes when USB and controller communicate.

9. USB-UART communication

Figure 9-1: USB-UART communication

Page 29: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 28 Page 29

VCC-3.3AVCC

RX0-MCUTX0-MCU

USBDET

XTAL

1XT

AL2

C222pF

C122pF

X1 8MHz

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

3272

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

7131

51

70

26

25

76

757473

ATmega1280100pin TQFP

81828384858687888990919293949596979899100

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5

PL4/

OC5

B

PL2/

T5

A14/PC6

GNDAD

C11/

PK3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

USBDPUSBDM

VCC-USB

C2810nF

FP2FERRITE

USBDET

R64100

VCC-3.3 VCC-3.3

C36100nF

R53220

R51

4K7

R5210K

C34100nF

12345 GND

IDD+D-VBUS

CN3

USB MINIB

LD3RX/TX

RX0-MCU

TX0-MCU

123456789

1011121314 15

16171819202122232425262728TXD

DTR#RTS#VCCIORXDRI#GNDNCDSR#DCD#CTS#CBUS4CBUS2CBUS3

CBUS0CBUS1

OSCOOSCITESTAGND

NC

GND

GND

VCCRESET#

3V3OUTUSBDMUSBDP

FT232RL

U4

FT232RL

Figure 9-2: USB-UART connection schematics

Page 30: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 30 Page 31

VCC-3.3AVCC

XTAL

1XT

AL2

SCL-

PD0

SDA-

PD1

C222pF

C122pF

X1 8MHz

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

ATmega1280100pin TQFP

81828384858687888990919293949596979899100

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5

PL4/

OC5

B

PL2/

T5

A14/PC6

GND

ADC1

1/PK

3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

C32100nF

C33100nF

VCC-3.3

R1210K

R1310K

VCC-3.3

1 2 3

J1

ACC ADDRESS123

VCCGNDRes4 GND5 GND6 VCC

7CS

8INT1

9INT2

10NC

11Res

12ADD

13SDA

14SC

L

U9

ADXL345

VCC-3.3

VCC-3.3 VCC-3.3

SCL-PD0

SDA-PD1

10. Accelerometer

On board ADXL345 accelerometer, among other

features, can be 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 I2C interface.

You can set the accelerometer

address to 0 or 1 by re-soldering the

SMD jumper (zero-ohm resistor) to the

appropriate position. Jumper is placed

in address 1 position by default.

Figure 10-1:Accelerometerconnection schematics

Figure 10-2: Accelerometer

module

Page 31: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 30 Page 31

11. Flash Memory

9

43

5678

12

VCC-3.3AVCC

30292827 3433

58575655545352

463635 42 43 44 4537 5048 49

1112

32

72

69686766656463

78 77

2423

181716151413

10

7980

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

ATmega1280100pin TQFP

81828384858687888990919293949596979899100

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5

PL4/

OC5

B

PL2/

T5

A14/PC6

GND

ADC1

1/PK

3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

FLASH-CS#

C37

100nF

R4810K

VCC-3.3

VCC-3.3

VCC-3.3

123

54678CS

SDOWPGND SDI

SCKHOLD

VCC

U10

M25P80

R59 27 MOSI-PB2SCK-PB1

MISO-PB3

R5 27

R4 27SCK-PB1MOSI-PB2MISO-PB3

FLAS

H-C

S#

Figure 11-1: Flash memory module connection schematics

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).

Figure 11-2:Flash memory module

Page 32: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 32 Page 33

2728293031323334353637383940414243444546474849505152

HDR1

M1X26

1234567891011121314151617181920212223242526

HDR2

M1X26

VCC-3.3VCC-3.3

VCC-SYS

VCC-3.3AVCC

RST

LR

PH3PH4PL3PL4

SCL-PD0SDA-PD1

RX1-PD2TX1-PD3

PD4PD5PD6PD7

PL0PL1PL2PL5PL6PL7PB5PB6

PK0PK1PK2PK3PK4PK5PK6PE4PE5PE6PE7PJ0PJ1PJ2PH0PH1PH2

MISO-PB3SCK-PB1

MOSI-PB2

PH5PH6

PK0

PK1

PK2

PK3

PK4

PK5

PK6

PE4PE5PE6PE7

PH3PH4

PH0PH1PH2

PH5PH6

PB5PB6

XTAL

1XT

AL2

PL3

PL4

SCL-

PD0

SDA-

PD1

RX1

-PD

2TX

1-PD

3PD

4PD

5PD

6PD

7

PL0

PL1

PL2

PL5

PL6

PL7

C222pF

C122pF

X1 8MHz

PJ0PJ1PJ2

30292827 3433

58575655545352

463635 42 43 44 4537 50

9

48 49

1112

32

72

69686766656463

43

78 77

2423

181716151413

5678

10

7980

12

22212019

62616059

38 39 40 41 47

71

31

51

70

26

25

76

757473

ATmega1280100pin TQFP

81828384858687888990919293949596979899100

PL0/

ICP4

XTAL

1XT

AL2

GN

D

PL7

PL6

PE3/OC3APE4/INT4PE5/INT5PE6/INT6

PCINT13/PJ4

A12/PC4

PD1/

SDA

PD0/

SCL

A8/PC0A9/PC1

A10/PC2A11/PC3

PD2/

RXD

1PD

3/TX

D1

TDO

/PF6

TDI/

PF7

ADC8

/PK0

TCK/

PF4

ADC9

/PK1

ADC1

0/PK

2

ADC1

3/PK

5AD

C14/

PK6

PE2/XCK0PE1/TXD0

AREF

ADC0

/PF0

ADC1

/PF1

ADC2

/PF2

ADC3

/PF3

TMS/

PF5

PH0/RXD2

PG3/

TOSC

2PB5/OC1APB4/OC2APB3/MISOPB2/MOSIPB1/SCKPB0/PCINT0

PCINT15/PJ6PCINT14/PJ5

PG1PG0

PH3/OC4A

GNDVCC

PL3/

OC5

A

GN

DAV

CC

PG5PE0/RXD0

PH7

PB7

PB6/OC1B

PD6/

T1PD

7/T0

PCINT12/PJ3

VCC

PD4/

ICP1

PD5/

XCK1

A13/PC5

PL4/

OC5

B

PL2/

T5

A14/PC6

GND

ADC1

1/PK

3

PH6/OC2BPH5/OC4CPH4/OC4B

PL1/

ICP5

PL5/

OC5

C

A15/PC7

XCK3/PJ2

ADC1

2/PK

4

VCC

RES

ETPG

4/TO

SCI1

PH1/TXD2

PE7/INT7

RXD3/PJ0TXD3/PJ1

ALE/PG2

AD0/

PA0

PA2

AD5/PA5AD4/PA4AD3/PA3

PA1

PJ7

VCC

GN

DAD

C15/

PK7

PH2/XCK2

AD7/PA7AD6/PA6

U1

R5 27

R4 27SCK-PB1MOSI-PB2MISO-PB3

12. Pads

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 match additional shields,

such as Battery Boost shield, Gaming, PROTO shield and others. Pads with underlined silkscreen

markings have multiple functions (see the complete schematics for more information).

Pads HDR2 Pads HDR1

Figure 12-1: Pads connecting schematics

Page 33: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 32 Page 33

13. Pinout

SPI LinesInterrupt LinesAnalog LinesDigital lines I2C Lines UART lines PWM lines

VSYS RST Reset pinSystem power supplyGND GND Reference GroundReference GroundPK0 LPK1 R

left ch.right ch.

PWM lines

Digital I/O lines

Digital I/O lines

SPI Lines

Interrupt Lines

Analog LinesPK2 PH3PK3 PH4PK4 PL3PK5 PL4PK6 PL0PE4 PL1PE5 PL2PE6 PL5PE7 PL6PJ0 PL7PJ1 PB5PJ2 PB6

PH0 PD4PH1 PD5PH2 PD6PH5 PD7PH6 PD2 RXPB1 PD3 TXSCKPB3 PD0 SCL2SDIPB2 PD1 SDA2SDO

3.3V 3.3V 3.3V power supply3.3V power supplyGND GND Reference GroundReference Ground

Pin functions Pin functions

audio out

UART Lines

I2C Lines

Page 34: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 34 Page 35

80.90 mm (3.18”)

73.01 mm (2.87”)

69.85 mm (2.75”)

2.54 mm (0.10”)4.45 mm (0.17”) 2.77 mm (0.11”)

60

.56

mm

(2.3

8”)

5.0

8 m

m (0

.20

”)

36

.55

mm

(1.4

4”)

55

.47

mm

(2.1

8”)

50

.27

mm

(1.9

8”)

14. Dimensions

Page 35: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 34 Page 35

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.

We call them mikromedia

shields. But we also offer other

accessories, such as Li-polymer

battery, stacking headers, wire

jumpers and more.

04

01

05 06 07

02 03

Gaming shield

Connect shield

Li-Polimer battery Wire Jumpers Stacking headers

BatteryBoost shield PROTO shield

Page 36: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 36 Page 37

You still don’t have an appropriate compiler? Locate AVR® compiler that suits you best on

the Product DVD provided with the package:

Choose between mikroC™, mikroBasic™ and mikroPascal™ and download fully functional

demo version, so you can begin building your first applications.

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.

You have now completed the journey through each and every feature of mikromedia for ATmega 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

Projects

DVD://download/eng/software/compilers/

What’s next?

Page 37: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 36 Page 37

Notes:

Page 38: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 38 Page 39

Notes:

Page 39: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

Page 38 Page 39

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.

TRADEMARKS

The MikroElektronika name and logo, the MikroElektronika logo, mikroC™, mikroBasic™, mikroPascal™, mikroProg™, EasyAVR6™, BIGAVR6™, AVRPLC16 v6™ 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, 2012, All Rights Reserved.

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 hazard-ous 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.

Page 40: board for ATmega - Mikroelektronika...board for ATmega. Page 3 I want to express my thanks to you for being interested in our products and for having confidence in Mikroelektronika

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 [email protected]

mikromedia for ATMEGA Manual(Mini) ver. 1.00

0 100000 018798