mikromedia for STM32 User Manual


Add to my manuals
44 Pages

advertisement

mikromedia for STM32 User Manual | Manualzz

mikromedia

for STM32

®

Compact multimedia development system rich with on-board peripherals for all-round development on STM32F207VGT6 and STM32F407VGT6 devices

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 STM32 ® , ARM ® and Windows ® logos and product names are trademarks of STMicroelectronics ® , ARM ® Holdings and Microsoft ® in the U.S.A. and other countries.

Table of Contents

Introduction to mikromedia for STM32

®

4

Package contains

Key features

5

6

System specifications

1. Power supply

USB power supply 8

Battery power supply 8

7

8

2. Key microcontrollers features

STM32F207VGT6

STM32F407VGT6

3. Programming the microcontroller

Pro gramming with mikroBootloader step 1 – Connecting mikromedia step 2 – Browsing for .hex file step 3 – Selecting .hex file step 4 – Uploading .hex file step 5 – Finish upload

14

14

15

15

10

10

11

12

16

17

Programming with mikroProg

programmer mikroProg Suite

for ARM

®

software 19

Programming with ST-LINK V2 programmer 20

4. Reset button

5. Oscillators

18

22

24

6. MicroSD card slot

7. Touch screen

8. Audio module

9. USB connection

26

28

30

32

10. Accelerometer

11. Flash memory

12. Pads

13. Pinout

14. Dimensions

15. Mikromedia accessories

16. What’s next

34

36

38

39

40

41

42

Page 3

Introduction to mikromedia for STM32

®

mikromedia for STM32

®

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 STM32F207VGT6 or STM32F407VGT6 microcontroller. mikromedia for STM32

®

features integrated modules such as stereo MP3 codec, TFT

320x240 touch screen display, accelerometer, USB connector, MMC/SD card slot, 8 Mbit flash memory,

2x26 connection pads and other. It comes preprogrammed with USB bootloader, but can also be programmed with external programmers, such as mikroProg

for STM32

® or ST-LINK. Mikromedia is compact and slim, and perfectly fits in the palm of the hand, which makes it convenient platform for mobile devices.

Page 4

Package contains

01

Damage resistant protective box

02

mikromedia for STM32

®

development system

System power supply

Reference Ground

Analog Lines

Interrupt Lines

Digital I/O lines

SPI Lines

Pin functions

SCK

SDI

3.3V power supply

Reference Ground

PB13

PB14

PB15

PD0

PC10

PC11

PC12

GND

PC0

PC1

PC2

PC3

PC4

PC5

PB10

PB11

VSYS

GND

PA1

PA2

PA3

PA4

PA5

PA6

Digital lines Analog Lines Interrupt Lines SPI Lines I2C Lines UART lines PWM lines

PB5

PD1

PD2

PD4

PD8

PD9

PD10

PD11

RST

GND

L

R

PA7

PA8

PA10

PD14

PE13

PE14

PD6

PD5

PB6

PB7

Reset pin

Reference Ground left ch.

right ch.

PWM lines audio out

Digital I/O lines

RX

TX

SCL

SDA

UART Lines

I C Lines

Pin functions

03

User’s guide, schematic and pinout

Page 5

04

USB cable, headers and ST-LINK V2 to mikroProg

adapter

Key features

06

07

08

09

10

11

01

02

03

04

05

12

13

14

15

16

RESET button

Connection Pads

TFT 320x240 display

USB MINI-B connector

Charge indication LED

LI-Polymer battery connector

3.5mm headphone connector

Power supply regulator

Crystal oscillator

VS1053 Stereo mp3 coder/decoder

STM32F207VGT6 or STM32F407VGT6 microcontroller

Accelerometer

Serial flash memory microSD card slot

Power indication LED

JTAG/SWD programmer connector

03

01

02

Page 6

04 05 06

15

08

11

09

13

16

12

10

14

07

Page 7

System specification

power supply

Via USB cable (5V DC)

power consumption

46.5 mA with erased MCU

(when on-board modules are inactive)

board dimensions

81.2 x 60.5 mm (3.19 x 2.38 inch)

weight

~45 g (0.10 lbs)

class B product

Product complies with the Class B limit of EN 55022 and can be used in the domestic, residential, commercial and industrial environments.

CAUTION: Electrostatic sensitive device

