UM1525 STMICROELECTRONICS | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 41
Technical content
Datasheet sections
- 1 Conventions
- 2 Quick start
- 2.1 Getting started
- 2.2 System requirements
- 2.3 Development toolchain supporting the STM32F0DISCOVERY
- 2.4 Order code
- 3 Features
- 4 Hardware and layout
- 4.1 STM32F051R8T6 microcontroller
- 4.2 Embedded ST -LINK/V2
- 4.2.1 Using ST -LINK/V2 to program/debug the STM32 F0 on board
- 4.3 Power supply and power selection
- 4.4 LEDs
- 4.5 Push buttons
- 4.6 JP2 (Idd)
- 4.7 OSC clock
- 4.7.1 OSC clock supply
- 4.7.2 OSC 32 KHz clock supply
- 4.8 Solder bridges
- 4.9 Extension connectors
- 5 Connecting modules on the prototyping board
- 5.1 Mikroelektronica accessory boards
- 5.2 ST MEMS “adapter boards”, standard DIL24 socket
- 5.3 Arduino shield boards
- 6 Mechanical drawing
- 7 Electrical schematics
LEDs, push buttons and a prototyping board. Figure 1. STM32F0DISCOVERY Table 1. Applicable tools
1 Conventions
Table 2 provides the definition of some conventions used in the present document. Table 2. ON/OFF conventions
2 Quick start
The STM32F0DISCOVERY is a low-cost and easy-to-use development kit to quickly evaluate and start development with an STM32 F0 series microcontroller. Before installing and using the product, please accept the Evaluation Product License Agreement from www.st.com/stm32f0discovery. For more information on the STM32F0DISCOVERY and for demonstration software, visit www.st.com/stm32f0discovery.
2.1 Getting started
Follow the sequence below to configure the STM32F0DISCOVERY board and launch the DISCOVER application: 1. Check jumper position on the board, JP2 on, CN2 on (Discovery selected). 2. Connect the STM32F0DISCOVERY board to a PC with a USB cable ‘type A to mini-B’ through USB connector CN1 to power the board. Red LED LD1 (PWR) and LD2 (COM) light up and green LED LD3 blinks. 3. Press user button B1 (bottom left corner of the board). 4. Observe how the green LED LD3 blinking changes according to USER button B1 clicks. 5. Each click on USER button B1 is confirmed by the blue LED LD4. 6. To study or modify the DISCOVER project related to this demo, visit www.st.com/stm32f0discovery and follow the tutorial. 7. Discover the STM32F0 features, download and execute programs proposed in the list of projects. 8. Develop your own application using available examples.
2.2 System requirements
- Windows PC (XP , Vista, 7)
- USB type A to Mini-B USB cable
2.3 Development toolchain supporting the STM32F0DISCOVERY
- Altium®, TASKING™ VX-toolset
- ARM®, Atollic TrueSTUDIO®
- IAR™, EWARM (IAR Embedded Workbench®)
- Keil™, MDK-ARM™
2.4 Order code
To order the STM32F0 Discovery kit, use the order code STM32F0DISCOVERY.
3 Features
The STM32F0DISCOVERY kit offers the following features:
- STM32F051R8T6 microcontroller featuring 64 KB Flash, 8 KB RAM in an LQFP64 package
- On-board ST -LINK/V2 with selection mode switch to use the kit as a standalone ST -LINK/V2 (with SWD connector for programming and debugging)
- Board power supply: through USB bus or from an external 5 V supply voltage
- External application power supply: 3 V and 5 V
- Four LEDs: – LD1 (red) for 3.3 V power on – LD2 (red/green) for USB communication – LD3 (green) for PC9 output – LD4 (blue) for PC8 output
- Two push buttons (user and reset)
- Extension header for LQFP64 I/Os for quick connection to prototyping board and easy probing.
- An additional board is provided with the kit which can be connected to the extension connector for even easier prototyping and probing.
- A large number of free ready-to-run application firmware examples are available on www.st.com/stm32f0discovery to support quick evaluation and development.
4 Hardware and layout
LINK/V2, push button, LEDs and connectors). Figure 3 and Figure 4 help you to locate these features on the STM32F0DISCOVERY. Figure 2. Hardware block diagram
Figure 3. Top layout Note: Pin 1 of CN2, CN3, P1 and P2 connectors are identified by a square.
Figure 4. Bottom layout
4.1 STM32F051R8T6 microcontroller
DAC, comparators and communication interfaces. Figure 5. STM32F051R8T6 package and scalability for home entertainment products, appliances, and industrial equipment. This device provides the following benefits.
- Superior code execution for better performance and excellent code efficiency for reduced embedded memory usage
- High-performance connectivity and advanced analog peripherals to support a wide range of applications
- Flexible clock options and low power modes with fast wake-up for low power consumption It has the following key features:
- Core and operating conditions – ARM® Cortex™-M0 0.9 DMIPS/MHz up to 48 MHz – 1.8/2.0 to 3.6 V supply range
- High-performance connectivity – 6 Mbit/s USART – 18 Mbit/s SPI with 4- to 16-bit data frame – 1 Mbit/s I²C fast-mode plus –H D M I C E C
- Enhanced control – 1x 16-bit 3-phase PWM motor control timer – 5x 16-bit PWM timers – 1x 16-bit basic timer – 1x 32-bit PWM timer – 12 MHz I/O toggling
Figure 6. STM32F051R8T6 block diagram
4.2 Embedded ST-LINK/V2
- Program/debug the MCU on board,
- Program/debug an MCU in an external application board using a cable connected to SWD connector CN3. The embedded ST -LINK/V2 supports only SWD for STM32 devices. For information about d ebugging and programming features refer to user manual UM1075 (ST -LINK/V2 in-circuit debugger/programmer for STM8 and STM32) which describes in detail all the ST -LINK/V2 features.
Figure 7. Typical configuration Table 3. Jumper states
4.2.1 Using ST-LINK/V2 to program/debug the STM32 F0 on board
the STM32F051R8T6 of the STM32F0DISCOVERY. Figure 8. STM32F0DISCOVERY connections image
4.2.2 Using ST-LINK/V2 to program/d ebug an external STM32 application
It is very easy to use the ST -LINK/V2 to program the STM32 on an external application. to the CN3 debug connector according to Table 4. Note: SB19 and SB22 must be OFF if you use CN3 pin 5 in your external application. Table 4. Debug connector CN3 (SWD)
1 VDD_TARGET VDD from application
2 SWCLK SWD clock
3 GND Ground
4 SWDIO SWD data input/output
5 NRST RESET of target MCU
6 SWO Reserved
Figure 9. ST-LINK connections image
UM1525 Hardware and layout Doc ID 022910 Rev 2 17/41
4.3 Power supply and power selection
The power supply is provided either by the host PC through the USB cable, or by an external 5V power supply. The D1 and D2 diodes protect the 5V and 3V pins from external power supplies:
- 5V and 3V can be used as output power supplies when another application board is connected to pins P1 and P2. In this case, the 5V and 3V pins deliver a 5V or 3V power supply and power consumption must be lower than 100 mA.
- 5V can also be used as input power supplies e.g. when the USB connector is not connected to the PC. In this case, the STM32F0DISCOVERY board must be powered by a power supply unit or by auxiliary equipment complying with standard EN-60950-1: 2006+A11/2009, and must be Safety Extra Low Voltage (SELV) with limited power capability.
4.4 LEDs
- LD1 PWR: Red LED indicates that the board is powered.
- LD2 COM: Tricolor LED (COM) advises on the communication status as follows: – Slow blinking Red LED/Off: At power on before USB initialization – Fast blinking Red LED/Off: After the first correct communication between PC and STLINK/V2 (enumeration) – Red LED On: When initialization between PC and ST -LINK/V2 is successfully finished – Green LED On: After successful ta rget communication initialization – Blinking Red/Green LED: During communication with target – Red LED On: Communication finished and OK – Orange LED On: Communication failure
- User LD3: Green user LED connected to the I/O PC9 of the STM32F051R8T6.
- User LD4: Blue user LED connected to the I/O PC8 of the STM32F051R8T6.
4.5 Push buttons
- B1 USER: User push button connected to the I/O PA0 of the STM32F051R8T6.
- B2 RESET: Push button used to RESET the STM32F051R8T6.
4.6 JP2 (Idd)
Jumper JP2, labeled Idd, allows the consumption of STM32F051R8T6 to be measured by removing the jumper and connecting an ammeter.
- Jumper on: STM32F051R8T6 is powered (default).
- Jumper off: an ammeter must be connected to measure the STM32F051R8T6 current, (if there is no ammeter, the STM32F051R8T6 is not powered).
Hardware and layout UM1525 18/41 Doc ID 022910 Rev 2
4.7 OSC clock
4.7.1 OSC clock supply
PF0 and PF1 can be used as GPIO or as HSE oscillator. By default these I/Os are configured as GPIO, so SB16 and SB17 are closed, SB18 is open and R22, R23, C13 and C14 are not populated. An external HSE clock can be provided to the MCU in three ways:
- MCO from ST-LINK. From MCO of the STM32F103. This frequency cannot be changed, it is fixed at 8 MHz and connected to PF0-OSC_IN of the STM32F051R8T6. Configuration needed: – SB16, SB18 CLOSED –R 2 2 , R 2 3 r e m o v e d – SB17 OPEN
- Oscillator onboard. From X2 crystal (not provided). For typical frequencies and its capacitors and resistors, please refer to the STM32F051R8T6 Datasheet. Configuration needed: – SB16, SB17 SB18 OPEN – R22, R23, C13, C14 soldered
- Oscillator from external PF0. From external oscillator through pin 7 of the P1 connector. Configuration needed: – SB16, SB17 CLOSED – SB18 OPEN – R22 and R23 removed
4.7.2 OSC 32 KHz clock supply
PC14 and PC15 can be used as GPIO or as LSE oscillator. By default these I/Os are configured as GPIO, so SB20 & SB21 are closed and X3, R24, R25 are not populated. An external LSE clock can be provided to the MCU in two ways:
- Oscillator onboard. From X3 crystal (not provided). Configuration needed: – SB20, SB21 OPEN – C15, C16, R24 and R25 soldered.
- Oscillator from external PC14. From external oscillator trough the pin 5 of P1 connector. Configuration needed: – SB20, SB21 CLOSED – R24 and R25 removed
4.8 Solder bridges
Table 5. Solder bridge settings
- OSC_IN clock comes from MCO if SB18 is ON and SB16,17 are OFF
and comes from X2 if SB18 is OFF and SB16,17 are ON. ON PF0, PF1 are connected to P1 (R22, R23 and SB18 must not be fitted). SB6,8,10,12 (Default) ON Reserved, do not modify. SB5,7,9,11 (Reserved) OFF Reserved, do not modify. ON PC14, PC15 are only connected to P1 (R24, R25 must not be fitted). ON B1 push button is connected to PA0. OFF B1 push button is not connected to PA0. ON VBAT is permanently powered from VDD. OFF VBAT is not powered from VDD but pin3 of P1. OFF Reserved, do not modify. ON SWO signal of the CN3 connector is connected to PB3. OFF SWO signal is not connected. OFF No incidence on STM32F103C8T6 (ST -LINK/V2) NRST signal. ON STM32F103C8T6 (ST -LINK/V2) NRST si gnal is connected to GND. 10 KOhm pull-up resistor R27 to solder. ON Provides the 8 MHz for OSC_IN from MC O of STM32F103C8T6. OFF See SB16, SB17 description.
- Default SBx state is shown in bold.
4.9 Extension connectors
prototyping/wrapping board. STM32F051R8T6 GPI/Os are available on these connectors. P1 and P2 can also be probed by an oscilloscope, logical analyzer or voltmeter. Table 6. MCU pin description versus board function (page 1 of 7)
Table 6. MCU pin description versus board function (page 2 of 7)
Table 6. MCU pin description versus board function (page 3 of 7)
Table 6. MCU pin description versus board function (page 4 of 7)
Table 6. MCU pin description versus board function (page 5 of 7)
Table 6. MCU pin description versus board function (page 6 of 7)
Table 6. MCU pin description versus board function (page 7 of 7)
5 Connecting modules on the prototyping board
www.st.com/stm32f 0discovery.
5.1 Mikroelektronica accessory boards
pins such as Analog Input, PWM and Interrupt. The set of mikroElektronika boards compatib le with mikroBUS™ is called “Click boards”. www.st.com/stm32f 0discovery. Table 7. Connecting using mikroBUS™
Table 8. Connecting using IDC10
connectors, IDC10 and mikroBUS™. Figure 10. Using IDC10 and mikroBUS™ connectors
5.2 ST MEMS “adapter boards”, standard DIL24 socket
sensors connected to a microcontroller through SPI or I2C communications. solution is used in different examples and available at www.st.com/stm32f0discovery. Table 9. Connecting with a DIL24 board
Table 10 is a list of supported MEMS adapter boards as of April, 2012. Table 10. Supported MEMS adapter boards DIL24 boards are described as “adapter boards” in the field “General Description”.
5.3 Arduino shield boards
hardware and software. See http://www.arduino.cc for more information. STM32F0 Discovery according to the following table. Table 11. Connecting with Arduino shields
Connecting modules on the prototyping board UM1525 34/41 Doc ID 022910 Rev 2 Arduino ICSP connector STM32F0DISCOVERY
1 MISO PB4 SPI1_MISO
2 VCC 3.3V 3V VDD
3 SCK PB3 SPI1_SCK
4 MOSI PB5 SPI1_MOSI
5 RST NRST Reset discovery
6 GND GND Reference Ground
Connecting with Arduino shields (continued)
6 Mechanical drawing
Figure 13. STM32F0DISCOVERY mechanical drawing
7 Electrical schematics
Figure 14. STM32F0DISCOVERY
Figure 15. ST-LINK/V2 (SWD only)
100 C24
Figure 16. MCU
8 Revision history
Table 12. Document revision history 20-Mar-2012 1 Initial release.