Documente Academic
Documente Profesional
Documente Cultură
microcontrollers supported
Multimedia peripherals
mikroBUS sockets
Amazing Connectivity
In-Circuit Debugger
USER'S GUIDE
EasyMx PRO
v7
Nebojsa Matic,
Owner and General Manager
of mikroElektronika
Table of contents
Introduction
Communication
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
04
USB-UART A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
05
USB-UART B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23
24
25
Ethernet communication . . . . . . . . . . . . . . . . . . . . . . . . . .
26
CAN communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
27
Power Supply
Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
06
Supported MCUs
Multimedia
08
Audio Input/Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
28
11
29
30
31
Programmer/debugger
On-board programmer . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
GLCD 128x64 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
13
Navigation switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
14
Programming software . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
Other Modules
Hardware Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16
Connectivity
34
35
Serial Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
36
I2C EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
37
Input/Output Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
18
ADC inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
mikroBUS sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
20
Piezo Buzzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
39
Click Boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
Additional GNDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
40
page 3
introduction
Introduction
ARM Cortex-M3 and Cortex-M4 are increasingly popular
microcontrollers. They are rich with modules, with high performance and
low power consumption, so creating a development board the size of
EasyMx PRO v7 for STM32 was really a challenge. We wanted to put
as many peripherals on the board as possible, to cover many internal
modules. We have gone through a process of fine tuning the
board's performance, and used 4-layer PCB to achieve maximum
efficiency. Finally, it had met all of our expectations, and even
exceeded in some. We present you the board which is powerful,
well organized, with on-board programmer and debugger and
is ready to be your strong ally in development.
EasyMx PRO v7 development Team
Amazing connectivity
mikroProg on board
Multimedia peripherals
mikroBUS support
page 4
EasyMx PROv7
introduction
power supply
723V AC or 932V DC
or via USB cable (5V DC)
and professionals
System Specification
power consumption
board dimensions
266 x 220mm (10.47 x 8.66 inch)
weight
~500g (1.1 lbs)
L
NA
IO
RE
WA
FT
SO
MIK
ROC
ILERS
, MI
COMP
KRO
BA
SIC
,M
IK
RO
PA
SC
AL
S
VER
DRI
EXAM
PLE
S
CO
PRODUCT DVD
RS
LE
PI
M
AD
DI
T
Package contains
www.mikroe.com
www.libstock.com
S
TIC
MA
HE
PROGRAMM
ERS A
ND D
EBU
GG
ER
S
BOARDS
SSORY
ACCE
RD
S
SC
D
EVELO
PME
UALS
NT
MAN
BO
A
USB cable
DS
AR
BO
EasyMx PROv7
IA
ED
M
RO
Damage resistant
protective box
M
IK
page 5
power supply
Power supply
Board contains switching power
supply that creates stable voltage
and current levels necessary
for powering each part of
the board. Power supply
section contains specialized
MC33269DT3.3 power regulator
which creates VCC-3.3V power supply,
thus making the board capable of supporting
3.3V microcontrollers. Power supply unit can be
powered in three different ways: with USB power supply
(CN20), using external adapters via adapter connector (CN30)
or additional screw terminals (CN31). External adapter voltage levels
must be in range of 9-32V DC and 7-23V AC. Use jumper J9 to specify
which power source you are using. Upon providing the power using either external
adapters or USB power source you can turn on power supply by using SWITCH 1 (Figure
3-1). Power LED ON (Green) will indicate the presence of power supply.
VCC-5V
Figure 3-2:
Power supply
unit schematic
GND
Vout
Vin
VCC-USB
2
LD78
C37
100nF
MC33269DT3.3
E17
220uF/35V
VCC-5V
VCC-3.3V
REG1
C38
100nF
POWER
E16
10uF
FP1
R68
2K2
CN20
VCC
1
2
C5
100nF
3
GND 4
USB B
VCC-5V
3
SWITCH1
U8
VCC-USB
1
VCC-SW
L1
220uH
J9
3
E19
220uF/35V
D7
MBRS140T3
C39
220pF
SWC
DRVC
SWE
IPK
CT
VIN
GND
CMPR
D6
D5
1N4007
1N4007
D4
D3
7
VCC-EXT
6
5
MC34063A
R69
0.22
VCC-SW
R74
3K
E18
220uF/35V 1N4007
CN30
CN31
1N4007
R76
1K
EasyMx PROv7
Power capacity:
power supply
Power supply:
Set J9 jumper to
USB position
To power the board with USB cable, place jumper J9
in USB position. You can then plug in the USB cable
as shown on images 1 and 2 , and turn the power
switch ON.
2. Using adapter
Set J9 jumper to
EXT position
To power the board via adapter connector, place jumper
J9 in EXT position. You can then plug in the adapter
cable as shown on images 3 and 4 , and turn the
power switch ON.
EasyMx PROv7
page 7
supported MCUs
EasyMx PROv7
C2
100nF
C3
100nF
C4
100nF
VCC
VREF
C5
100nF
C6
100nF
PA5
PA3
VCC
VCC
VCC
VCC
supported MCUs
C1
100nF
VCC
PE15
PE13
PE11
PE9
PE7
PB1
VCC
103
101
99
97
95
93
91
89
87
85
83
81
79
VCC
C7
100nF
GND
PA6
PA4
GND
PE14
PE12
PE10
PE8
PB2
PB0
104
102
100
98
96
94
92
90
88
86
84
82
80
HD3
VCC
VCC
E2
10uF
PA3
VCC
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
R1 100K
PB11
PB10_RXER
PE15
PE14
PE13
PE12
PE11
PE10
PE9
PE8
PE7
PB2
PB1
PB0
PC5
PC4
PA7
PA6
PA5
PA4
E1
10uF
PB12
PB13
PB14_nINT
SPI_MISO
PD8
PD10
PD12
PD14
PC6
PC8
GND
RXP
RXN
TXP
TXN
HD1
R2
12K1
J2
VCC
100nF
PA11
PA11/DM
DM
FP1
J3
24
23
22
21
20
19
C14
PA12
PA12/DP
DP
1
2
3
4
5
6
LED2
LED1
VDD2A
LED2
LED1
XTAL2
XTAL1
VDDCR
LAN8720A
GND
C12
2.2uF
C13
100nF
TXD1
TXD0
TXEN
RST#
nINT
MDC
TXD1
18
TXD0
17
16
TXEN
15
RST#
14 PB14_nINT
13 PC1_MDC
RXD1
RXD0
CRS_DV
TXD1
TXD0
TXEN
R4
R5
R6
R7
R8
R9
27
27
27
27
27
27
PB12
PB13
PB14
PB15
PD8
PD9
PD10
PD11
PD12
PD13
PD14
PD15
PC6
PC7
PC8
PC9
PA8
PA9
PA10
PA11
PA12
PA13
NC
GND
VDD
PC5
PC4
PA7
PB13
PB12
PB11
R11 100K
R10
10K
VCC
STM32F107VCT6
PA2
PA1
PA0-WKUP
VDDA
VREF+
VREFGNDA
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
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
PA2_MDIO
MCO
PA0
GND
VREF
PC2
PC0
PC13
PE5
PE3
PE1
PB9
PB7
PB5
GND
VREF
PC3
PC2
PC1_MDC
PC0
RST#
OSC_OUT
OSC_IN
C11
22pF
X1
C10
22pF
25MHz
77 VCC
PA0
75
PC3
73
71
69 RST#
PE6
67
PE4
65
PE2
63
PE0
61
PB8
59
BT0
57
55
PB6
53 VCC
78
76
74
72
70
68
66
64
62
60
58
56
54
HD4
OSC32_OUT
OSC32_IN
PC13
Vbat
PE6
PE5
PE4
PE3
PE2
X2
32.768KHz
C9
22pF
C8
22pF
VCC
VCC
E3
10uF
E4
10uF
7
8
9
10
11
12
RXD1
RXD0
VDDIO
RXER
CRS_DV
MDIO
MCO
Rbias
RXP
RXN
TXP
TXN
VDD1A
U2
PD8
PD9
PD10
PD11
PD12
PD13
PD14
PD15
PC6
PC7
PC8
PC9
MCO
PA9
PA10
PA11/DM
PA12/DP
PA13
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
PA14
PA15
PC10
PC11
PC12
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PB3
PB4
PB5
PB6
PB7
BOOT0
PB8
PB9
PE0
PE1
GND
VDD
TXP
RXP
LED2
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
2
4
6
8
10
12
14
16
18
20
22
24
26
PA14
PA15
SPI_SCK
SPI_MISO
SPI_MOSI
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PB3
PB4
PB5
PB6
PB7
BT0
PB8
PB9
PE0
PE1
1
3
5
7
9
11
13
15
17
19
21
23
25
VDD
GND
PB11
PB10
PE15
PE14
PE13
PE12
PE11
PE10
PE9
PE8
PE7
PB2
PB1
PB0
PC5
PC4
PA7
PA6
PA5
PA4
VDD
GND
PA3
U1
TXN
RXN
LED1
SPI_SCK
SPI_MOSI
PD9
PD11
PD13
PD15
PC7
PC9
Vbat
VCC
N
O
103 VCC-3.3V
101
PB10
99
PE15
97
PE13
95
PE11
93
PE9
91
PE7
89
PB1
87
PC5
85
PA7
83
PA5
81
PA3
79 VCC-3.3V
RXD1
RXD0
BT0
PB2
VCC-3.3V
VCC-3.3V
R80
1K
PB10_RXER
CRS_DV
PA2_MDIO
VCC-3.3V
R3 1K5
PD0
PD2
PD4
PD6
PB4
GND
4
6
GND
PB11
PE14
PE12
PE10
PE8
PB2
PB0
PC4
PA6
PA4
PA2
GND
28
30
32
34
36
38
40
42
44
46
48
50
52
104
102
100
98
96
94
92
90
88
86
84
82
80
E8
10uF
GND
PA9
DM
PA11
PA13
PA15
E7
10uF
SW11
27
29
31
33
35
37
39
41
43
45
47
49
51
HD2
1
3
5
7
9
11
13
15
17
19
21
23
25
2
TX_P
4
RX_P
LED2
6
8
PB12
10 MCU_MISO
12
PD8
14
PD10
16
PD12
18
PD14
20
PC6
22
PC8
24
PA8
26
GND
PD1
PD3
PD5
PD7
PB3
VCC
VCC
PA10
DP
PA12
PA14
TX_N
RX_N
LED1
MCU_SCK
MCU_MOSI
PD9
PD11
PD13
PD15
PC7
PC9
VCC-3.3V
VCC-3.3V
VCC-3.3V
E12
10uF
7
9
1
3
5
7
9
1
3
5
7
9
1
EasyMx PROv7
28
GND
30
PA9
32 USB-D_N
PA11
34
36 PA13-MCU
38 PA15-MCU
PC11
40
PD0
42
PD2
44
PD4
46
PD6
48
50 PB4-MCU
GND
52
GND
PA1
MCU_VREF
PC2
PC0
PC13
PE5
PE3
PE1
PB9
PB7
PB5
GND
78
76
74
72
70
68
66
64
62
60
58
56
54
77
75
73
71
69
67
65
63
61
59
57
55
53
VCC-3.3V
PA0
PC3
PC1
NRST
PE6
PE4
PE2
PE0
PB8
BT0
PB6
VCC-3.3V
VCC-3.3V
R45
10K
NRST
R47
T68
100
C31
100nF
RESET
VCC-3.3V
E11
10uF
page 9
supported MCUs
1
Figure 4-3: On-board MCU
socket has silkscreen
markings which will help
you to correctly orient the
MCU card before inserting.
page 10
2
Figure 4-4:
Place the
MCU card on
the socket
so that pins
are aligned
correctly.
3
Figure 4-5 Properly
placed MCU card.
EasyMx PROv7
mikroElektronika currently offers total of three populated MCU cards. Two with
Cortex-M3: STM32F107VCT6 microcontroller (default), STM32F207VGT6
microcontroller and one with Cortex-M4: STM32F407VGT6 microcontroller. You
can also purchase empty PCB cards that you can populate on your own and solder
any supported microcontroller you need in your development. There are total of
four empty PCB cards available. This way your EasyMx PRO v7 for STM32 board
becomes truly flexible and reliable tool for almost any of your ARM projects. MCU
cards can also be used in your final devices. For complete list of currently available
MCU cards, please visit the board webpage:
http://www.mikroe.com/eng/products/view/852/easymx-pro-v7-for-stm32/
NOTE:
"HP" (High performance) - Empty
MCU cards that support only high
performance
STM32F20x
and
STM32F40x microcontrollers family.
"ETH" (Ethernet) - Empty MCU cards
with single-chip Ethernet PHY
layer transceiver which provides
additional Ethernet functionality to
microcontrollers
Default 100-pin ETH MCU card
with STM32F107VCT6
EasyMx PROv7
page 11
supported MCUs
programming
On-board
programmer
What is mikroProg?
mikroProg is a fast programmer and debugger which is based on ST-LINK V2 programmer. Smart engineering allows
mikroProg to support over 180 ARM Cortex-M3 and Cortex-M4 devices from STM32 in a single programmer. It also
features a powerful debugger which will be of great help in your development. Outstanding performance and easy operation are
among it's top features.
Enabling mikroProg
VCC-3.3V
LD68
VCC-USB
R2
2K2
VCC-USB
CN20
FP1
VCC
D-
USB-PROG_N
D+
USB-PROG_P
GND
LED_STLINK
PA14-MCU
TCK/SWCLK
C5
100nF
TMS/SWDIO
J2
PA15-MCU
J3
PB3-MCU
J4
PB4-MCU
PA15
TDO/SWO
R45
10K
R47
100
C31
100nF
NRST
PB3
PB4
TRST
J5
VCC-3.3V
NRST
PA13-MCU
PA13
TDI
VCC-3.3V
RESET
PA14
J1
USB B
T68
DATA BUS
LINK
How do I start?
In order to start using mikroProg, and program your
microcontroller, you just have to follow two simple
steps:
page 12
EasyMx PROv7
programming
STM32F101R6
STM32F102C6
STM32F103V8
STM32F205RE
STM32F215RE
STM32L151VC
STM32F100C6
STM32F101R8
STM32F102C8
STM32F103VB
STM32F205RF
STM32F215RG
STM32L151VD
STM32F100C8
STM32F101RB
STM32F102CB
STM32F103VC
STM32F205RG
STM32F215VE
STM32L151ZC
STM32F100CB
STM32F101RC
STM32F102R4
STM32F103VD
STM32F205VB
STM32F215VG
STM32L151ZD
STM32F100R4
STM32F101RD
STM32F102R6
STM32F103VE
STM32F205VC
STM32F215ZE
STM32L152C6
STM32F100R6
STM32F101RE
STM32F102R8
STM32F103VF
STM32F205VE
STM32F215ZG
STM32L152C8
STM32F100R8
STM32F101RF
STM32F102RB
STM32F103VG
STM32F205VF
STM32F217IE
STM32L152CB
STM32F100RB
STM32F101RG
STM32F103C4
STM32F103ZC
STM32F205VG
STM32F217IG
STM32L152QC
STM32F100RC
STM32F101T4
STM32F103C6
STM32F103ZD
STM32F205ZC
STM32F217VE
STM32L152QD
STM32F100RD
STM32F101T6
STM32F103C8
STM32F103ZE
STM32F205ZE
STM32F217VG
STM32L152R6
STM32F100RE
STM32F101T8
STM32F103CB
STM32F103ZF
STM32F205ZF
STM32F217ZE
STM32L152R8
STM32F100V8
STM32F101TB
STM32F103R4
STM32F103ZG
STM32F205ZG
STM32F217ZG
STM32L152RB
STM32F100VB
STM32F101V8
STM32F103R6
STM32F105R8
STM32F207IC
STM32L151C6
STM32L152RC
STM32F100VC
STM32F101VB
STM32F103R8
STM32F105RB
STM32F207IE
STM32L151C8
STM32L152RD
STM32F100VD
STM32F101VC
STM32F103RB
STM32F105RC
STM32F207IF
STM32L151CB
STM32L152V8
STM32F100VE
STM32F101VD
STM32F103RC
STM32F105V8
STM32F207IG
STM32L151QC
STM32L152VB
STM32F100ZC
STM32F101VE
STM32F103RD
STM32F105VB
STM32F207VC
STM32L151QD
STM32L152VC
STM32F100ZD
STM32F101VF
STM32F103RE
STM32F105VC
STM32F207VE
STM32L151R6
STM32L152VD
STM32F100ZE
STM32F101VG
STM32F103RF
STM32F107RB
STM32F207VF
STM32L151R8
STM32L152ZC
STM32F101C4
STM32F101ZC
STM32F103RG
STM32F107RC
STM32F207VG
STM32L151RB
STM32L152ZD
STM32F101C6
STM32F101ZD
STM32F103T4
STM32F107VB
STM32F207ZC
STM32L151RC
STM32L162QD
STM32F101C8
STM32F101ZE
STM32F103T6
STM32F107VC
STM32F207ZE
STM32L151RD
STM32L162RD
STM32F101CB
STM32F101ZG
STM32F103T8
STM32F205RB
STM32F207ZF
STM32L151V8
STM32L162VD
STM32F101R4
STM32F102C4
STM32F103TB
STM32F205RC
STM32F207ZG
STM32L151VB
STM32L162ZD
STM32F407IE
STM32F407VG
STM32F415RG
STM32F417IE
STM32F417VG
STM32F405VG
STM32F407IG
STM32F407ZE
STM32F415VG
STM32F417IG
STM32F417ZE
STM32F405ZG
STM32F407VE
STM32F407ZG
STM32F415ZG
STM32F417VE
STM32F417ZG
EasyMx PROv7
page 13
L
NA
IO
RE
WA
FT
SO
MIK
ROC
ILERS
, MI
COMP
KRO
BA
SIC
,M
IK
RO
PA
SC
AL
S
VER
DRI
EXAM
PLE
S
CO
PRODUCT DVD
RS
LE
PI
M
AD
DI
T
DVD://download/eng/software/
development-tools/arm/stm32/
mikroprog/st_link_v2_usb_driver.zip
S
TIC
MA
HE
PROGRAMM
ERS A
ND D
EBU
GG
ER
S
BOARDS
SSORY
ACCE
RD
S
D
EVELO
PME
UALS
NT
MAN
BO
A
le on Product
D!
DS
AR
BO
SC
lab
M
IK
Av
ai
IA
ED
M
RO
programming
page 14
EasyMx PROv7
L
NA
IO
RE
WA
FT
SO
MIK
ROC
ILERS
, MI
COMP
KRO
BA
SIC
,M
IK
RO
PA
SC
AL
CO
S
VER
DRI
EXAM
PLE
S
PRODUCT DVD
www.mikroe.com
www.libstock.com
DVD://download/eng/software/development-tools/arm/mikroprog/
mikroprog_suite_for_arm_v110.zip
S
TIC
MA
HE
PROGRAMM
ERS A
ND D
EBU
GG
ER
S
BOARDS
SSORY
ACCE
DS
AR
BO
RD
S
D
EVELO
PME
UALS
NT
MAN
BO
A
le on Product
D!
IA
ED
M
RO
M
IK
SC
lab
Av
ai
RS
LE
PI
M
AD
DI
T
programming
Programming software
DV
Quick Guide
1
EasyMx PROv7
page 15
programming
Hardware Debugger
What is Debugging?
Every developer comes to a point where he has to monitor the
code execution in order to find errors in the code, or simply
to see if everything is going as planed. This hunt for bugs,
or errors in the code is called debugging. There are two ways
to do this: one is the software simulation, which enables
you to simulate what is supposed to be happening on the
microcontroller as your code lines are executed, and the other,
most reliable one, is monitoring the code execution on the
chip itself. And this latter one is called hardware debugging.
"hardware" means that it is the real deal - code executes right on
the target device.
Supported Compilers
All MikroElektronika compilers, mikroC, mikroBasic and
mikroPascal for ARM natively support mikroProg for STM32,
as well as other compilers, including KEIL, IAR. Specialized
DLL module allows compilers to exploit the full potential of fast
hardware debugging. Along with compilers, make sure to install
the appropriate programmer drivers and mikroProg Suite
for ARM programming software, as described on pages 14
and 15.
page 16
Figure 5-3: mikroC PRO for ARM compiler in debugging view, with SFR registers in Watch Window
EasyMx PROv7
Here is a short overview of which debugging commands are supported in mikroElektronika compilers. You can see what each command does,
and what are their shortcuts when you are in debugging mode. It will give you some general picture of what your debugger can do.
Toolbar
Icon
Command Name
Shortcut
Description
Start Debugger
[F9]
Starts Debugger.
Run/Pause Debugger
[F6]
Run/Pause Debugger.
Stop Debugger
[Ctrl + F2]
Stops Debugger.
Step Into
[F7]
Step Over
[F8]
Executes the current program line, then halts. If the executed program
line calls another routine, the debugger will not step into it. The whole
routine will be executed and the debugger halts at the first instruction
following the call.
Step Out
[Ctrl + F8]
Run To Cursor
[F4]
Toggle Breakpoints
[F5]
Show/Hide breakpoints
[Shift+F4]
Clears breakpoints
[Shift+Ctrl+F5]
Jump to interrupt
[F2]
EasyMx PROv7
page 17
programming
Debugger commands
connectivity
Input/Output Group
One of the most distinctive features of EasyMx PRO
v7 for STM32 are its Input/Output PORT groups. They
add so much to the connectivity potential of the board.
PA15
PA14
PA13
PA12
PA11
PA10
PA9
PA8
DATA BUS
PA8
PA10
PA12
PA14
N
O
PORTA_LED
1
2
UP
PULL
DOWN
3
4
5
+1 2 3 4 5 6 7 8
VCC-3.3V
SW1
PA9
PA11
PA13
PA15
PA8
PA10
PA12
PA14
VCC-3.3V
CN1
PA9
PA11
PA13
PA15
CN4
7
8
Tri-state DIP switches, like SW1 on Figure 6-3, are used to enable 4K7
pull-up or pull-down resistor on any desired port pin.
Each of these switches has three states:
1. middle position disables both pull-up and pull-down
feature from the PORT pin
2. up position connects the resistor in pull-up state to
the selected pin
3. down position connects the resistor in pull-down
Figure 6-2:
state to the selected PORT pin.
Tri-state DIP
switch on PORTA/H
VCC-3.3V
SW15
PORTA_LEVEL
J7
T3
T4
T5
LD8
PA9
T6
RN8
10K
PA8
LD7
PA10
PA11
PA12
PA13
PA14
T2
LD6
RN7
10K
T7
PA8
J6
T1
LD5
RN6
10K
PA9
220
LD4
RN5
10K
PA10
R27
LD3
RN4
10K
PA11
SW10
220
RN3
10K
PA12
R26
PA14
LD2
PA15
VCC-3.3V
LD1
VCC
BUTTON PRESS LEVEL
GND
PA15
+1 2 3 4 5 6 7 8
RN2
10K
PA13
RN1
10K
T8
Figure 6-3: Schematic of the single I/O group connected to microcontroller PORTA/H
page 18
EasyMx PROv7
connectivity
Headers Buttons
LEDs
LED (Light-Emitting
Diode) is a highly
efficient electronic
78
77
76
75 PA0
light source. When
74
73
72
71
SMD LED
connecting
LEDs,
70
69
68
67
66
65
it is necessary to
64
63
62
61
place
a
current
60
59
SMD resistor
58
57
limiting
resistor
in
56
55
limiting current
54
53
through the LED
series so that LEDs
are provided with
the current value
specified by the manufacturer. The current varies from
0.2mA to 20mA, depending on the type of the LED and
the manufacturer. The EasyMx PRO v7 for STM32 board
uses low-current LEDs with typical current consumption
of 0.2mA or 0.3mA. Board
contains 67 LEDs which can
be used for visual indication
of the logic state on PORT
pins. An active LED indicates
that a logic high (1) is present
on the pin. In order to enable
PORT LEDs, it is necessary
to enable the corresponding
Figure 6-6: SW15.1
DIP switch on SW15 (Figure
through SW15.8
6-6).
switches are used to
enable PORT LEDs
Reset Button
EasyMx PROv7
page 19
connectivity
mikroBUS sockets
DATA BUS
PA4
PC2
PD13
MCU_SCK
MCU_MISO
MCU_MOSI
VCC-3.3V
AN
RST
CS
SCK
MISO
MOSI
3.3V
GND
PWM
INT
RX
TX
SCL
SDA
5V
GND
PA0
PD10
PD9
PD8
PB6
PB7
VCC-5V
PA5
PC3
PD14
MCU_SCK
MCU_MISO
MCU_MOSI
VCC-3.3V
AN
RST
CS
SCK
MISO
MOSI
3.3V
GND
PWM
INT
RX
TX
SCL
SDA
5V
GND
PD12
PD11
PD6
PD5
PB6
PB7
VCC-5V
Figure 7-1:
mikroBUS
connection
schematic
page 20
EasyMx PROv7
connectivity
Opto click
BEE click
BlueTooth click
GPS click
LightHz click
EasyMx PROv7
DAC click
literally zero hardware configuration. Just plug and play. Visit the Click boards
webpage for the complete list of available boards:
http://www.mikroe.com/click/
DIGIPOT click
SHT1x click
THERMO click
page 21
Enabling USB-UART A
EXAM
PLE
S
BOARDS
SSORY
ACCE
DS
AR
BO
RD
S
D
EVELO
PME
UALS
NT
MAN
BO
A
le on Product
D!
M
IK
SC
lab
DV
RX
TX
CN22
6
7
8
US B UA RT A
CONNECTOR
R15
4K7
VCC 1
LD70
R18
4K7
D-
D+
GND 4
USB B
FTDI1-D_N
FTDI1-D_P
C11
100nF
VCC-3.3V
R14
2K2
LD69
S
TIC
MA
HE
N
O
PROGRAMM
ERS A
ND D
EBU
GG
ER
S
DATA BUS
www.mikroe.com
www.libstock.com
ai
VCC-3.3V
RX-LED1
TX-LED1
CO
S
VER
DRI
FT232RL
28
27
26
25
24
23
22
21
20
19
18
17
16
15
BA
SIC
,M
IK
RO
PA
SC
AL
PRODUCT DVD
TXD
OSCO
DTR#
OSCI
RTS#
TEST
VCCIO
AGND
RXD
NC
RI#
CBUS0
GND
CBUS1
FT232RL GND
NC
DSR#
VCC
DCD#
RESET#
CTS#
GND
CBUS4
3V3OUT
CBUS2
USBDM
CBUS3
USBDP
MIK
ROC
ILERS
, MI
COMP
KRO
U2
Figure 8-1:
USB-UART A
connection
schematic
1
2
3
4
5
6
7
8
9
10
11
12
13
14
VCC-5V
DVD://download/eng/software/development-tools/
universal/ftdi/vcp_drivers.zip
Av
TX-FTDI1
RX-FTDI1
SW12
page 22
RE
WA
FT
SO
VCC-3.3V
PA9
PA10
L
NA
IO
RS
LE
PI
M
IA
ED
M
RO
communication
USB-UART A
VCC-3.3V
R21
10K
VCC-5V
C6
100nF
VCC-5V
C7
100nF
E1
10uF
EasyMx PROv7
communication
USB-UART B
If you need to use more than one USB-UART in your
application, you have another USB-UART B connector available
on the board too. Both available USB-UART modules can operate at the
same time, because they are routed to separate microcontroller pins.
Enabling USB-UART B
EXAM
PLE
S
BOARDS
SSORY
ACCE
IA
ED
M
RO
DS
AR
BO
RD
S
D
EVELO
PME
UALS
NT
MAN
BO
A
le on Product
D!
M
IK
SC
lab
N
O
DV
VCC 1
TX
7
8
LD74
FTDI2-D_N
FTDI2-D_P
US B UA RT B
CONNECTOR
R30
4K7
R37
4K7
C26
100nF
LD73
VCC-3.3V
RX
RX-LED2
TX-LED2
28
27
26
25
24
23
22
21
20
19
18
17
16
15
R29
2K2
S
TIC
MA
HE
PROGRAMM
ERS A
ND D
EBU
GG
ER
S
FT232RL
CO
DATA BUS
PRODUCT DVD
S
VER
DRI
TXD
OSCO
DTR#
OSCI
RTS#
TEST
VCCIO
AGND
RXD
NC
RI#
CBUS0
GND
CBUS1
FT232RL GND
NC
DSR#
VCC
DCD#
RESET#
CTS#
GND
CBUS4
3V3OUT
CBUS2
USBDM
CBUS3
USBDP
BA
SIC
,M
IK
RO
PA
SC
AL
VCC-3.3V
Figure 9-1:
USB-UART B
connection
schematic
1
2
3
4
5
6
7
8
9
10
11
12
13
14
U4
MIK
ROC
ILERS
, MI
COMP
KRO
Av
VCC-5V
CN23
TX-FTDI2
RX-FTDI2
www.mikroe.com
www.libstock.com
ai
SW12
EasyMx PROv7
RE
WA
FT
SO
DVD://download/eng/software/development-tools/
universal/ftdi/vcp_drivers.zip
VCC-3.3V
PD5
PD6
L
NA
IO
RS
LE
PI
M
D-
D+
GND 4
USB B
VCC-3.3V
R38
10K
VCC-5V
C24
100nF
VCC-5V
C25
100nF
E6
10uF
page 23
communication
USB HOST
communication
USB is the acronym for Universal Serial Bus. This is a very popular industry standard that defines
cables, connectors and protocols used for communication and power supply between computers and other
devices. EasyMx PRO v7 for STM32 contains USB HOST connector (CN24) for USB Standard Type A plug,
which enables microcontrollers that support USB communication to establish a connection with the target device
(eg. USB Keyboard, USB Mouse, etc). USB host also provides the necessary 5V power supply to the target via TPS2041B
IC. Detection whether USB
VCC-3.3V
VCC-5V
device is connected to HOST
DATA BUS
connector can be done through
R31
R32
VBUS line. Connection of USB
VCC-3.3V
4K7
2K2
R34
HOST VBUS line and PA10 pin
47K
VCC-5V
LD71
LD72
R36
is
established when SW10.7 is
OC
ON
10K
U5
4
USB-PSW
3
on.
EN OC
CN24
GND
IN OUT
1
2
E9
10uF
E10
10uF
D1
BAT43
5
6
7
PA9
PA10
SW12
USB-VBUS
VCC
USB-D_N
D-
USB-D_P
D+
GND
TPS2041B
R40
R41
100
10K
Q2
BC846
US B HOS T
CONNECTOR
N
O
USB A
EasyMx PROv7
communication
USB device
communication
R48 100
1 VCC
D+
D_P
USB-D_P
6
8
ON
LD76
GND
USB-D_N
USB-VBUS
4 GND
USB B
R53 27
USB-VBUS
R50 27
D_N
D-
SW12
R58
4K7
GND
Figure 11-2:
Enabling
USB DEVICE
detection
via VBUS
line
D2 BAT43
N
O
CN26
Detecting connection
CONNECTOR
US B DEVICE
EasyMx PRO v7 for STM32 also contains USB DEVICE connector (CN26) which enables
microcontrollers that support USB communication to establish a connection with the target
host (eg. PC, Laptop, etc). It lets you build a slave USB device (HID, Composite, Generic, etc.).
Connector supports USB Standard Type B plug. Detection whether USB device is connected to
HOST can be done through VBUS line. This line is traced to microcontroller PA9 pin. Connection of
USB DEVICE VCC line and PA9 pin is established when SW12.7 DIP switch is in ON position. When
connected to HOST, dedicated amber-colored power LED will light up as well. This VCC line cannot be
used for powering the board. It's only used for detecting connection.
DATA BUS
PA9
EasyMx PROv7
page 25
communication
Ethernet
communication
VCC-3.3V
LD75
LED2
R44
270
LED2
VCC-3.3V
A2
K2
R46
51
TD+
R49
51
CT
TD-
RX_P
RD+
R54
51
A1
K1
CT
RD-
R55
51
RJ45
C32
10nF
RX_N
C33
10nF
R60
LD77
LED1
TX_N
TX_N
RX_N
LED1
1
3
5
7
9
11
13
15
17
19
21
23
25
LED1
270
2 TX_P
4 RX_P
6 LED2
8
10
12
14
16
18
20
22
24
26
CONNECTOR
ETHERNET
TX_P
FP3
CN25
EasyMx PROv7
communication
CAN
communication
VCC-3.3V
R57 10
TX-CAN
RX-CAN
1
2
3
4
U7
D
GND
Vdd
R
Rs
CANH
CANL
Vref
8
7
6
5
CANH
CANL
CN28
N
O
SN65HVD230
1
2
DATA BUS
3
4
5
PD1
PD0
6
7
8
SW12
EasyMx PROv7
Enabling CAN
Figure 13-2:
enabling
CAN
communication
page 27
multimedia
Audio I/O
It's hard to imagine modern multimedia devices without high quality audio reproduction
modules. Sounds and music are almost as important as graphical user interfaces.
Along with other multimedia modules, EasyMx PRO v7 for STM32 contains high
end stereo VS1053 audio codec. It features Ogg Vorbis/MP3/AAC/WMA/FLAC/
WAV/MIDI audio decoder, as well as an PCM/IMA ADPCM/Ogg Vorbis encoder on a
single chip. Board also contains two stereo audio connectors for interfacing with
standard 3.5mm stereo audio jacks. VS1053 receives the input bit stream through a
serial input bus, which it listens to as a system slave. The input stream is decoded and
passed through a digital volume control to an 18-bit oversampling, multi-bit, sigma-delta
Digital to Analog Converter (DAC). The
decoding is controlled via a serial control
bus. In addition to the basic decoding,
it is possible to add application specific
features like DSP effects to the user RAM
memory. You can build music players,
Figure 14-2:
audio recording devices, internet radio
Enabling
player applications, and much more.
audio codec
R4
10K
VCC-3.3V
XTEST
SO
SI
SCLK
TX
RX
GPIO5
VS1053
R
GBUF
R3 10
R5
10
R6
20
R7
20
VCC-3.3V
C3
47nF
C4
10nF
C2
10nF
R11
1K
R8
100k
MP3-DREQ
MICP
CN21
R13
1K
C8
100pF
C9
100pF
MICN
E2
10uF
E3
10uF
C10
100pF
R17
1K
MICROPHONE
R19
1K
MP3-DCS
MP3-CS#
commu
nication
lines
CN19
PHONEJACK
R20
100K
VCC-1.8V
VCC-3.3V
N
O
3
4
R22
1M
X1
MCU_SCK
MCU_MISO
MCU_MOSI
PC6
PC7
PC8
PC9
12.288MHz
5
6
7
C13 22pF
page 28
R1 10
MICP
MICN
MP3-RST#
1
2
3
4
5
6
7
8
9
10
11
12
C12 22pF
DATA BUS
24
23
22
21
20
19
18
17
16
15
14
13
GPIO
VCC-3.3V
MCP/LN1
MCP/LN
MIC
MICN
XRESE
XRESET
DGND
DGND0
CVDD
CVDD0
IOVDD
IOVDD0
CVDD
CVDD1
DRE
DREQ
GPIO
GPIO2
GPIO
GPIO3
GPIO
GPIO6
GPIO7
GPIO7
GPIO
R12 27
GPIO4
GND
GPIO1
VDD2
CVDD2
CS
XCS
GND4
DGND4
GND3
DGND3
GND2
DGND2
OVDD2
IOVDD2
TALI
XTAL1
TALO
XTAL0
GND1
DGND1
CO
VC0
OVDD1
IOVDD1
DCS/BSYNC
XDCS/BSYNC
31
30
29
28
27
26
25
PH_MISO R9 27
PH_MOSI
PH_SCK
AGND
AGND0
AVDD
AVDD0
RIGH
RIGHT
AGND
AGND1
AGND
AGND2
GBU
GBUF
AVDD
AVDD1
RCA
RCAP
AVDD
AVDD2
LEF
LEFT
AGND
AGND3
LN
LN2
U1
36
35
34
33
R16
10K
GBUF
VCC-1.8V
37
38
39
40
41
42
43
44
45
46
47
48
VCC-3.3V
PH_SCK
PH_MISO
PH_MOSI
MP3-DREQ
MP3-RST#
MP3-CS#
MP3-DCS
1
2
E4
10uF
C14
100nF
C18
100nF
C19
100nF
C15
100nF
C20
100nF
C16
2.2uF
U3
IN OUT
GND
EN ADJ
AP7331-ADJ
5
R23
120K
R24
R25
22K
E5
10uF
C21
100nF
C17
100nF
C22
100nF
C23
100nF
12K1
SW13
EasyMx PROv7
multimedia
VCC-3.3V
PH_SCK
PH_MISO
PH_MOSI
E13
10uF
MCU_SCK
MCU_MISO
MCU_MOSI
4
5
C30
100nF
FERRITE
N
O
Enabling microSD
VCC-MMC
6
7
8
R52
10K
PH_SCK
R56
N
O
PH_MISO
PD3
PD15
SD-CD#
27
SD-CS#
SD-CD#
GGND
SD-CS#
PH_MOSI
4
8
CD
MICROSD
1
2
4
5
6
7
CS
Din
+3.3V
SCK
GND
Dout
SW13
R51
10K
CA RD S LOT
microS D
CN27
EasyMx PROv7
FP2
DATA BUS
1
SW14
multimedia
TFT display
320x240 pixels
One of the most powerful ways of presenting data
and interacting with users is through color displays
and touch panel inputs. This is a crucial element of any
multimedia device. EasyMx PRO v7 for STM32 features
EasyTFT board carrying 320x240 pixel 2.83" color TFT
display with LED back-light and HX8347D controller.
CN32
GLCD-TFT SOCKET
20
BCK_PWM
R64
1K
R66
Q5
BC846
4K7
PMRD
PMWR
GND
VCC
NC
RS
NC
CS
D0
D1
D2
D3
D4
D5
D6
D7
RST
NC
+5V
BPWM
R62
20
VCC-3.3V
BPWM
Figure 16-1:
TFT display connection
schematic
BCK_LIGHT
BPWM
PE15
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
PE8
PE12
VCC-5V
PE10
PE11
IMPORTANT:
N
O
VCC-5V
1
2
3
BCK_LIGHT
BCK_PWM
PE9
5
6
7
8
24
XR
YU
XL
YD
21
page 30
DATA BUS
SW13
EasyMx PROv7
VCC-3.3V
VCC-1.8V
4
5
E14
10uF
6
7
8
BOTTOM
LEFT
DRIVEA
DRIVEB
FERRITE
R59
1K
Q3
BC856
VCC-3.3V
E15
10uF
R61
SW11
10K
20
R63
4K7
Q4
BC846
R65
RIGHT
10K
VREF
PMRD
PMWR
GND
VCC
NC
RS
NC
CS
D0
D1
D2
D3
D4
D5
D6
D7
RST
NC
+5V
BPWM
VREF
FP4
PB0
PB1
PB8
PB9
GLCD-TFT SOCKET
Q6
BC856
R67
DRIVEA
10K
TOP
LEFT
CN29
Q7
BC846
R70
100K
R71
C35
10nF
10K
VCC-3.3V
BOTTOM
21
R75
4K7
Q8
BC846
24
XR
YU
XL
YD
VREF
Figure 17-2:
Turn on switches
SW11.5, SW11.6,
SW11. 7 and
SW11. 8 to enable
Touch panel
controller
N
O
multimedia
Touch Panel
controller
R77
100K
C40
10nF
R78
DRIVEB
10K
RIGHT
TOP
LEFT
BOTTOM
EasyMx PROv7
page 31
multimedia
GLCD 128x64
Graphical Liquid Crystal Displays, or GLCDs
are used to display monochromatic graphical
content, such as text, images, human-machine
interfaces and other content. EasyMx PRO
v7 for STM32 provides the connector and
necessary interface for supporting GLCD with
resolution of 128x64 pixels, driven by the KS108
or compatible display controller. Communication
with the display module is done through CN32
IMPORTANT:
CN32
BPWM
GLCD_VEE
PE12
PE13
PE15
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
PE8
VEE
BCK_LIGHT
BPWM
In order to use PWM back-light both SW13.3 and SW13.4 switches must be enabled at the same
time.
PE10
PE11
VCC-5V
R62
20
VCC-3.3V
R64
1K
R66
GLCD-TFT SOCKET
BCK_PWM
Q5
BC846
4K7
VCC-5V
N
O
1
2
Write mode.
BCK_LIGHT
BCK_PWM
4
6
7
8
DATA BUS
SW13
VEE
potentiometer P3
LED+ - Connection with the back light LED anode
LED- - Connection with the back light LED cathode
page 32
PE9
GLCD_VEE
P2
10K
EasyMx PROv7
multimedia
Navigation switch
When working with multimedia
applications it is far more intuitive
to use a single joystick than several
different push buttons that are more
far apart. This is more natural for
users and they can browse through
on-screen menus, or even play games
much easier. EasyMx PRO v7 for STM32
features navigation switch with five different
positions: Up, Down, Left, Right and Center.
Each of those acts as a button, and is connected
to one of the following microcontroller pins: PD4,
PB5, PD2, PA6, PC13 (respectively). Before using the
navigation switch, it is necessary to pull-up mentioned
microcontroller pins using tri-state DIP switches located in I/O
groups. After pressing the navigation switch in desired direction,
associated microcontroller pins are connected to GND, which can be
detected in user software.
Figure 19-2: Navigation switch is an intuitive solution for browsing
through on-screen menus.
UP
CENTER
LEFT
RIGHT
PD2
PD4
PA6
R81 220
DOWN
PC13
KEY1
PB5
PA6
DATA BUS
PB5
UP
PULL
DOWN
+1 2 3 4 5 6 7 8
UP
PULL
DOWN
+1 2 3 4 5 6 7 8
SW2
PD2
PC13
PD4
VCC-3.3V
UP
PULL
DOWN
+1 2 3 4 5 6 7 8
+1 2 3 4 5 6 7 8
SW5
SW4
VCC-3.3V
UP
PULL
DOWN
VCC-3.3V
SW8
VCC-3.3V
Figure 19-1: Navigation switch connection schematic. Pull-up resistors should be enabled during operation
EasyMx PROv7
page 33
other modules
DS1820 - Digital
Temperature Sensor
DS1820 is a digital temperature
sensor that uses 1-wire
interface for its operation. It is
capable of measuring temperatures
within the range of -55 to 128C,
and provides 0.5C accuracy for
temperatures within the range of -10 to
85C. It requires 3V to 5.5V power supply
for stable operation. It takes maximum
GND
VCC-3.3V
Figure 20-3:
Enabled SW14.5
DIP switch
N
O
DQ
VCC
VCC-3.3V
3
4
DS1820
C41
100nF
PB10
PA3
7
8
R33
1K5
Figure 20-2:
DS1820 correctly
placed in socket
Figure 20-1:
DS1820
socket
DATA BUS
SW14
EasyMx PROv7
other modules
LM35 - Analog
Temperature Sensor
+150C. Board provides a
separate socket (TS2) for
the LM35 sensor in TO-92
plastic packaging. Readings
are done with microcontroller
using single analog input line,
which is selected with DIP switch
SW14. Switch connects the sensor with
PC0 microcontroller pin.
Figure 21-2:
LM35 correctly
placed in socket
Figure 21-3:
Enabled SW14.7
DIP switch
VCC
VOUT
GND
R79
100
N
O
Figure 21-1:
LM35 socket
DATA BUS
1
2
3
4
5
6
PC0
LM35
EasyMx PRO v7 for STM32 enables you to get analog readings from the LM35
sensor using PC0 microcontroller pin. The connection is done placing SW14.7
DIP switch to ON position (Figure 21-3). When placing the sensor in the socket
make sure that half-circle on the boards silkscreen markings matches the
rounded part of the LM35 sensor. If you accidentally connect the sensor the
other way, it can be permanently damaged and you might need to replace it with
another one. During the readings of the sensor, make sure that no other device
uses the selected analog line, because it may interfere with the readings.
SW14
C29
100nF
EasyMx PROv7
page 35
other modules
What is SPI?
The Serial Peripheral Interface Bus or SPI bus is a synchronous serial data link standard that operates in full
duplex mode. It consists of four lines MISO (Master Input Slave Output), MOSI (Master Output Slave Input), SCK
(Clock) and CS (Chip Select). Devices communicate in master/slave mode where the master device initiates the
data frame. Multiple slave devices are allowed with individual slave select (chip select) lines.
VCC-3.3V
DATA BUS
1
2
3
PH_SCK
PH_MISO
PH_MOSI
FLASH-CS#
PH_MISO
R43
C27
100nF
MCU_SCK
MCU_MISO
MCU_MOSI
N
O
VCC-3.3V
5
7
8
SW13
page 36
27
1
2
3
4
U6
CS
SDO
WP
GND
25P80
PD7
R39
100K
VCC-3.3V
FLASH-CS#
VCC
HOLD
SCK
SDI
8
7
6
5
Figure 22-1:
Schematic of
Serial Flash
Memory module
PH_MOSI
PH_SCK
EasyMx PROv7
I C EEPROM
Enabling I2C EEPROM
Figure
23-2: Turn
on switches
SW14.1
and SW14.2
to connect
EEPROM lines
to MCU
N
O
PB6
PB7
1
2
What is I2C?
I2C is a multi-master serial single-ended bus that is used to attach low-speed peripherals to computer or embedded
systems. IC uses only two open-drain lines, Serial Data Line (SDA) and Serial Clock (SCL), pulled up with
resistors. SCL line is driven by a master, while SDA is used as bidirectional line either by master or slave device.
Up to 112 slave devices can be connected to the same bus. Each slave must have a unique address.
EEPROM-SCL
EEPROM-SDA
3
4
5
VCC-3.3V
6
7
8
DATA BUS
EasyMx PROv7
SW14
other modules
C36
100nF
VCC-3.3V
1
2
3
4
VCC-3.3V
U9
A0
A1
A2
VSS
VCC
WP
SCL
SDA
24AA01 EEPROM
8
7
6
5
VCC-3.3V
R72
2K2
R73
2K2
EEPROM-SCL
EEPROM-SDA
Figure 23-1:
Schematic of
I2C EEPROM
module
page 37
other modules
ADC inputs
Digital signals have two discrete states, which are decoded as high
and low, and interpreted as logic 1 and logic 0. Analog signals,
on the other hand, are continuous, and can have any value
within defined range. A/D converters are specialized circuits
which can convert analog signals (voltages) into a digital
representation, usually in form of an integer number.
The value of this number is linearly dependent on
the input voltage value. Most microcontrollers
nowadays internally have A/D converters
connected to one or more input pins. Some
of the most important parameters of
A/D converters are conversion time
and resolution. Conversion time
In order to connect the output of the
determines how fast can an analog
potentiometer P1 to PA3, PA4, PA5, PA6
voltage be represented in form
or PC0 analog microcontroller inputs, you
of a digital number. This is an
have to place the jumper J8 in the desired
important parameter if you
position. By moving the potentiometer
need fast data acquisition. The
knob, you can create voltages in range
other parameter is resolution.
from GND to VCC.
Resolution represents the number of
discrete steps that supported voltage range
can be divided into. It determines the sensitivity of the A/D converter. Resolution is represented in maximum
number of bits that resulting number occupies. Most microcontrollers have 10-bit resolution, meaning that maximum
value of conversion can be represented with 10 bits, which converted to integer is 210=1024. This means that supported voltage
range, for example from 0-1.8V, can be divided into 1024 discrete steps of about 1.758mV. EasyMx PRO v7 for STM32 provides an
interface in form of potentiometer for simulating analog input voltages that can be routed to any of the 5 supported analog input pins.
VCC-1.8V
R42
C42
100nF
J8
220
10K
page 38
DATA BUS
VCC-1.8V
P1
PA3
PA4
PA5
PA6
PC0
Figure 24-1:
Schematic of ADC
input
J8
C28
100nF
EasyMx PROv7
other modules
Piezo Buzzer
ones. Frequency of the square signal determines
the pitch of the generated sound, and duty cycle of
the signal can be used to increase or decrease the
volume in the range from 0% to 100% of the duty
cycle. You can generate PWM signal using hardware
capture-compare module, which is usually available in
most microcontrollers, or by writing a custom software
which emulates the desired signal waveform.
R28
1K
N
O
DATA BUS
PZ1
BUZZER
PERSPECTIVE
VIEW
2
3
4
6
PE14
TOP
VIEW
SW14
VCC-5V
PZ1
TOP
VIEW
PERSPECTIVE
VCC-5V
VIEW
PZ1
TOP
50%
Freq = 3kHz,
VIEW
BUZZER R35
Q1
BC846
10K
R3
1K
R3
R27
1K
10K
J21
RC2
HowBUZZER
to make it sing?RE1
TO SOCKETS
TO SOCKETS
TO SOCKETS
VCC-5V
50%
PERSPECTIVEVolume =Q8
J21
VIEW
BC846 R3 Buzzer starts "singing" when you provide
PZ1
RC2
1K
R27
PWM BUZZER
signal from the microcontroller
Freq = 3kHz,
RE1
80% 10K to the buzzer driver. The pitch of the
PERSPECTIVEVolume =Q8
J21 by the frequency,
sound
is
determined
VIEW
BC846
RC2
R27
and amplitude
is determined by the
BUZZER
Freq = 3kHz, Duty Cycle = 20%
Freq = 3kHz,
RE1
duty cycle of the PWM signal.
Volume =Q820% 10K
BC846
EasyMx PROv7
page 39
other modules
Additional GNDs
EasyMx PRO v7 for STM32 contains GND pins located in different sections of the
board, which allow you to easily connect oscilloscope GND reference when you
monitor signals on microcontroller pins, or signals of on-board modules.
3
2
Figure 26-1:
Three oscilloscope GND pins
are conveniently positioned so
different parts of the board can be
reached with an oscilloscope probe
page 40
EasyMx PROv7
multimedia
Whats Next?
You have now completed the journey through each and every feature of EasyMx PRO v7 for STM32 board. You got to know its modules, organization, supported
microcontrollers, programmer and debugger. 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 EasyMx PRO brand. You will find very useful projects and tutorials and can get help from a large ecosystem of users. Welcome!
Compiler
You still dont have an appropriate compiler? Locate ARM compiler
that suits you best on the Product DVD provided with the package:
DVD://download/eng/software/compilers/
RE
WA
FT
SO
MIK
ROC
ILERS
, MI
COMP
KRO
BA
SIC
,M
IK
RO
PA
SC
AL
S
VER
DRI
EXAM
PLE
S
CO
PRODUCT DVD
AD
DI
T
L
NA
IO
RS
LE
PI
M
www.mikroe.com
www.libstock.com
S
TIC
MA
HE
PROGRAMM
ERS A
ND D
EBU
GG
ER
S
BOARDS
SSORY
ACCE
RD
S
D
EVELO
PME
UALS
NT
MAN
BO
A
SC
page 41
D!
Support
EasyMx PROv7
DS
AR
BO
Community
http://www.libstock.com/
IA
ED
M
RO
le on Product
Projects
\Development Systems\STM32\
M
IK
lab
Av
ai
DV
notes
page 42
EasyMx PROv7
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, must 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, mikromedia, EasyARM, EasyMx PRO, Click boards and
mikroBUS 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.
If you want to learn more about our products, please visit our website at www.mikroe.com
If you are experiencing some problems with any of our products or just need additional
information, please place your ticket at www.mikroe.com/esupport
If you have any questions, comments or business proposals,
do not hesitate to contact us at office@mikroe.com
0 100000 019610