Permanent damage may occur on devices subjected to high energy electrostatic discharges which readily accumulate on the human body or test equipment and can discharge without detection.

1. Power supply

USB power supply

You can apply power supply to the board using Mini-B USB cable provided with the board. On-board voltage regulators provide the appropriate voltage levels to each component on the board. Power

LED (GREEN) will indicate the presence of power supply. Figure 1-1:

Connecting USB power supply

Battery power supply

You can also power the board using a Li-Polymer battery, via on-board battery connector. On-board battery charger circuit MCP73832 enables you to charge the battery over a USB connection. LED diode (RED) will indicate when the battery is charging. Charging current is ~250mA and charging voltage is 4.2V DC. Figure 1-2: Connecting Li-Polymer battery

Page 8

VSENSE

AVCC

C36

2.2uF

C25

FP4

100nF

VCC-BAT

R6

4K7

R49

4K7

R34

4K7

STAT

VCC-3.3

VCC-3.3

R35

10K

R39

4K7

LD2

CHARGE

Q4

BC846

VCC-3.3

VCC-BAT

VCC-3.3

R36

10K

VCC-SYS

+

-

VREF-1.8

C30

2.2uF

VCC-USB

PMEG3010ER

D1

DMP2160UW

M1

Q5

BC846

R37

10K

CN1

BATT CONN

C34

FP3

100nF

R43

10K

VCC-1.8

FP2

FERRITE

VCC-3.3

C29

C28

10nF

1

2

3

4

5

E10

2.2uF

U3

1

2

3

Vin

GND

EN

AP7331-ADJ

Vout

ADJ

10uF

5

4

CN3

VBUS

D-

D+

ID

GND

USB MINIB

VCC-1.8

VCC-1.8

R47

120K

R46

22K

R50

12K1

VCC-3.3

VCC-SYS

HDR1

13

14

15

16

9

10

11

12

7

8

5

6

3

4

1

2

21

22

23

24

17

18

19

20

25

26

M1X26

E5

R38

10K

VCC-3.3

VCC-BAT

E7

R45

1K

10uF

VCC-SYS

1

2

3

STAT

VSS

VBAT

MCP73832

PROG

VDD

5

4

Charging Current approx. 250mA

C40

2.2uF

R44

3K9

LD1

POWER

R26

2K2

E3

10uF

VCC-3.3

HDR2

39

40

41

42

35

36

37

38

31

32

33

34

27

28

29

30

47

48

49

50

43

44

45

46

51

52

M1X26

VCC-SYS VCC-3.3

1

3

E4

10uF

REG1

Vin

Vout

GND

LD29080DT33

2

Figure 1-3: Power supply schematic

Page 9

2. Key microcontrollers features

The mikromedia for STM32

®

M3 development system comes with the STM32F207VGT6 microcontroller. This highperformance 32-bit microcontroller with its integrated modules and in combination with other on-board modules is ideal for multimedia applications.

STM32F207VGT6

- 1.25 DMIPS/MHz, 32-bit Cortex

-M3 Core;

- 1 Mbyte Flash memory;

- 128 + 4 Kbytes of SRAM;

- 83 I/O pins;

- SPI, I2C, CAN, USB, Ethernet;

- USART, UART;

- 16-bit and 32-bit Timers, up to 120Mhz;

- Internal Oscillator 16MHz, 32kHz, PLL;

- ADC, DAC, etc.

JTAG & SW

ETH. MAC 10/100

DMA 2

DMA 1

GPIO PORT

(A,B,C,D,E,F,G,H,I)

SDIO/MMC

3 x TIM/PWM 16-bit

3 x TIMER 16-bit

1 x USART

1 x SPI temperature sensor

3 x ADC

EXT. MEM. CONTR

FLASH 1MB

SRAM 112KB

SRAM 16KB

AHB BUS - MATRIX

ARM

Cortex™-M3

STM32F207VGT6

APB2 60MHz

POWER / RESET

WWDG

3 x TIMER 16-bit

2 x DAC

RNG

CAM. INTERFACE

USB OTG FS

USB OTG HS

APB1 30MHz

IWDG

RTC

2 x TIMER 32-bit

5 x TIMER 16-bit

2 x USART

2 x UART

2 x SPI

3 x I2C

2 x CAN

Page 10

The mikromedia for STM32

®

