for STM32 ARM® microcontrollers supported Many on-board modules Easy-add extra boards Two connectors for each port Fast USB 2.
To our valued customers EasyMx PRO™ v7 for STM32 is our first development board for STM32 devices. We have put all of our knowledge that we gained in the past 10 years of developing embedded systems into it's design, functionality and quality. It may be our first STM32 development board, but it sure looks and feels like it's our 7th. You made the right choice.
Table of contents Introduction Communication Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 04 USB-UART A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 It's good to know . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 05 USB-UART B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 USB HOST communication . . . . . . . . . . . . . . . . . . . . . . . . .
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.
introduction It's good to know STM32F107VCT6 is the default microcontroller STM32F107VCT6 is the default chip of EasyMx PRO v7 for STM32. It belongs to ARM® ™ - Great choice for both beginners power supply 7–23V AC or 9–32V DC or via USB cable (5V DC) and professionals Cortex™-M3 family.
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).
Board power supply creates stable 3.3V necessary for operation of the microcontroller and all on-board modules. Power capacity: power supply Power supply: via DC connector or screw terminals (7V to 23V AC or 9V to 32V DC), or via USB cable (5V DC) up to 500mA with USB, and up to 600mA with external power supply How to power the board? 1. With USB cable 1 2 3 4 5 6 Set J9 jumper to USB position To power the board with USB cable, place jumper J9 in USB position.
supported MCUs Default MCU card Microcontrollers are supported using specialized MCU cards containing 104 pins, which can be placed into the on-board female MCU socket. There are several types of cards which cover all microcontroller families of STM32 Cortex™-M3, as well as Cortex™-M4. The Default MCU card that comes with the EasyMx PRO™ v7 for STM32 2 4 package is shown on Figure 4-1.
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
supported MCUs How to properly place your MCU card into the socket? Before you plug the microcontroller card into the socket, make sure that the power supply is turned off. Images below show how to correctly plug the card. First make sure that MCU card orientation matches the silkscreen outline on the EasyMx 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 PRO™ v7 STM32 board MCU socket.
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.
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.
programming STM32 Cortex™-M3 microcontrollers supported with mikroProg™ STM32F100C4 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 STM32F215Z
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 On-board mikroProg™ requires drivers in order to work. Drivers are located on the Product DVD that you received with the EasyMx PRO™ v7 for STM32 package: www.mikroe.com www.libstock.com DVD://download/eng/software/ development-tools/arm/stm32/ mikroprog/st_link_v2_usb_driver.
mikroProg Suite™ for ARM® 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.
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.
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] Executes the current program line, then halts.
connectivity Input/Output Group One of the most distinctive features of EasyMx PRO™ v7 for STM32 are it’s Input/Output PORT groups. They add so much to the connectivity potential of the board. Everything is grouped together PORT headers, PORT buttons and PORT LEDs are next to each other, and Figure 6-1: I/O group contains PORT header, tri-state pull grouped together.
connectivity Headers Buttons LEDs With enhanced connectivity as one of the key features of EasyMx PRO™ v7 for STM32, we have provided two connection headers for each PORT. I/O PORT group contains one male IDC10 header (like CN1 Figure 6-3). There is one more IDC10 header available on the right side of the board, next to DIP switches (like CN4 on Figure 6-3). These headers can be used to connect accessory boards with IDC10 female sockets.
connectivity mikroBUS sockets ™ Easier connectivity and simple configuration are imperative in modern electronic devices. Success of the USB standard comes from it’s simplicity of usage and high and reliable data transfer rates. As we in mikroElektronika see it, Plug-and-Play devices with minimum settings are the future in embedded world too.
connectivity Opto click™ BEE click™ BlueTooth click™ WiFi PLUS click™ GPS click™ Click Boards are plug-n-play! ™ mikroElektronika’s portfolio of over 200 accessory boards is now enriched by an additional set of mikroBUS™ compatible Click Boards™. Almost each month several new Click boards™ are released.
The UART (universal asynchronous receiver/trans mitter) is one of the most common ways of exchanging data between the MCU and peripheral components. It is a serial protocol with separate transmit and receive lines, and can be used for full-duplex communication. Both sides must be initialized with the same baud rate, otherwise the data will not be received correctly. Enabling USB-UART A Modern PC computers, laptops and notebooks are no longer equipped with RS-232 connectors and UART controllers.
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 USB-UART B communication is being done through a FT232RL controller, USB connector (CN23), and microcontroller UART module.
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).
communication USB device communication R48 100 1 VCC D+ D_P USB-D_P 6 8 ON LD76 7 GND USB-D_N USB-VBUS 4 GND USB B R53 27 USB-VBUS 5 3 R50 27 4 D_N 3 D- SW12 R58 4K7 GND Figure 11-2: Enabling USB DEVICE detection via VBUS line 2 2 D2 BAT43 N O CN26 Detecting connection 1 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.
communication Ethernet communication VCC-3.3V LD75 LED2 R44 270 LED2 VCC-3.
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 Figure 13-1: CAN connection schematic EasyMx PROv7 Controller Area Network (CAN or CAN bus) is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other within a vehicle without a host computer.
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.
multimedia microSD card slot VCC-MMC VCC-3.3V PH_SCK PH_MISO PH_MOSI E13 10uF MCU_SCK MCU_MISO MCU_MOSI 4 5 C30 100nF 3 FERRITE N O Enabling microSD 2 VCC-MMC 6 7 8 R52 10K PH_SCK R56 N O PH_MISO PD3 PD15 6 SD-CD# 7 27 SD-CS# SD-CD# 5 GGND SD-CS# PH_MOSI 4 8 CD MICROSD 1 2 4 5 6 7 3 CS Din +3.3V SCK GND Dout SW13 R51 10K 2 In order to access microSD card, you must enable SPI communication lines using SW13.1 – SW13.
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 In order to use PWM back-light both SW13.3 and SW13.4 switches must be enabled at the same time.
Enabling Touch panel Figure 17-1: Touch Panel controller and connection schematic NOTE: VREF=1.8V DATA BUS VCC-3.3V 1 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 1 VREF FP4 3 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.
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.
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.
other modules DS1820 - Digital Temperature Sensor DS1820 is a digital temperature sensor that uses 1-wire® interface for it’s operation. It is capable of measuring temperatures within the range of -55 to 128°C, and provides ±0.5°C accuracy for temperatures within the range of -10 to 85°C. It requires 3V to 5.5V power supply for stable operation. It takes maximum of 750ms for the DS1820 to calculate temperaturewith9-bitresolution.
The LM35 is a low-cost precision integrated-circuit temperature sensor, whose output voltage is linearly proportional to the Celsius (Centigrade) temperature. The LM35 thus has an advantage over linear temperature sensors calibrated in ° Kelvin, as the user is not required to subtract a large constant voltage from its output to obtain convenient Centigrade scaling. It has a linear +10.0 mV/°C scale factor and less than 60 μA current drain.
other modules Serial Flash Memory Flash memory is a non-volatile storage chip that can be electrically erased and reprogrammed. It was developed from EEPROM (electrically erasable programmable read-only memory) and must be erased in fairly large blocks before these can be rewritten with new data. The high density NAND type must also be programmed and read in (smaller) blocks, or pages, while the NOR type allows a single machine word (byte) to be written or read independently.
I C EEPROM Enabling I2C EEPROM Figure 23-2: Turn on switches SW14.1 and SW14.2 to connect EEPROM lines to MCU In order to connect I2C EEPROM to the microcontroller you must enable SW14.1 and SW14.2 switches, as shown on Figure 23-2. 2K2 pull-up resistors necessary for I2C communication are already provided on SDA and SCL lines once switches are turned on.
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.
Piezo electricity is the charge which accumulates in certain solid materials in response to mechanical pressure, but also providing the charge to the piezo electric material causes it to physically deform. One of the most widely used applications of piezo electricity is the production of sound generators, called piezo buzzers. Piezo buzzer is an electric component that comes in different shapes and sizes, which can be used to create sound waves when provided with analog electrical signal.
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. 1 GND is located below microSD section. 2 3 GND is located just above PORTE/H Input/Output Group. 3 GND is located below power supply region.
multimedia What’s Next? You have now completed the journey through each and every feature of EasyMx PRO™ v7 for STM32 board. You got to know it’s 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.
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.
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 EasyMx PRO v7 for STM32® User Manual ver. 1.