User's guide EasyMx PRO™ v7 for Stellaris® ARM® is a full-featured development board for ARM® Cortex™-M3 and M4 microcontrollers, with over 20 on-board modules for all kinds of development, including multimedia, USB, CAN, Ethernet and other. Board is equipped with mikroProg™ fast USB 2.0 programmer and debugger.
To our valued customers EasyMx PRO™ v7 is our first development board for Stellaris® ARM® 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 ARM® Cortex™-M3 and M4 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 . . . . . . . . . . . . . . . . . . . . . . . . . .
introruction 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 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 LM3S9B95 is the default microcontoller LM3S9B95 is the default chip of EasyMx PRO™ v7. It belongs to ARM® Cortex -M3 family. It has ™ System Specification - Great choice for both beginners 80MHz operation, 256K bytes of linear program - Rich with modules memory, 96K bytes of linear data memory.
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 two different ways: with USB power supply, and using external adapters via adapter connector (CN16) or additional screw terminals (CN15).
power supply Power supply: Board power supply creates stable 3.3V necessary for operation of the microcontroller and all on-board modules. via DC connector or screw terminals (7V to 23V AC or 9V to 32V DC), or via USB cable (5V DC) Power consumption: up to 600mA (depending on how many on-board modules are currently active) How to power the board? 1. With USB cable 1 2 3 4 5 6 Set J1 jumper to USB position To power the board with USB cable, place jumper J1 in USB position.
supported MCUs Default MCU card Microcontrollers are supported using specialized MCU cards containing 104 pins, which are placed into the on-board female MCU socket. There are several types of cards which cover all microcontroller families of Stellaris® Cortex™-M3, as well as Cortex™-M4. The Default MCU card that comes with the EasyMx PRO™ v7 package is shown on Figure 4-1. It contains LM3S9B95 microcontroller which is loaded with on-chip modules and is a great choice for both beginners and professionals.
C2 100nF C3 100nF VCC C4 100nF VCC C5 100nF VCC C6 100nF VCC C7 100nF C8 100nF PG7 PA6 PA4 PA2 PA0 VCC VCC supported MCUs C1 100nF VCC VCC PF0 TPO_P PF5 TPI_N PF7 VCC 103 101 99 97 95 93 91 89 87 85 83 81 79 VCC VCC_CORE C11 2u2 C12 22pF VCC VCC X1 8MHz R1 PJ3 OSC1 OSC0 PF0 TPO_N VCC_CORE 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 VCC E2 10uF 12K4 C13 22pF PA5 PA4 PA3 PA2 PA1 PA0 E1 10uF TPI_N PG7 PA7 PA6 C10 100nF TPO_P PF4 PF5 TPI_P PJ2 C9 1
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 1 Figure 4-3: On-board MCU socket has silksreen markings which will help you to correctly orient the MCU card before inserting. page 10 EasyMx PRO™ v7 board MCU socket.
mikroElektronika currently offers total of two populated MCU cards: one with default LM3S9B95 Cortex™-M3 microcontroller and one with LM4F232H5QD, which is Cortex™-M4 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 seven empty PCB cards available. This way your EasyMx PRO™ v7 board becomes truly flexible and reliable tool for almost any of your ARM® projects.
programming On-board programmer What is mikroProg™? mikroProg™ is a fast JTAG programmer and debugger. Smart engineering allows mikroProg™ to support over 270 ARM® Cortex™-M3 and Cortex™-M4 devices from Stellaris® 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.
programming Stellaris® Cortex™-M3 microcontrollers supported with mikroProg™ LM3S101 LM3S1811 LM3S1R21 LM3S2948 LM3S5651 LM3S5K31 LM3S6422 LM3S817 LM3S9B96 LM3S102 LM3S1816 LM3S1R26 LM3S2950 LM3S5652 LM3S5K36 LM3S6432 LM3S818 LM3S9L97 LM3S1110 LM3S1850 LM3S1W16 LM3S2965 LM3S5656 LM3S5P31 LM3S6537 LM3S828 LM3S9BN2 LM3S1133 LM3S1911 LM3S1Z16 LM3S2B93 LM3S5662 LM3S5P36 LM3S6610 LM3S8530 LM3S9BN5 LM3S1138 LM3S1918 LM3S2110 LM3S2D93 LM3S5732 LM3S5P3B LM3S6611 LM3S8538
On-board mikroProg™ requires drivers in order to work. Drivers are located on the Product DVD that you received with the EasyMx PRO™ v7 package: DVD://download/eng/software/ development-tools/arm/stellaris/ mikroprog/mikroprog_stellaris_ drivers_v100.zip 20122011 www.mikroe.com Av ai Copyright ©2011 Mikroelektronika. All rights reserved. Mikroelektronika, Mikroelektronika logo and other Mikroelektronika trademarks are the property of Mikroelektronika.
mikroProg Suite™ for ARM® On-board mikroProg™ programmer requires special programming software called mikroProg Suite™ for ARM®. This software is used for programming all of Stellaris® microcontroller families with ARM® Cortex™-M3 and Cortex™-M4 cores. Software has intuitive interface and SingleClick™ programming technology. To begin, first locate the installation archive on the Product DVD: 20122011 www.mikroe.com lab Copyright ©2011 Mikroelektronika. All rights reserved.
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 are it’s Input/Output PORT groups. They add so much to the connectivity potential of the board.
connectivity Headers Buttons LEDs With enhanced connectivity as one of the key features of EasyMx PRO™ v7, we have provided two connection headers for each PORT. I/O PORT group contains one male IDC10 2x5 header (like CN24 Figure 6-3). There is one more IDC10 header available on the right side of the board, next to DIP switches. These headers can be used to connect accessory boards with IDC10 female sockets. LED (Light-Emitting Diode) is a highly efficient electronic 78 77 76 75 PC5 light source.
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 ADC click™ BEE click™ BlueTooth click™ WiFi 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 baudrate, 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, which are outputs of different on-chip UART controllers. Enabling USB-UART B USB-UART B communication is being done through a FT232RL controller, USB connector (CN9), and microcontroller UART module.
communication USB HOST communication DATA BUS VCC-5V VCC-5V N O R37 1K 1 2 VCC-3.
communication USB device communication N O DATA BUS 1 2 3 4 5 7 8 USB-VBUS SW10 USB-D_N R1 100 R40 27 USB-D_P MCU CARD SOCKET PB1 2 4 6 8 10 12 14 16 USB-D_N 18 20 22 24 26 VCC 1 D- 2 D+ 3 USB-D_P 1 3 5 7 9 11 13 15 17 19 21 23 25 USB DEVICE CONNECTOR CN10 6 PB1 R43 27 GND 4 ON LD9 USB B R46 4K7 GND GND Figure 11-1: USB device connection schematics EasyMx PROv7 EasyMx PRO™ v7 also contains USB DEVICE connector (CN10) which enables microcontrollers that support USB communicati
communication Ethernet communicaton Figure 12-1: Ethernet connection schematics FP2 R48 51 A2 K2 CT A1 TPO_N TPI_P RD+ RD- R49 51 C31 10nF R51 2K2 LD5 LED 104 102 R45 51 CT CN12 page 26 TPO_P R44 51 TD+ TD- K1 ETHERNET CONNECTOR RJ45 TPO_P VCC-3.
communication CAN communication VCC-3.3V R47 10 TX-CAN RX-CAN 1 2 3 4 VCC-3.3V U6 D GND Vdd R Rs CANH CANL Vref 8 7 6 5 SN65HVD230 CANH C34 100nF CANL CN13 N O CAN COMM. 1 2 3 4 DATA BUS 5 PD1 PD0 6 7 8 SW10 Figure 13-1: CAN connection schematics EasyMx PROv7 TX-CAN RX-CAN 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 contains high-end stereo VS1053 audio codec. It features Ogg Vorbis/MP3/AAC/WMA/FLAC/WAVMIDI 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-3.3V VCC-MMC FP3 VCC-MMC SPI-SCK SPI-MISO R58 27 CN14 1 2 4 5 6 7 SD-CD# CS Din +3.3V +3.3V SCK GND Dout CD microSD CARD SLOT R54 10K GGND R53 10K SD-CS# SPI-MOSI Figure 15-2: enabling microSD card commu nication lines MICROSD DATA BUS SPI-MOSI SPI-MISO SPI-SCK 4 5 6 PH7 PA7 7 8 Figure 15-1: microSD card slot connection schematics PA5 PA4 PA2 3 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 colour displays and touch panel inputs. This is a crucial element of any multimedia device. EasyMx PRO™ v7 features TFT colour 320x240 pixel display. It is a 3.2" display with LED backlight, featuring HX8347D controller. Each pixel is capable of showing 262.144 different colours.
Touchpanel is a glass panel whose surface is covered with two layers of resistive material. When the screen is pressed, the outer layer is pushed onto the inner layer and appropriate controllers can measure that pressure and pinpoint its location. This is how touchpanels can be used as an input devices. EasyMx PRO™ v7 is equipped multimedia Touch Panel controller with touchpanel controller and connector for 4-wire resistive touchpanels.
When working with multi media 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 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 microcontrollers pins: PB0, PE5, PB7, PE4, PH2 (respectively).
Piezoelectricity is the charge which accumulates in certain solid materials in response to mechanical pressure, but also providing the charge to the piezoelectric material causes it to physically deform. One of the most widely used applications of piezoelectricity 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 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 temperature with 9-bit resolution.
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: Activate SW13.4 and SW13.5 switches to enable pull-up resistors in I2C lines of Serial EEPROM. In order to connect I2C EEPROM to the microcontroller you must enable SW13.4 and SW13.5 switches, as shown on Figure 23-2. 4K7 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.
EasyMx PRO™ v7 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 the analog input section. 2 GND is located just above PORTJ Input/Output Group.
What’s Next? You have now completed the journey through each and every feature of EasyMx PRO™ v7 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 EasyMx PROv7 page 41
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/en/support If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com EasyMx PRO v7 for Stellaris ARM User Manual ver. 1.