M4 development system comes with the STM32F407VGT6 microcontroller, which can deliver even more processing power. With up to 168MHz operation, this 32-bit microcontroller with other on-board modules is a perfect choice for performance-demanding applications.

STM32F407VGT6

- 1.25 DMIPS/MHz, 32-bit Cortex

-M4 Core;

- 1 MB flash memory;

- 192 + 4 KB of SRAM;

- 83 I/O pins;

- SPI, I2C, CAN, USB, Ethernet;

- USART, UART;

- 16-bit and 32-bit Timers, up to 168Mhz;

- Internal Oscillator 16MHz, 32kHz, PLL;

- ADC, DAC, etc.

JTAG & SW

ETH. MAC 10/100

DMA 2

DMA 1

GPIO PORT

(A,B,C,D,E,F,G,H,I)

SDIO/MMC

3 x TIM/PWM 16-bit

3 x TIMER 16-bit

1 x USART

1 x SPI temperature sensor

3 x ADC

EXT. MEM. CONTR

FLASH 1MB

SRAM 176 KB

SRAM 16KB

AHB BUS - MATRIX

ARM

Cortex™-M4

STM32F407VGT6

APB2 84MHz

POWER / RESET

WWDG

3 x TIMER 16-bit

2 x DAC

RNG

CAM. INTERFACE

USB OTG FS

USB OTG HS

APB1 42MHz

IWDG

RTC

2 x TIMER 32-bit

5 x TIMER 16-bit

2 x USART

2 x UART

2 x SPI

3 x I2C

2 x CAN

Page 11

3. Programming the microcontroller

Figure 3-1:

STM32F207VGT6

Microcontroller

Figure 3-2:

STM32F407VGT6

Microcontroller

Page 12

The microcontroller can be programmed in three ways:

Via USB mikroBootloader

02

Using external mikroProg

programmer

03

Using external ST-LINK V2

programmer

The mikromedia for STM32

®

development system can be programmed in three different ways.

01

Using the bootloader which is preprogrammed into the device by default or via external programmers (

02

mikroProg

or

03

ST-LINK V2

) .

Page 13

Programming with mikroBootloader step 1 – Connecting mikromedia

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:

www.mikroe.com/downloads/get/1849/ mikrobootloader_mikromedia_stm32_v210b.zip

Upon download, unzip it to desired location and start the mikroBootloader application:

01

02

Page 14

Figure 3-3: USB HID mikroBootloader window

01

To start, connect the USB cable, or if already connected press the Reset button on your mikromedia board. Click the

Connect button within 5s to enter the bootloader mode, otherwise existing microcontroller program will execute.

step 2 – Browsing for .HEX file step 3 – Selecting .HEX file

01

01

Figure 3-4: Browse for HEX

01

Click the Browse for HEX button and from a pop-up window (Figure 3.5) choose the .HEX file which will be uploaded to MCU memory.

Page 15

01

Figure 3-5: Selecting HEX

01

Select .HEX file using open dialog window.

02 Click Open.

step 4 – Uploading .HEX file

01

Figure 3-6: Begin uploading

01

To start .HEX file bootloading click the

Begin uploading button.

Page 16

01

Figure 3-7: Progress bar

01

Progress bar enables you to monitor .HEX file uploading.

step 5 – Finish upload

01

Figure 3-8: Restarting MCU

01

Click OK after uploading is finished and wait for 5 seconds. Board will automatically reset and your new program will execute.

Page 17

Figure 3-9: mikroBootloader ready for next job

Programming with mikroProg

programmer

The microcontroller can be programmed with external mikroProg

for STM32

®

programmer and mikroProg Suite

for ARM

®

software.

The mikroProg

programmer is connected to the development system via the CN5 (JTAG) connector. You can choose between two ways to program microcontrollers , Figure 3-14:

01

02

Via JTAG interface

Via Serial wire debug

(SWD) interface

Figure 3-10:

Connecting mikroProg

to mikromedia

mikroProg

is a fast USB 2.0 programmer with mikroICD

™ hardware In-Circuit Debugger.

It supports over 180 ARM

®

Cortex

M3 and Cortex

M4 microcontrollers from

STM32

®

family. Outstanding performance, easy operation and elegant design are its key features.

NOTE:

Before attaching the programming connector, you have to solder the provided 2x5 male header to the JTAG pads (CN5)

Page 18

mikroProg Suite

for ARM

®

software

On-board mikroProg

programmer requires special programming software called mikroProg Suite

