UM1775 User manual Discovery kit for STM32L0 series with STM32L053C8 MCU Introduction The STM32L053 discovery kit (32L0358DISCOVERY) helps the user discover the full range of features of the STM32L0 series and develop applications. It is based on STM32L053C8T6 and includes ST-LINK/V2-1 embedded debug tool interface, linear touch sensor, touch keysRev 3, IDD current measurement, 2.04” E-paper display, NFC connector for PLUG-CR95HF-B board, LEDs, pushbuttons and USB Mini-B connector. The board comes with a comprehensive STM32 software HAL library with various packaged software examples, as well as direct access to mbed™ online resources at http://mbed.org. Figure 1. STM32L053 discovery board Picture not contractual January 2016 DocID026429 Rev 3 1/39 www.st.com Contents UM1775 Contents 1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 Ordering and product information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 Product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Hardware layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.1 4.2 2/39 Embedded ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.1 Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.2 ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.1.3 VCP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.1.4 Using ST-LINK/V2-1 to program/debug the STM32L053 on board 4.1.5 Using ST-LINK/V2-1 to program/debug an external STM32 application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 . . . 14 Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.2.1 Power supply input from the USB connector . . . . . . . . . . . . . . . . . . . . . 17 4.2.2 External power supply inputs: 5V_IN or USB USER CN3 . . . . . . . . . . . 17 4.3 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.4 Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.5 NFC connector for PLUG-CR95HF-B board . . . . . . . . . . . . . . . . . . . . . . 19 4.6 Electronic Paper Display (EPD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.7 JP4 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.8 BOOT0 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.9 Linear touch sensor / touch keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.10 USB device support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.11 USART configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.12 OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.13 OSC 32 kHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.14 Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4.15 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 DocID026429 Rev 3 UM1775 Contents 5 Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6 Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 DocID026429 Rev 3 3/39 3 List of tables UM1775 List of tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. 4/39 ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Debug connector CN5 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 NFC connector pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 DocID026429 Rev 3 UM1775 List of figures List of figures Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. STM32L053 discovery board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 STM32L053 discovery hardware block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Updating the list of drivers in device manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 STM32L053 discovery board connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 ST-LINK/V2-1 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 NFC board plugged on STM32L053 discovery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Jumper in position OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Jumper in position ON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 No Jumper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 STM32L053 discovery board mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 STM32L053 discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ST-LINK/V2-1 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 STM32L053C8T6 MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Electronic paper display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Linear touch sensor, NFC, USB and pushbutton . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 IDD measurement / MFX (multi-function expander) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 DocID026429 Rev 3 5/39 5 Conventions 1 UM1775 Conventions Table 1 provides the definition of some conventions used in the present document. Table 1. ON/OFF conventions Convention 6/39 Definition Jumper JPx ON Jumper fitted Jumper JPx OFF Jumper not fitted Solder bridge SBx ON SBx connections closed by Solder Solder bridge SBx OFF SBx connections left open DocID026429 Rev 3 UM1775 2 Ordering and product information Ordering and product information The STM32L053 discovery is a low-cost and easy-to-use development kit to quickly evaluate and start a development with an STM32L0 series microcontroller. Before installing and using the product, please accept the Evaluation Product License Agreement from www.st.com/stm32l0-discovery. For more information on the STM32L053 discovery board and for demonstration software, visit www.st.com/stm32l0-discovery. 2.1 Product marking Tools marked as "ES" or "E" are not yet qualified and as such, they may be used only for evaluation purposes. ST shall not be liable for any consequences related with other ways of use of such non-qualified tools, for example, as reference design or for production. Examples of location of "E" or "ES" marking: 2.2 • on target STM32 microcontroller part mounted on the board (for illustration, refer to section "Package information" in its datasheet at www.st.com) • next to the evaluation tool ordering part number, as a label stuck or a silk-screen printed on the board Order code To order the STM32L053 discovery kit, use the order code: STM32L0538-DISCO. DocID026429 Rev 3 7/39 38 Features 3 UM1775 Features The STM32L053 discovery board offers the following features: 8/39 • STM32L053C8T6 microcontroller featuring 64 Kbytes of Flash memory and 8 Kbytes of RAM, in an LQFP48 package • On-board ST-LINK/V2-1 with selection mode switch to use the kit as a standalone programming and debugging tool (with SWD connector for programming and debugging) • mbed™-enabled (mbed.org) • USB ST-LINK with re-enumeration capability and three different interfaces: – Virtual COM port – Mass storage – Debug port • Board power supply: through USB bus or from an external 5 V supply voltage • External application power supply: 3 V and 5 V • One linear touch sensor or four touch keys • IDD current measurement • 2.04” E-paper Display, 172x72 pixels • NFC connector for PLUG-CR95HF-B board • USB USER with Mini-B connector • Four LEDs: – LD1 (red/green) for USB communication – LD2 (red) for 3.3 V power on – Two user LEDs: LD3 (green), LD4 (red) • Two pushbuttons (user and reset) • Extension header for LQFP48 I/Os for a quick connection to the prototyping board and easy probing DocID026429 Rev 3 UM1775 4 Hardware layout Hardware layout The STM32L053 discovery board has been designed around the STM32L053C8T6 microcontroller in a 48-pin LQFP package. Figure 2 illustrates the connections between the STM32L053C8T6 and its peripherals (STLINK/V2-1, linear touch sensor, touch keys, IDD current measurement, 2.04” E-paper display, NFC connector for PLUG-CR95HF-B board, LEDs, pushbuttons and an USB Mini-B connector). Figure 3 and Figure 4 help you to locate these features on the STM32L053 discovery board. Figure 2. STM32L053 discovery hardware block diagram DocID026429 Rev 3 9/39 38 Hardware layout UM1775 Figure 3. Top layout 67/,1.9 86%67/,1. /'&20 86%86(5 /' 3:5 &1 67/,1.',6&29(5< VHOHFWRU &1 1)&FRQQHFWRU -3 UHVHUYHG -3 UHVHUYHG -35;7; 6%6% 9&35;7; 9SRZHU VXSSO\LQSXW 9SRZHU VXSSO\RXWSXW 9SRZHU VXSSO\RXWSXW %227 FRQILJXUDWLRQ ´ (SDSHUGLVSOD\ -3 ,''PHDVXUHPHQW /'5HG/(' /'2UDQJH/(' % XVHUEXWWRQ % UHVHWEXWWRQ /LQHDUWRXFKVHQVRUWRXFK.H\V 069 10/39 DocID026429 Rev 3 UM1775 Hardware layout Figure 4. Bottom layout 6% UHVHUYHG 6% GHIDXOW 6% 1567 6% 670B567 6% 5;7; 6% ;FU\VWDO ;FU\VWDO 6% 86%B86(5 670/&7 6% 0&2 6% %86(5 6% 26&B,1 6% %5(6(7 6% WRXFKVHQVRU 069 DocID026429 Rev 3 11/39 38 Hardware layout 4.1 UM1775 Embedded ST-LINK/V2-1 The ST-LINK/V2-1 programming and debugging tool is integrated on the STM32L053 discovery board. The embedded ST-LINK/V2-1 supports only SWD for STM32 devices. For information about debugging 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. The changes versus ST-LINK/V2 are listed below. • • New features supported on ST-LINK/V2-1: – USB software re-enumeration – Virtual COM port interface on USB (Section 4.1.3) – Mass storage interface on USB – USB power management request for more than 100 mA power on USB Features not supported on ST-LINK/V2-1: – SWIM interface – Minimum supported application voltage limited to 3 V There are two different ways to use the embedded ST-LINK/V2-1 depending on the jumper states (see Table 2): • program/debug the MCU on board (Section 4.1.4). • program/debug an MCU in an external application board using a cable connected to SWD connector CN5 (Section 4.1.5). Table 2. Jumper states Jumper state 4.1.1 Description Both CN4 jumpers ON ST-LINK/V2-1 functions enabled for on board programming (default) Both CN4 jumpers OFF ST-LINK/V2-1 functions enabled for application through external CN5 connector (SWD supported) Drivers ST-LINK/V2-1 requires a dedicated USB driver that, for Windows XP, 7 and 8, can be found at www.st.com. In case the STM32L053 discovery board is connected to the PC before the driver is installed, some discovery interfaces may be declared as “Unknown” in the PC device manager. In this case the user must install the driver files (Figure 5), and from the device manager update the driver of the connected device. Note: 12/39 Prefer using the “USB Composite Device” handle for a full recovery. DocID026429 Rev 3 UM1775 Hardware layout Figure 5. Updating the list of drivers in device manager 4.1.2 ST-LINK/V2-1 firmware upgrade ST-LINK/V2-1 embeds a firmware upgrade mechanism for in-situ upgrade through the USB port. As the firmware may evolve during the life time of the ST-LINK/V2-1 product (for example new functionality, bug fixes, support for new microcontroller families), it is recommended to visit www.st.com at the board delivery, then periodically in order to stay upto-date with the latest firmware version. 4.1.3 VCP configuration ST-LINK/V2-1 supports virtual COM port (VCP). To enable this function, the solder bridges SB2 and SB3 (See Figure 3: Top layout) for mbed support are closed. Table 5: Solder bridges indicates this with ON state. DocID026429 Rev 3 13/39 38 Hardware layout 4.1.4 UM1775 Using ST-LINK/V2-1 to program/debug the STM32L053 on board To program the STM32L053 on board, simply plug in the two jumpers on CN4, as shown in Figure 6 in red, but do not use the CN5 connector as that could disturb communication with the STM32L053C8T6 of the STM32L053 discovery board. Figure 6. STM32L053 discovery board connections 14/39 DocID026429 Rev 3 UM1775 4.1.5 Hardware layout Using ST-LINK/V2-1 to program/debug an external STM32 application It is very easy to use ST-LINK/V2-1 to program an STM32 microcontroller on an external application. Simply remove the 2 jumpers from CN4 as shown in Figure 7 and connect your application to the CN5 debug connector according to Table 3. Note: SB13, must be OFF if you use CN5 pin 5 (NRST) in your external application. Table 3. Debug connector CN5 (SWD) Pïn CN5 Designation 1 VDD_TARGET VDD from application 2 SWLCK SWD clock 3 GND Ground 4 SWDIO SWD data input/output 5 NRST RESET of target MCU 6 SWO Reserved DocID026429 Rev 3 15/39 38 Hardware layout UM1775 Figure 7. ST-LINK/V2-1 connections 4.2 Power supply and power selection The power supply is provided either by the host PC through the USB cable, or by an external 5 V power supply. The STM32L053 discovery board requires to the Host PC 300mA, but around 90mA is needed for its demo, 100mA for an extension board and a safety margin of 100mA. The D3, D4 and D6 diodes protect the 5 V pins from external power supplies: • 16/39 5 V and 3 V can be used as output power supplies when an extension board is connected to pins P2 and P3. DocID026429 Rev 3 UM1775 Hardware layout In this case, the 5V_O and 3V_O pins deliver a 5 V or 3.3 V power supply and the power consumption of the extension board must be lower than 100 mA. • 4.2.1 5 V can also be used as input power supplies, e.g. when the USB connector is not connected to the PC. (5V_I pin of P3 Header) In this case, the STM32L053 discovery 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. Power supply input from the USB connector ST-LINK/V2-1 supports USB power management allowing to request more than 100 mA current to the host PC. All parts of the STM32L053 discovery board and extension board can be powered from the ST-LINK/V2-1 USB connector CN2 (U5V or VBUS). Note that only the ST-LINK/V2-1 part is power supplied before the USB enumeration as the host PC only provides 100 mA to the board at that time. During the USB enumeration, the STM32L053 discovery board requires 300 mA of current to the Host PC. If the host is able to provide the required power, the targeted STM32 microcontroller is powered and the red LED LD2 is turned on, thus the STM32L053 discovery board and its extension board can consume a maximum of 300 mA current, not more. If the host is not able to provide the required current, the targeted STM32 microcontroller and the MCU part including the extension board are not power supplied. As a consequence the red LED LD2 remains turned OFF. In such case it is mandatory to use an external power supply as explained in the next chapter. Warning: If the maximum current consumption of the STM32L053 discovery and its extension boards exceeds 300 mA, it is mandatory to power the STM32L053 discovery using an external power supply connected to 5V_IN. Note: In case of this board is powered by an USB charger or USB battery then there is no USB enumeration so the led LD1 remains OFF permanently and the target MCU is not powered. In this specific case the jumper JP2 needs to be ON to allow target MCU to be powered anyway. This is a special use without enumeration and JP2 is not soldered. To use this optional power supply, solder a 2 pins header in JP2 and set a jumper. 4.2.2 External power supply inputs: 5V_IN or USB USER CN3 The external power source 5V_IN or USB USER CN3 is automatically detected, in this case the current consumption of STM32L053 discovery board and extension board may exceed the allowed current on USB. In this condition it is still possible to use the USB for communication, for programming or debugging only, but it is mandatory to power supply the board first using 5V_IN or USB USER CN3 then connect the USB cable to the PC. Proceeding this way ensures that the enumeration occurs thanks to the external power source. The following power sequence procedure must be respected: 1. Connect the external power source to 5V_IN or USB USER CN3. 2. Power on the external power supply 5V_IN or USB USER CN3. 3. Check that LD2 is turned on. 4. Connect the PC to USB connector CN2. If this order is not respected, the board may be supplied by VBUS first then by 5V_IN or USB USER CN3, and the following risks may be encountered: DocID026429 Rev 3 17/39 38 Hardware layout 4.3 4.4 18/39 UM1775 1. If more than 300 mA current is needed by the board, the PC may be damaged or the current supply can be limited by the PC. As a consequence the board is not powered correctly. 2. 300 mA is requested at enumeration (since JP2 must be OFF) so there is a risk that the request is rejected and the enumeration does not succeed if the PC cannot provide such current. Consequently the board is not power supplied (LED LD2 remains OFF). LEDs • LD1 COM: LD1 default status is red. LD1 turns to green to indicate that communications are in progress between the PC and ST-LINK/V2-1. • LD2 PWR: The red LED indicates that the board is powered. • User LD3: The green LED is a user LED connected to the I/O PB4 of the STM32L053C8T6. • User LD4: The red LED is a user LED connected to the I/O PA5 of the STM32L053C8T6. Pushbuttons • B1 USER: User and Wake-Up button connected to the I/O PA0 of the STM32L053C8T6. • B2 RESET: The pushbutton connected to NRST is used to RESET the STM32L053C8T6. DocID026429 Rev 3 UM1775 4.5 Hardware layout NFC connector for PLUG-CR95HF-B board A NFC (Near Field Communication) transceiver board can be connected to the STM32L053 Discovery board, for example the PLUG-CR95HF-B board. The NFC board is plugged in connector CN1 of STM32L053 Discovery board as following: Figure 8. NFC board plugged on STM32L053 discovery DocID026429 Rev 3 19/39 38 Hardware layout UM1775 The NFC board can be accessed in SPI or UART mode. Table 4. NFC connector pinout CN1 pin 4.6 NFC signals STM32L053C8T6 Description 1 NFC_IRQOUTN or UART1_TX PB7 Interrupt output for NFC connected to STM32L053C8T6 UART1 RX 2 NFC_IRQINN or UART1_RX PB6 Interrupt input for CR95HF connected to STM32L053C8T6 UART1 TX 3 NFC_NSS PB12 SPI slave select 4 NFC_MISO PB14 SPI data, slave output 5 NFC_MOSI PB15 SPI data, slave input 6 NFC_SCK PB13 SPI serial clock 7 +3V3 Main power supply/power supply for RF drivers 8 GND Ground Electronic Paper Display (EPD) The STM32L053 Discovery includes an E-Paper PD with High contrast, High reflectance and Ultra wide viewing angle. This display is a TFT active matrix electrophoretic display. The 2.04" active area contains 172x72 pixels, and has 1-bit and 2-bit full display capabilities. An integrated circuit contains buffers, interface, control logic, oscillator, DC-DC, Etc... (For more information on E-Paper GDE021A1, see www.good-display.com) The STM32L053C8T6 controls this peripheral and is able to switch off its power supply. (See Section 6: Electrical schematics) 4.7 JP4 (Idd) Jumper JP4, labeled Idd, allows the consumption of STM32L053C8T6 to be measured directly by a module onboard able to measure from 100 nA to 50 mA or by removing the jumper and connecting an ammeter. • Jumper in position OFF: STM32L053C8T6 is powered (default). Figure 9. Jumper in position OFF 20/39 DocID026429 Rev 3 UM1775 Hardware layout • Jumper in position ON: a module onboard is designed to measure from 100 nA to 50 mA by using several MOSFET and switching automatically depending the read value. Figure 10. Jumper in position ON • NO Jumper on JP4: an ammeter must be connected to measure the STM32L053C8T6 current through pin 1 and 2 (if there is no ammeter, the STM32L053C8T6 is not powered). Figure 11. No Jumper 4.8 BOOT0 configuration BOOT0 is at level “0” through a pull-down R65. If you want to set BOOT0 at level “1”, it can be configured by setting a jumper between P2.6 (BOOT0) and P2.5 (VDD). Note: If you need to set BOOT0 at level "1" continuously, then unsolder the resistor R65 to avoid a consumption of 6 mA while connecting pin P2.6 (BOOT0) and P2.5 (VDD) with a jumper or with a wire. 4.9 Linear touch sensor / touch keys To demonstrate touch sensing capabilities, the STM32L053 discovery includes a linear touch sensor which can be used either as a 3-position linear touch sensor or as 4 touch keys. Both functions are illustrated in the demonstration software. DocID026429 Rev 3 21/39 38 Hardware layout UM1775 3 pairs of I/O ports are assigned to the linear touch sensor / touch keys. Each pair must belong to the same analog switch group: • PA2, PA3 (group 1) • PA6, PA7 (group 2) • PB0, PB1 (group 3) To minimize the noise, these pairs are dedicated to the linear touch sensor and the touch keys and are not connected to external headers. To design a touch sensing application, refer to the following documentation and firmware: • For details concerning I/O ports, refer to the STM32L053C8T6 datasheet. • For information on software development, see DISCOVER application software on www.st.com/stm32l0-discovery. • For more detail concerning touch sensing application design and layout, refer to AN2869 -Guidelines for designing touch sensing applications. • STM32 touch sensing library available from www.st.com/stm32l0-discovery. The STM32L053C8T6 MCU controls the linear touch sensor and the touch keys. 4.10 USB device support The STM32L053C8T6 MCU is also used to drive the second USB Mini-B connector (USB USER) which allows the board to be used as a USB Device. The STM32L053 discovery can then act as a USB joystick, mouse, or other similar device. If both USBs are connected, diodes D3 and D4 protect the board and use the power from USB ST-LINK or USB USER. Section 4.2.2: External power supply inputs: 5V_IN or USB USER CN3. The board can be powered through this USB USER connector, in which case LED2 PWR lights up, LED1 COM blinks and it can run an application in standalone mode. The STM32L053C8T6 MCU controls the USB USER through PA11 and PA12. 4.11 USART configuration The USART1 interface available on PA9 and PA10 of the STM32L053C8T6 can be connected to the ST-LINK/V2-1 MCU to use the virtual COM port function. By default the USART1 communication between the target STM32L053C8T6 and ST-LINK/V2-1 MCU is not enabled. To use the virtual COM port function with: 4.12 • The on-board STM32L053C8T6, then set SB2 and SB3 ON. (SB14,15 must be OFF) • An external MCU then remove solder from SB2 and SB3, solder a 2 pins header on JP3, then you can connect RX and TX of the external MCU directly to RX and TX of JP3. (for more details see Section 6: Electrical schematics) OSC clock supply If PH0 is only used as GPIOs instead of as a clock, then SB21 is closed. (SB20 must be open) 22/39 DocID026429 Rev 3 UM1775 Hardware layout MCO from ST-LINK/V2-1 (from MCO of the STM32F103CBT6) This frequency cannot be changed, it is fixed at 8 MHz and connected to PH0-OSC_IN of the STM32L053C8T6. The configuration needed is: – SB20 closed and SB21 open Oscillator from external PH0 (from external oscillator through pin 7 of the P3 connector) The configuration needed is: – SB21 closed and SB20 open Note: Please refer to the AN2867 for oscillator design guide for STM32 microcontrollers. 4.13 OSC 32 kHz clock supply If PC14 and PC15 are only used as GPIOs instead of as a clock, then SB18 and SB19 are closed and R70 and R71 are removed. HSE Oscillator onboard from X2 crystal (not provided) For typical frequencies and its capacitors and resistors, please refer to the STM32L053C8T6 Datasheet. The configuration needed is: – SB18, SB19 open – X2, R70, R71, C47, C50 soldered Oscillator from external PC14 (from external oscillator through pin 5 of the P3 connector) the configuration needed is: Note: – SB18 closed – SB19 open – R70 removed Please refer to the AN2867 for oscillator design guide for STM32 microcontrollers. DocID026429 Rev 3 23/39 38 Hardware layout 4.14 UM1775 Solder bridges Table 5. Solder bridges Bridge State (1) Description OFF X2, C47, C50, R70 and R71 provide a clock. PC14, PC15 are disconnected from P3. ON PC14, PC15 are connected from P3. Remove only R70 and R71 SB7,8,9,12 (default) ON Reserved, do not modify SB4,5,6,11 (reserved) OFF Reserved, do not modify SB14,15 (reserved) OFF Reserved, do not modify ON B2 Push Button is connected to NRST of STM32L053C8T6 OFF B2 Push Button is not connected to NRST of STM32L053C8T6 ON B1 Push Button is connected to PA0 OFF B1 Push Button is not connected to PA0 OFF PA2, PA3 of STM32F103CBT6 are not connected to PA10, PA9 of STM32L053C8T6 ON PA2, PA3 of STM32F103CBT6 are connected to PA10, PA9 of STM32L053C8T6 OFF USB1_DP and USB1_DM are dedicated to the USB USER connector CN3 ON USB1_DP is connected to PA12 and USB1_DM is connected to PA11. Both are available as GPIO on P2, P3 headers. SB23,24,25,26,27,28 (touch sensor) OFF PA2, PA3, PA6, PA7, PB0, PB1 are dedicated to touch sensor. ON PA2, PA3, PA6, PA7, PB0, PB1 are available as GPIO on P2, P3 headers. SB1 (ST-LINK/V2-1 PWR) ON ST-LINK/V2-1 module is powered OFF ST-LINK/V2-1 module is not powered OFF Clock signal from header P3.7 is connected to OSC_IN of STM32L053C8T6 or PH0 is available as GPIO. SB20 must be OFF ON No connection between header P3.7 and PH0 of STM32L053C8T6 ON T_NRST signal from connector CN5 and STM32F103CBT6, is connected to NRST of STM32L053C8T6 OFF T_NRST signal is not connected OFF No incidence on NRST signal of STM32F103CBT6 ON NRST signal of STM32F103CBT6 is connected to GND ON MCO clock signal from STM32F103CBT6 is connected to OSC_IN of STM32L053C8T6. SB21 must be OFF OFF MCO signal of STM32F103CBT6 is not used. SB18, 19 (X2 crystal) SB29 (B2-RESET) SB22 (B1-USER) SB2,3 (VCP RX, TX)(2) SB16,17 (USB_USER) SB21 (OSC_IN) SB13 (NRST) SB10 (STM_RST) SB20 (MCO) 1. Default value is in bold. 2. Default state is OFF for boards labeled MB1143 B-01 and older. 24/39 DocID026429 Rev 3 UM1775 4.15 Hardware layout Extension connectors The male headers P2 and P3 can connect the STM32L053 discovery board to a standard prototyping/wrapping board. STM32L053C8T6 GPI/Os are available on these connectors. P2 and P3 can also be probed by an oscilloscope, logical analyzer or voltmeter. Table 6. Extension connectors SBx(1) SB28 SB27 - - - - SB26 CN3 - 17 - 16 - - CN1 15 - - 14 - - 13 - P3 - 12 - - - 11 - P2 - 9 - Power Supply - - - - - - - 6 - Free I/O PA4 - - - - - - Idd Measure - DocID026429 Rev 3 - MFX_WAKEUP - E-paper Display - Linear touch sensor TS_G1_IO4 TS_G1_IO3 TS_G2_IO3 - USB USER - NFC CR95HF-B - RED - LED - PushButtons BP_USER - 16 VCP PA6 - 15 - PA5 - 14 - PA4 - 13 - PA3 - 12 - PA2 - 11 NRST BOOT0 SYSTEM PA1 - 10 - PA0 - 7 - NRST - 44 - BOOT0 - LQFP48 pin num. Board function Main function MCU pin 25/39 38 32 PA12 33 PA13 34 PA14 37 PA15 38 PB0 18 26/39 DocID026429 Rev 3 - SB24 - - - SB17 3(2) SB16 - - - - - - - SB25 SBx(1) CN3 - - - 2(2) - - CN1 - - - - - P3 - - 19 - - 12 - 13 - 14 - 15 - P2 - Power Supply Free I/O 16 - - Idd Measure - - - E-paper Display - - - - TS_G2_IO4 Linear touch sensor - - - ePD1_BUSY - USB USER NFC CR95HF-B LED PushButtons - - - - - - - - - VCP - - - - - - - - - - 17 - - - - - - - - - - 18 - - - - - - - - - USART_RX USART_TX 19 - - - - - - - - USB_DP USB_DM - - - - 18 - - - - - - ePD1_CS - - - - - - MCU pin - - - TS_G3_IO2 - - - - - - - - - - - - - - - SYSTEM PA11 - 31 - PA10 - 30 - PA9 - 29 - PA8 SWCLK SWDIO 17 - LQFP48 pin num. PA7 - Main function Hardware layout UM1775 Table 6. Extension connectors (continued) Board function PB5 41 PB6 42 PB7 43 PB8 45 DocID026429 Rev 3 - MFX_I2C_SCL - - - - - - - - - - 4 - 1 - 7 - - - - - SB23 - SBx(1) CN3 CN1 - 2 - - 8 - P3 - 9 - P2 - Power Supply - - Free I/O Idd Measure - - - E-paper Display - - - - - - - USB USER NFC CR95HF-B LED PushButtons VCP TS_G3_IO3 Linear touch sensor - - - - - 10 - - - - ePD1_SCK ePD1_RESET - - - - - - 11 - - - - ePD1_MOSI - - - - - - - GREEN - - - - - 21 - - - - - - - - - - 20 - - - - - - - - - - NFC_IRQOUTN NFC_IRQINN - - - MCU pin - - - - - - SYSTEM 40 - PB4 - 39 - PB3 - 20 - PB2 - 19 - LQFP48 pin num. PB1 - Main function UM1775 Hardware layout Table 6. Extension connectors (continued) Board function 27/39 38 PB13 26 PB14 27 PB15 28 PC13 2 28/39 DocID026429 Rev 3 - MFX_IRQ_OUT - - - - - - - - - - - - - - - - - - 4 - 5 - 20 - 4 - - - - SBx(1) CN3 CN1 - - 21 - P3 6 - 3 - - 22 - Free I/O P2 - - - Power Supply 3 - E-paper Display Linear touch sensor USB USER NFC CR95HF-B LED PushButtons VCP MFX_I2C_SDA Idd Measure - - - - - - - - - - - - - - ePD1_D/C ePD1_PWR8ENn - - - - - - - - 23 - - - - - - - - - - 23 - - - - - - - - - - 22 - - - - - - - - - - - NFC_MOSI NFC_MISO NFC_SCK NFC_NSS - - - MCU pin - - - - - - SYSTEM 25 - PB12 - 22 - PB11 - 21 - PB10 - 46 - LQFP48 pin num. PB9 - Main function Hardware layout UM1775 Table 6. Extension connectors (continued) Board function 48 VDD_USB 36 VDDA 9 - - - - - - - - - VLCD 1 - - - - - - - - - VSS 23 DocID026429 Rev 3 - - - - - - - - - - 2 2 8 4(2) - - - - - - - - - - - - - - - - - - - - - - - - SBx(1) CN3 CN1 P3 - - P2 - - Power Supply Free I/O Idd Measure E-paper Display Linear touch sensor USB USER NFC CR95HF-B LED PushButtons VCP - - PC14 PC15 - - - - - - - - - - - - - - - - - - - - - - 5 - - - - 3 - - - - - - - PH1 - - - - - - - - - - - - - - - - - 1 8 - - - - - - - - - - - - - - - - 7 7 - - - - - - - - - - - - 1 6 - - - - - - - - - - - - 1 5 - - - - - - - - - - - - VDD VDD VDD 5V_OUT 5V_IN 3V3 5V_USB_USER - - - - - - - - - - GND VDD - - - - - - - - - OSC_IN OSC32_OUT OSC32_IN SYSTEM MCU pin - VDD - - 6 - PH1 - 5 - LQFP48 pin num. PH0 - - Main function 4 - 24 - - - PC15 - VDD - - - 3 - - - PC14 - - UM1775 Hardware layout Table 6. Extension connectors (continued) Board function 29/39 38 Hardware layout UM1775 Table 6. Extension connectors (continued) 30/39 DocID026429 Rev 3 SBx(1) - CN3 - 24 - CN1 - 24 - P3 - 6 25 1. Signals available depending on SBx value. Refer to Table 5: Solder bridges or schematics in Section 6. 2. Connected through a resistor 5 - - - P2 - - 10 - - - 25 - - - - NC GND GND GND Power Supply - - - Free I/O - - - Idd Measure - - - E-paper Display - - - - - - - USB USER - - NFC CR95HF-B - 8 LED - VSSA PushButtons 47 VCP VSS SYSTEM 35 - VSS - LQFP48 pin num. Linear touch sensor Board function Main function MCU pin UM1775 5 Mechanical drawing Mechanical drawing Figure 12. STM32L053 discovery board mechanical drawing DocID026429 Rev 3 31/39 38 PB4 PB3 32/39 USB1_DM USB1_DP LD_R LD_G B_USER TS_G2_IO3 TS_G2_IO4 TS_G1_IO3 TS_G1_IO4 DocID026429 Rev 3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Header 25 P3 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB10 PB11 NC GND PC13 PC14 PC15 PH0 PH1 NRST GND TS_G3_IO2 USB1_DM TS_G3_IO3 USB1_DP NFC_IRQINn NFC_IRQOUTn NFC_NSS NFC_MOSI NFC_MISO NFC_SCK LD_R LD_G B_USER NRST U_SENSOR_PB SENSOR_PB.SchDoc MCO USART_RX SWCLK USART_TX SWDIO MFX_USART3_RX MFX_USART3_TX NRST U_ST_LINK_V2-1 ST_LINK_V2-1.SCHDOC NFC_IRQINn NFC_IRQOUTn NFC_NSS NFC_MOSI NFC_MISO NFC_SCK TS_G3_IO2 TS_G3_IO3 TS_G2_IO3 TS_G2_IO4 5V_OUT 5V_IN MFX_I2C_SCL MFX_I2C_SDA TS_G3_IO2 TS_G3_IO3 TS_G2_IO3 TS_G2_IO4 TS_G1_IO3 TS_G1_IO4 USART_RX USART_TX USB1_DP USB1_DM LD_G LD_R PC13 PC14 PC15 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 NFC_IRQINn NFC_IRQOUTn NFC_NSS USART_RX NFC_MOSI USART_TX NFC_MISO NFC_SCK TS_G1_IO3 TS_G1_IO4 ePD1_BUSY ePD1_RESET TS_G2_IO3 ePD1_D/C TS_G2_IO4 ePD1_CS ePD1_SCK TS_G3_IO2 ePD1_MOSI TS_G3_IO3 ePD1_PWR_ENn MFX_I2C_SCL MFX_I2C_SDA MFX_IRQ_OUT MFX_WAKEUP SWCLK SWDIO MCO NRST BOOT0 B_USER MFX_WAKEUP MFX_IRQ_OUT MFX_I2C_SDA MFX_I2C_SCL MFX_USART3_RX MFX_USART3_TX U_IDD_measurement IDD_measurement.SchDoc SWCLK SWDIO MCO NRST PH0 PH1 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 U_STM32Lx STM32Lx.SchDoc BOOT0 B_USER PH0 PH1 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 MFX_WAKEUP MFX_IRQ_OUT MFX_I2C_SDA MFX_I2C_SCL MFX_USART3_RX MFX_USART3_TX T_NRST NRST TS_G1_IO3 TS_G1_IO4 PA14 PA13 MCO SWCLK SWDIO MFX_IRQ_OUT MFX_WAKEUP ePD1_PWR_ENn ePD1_BUSY ePD1_RESET ePD1_D/C ePD1_CS ePD1_SCK ePD1_MOSI NFC_IRQINn NFC_IRQOUTn NFC_NSS NFC_MOSI NFC_MISO NFC_SCK USB1_DP USB1_DM LD_G LD_R PC13 PC14 PC15 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 BOOT0 PB7 PB6 PB5 PB4 PB3 PA15 PA14 PA13 PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 NC GND Header 25 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 P2 Reference: MB1143 Date: 22-May-14 Size: A4 Project: STM32L0538-DISCO Title: STM32L053 Discovery Sheet: 1 of 6 Revision: B-01 Rev A-01 --> PCB label MB1143 A-01 Rev B-01 --> PCB label MB1143 B-01, Layout of MOSFET modified Idd Shunt resistors adjusted, Correction on CN1 and CN3 VDD PB9 PB8 ePD1_PWR_ENn ePD1_BUSY ePD1_RESET ePD1_D/C ePD1_CS ePD1_SCK ePD1_MOSI U_E-Paper_Display E-Paper_Display.SchDoc 3V_OUT ePD1_PWR_ENn ePD1_BUSY ePD1_RESET ePD1_D/C ePD1_CS ePD1_SCK ePD1_MOSI 6 NRST USART_RX USART_TX MFX_USART3_RX MFX_USART3_TX Electrical schematics UM1775 Electrical schematics Figure 13. STM32L053 discovery C6 R27 USB 1 2 3 4 5 6 USB-MINI-typeB VCC DD+ ID GND SHELL CN2 SB14 R6 R8 R7 R5 TX RX 1K5 0 USB_DM 0 USB_DP 100K 1 JP3 3V3_ST_LINK SB2 SB3 T1 9013-SOT23 5V_USB_ST_LINK USART_TX MFX_USART3_TX SB15 Close to JP Not Fitted AIN_1 OSC_IN OSC_OUT STM_RST [NA] 3V3_ST_LINK C18 100nF 4K7 R30 4K7 R29 MFX_USART3_RX USART_RX SB10 R31 100K 8MHz 20pF X1 20pF 3V3_ST_LINK 1 2 C7 Board Ident: PC13=0 VBAT PC13 PC14 PC15 OSCIN OSCOUT NRST VSSA VDDA PA0 PA1 PA2 R23 36K R9 10K R10 100 Not Fitted STLINK_RX 1 2 3 4 5 6 7 8 9 10 11 12 3V3_ST_LINK 100K R14 USB_RENUMn JP1 T_JTCK T_JTDO T_JTDI T_NRST 10K R15 SWIM_IN SWIM_RST SWIM_RST_IN 10K 36 35 34 33 32 31 30 29 28 27 26 25 C8 C5 LED_STLINK COM R2 R3 100 100 3 2 4 1 R28 R35 R34 R33 R25 22 22 22 22 BAT60JFILM T_SWO T_NRST C16 20pF 5V_USB_ST_LINK 5V_IN R1 0 3V3_ST_LINK D4 PWR_ENn STPS1L30A STPS1L30A D3 STPS1L30A D6 Not Fitted MCO 5V_USB_USER MCO 5 Volts From External LD2 LED, red 100 S PWR_ENn D G R32 10K S CN4 1uF C10 C11 SB11 SB6 SB5 SB4 STM_JTMS STM_JTCK SB13 PA14 PA13 10nF C4 NC PG VO LD39050PU33R Reference: MB1143 Date: 26-May-14 Size: A4 Project: STM32L0538-DISCO 5 SWCLK SWDIO NRST SWD TP1 TP2 SWDIO SWCLK 3V3_ST_LINK Sheet: 2 of 6 C21 100nF 3V_OUT 3V3 3 Volts Output 100nF C2 3V3_ST_LINK ST-LINK Power Revision: B-01 1uF C20 5 3 4 1uF C3 Title: ST-LINK/V2-1 with support of SWD only VI EN U3 100nF C19 6 1 BYPASS Vout LD3985M33R INH GND Vin U2 C9 100nF 3 1 5 Volts Output 5V_OUT 5V 1uF T2 FDC606P G D T_NRST Jumpers ON --> DISCOVERY Selected Jumpers OFF --> ST-LINK Selected SB12 SB9 SB8 SB7 T3 STS7PF30L T3 Not Fitted SB1 AIN_1 T_JTMS T_JTCK [NA] RC Must be very close to STM32F103 pin 29 R24 10K D5 5 Volts From USB ST-LINK R4 1K 3V3 R11 100 R22 LD_BICOLOR_CMS _Green Red LD1 100nF 100nF 100nF 100nF C15 C17 3V3_ST_LINK T_SWDIO_IN PWR_ENn T_JTMS T_JTCK STM_JTMS USB_DP USB_DM T_SWO LED_STLINK 3V3_ST_LINK 1 2 3 4 5 6 Header 6 CN5 SWD 5V_USB_USER TCK/SWCLK TMS/SWDIO DEFAULT 5V_IN U1 STM32F103CBT6 3V3_ST_LINK BAT60JFILM BAT60JFILM D1 1 2 3 4 D2 3V3_ST_LINK VDD_2 VSS_2 JTMS/SWDIO PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 3V3_ST_LINK R12 JP2 2K7 USB_RENUMn STM_JTCK R16 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2/BOOT1 PB10 PB11 VSS_1 VDD_1 13 14 15 16 17 18 19 20 21 22 23 24 T_JRST STLINK_TX PWR_EXT VDD_3 VSS_3 PB9 PB8 BOOT0 PB7 PB6 PB5 PB4/JNTRST PB3/JTDO PA15/JTDI JTCK/SWCLK 48 47 46 45 44 43 42 41 40 39 38 37 SWIM_IN SWIM 4K7 4 R26 3 2 1 2 3 4 4 5 6 7 8 2 GND 2 1 2 5 6 3 RESERVED GND DocID026429 Rev 3 7 UM1775 Electrical schematics Figure 14. ST-LINK/V2-1 (SWD only) 33/39 38 DocID026429 Rev 3 PC15 PC14 PH0 MCO SB20 PC14-OSC32_IN PH0-OSC_IN PC15-OSC32_OUT R71 R70 0 0 Not Fitted C53 100nF VDDA C54 1uF Ferrite L3 C44 100nF C48 100nF C52 100nF 6.8pF C47 6.8pF X2 XTAL_32K_20PPM C50 C49 100nF VDD All this block must be very close to the STM32L053 SB19 Must be close to the Crystal SB18 SB21 MCO 1 4 Must be close to the MCU 2 3 PA2 SB28 ePD1_PWR_ENn MFX_WAKEUP MFX_IRQ_OUT PB10 PA1 PC13 NFC_IRQOUTn NFC_NSS NFC_MOSI NFC_IRQINn NFC_MISO NFC_SCK PB7 PB12 PB15 PB6 PB14 PB13 SB27 VLCD PC13 PC14/OSC32_IN PC15/OSC32_OUT PH0/OSC_IN PH1/OSC_OUT NRST VSSA VDDA PA0 PA1 PA2 PA4 PA5 1 2 3 4 5 6 7 8 9 10 11 12 PB7 BOOT0 PB8 PB9 PB7 VDD PB8 PB9 MFX_WAKEUP MFX_IRQ_OUT ePD1_PWR_ENn ePD1_BUSY ePD1_RESET ePD1_D/C ePD1_CS ePD1_SCK ePD1_MOSI NFC_IRQOUTn NFC_NSS NFC_MOSI NFC_IRQINn NFC_MISO NFC_SCK LD_G LD_R B_USER TS_G1_IO4 PA4 PA5 PA6 TS_G2_IO3 PA6 PA7 SB26 TS_G2_IO4 PA7 PB0 TS_G3_IO2 SB25 PB0 SB24 PA3 VDDA PA0 PA1 TS_G1_IO3 ePD1_BUSY ePD1_RESET ePD1_D/C ePD1_CS ePD1_SCK ePD1_MOSI LD_G LD_R PB4 PA5 510 VDD PC13 PC14-OSC32_IN PC15-OSC32_OUT PH0-OSC_IN PH1 NRST PA8 PB2 PB11 PA15 PB3 PB5 B_USER PA3 PA0 PA1 PA0 PA2 PH1 NRST PC13 R65 MFX_I2C_SCL MFX_I2C_SDA Reference: MB1143 Date: 22-May-14 Size: A4 Project: STM32L0538-DISCO Title: STM32L053C8T6 MCU PB8 PB9 SWCLK SWDIO PA14 PA13 USB1_DP USB1_DM PA12 PA11 USART_TX USART_RX TS_G3_IO2 TS_G3_IO3 PB0 PB1 PA9 PA10 TS_G2_IO3 TS_G2_IO4 TS_G1_IO3 TS_G1_IO4 PB1 Sheet: 3 of 6 Revision: B-01 MFX_I2C_SCL MFX_I2C_SDA SWCLK SWDIO USART_TX USART_RX USB1_DP USB1_DM TS_G3_IO2 TS_G3_IO3 TS_G2_IO3 TS_G2_IO4 TS_G1_IO3 TS_G1_IO4 PB1 PA13 PA13 USB1_DP PA12 USB1_DM SB16 PA11 PA10 SB17 PA10 PA9 PA9 PA8 PA8 PB15 PB15 PB14 PB14 PB13 PB13 PB12 PB12 VDD U8 STM32L053C8T6 PA6 PA7 PA2 PA3 PB11 PB11 PB10 PB10 PB2 PB2 TS_G3_IO3 SB23 VDD VDD_USB VSS_2 PA13 PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 36 35 34 33 32 31 30 29 28 27 26 25 PB6 PB6 PB5 PB5 PB4 PB4 PB3 PB3 PA15 PA15 PA14 PA14 48 47 46 45 44 43 42 41 40 39 38 37 VDD_3 VSS_3 PB9 PB8 BOOT0 PB7 PB6 PB5 PB4 PB3 PA15 PA14 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB10 PB11 VSS_1 VDD_1 34/39 13 14 15 16 17 18 19 20 21 22 23 24 BOOT0 PA12 PA11 Electrical schematics UM1775 Figure 15. STM32L053C8T6 MCU PB10 ePD1_PWR_ENn R44 10K_1%_0402 3V3 D G D S G ePD1_BUSY ePD1_RESET ePD1_D/C ePD1_CS ePD1_SCK ePD1_MOSI S T5 Not Fitted ePD1_BUSY ePD1_RESET ePD1_D/C ePD1_CS ePD1_SCK ePD1_MOSI 100nF_X7R_0603 ePD1_PWR_ENn PA8 PB2 PB11 PA15 PB3 PB5 STLM75DS2F 3 T6 FDC606P R43 10_1%_0805 T5 STS7P2UH7 1 2 3 4 R41 VDD_ePD1 C25 R37 10K_1%_0402 R42 2.2K_1%_0603 VDD_ePD1 1μF_X5R_0603 SDA SCL OS/INT VSS 1 2 3 4 4 5 6 7 8 C26 C35 1μF_X5R_0603 C33 R36 10K_1%_0402 VDD_ePD1 1μF_X5R_0603 VDD_ePD1 U5 8 VDD 7 A0 C37 6 A1 5 A2 1μF_X5R_0603 C31 C30 C27 10μF_X5R_0603 1 3 C29 D8 MBR0530 1μF_X5R_0603 VDD_ePD1 1μF_X5R_0603 2.2K_1%_0603 C28 D7 BAT54SFILM C22 1μF_X5R_0603 2 1μF_X5R_0603 3 1 T4 SI1304BDL C23 R38 6R8_1%_0805 C24 2 22μH 0,5A 20% 2.2μF_X5R_0603 L1 1μF_X5R_0603 VDD_ePD1 1μF_X5R_0603 DocID026429 Rev 3 1 2 5 6 CON_GDE021A1_EPD NC GDR RESE VGL VGH TSCL TSDA BS1 BUSY RES# D/C# CS# D0 D1 VDDIO VCI VSS VDD VPP VSH PREVGH VSL PREVGL VCOM P1 Reference: MB1143 Date: 26-May-14 Size: A4 Project: STM32L0538-DISCO Title: Electronic Paper Display 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Must be used with CON_GDE021A1_EPD Electronic Paper Display GDE021A1, 2.04", 172×72 dots EPD_GDE021A1 U4 Sheet: 4 of 6 Revision: B-01 UM1775 Electrical schematics Figure 16. Electronic paper display 35/39 38 1 1 LS_P1 C14 47nF R18 10K 2 2 LS_P2 R19 10K LS_P3 3 3 C12 47nF TS_G2_IO4 PA3 PA2 TS_G2_IO3 TS_G3_IO3 PA7 PA6 TS_G3_IO2 PB1 PB0 Linear Touch Sensor made of 3 electrodes C13 47nF TS_G1_IO4 TS_G1_IO3 R17 10K NFC_IRQINn NFC_MISO NFC_SCK 2 4 6 8 8 6 4 2 1 3 5 7 female conn 4X2 7 5 3 1 CN1 C1 100nF PB4 PA5 LD_G LD_R NFC LD_G R60 330 LD_R R69 1K NFC kit reference: CR95HF-B NFC_IRQOUTn NFC_NSS NFC_MOSI LED, green LED, red LD3 LD4 3V3 PB7 PB12 PB15 Operating Voltage: +3.3V PB6 PB14 PB13 PA0 1 2 3 4 5 6 NRST SB22 RESET Button NRST B_USER 100nF C55 SB29 C51 100nF 10K R73 R74 [NA] VDD R72 10K USB1_DM USB1_DP Reference: MB1143 Date: 22-May-14 Size: A4 Project: STM32L0538-DISCO Sheet: 5 of 6 Revision: B-01 Title: Linear Touch Sensor, NFC, USB and Push Button B_USER VDD 0 USB1_DM 0 USB1_DP 100K USER & WAKE-UP Button R21 R20 R13 5V_USB_USER USB-MINI-typeB VCC DD+ ID GND SHELL CN3 USB User 4 1 3 2 4 1 DocID026429 Rev 3 3 2 SW-PUSH-CMS_BLUE B1 36/39 SW-PUSH-CMS_BLACK B2 Linear Sensor LS1 PA11 PA12 Electrical schematics UM1775 Figure 17. Linear touch sensor, NFC, USB and pushbutton 3 5 6 7 8 1 2 3 3V3 VDD JP4 R58 10K_1%_0402 R59 1_1%_0805 C41 100nF C38 100nF C42 100nF 3V3 4 MFX_IDD_CAL T11 FDC606P T12 STS7P2UH7 R56 10K_1%_0402 G D D S S G T12, T14 Not Fitted C34 100nF T13 T14 FDC606P STS7P2UH7 MFX_IDD_SH0 1 2 5 6 4 3V3 C36 1uF Ferrite L2 S D C40 100nF G 1 2 3 4 3 VDDA_L1 G 3V3 VDDA_L1 10K C39 1uF 0 1 2 3 4 5 6 7 8 9 10 11 12 R57 10K_1%_0805 3 5 6 7 8 1 2 5 6 4 R53 10K_1%_0402 R52 24_1%_0805 T7 T8 FDC606P STS7P2UH7 MFX_IDD_SH1 1 2 3 4 510 VLCD PC13 PC14/OSC32_IN PC15/OSC32_OUT PH0/OSC_IN PH1/OSC_OUT NRST VSSA VDDA PA0 PA1 PA2 3V3 differential amplifier MFX_IDD_MEAS MFX_WAKEUP R47 C32 100nF R40 10K 3V3 R39 R45 MFX_IDD_SH0 MFX_IRQ_OUT S D 4 5 6 7 8 1 2 5 6 MFX_IRQ_OUT G 3 S 3V3 VDD_2 VSS_2 PA13 PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 1 2 3 5 6 7 8 1 2 5 6 4 T8, T10 Not Fitted R54 10K_1%_0402 R55 620_1%_0805 6 5 13 12 36 35 34 33 32 31 30 29 28 27 26 25 MFX_USART3_RX MFX_USART3_TX 4 10K MFX_SWCLK MFX_I2C_SDA MFX_I2C_SCL MFX_I2C_ADDRR49 MFX_VDD_MCU T9 T10 FDC606P STS7P2UH7 MFX_IDD_SH2 D MFX Multi Function eXpander G S D 1 G S D 48 47 46 45 44 43 42 41 40 39 38 37 VDD_3 VSS_3 PB9 PB8 BOOT0 PB7 PB6 PB5 PB4 PB3 PA15 PA14 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB10 PB11 VSS_1 VDD_1 13 14 15 16 17 18 19 20 21 22 23 24 S D All this block must be very close to the STM32L152 3 G 14 R63 1K_0.1%_0402 U7D TSZ124IPT R66 1K_0.1%_0402 U7B C45 TSZ124IPT 100nF 7 5V MFX_IDD_SH1 MFX_IDD_SH2 MFX_IDD_CAL MFX_SWDIO 3V3 U6 STM32L152CCT6 2 U7C TSZ124IPT 8 100nF V- V+ 1 2 3 4 R46 2K2 MFX_I2C_SCL MFX_USART3_RX MFX_USART3_TX MFX_SWDIO MFX_SWCLK MFX_IDD_MEAS 3V3 MFX_I2C_SDA MFX_I2C_SDA MFX_I2C_SCL U7A TSZ124IPT 1 CN6 R48 2K2 3V3 MFX_USART3_RX MFX_USART3_TX Reference: MB1143 Date: 26-May-14 Size: A4 Project: STM32L0538-DISCO Sheet: 6 of 6 Revision: B-01 Title: IDD measurement / MFX (Multi Function eXpander) C43 5V R62 100 49K9_0.1%_0402 R61 R68 4K7_1%_0402 R64 49K9_0.1%_0402 9 10 100nF C46 R67 100K_1%_0402 3 3V3 Not Fitted R50 1K_1%_0402 VDD R51 100K 4 11 DocID026429 Rev 3 2 UM1775 Electrical schematics Figure 18. IDD measurement / MFX (multi-function expander) 37/39 38 Revision history 7 UM1775 Revision history Table 7. Document revision history Date Revision 20-Jun-2014 1 initial release 24-Jun-2014 2 Removed embedded USB bootloader paragraph.Rev 3 3 mbed-enabled logo added on the cover page. Added mbed-enabled in Section 3: Features. Added Section 2.1: Product marking Windows Vista removed from Section 4.1.1: Drivers. SB14, SB15 swapped with SB2, SB3 in Table 5: Solder bridges, default position of SB2,SB3 set to ON and ports modified from PB4, PB3 to PA10, PA9. Added Section 4.1.3: VCP configuration 20-Jan-2016 38/39 Changes DocID026429 Rev 3 UM1775 IMPORTANT NOTICE – PLEASE READ CAREFULLY STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’ products. No license, express or implied, to any intellectual property right is granted by ST herein. Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product. ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces information previously supplied in any prior versions of this document. © 2016 STMicroelectronics – All rights reserved DocID026429 Rev 3 39/39 39