™ for ARM

®

. This software is used for programming of all supported microcontroller families with

ARM

®

Cortex

-M3 and Cortex

-M4 cores. The software has an intuitive interface and SingleClick

™ programming technology. To begin, first locate the installation archive on the link bellow:

http://www.mikroe.com/downloads/get/1809/mikroprog_suite_for_arm.zip

After downloading, extract the package and double click the executable setup file, to start installation.

Quick guide

01

Click the Detect MCU button in order to recognize the device ID.

02

Click the Read button to read the entire microcontroller memory.

You can click the Save button to save it to the target HEX file.

03

04

If you want to write the HEX file into the microcontroller, first make sure to load the target HEX file using the Load button.

Then click the Write button to begin programming.

Click the Erase button to clear the microcontroller memory.

Page 19

Figure 3-11: mikroProg Suite

™ for ARM

®

window

Programming with ST-LINK V2 programmer

The microcontroller can also be programmed with the ST-LINK V2 programmer and mikroProg Suite

for ARM

®

software, Figure 3-11. This programmer connects with mikromedia board via mikroProg to ST-LINK V2 adapter.

In order to adjust the ST-LINK

V2 programmer to be connected to the development system, it is necessary to provide the appropriate adapter such as the mikroProg to ST-LINK

V2 adapter. 2x5 male headers should be first soldered on the CN5 connector pads. Then you should plug the adapter into the ST-LINK V2 programmer (2x10 header), and plug an IDC10 flat cable in headers, Figure 3-13

Page 20

Figure 3-12: mikroProg

to ST-LINK

V2 adaper

Figure 3-13:

Connecting ST-LINK

V2 programmer

VCC-3.3

TRST

1

3

5

7

9

CN5

JTAG

(SWD)

2

4

6

8

10

TMS/

TCK/

SWDIO

SWCLK

TDO

TDI

RESET#

C41 2.2uF

R65

100K

VCC-3.3

VCC-3.3 VCC-3.3

E8

10uF

C5

100nF

C6

100nF

VCC-3.3 VCC-3.3

VCC-3.3

C7

100nF

C8

100nF

C31

100nF decoupling capacitors

TMS/ SWDIO

71

72

73

74

75

64

65

66

67

68

69

70

51

52

53

54

55

56

57

58

59

60

61

62

63

PD13

PD14

PD15

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PA13

VCAP

GND

VDD

VCC-3.3

AVCC

U1

STM32F207VGT6

STM32F407VGT6

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

6

5

4

3

2

1

9

8

7

14

13

12

11

10

25

24

23

22

21

20

19

18

17

16

15

OSC32_OUT

OSC32_IN

VREF-1.8

NOTE

VCC-3.3

Jumper J3 is soldered by default

J3

J2

RESET#

X1

32.768KHz

C1

22pF

C2

22pF

R66 100K

Figure 3-14: mikroProg

™ or JTAG programmer connection schematic

Page 21

4. Reset button

Board is equipped with a reset button, which is located at the top of the front side (Figure 4-2). If you want to reset the circuit, press the reset button.

It will generate a 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).

NOTE

You can also solder additional reset button on the appropriate place at the

back side of the board, Figure 4-1.

Figure 4-1: Location of additional reset button

Page 22

Figure 4-2: Frontal reset button

C42

2.2uF

71

72

73

74

75

64

65

66

67

68

69

70

51

52

53

54

55

56

57

58

59

60

61

62

63

PD13

PD14

PD15

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PA13

VCAP

GND

VDD

C41 2.2uF

R65

100K

STM32F207VGT6

STM32F407VGT6

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

U1

6

5

4

3

2

1

9

8

7

14

13

12

11

10

25

24

23

22

21

20

19

18

17

16

15

VCC-3.3

AVCC

VREF-1.8

R7 100

RST

OSC32_OUT

OSC32_IN

T2

VCC-3.3

X1

J3

J2

T1

C2 22pF

32.768KHz

VCC-3.3

R8

10K

C3

100nF

VCC-3.3

49

50

51

52

M1X26

45

46

47

48

41

42

43

44

HDR2

27

28

29

30

31

32

37

38

39

40

33

34

35

36

RX

TX

SCL

SDA

PWM

C1 22pF

VCC-3.3

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

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF

R66 100K decoupling capacitors

Figure 4-3: Reset circuit schematic

Page 23

5. Oscillators

STM32F207VGT6 and STM32F407VGT6 microcontrollers are equipped with an internal 16MHz RC oscillator that provides a stable clock signal. Since the chips have an integrated PLL, this base frequency is suitable for further clock multiplication.

Board also contains a 32.768kHz Crystal

oscillator (X1) which provides an external clock for internal RTCC module.

Page 24

Figure 5-1:

Crystal oscillator module (X1)

C42

2.2uF

71

72

73

74

75

64

65

66

67

68

69

70

51

52

53

54

55

56

57

58

59

60

61

62

63

PD13

PD14

PD15

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PA13

VCAP

GND

VDD

C41 2.2uF

R65

100K

VCC-3.3

AVCC

U1

STM32F207VGT6

STM32F407VGT6

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

6

5

4

3

2

1

14

13

12

11

10

9

8

7

22

21

20

19

25

24

23

18

17

16

15

VREF-1.8

VCC-3.3

VCC-3.3

VCC-3.3 VCC-3.3

E8

10uF

C5

100nF

C6

100nF

J3

J2

OSC32_OUT

OSC32_IN

X1

32.768KHz

C1

22pF

C2

22pF

VCC-3.3 VCC-3.3

VCC-3.3

C7

100nF

C8

100nF

C31

100nF decoupling capacitors

R66 100K

Figure 5-2: Crystal oscillator schematic

Page 25

NOTE

The use of crystal in all other schematics is implied even if it is purposely left out, because of the schematics clarity.

6. MicroSD card slot

Board contains a 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.

Page 26

SD-CD#

C42

2.2uF

71

72

73

74

75

64

65

66

67

68

69

70

51

52

53

54

55

56

57

58

59

60

61

62

63

PD13

PD14

PD15

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PA13

VCAP

GND

VDD

C41 2.2uF

R65

100K

R4

27

R5

27

U1

STM32F207VGT6

STM32F407VGT6

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

6

5

4

3

2

1

9

8

7

14

13

12

11

10

25

24

23

22

21

20

19

18

17

16

15

R66 100K

VCC-3.3

AVCC

VREF-1.8

VCC-3.3

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

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF decoupling capacitors

VCC-3.3

J3

J2

VCC-MMC

SD-CS#

MOSI3-PC12

SCK3-PC10

MISO3-PC11

SD-CD#

R11

10K

R10

10K

R9

10K

R16

27

VCC-MMC

C38

100nF

FP1

VCC-3.3

FERRITE

E6

10uF

4

5

1

2

6

7

CN4

CS

Din

+3.3V

SCK

GND

Dout

CD

MMC CARD MICRO

Figure 6-2: microSD Card Slot module connection schematic

Page 27

7. Touch screen

Page 28

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 graphics in 262.144 diffe rent colors.

Figure 7-1:

Touch Screen

C41 2.2uF

R65

100K

C42

2.2uF

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PA13

VCAP

GND

VDD

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PD13

PD14

PD15

58

59

60

61

62

63

64

65

66

67

51

52

53

54

55

56

57

68

69

70

71

72

73

74

75

Figure 7-2: Touch screen connection schematic

U1

STM32F207VGT6

STM32F407VGT6

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

6

5

4

3

8

7

2

1

13

12

11

10

9

25

24

23

22

21

20

19

18

17

16

15

14

R66 100K

VCC-3.3

AVCC

VREF-1.8

T-D6

T-D5

T-D4

T-D3

T-D2

LCD-BLED

R51

1K

VCC-3.3

VCC-3.3

R3

4K7

R15

10K

J3

J2

VCC-3.3

R55

10K

Q2

R23

10K

BC846

VCC-1.8

R24

10K

R58

10K

Q10

VCC-3.3

BC846

Q3

BC846

VCC-3.3

VCC-1.8

Q1

BC846

R40

12

VCC-3.3

10uF

E13

R25

10K

LCD-RST

LCD-CS#

Q9

BC856

Q8

LCD-XR

BC856

LCD-YU

LCD-XL

VCC-SYS VCC-3.3

LCD-RST

T-D7

T-D6

T-D5

T-D4

T-D3

T-D2

T-D1

T-D0

PMRD

PMWR

LCD-RS

LCD-CS#

LCD-XR

LCD-YD

LCD-XL

LCD-YU

29

30

31

32

33

34

35

36

37

38

39

24

25

26

27

28

19

20

21

22

23

14

15

16

17

18

40

41

42

43

44

45

46

47

6

7

4

5

8

1

2

3

9

10

11

12

13

TFT1

TE

VDDI

VCI

VCI

GND

X+(R)

Y+(D)

X- (L )

Y- (U)

DB10

DB9

DB8

DB7

DB6

DB5

DB4

DB3

DE

DB17

DB16

DB15

DB14

DB13

DB12

DB11

DB2

DB1

DB0

SDO

SDI

RD

WR(D/C)

D/C(SCL)

CS

L ED- K

L ED- A1

L ED- A2

L ED- A3

L ED- A4

IM0

IM3

IM2

IM1

RESET

VSYNC

HSYNC

DOTCL K

MI0283QT-9A decoupling capacitors

VCC-3.3

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

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF

DRIVEA

VCC-3.3

R14

10K

DRIVEB

R54

4K7

R56

10K

Q6

BC846

C21

100nF

Q7

BC846

R57

100K

LCD-YD

Page 29

8. Audio module

Figure 8-1:

On-board VS1053

MP3 codec mikromedia for STM32

®

features a 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 over Serial Peripheral Interface (SPI).

Page 30

MP3-DREQ

MP3-RST#

MP3-CS#

MP3-DCS

71

72

73

74

75

64

65

66

67

68

69

70

51

52

53

54

55

56

57

58

59

60

61

62

63

PD13

PD14

PD15

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PA13

VCAP

GND

VDD

C41 2.2uF

R65

100K

R4

27

R5

27

U1

STM32F207VGT6

STM32F407VGT6

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

6

5

4

3

2

1

14

13

12

11

10

9

8

7

22

21

20

19

25

24

23

18

17

16

15

R66 100K

VCC-3.3

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

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF decoupling capacitors

VCC-3.3

AVCC

VREF-1.8

VCC-3.3

J3

J2

MP3-CS#

MP3-RST#

VCC-3.3

R19

10K

R2

10K

R1 1M

X2

12.288MHz

VCC-1.8

VCC-1.8

VCC-1.8

VCC-1.8 VCC-3.3

VCC-3.3

VCC-3.3

VCC-3.3

VCC-3.3

C4

100nF

C9

100nF

C10

100nF

C11

100nF

C12

100nF

C23

100nF

C24

100nF

C26

100nF

C27

100nF decoupling capacitors

MP3-DCS

MP3-CS#

VCC-1.8

19

20

21

22

23

24

13

14

15

16

17

18

XDCS/BSYNC

IOVDD1

VC0

DGND1

XTAL0

XTAL1

IOVDD2

DGND2

DGND3

DGND4

XCS

CVDD2

VS1053

U2

LN2

AGND3

LEFT

AVDD2

RCAP

AVDD1

GBUF

AGND2

AGND1

RIGHT

AVDD0

AGND0

44

43

42

41

40

39

38

37

48

47

46

45

VCC-3.3

R33

470

R32

470

E2 10uF

C18

3.3nF

E1 10uF

C17

3.3nF

LEFT LEFT

R28

RIGHT

R29

10

10

GBUF

RIGHT

C13

1uF

C15

10nF

C16

10nF

C14

47nF

CN2

R

L

PHONEJACK

R20

10K

VCC-3.3

R21 10K

R22

27

Figure 8-3: Audio module connection schematic

Page 31

9. USB connection

Figure 9-1:

Connecting

USB cable to programming connector

STM32F207VGT6 and STM32F407VGT6 microcontrollers have an integrated USB module, which enables you to implement USB communication functionality to your mikromedia board. Connection with target USB host is done over a Mini-B USB connector which is positioned next to the battery connector.

Page 32

C41 2.2uF

R65

100K

USB-DET

USB-D_N

USB-D_P 71

72

73

74

75

64

65

66

67

68

69

70

51

52

53

54

55

56

57

58

59

60

61

62

63

PD13

PD14

PD15

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PA13

VCAP

GND

VDD

U1

STM32F207VGT6

STM32F407VGT6

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

6

5

4

3

2

1

9

8

7

14

13

12

11

10

25

24

23

22

21

20

19

18

17

16

15

VCC-3.3

AVCC

VREF-1.8

VCC-3.3

J3

J2

USB-DET

USB-D_N

USB-D_P

R62 100

VCC-USB

VCC-3.3

VCC-3.3 VCC-3.3

E8

10uF

C5

100nF

C6

100nF

VCC-3.3 VCC-3.3

VCC-3.3

C7

100nF

C8

100nF

C31

100nF decoupling capacitors

3

4

1

2

5

CN3

VBUS

D-

D+

ID

GND

USB MINIB

Figure 9-2: USB module connection schematic

R66 100K

Page 33

10. Accelerometer

Figure 10-1:

Accelerometer module

On board ADXL345 accelerometer is used to measure acceleration in three axes: x, y and z. The acceleromer’s 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.

Page 34

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.

C42

2.2uF

71

72

73

74

75

64

65

66

67

68

69

70

51

52

53

54

55

56

57

58

59

60

61

62

63

PD13

PD14

PD15

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PA13

VCAP

GND

VDD

C41 2.2uF

R65

100K

U1

STM32F207VGT6

STM32F407VGT6

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

6

5

4

3

2

1

9

8

7

14

13

12

11

10

25

24

23

22

21

20

19

18

17

16

15

VCC-3.3

AVCC

Figure 10-2:

Accelerometer connection schematic

R66 100K

VREF-1.8

VCC-3.3

J3

J2

VCC-3.3

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

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF decoupling capacitors

VCC-3.3

VCC-3.3

VCC-3.3

3

4

1

2

5

6

VCC

GND

Res

GND

GND

VCC

C33

100nF

R12

10K

R13

10K

SCL1-PB6

U9

SDA

ADD

Res

NC

INT2

S INT1

ADXL345

13

12

9

8

11

10

SDA1-PB7

ACC ADDRESS

VCC-3.3

VCC-3.3

C32

100nF

1

2

3

J1

Page 35

11. Flash memory

Figure 11-1:

Flash memory module

Since multimedia applications are getting increasingly demanding, it is necessary to provide additional memory space to be used for storing more data. The flash memory module enables the microcontroller to use additional 8Mbit flash memory. It is connected to the microcontroller via the Serial Peripheral Interface (SPI).

Page 36

C41 2.2uF

R65

100K

VCC-3.3

AVCC

C42

2.2uF

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PD13

PD14

PD15

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PA13

VCAP

GND

VDD

60

61

62

63

64

65

66

67

68

51

52

53

54

55

56

57

58

59

69

70

71

72

73

74

75

STM32F207VGT6

STM32F407VGT6

R4

27

R5

27

U1

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

R66 100K

9

8

12

11

10

16

15

14

13

7

6

5

4

3

2

1

22

21

20

19

18

17

25

24

23

VREF-1.8

VCC-3.3

J3

J2

VCC-3.3

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

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF decoupling capacitors

VCC-3.3

R48

10K

FLASH-CS#

MISO3-PC11

R59 27

VCC-3.3

C37

VCC-3.3

3

4

1

2

U10

CS

SDO

WP

GND

M25P80

VCC

HOLD

SCK

SDI

100nF

8

7

6

5

SCK3-PC10

MOSI3-PC12

Figure 11-2: Flash memory module connection schematic

Page 37

12. Pads

C41 2.2uF

R65

100K

PWM

RX

TX

SCL

SDA

42

43

44

45

38

39

40

41

46

47

48

49

50

51

52

M1X26

34

35

36

37

30

31

32

33

27

28

29

HDR2

RST

PD2

PD4

PD8

PD9

PD10

PD11

PD12

PA7

PA8

L

R

PA10

PD14

PB5

PD1

PD13

PE13

PE14

U2Rx-PD6

U2Tx-PD5

SCL1-PB6

SDA1-PB7

VCC-3.3

PB12

SCK2-PB13

MISO2-PB14

MOSI2-PB15

PD8

PD9

PD10

PD11

PD12

PD13

PD14

PA8

PA10

C42

2.2uF

PB12

PB13

PB14

PB15

PD8

PD9

PD10

PD11

PD12

PD13

PD14

PD15

PC6

PC7

PC8

PC9

PA8

PA9

PA10

PA11

PA12

PA13

VCAP

GND

VDD

59

60

61

62

55

56

57

58

51

52

53

54

63

64

65

66

67

68

69

70

71

72

73

74

75

R4

27

R5

27

U1

STM32F207VGT6

STM32F407VGT6

PA2

PA1

PA0-WKUP

VDDA

VREF+

GNDA

VDD

PC3

PC2

PC1

PC0

NRST

OSC_OUT

OSC_IN

VDD

GND

PC15/OSC32_OUT

PC14/OSC32_IN

PC13/TAMPER_RTC

VBAT

PE6

PE5

PE4

PE3

PE2

21

20

19

18

25

24

23

22

17

16

15

14

13

12

11

10

5

4

3

2

1

9

8

7

6

VCC-3.3

AVCC

PA2

PA1

VREF-1.8

VCC-3.3

PC3

PC2

PC1

PC0

RST

R7 100

J3

J2

PA1

PA2

PA3

PA4

PA5

PA6

PC0

PC1

PC2

PC3

PC4

PC5

SCL2-PB10

SDA2-PB11

PB12

SCK2-PB13

MISO2-PB14

MOSI2-PB15

PD0

SCK3-PC10

MISO3-PC11

MOSI3-PC12

VCC-3.3

VCC-SYS

19

20

21

22

23

24

25

26

M1X26

15

16

17

18

11

12

13

14

HDR1

1

2

7

8

9

10

5

6

3

4

SCK

SDI

SDO

AN

INT

R66 100K

VCC-3.3

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

VCC-3.3

E8

10uF

C5

100nF

C6

100nF

C7

100nF

C8

100nF

C31

100nF decoupling capacitors

Pads HDR2

Figure 12-1: Connecting pads schematic

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 match additional shields, such as Battery Boost shield, Gaming, PROTO shield and others.

Page 38

13. Pinout

System power supply

Reference ground

Analog lines

Interrupt lines

Digital I/O lines

SPI lines

SCK

SDI

SDO

3.3V power supply

Reference Ground

Pin functions

PC0

PC1

PC2

PC3

PC4

PC5

PB10

PB11

VSYS

GND

PA1

PA2

PA3

PA4

PA5

PA6

PB12

PB13

PB14

PB15

PD0

PC10

PC11

PC12

3.3V

GND

Digital lines Analog lines Interrupt lines SPI lines

Page 39

I

2

C lines

PB5

PD1

PD2

PD4

PD8

PD9

PD10

PD11

L

R

RST

GND

PA7

PA8

PA10

PD14

PD12

PD13

PE13

PE14

PD6

PD5

PB6

PB7

3.3V

GND

Reset pin

Reference ground left ch.

right ch.

PWM lines audio out

Digital I/O lines

RX

TX

SCL

SDA

UART lines

I

2

C lines

3.3V power supply

Reference Ground

Pin functions

UART lines PWM lines

14. Dimensions

81.15 mm

(3195 mils)

73.66 mm

(2900 mils)

63.5 mm

(2500 mils)

Page 40

2.54 mm

(100 mils)

2.67 mm

(105 mils)

Page 41

15. mikromedia accessories

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

01

Connect shield

02

BatteryBoost shield 03 PROTO shield

04

Gaming shield

05

Li-Polimer battery

Page 41

06

Wire jumpers

07

Stacking headers

16. What’s next?

You have now completed the journey through each and every feature of mikromedia for STM32. You got to know its 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. Find useful projects and tutorials on the Libstock website (www.libstock.com). Join our Forum (www.mikroe.com/forum) and get help from a large ecosystem of users.

Compiler

You still don’t have an appropriate compiler? Locate ARM compiler that suits you best on our site:

www.mikroe.com/arm/compilers

Choose between mikroC

, mikroBasic

and mikroPascal

and download a fully functional demo version, so you can begin building your first applications.

Visual TFT

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 enables you to quickly create your GUI. It will automatically generate code compatible with МikroElektronika compilers. Visual TFT is rich with examples, which are an excellent starting point for your future projects. Download it from the link bellow:

www.mikroe.com/visualtft

Page 42

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, mikroC

, mikroBasic

, mikroPascal

, Visual TFT

, Visual GLCD

, mikroProg

, Ready

, MINI

, mikroBUS

, EasyPIC

, EasyAVR

,

Easy8051

, click

boards 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 © 2014 MikroElektronika. All Rights Reserved.

Page 43

If you want to learn more about our products, please visit our website at www.mikroe.com

If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/support

If you have any questions, comments or business proposals, do not hesitate to contact us at [email protected]

mikromedia for STM32 M3/M4 manual

ver. 1.00d

0 100000 027240

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement