Difference between revisions of "STM32L031K6 Microcontroller"
(→Solder Bridges) |
m (→Solder Bridges) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 630: | Line 630: | ||
|- | |- | ||
| '''Port A''' | | '''Port A''' | ||
− | | PA0 | + | | <span style="color:green">PA0</span> |
− | | PA1 | + | | <span style="color:green">PA1</span> |
| PA2 | | PA2 | ||
− | | PA3 | + | | <span style="color:green">PA3</span> |
− | | PA4 | + | | <span style="color:green">PA4</span> |
− | | PA5 | + | | <span style="color:orange">PA5</span> |
− | | PA6 | + | | <span style="color:orange">PA6</span> |
− | | PA7 | + | | <span style="color:green">PA7</span> |
− | | PA8 | + | | <span style="color:green">PA8</span> |
− | | PA9 | + | | <span style="color:green">PA9</span> |
− | | PA10 | + | | <span style="color:green">PA10</span> |
− | | PA11 | + | | <span style="color:green">PA11</span> |
− | | PA12 | + | | <span style="color:green">PA12</span> |
| | | | ||
| | | | ||
Line 648: | Line 648: | ||
|- | |- | ||
| '''Port B''' | | '''Port B''' | ||
− | | PB0 | + | | <span style="color:green">PB0</span> |
− | | PB1 | + | | <span style="color:green">PB1</span> |
| | | | ||
| PB3 | | PB3 | ||
− | | PB4 | + | | <span style="color:green">PB4</span> |
− | | PB5 | + | | <span style="color:green">PB5</span> |
− | | PB6 | + | | <span style="color:orange">PB6</span> |
− | | PB7 | + | | <span style="color:orange">PB7</span> |
| | | | ||
| | | | ||
Line 666: | Line 666: | ||
|- | |- | ||
| '''Port C''' | | '''Port C''' | ||
− | | | + | | PC14 |
− | | | + | | PC15 |
| | | | ||
| | | | ||
Line 683: | Line 683: | ||
| | | | ||
|} | |} | ||
− | |||
==Solder Bridges== | ==Solder Bridges== | ||
Line 705: | Line 704: | ||
|SB4 | |SB4 | ||
| no | | no | ||
− | | connects | + | | connects PC14 to MCO |
|- | |- | ||
|SB5 | |SB5 | ||
| '''yes''' | | '''yes''' | ||
− | | connects | + | | connects PC14 to X1 (32.768KHz Xtal) |
|- | |- | ||
|SB6 | |SB6 | ||
| no | | no | ||
− | | connects | + | | connects PC14 to PC15 (shorts OSC32_IN to OSC32_OUT) |
|- | |- | ||
|SB7 | |SB7 | ||
| '''yes''' | | '''yes''' | ||
− | | connects | + | | connects PC15 to X1 (32.768KHz Xtal) |
|- | |- | ||
|SB8 | |SB8 | ||
| no | | no | ||
− | | connects | + | | connects PC15 to PC14 (shorts OSC32_IN to OSC32_OUT) |
|- | |- | ||
|SB9 | |SB9 | ||
Line 745: | Line 744: | ||
|SB14 | |SB14 | ||
| '''yes''' | | '''yes''' | ||
− | | 3.3V regulator output | + | | connects 3.3V regulator output to +3V3/VDD |
|- | |- | ||
|SB15 | |SB15 | ||
| '''yes''' | | '''yes''' | ||
− | | connects PB3 to LD3 | + | | connects PB3 to LD3 (<span style="color:green">Green LED</span>) |
|- | |- | ||
|SB16 | |SB16 | ||
| '''yes''' | | '''yes''' | ||
− | | connects PB6 to PA6 | + | | <span style="color:red">connects PB6 to PA6</span> |
|- | |- | ||
|SB17 | |SB17 | ||
| no | | no | ||
− | | connects | + | | connects PA0 to MCO |
|- | |- | ||
|SB18 | |SB18 | ||
| '''yes''' | | '''yes''' | ||
− | | connects PB7 to PA5 | + | | <span style="color:red">connects PB7 to PA5</span> |
|} | |} | ||
Line 835: | Line 834: | ||
| bgcolor="#FFFFFF" align="center" | ↔ | | bgcolor="#FFFFFF" align="center" | ↔ | ||
| bgcolor="#FFFFFF" | | | bgcolor="#FFFFFF" | | ||
− | * | + | *<span style="color:red">PB7 via SB18</span> |
| bgcolor="#FFFFFF" | | | bgcolor="#FFFFFF" | | ||
*ADC_IN5 | *ADC_IN5 | ||
Line 848: | Line 847: | ||
| bgcolor="#FFFFFF" align="center" | ↔ | | bgcolor="#FFFFFF" align="center" | ↔ | ||
| bgcolor="#FFFFFF" | | | bgcolor="#FFFFFF" | | ||
− | * | + | *<span style="color:red">PB6 via SB16</span> |
| bgcolor="#FFFFFF" | | | bgcolor="#FFFFFF" | | ||
*ADC_IN6 | *ADC_IN6 | ||
Line 977: | Line 976: | ||
| bgcolor="#F0F0F0" align="center" | ↔ | | bgcolor="#F0F0F0" align="center" | ↔ | ||
| bgcolor="#F0F0F0" | | | bgcolor="#F0F0F0" | | ||
− | * | + | *<span style="color:red">PA6 via SB16</span> |
| bgcolor="#F0F0F0" | | | bgcolor="#F0F0F0" | | ||
*TIM21_CH1 | *TIM21_CH1 | ||
Line 988: | Line 987: | ||
| bgcolor="#F0F0F0" align="center" | ↔ | | bgcolor="#F0F0F0" align="center" | ↔ | ||
| bgcolor="#F0F0F0" | | | bgcolor="#F0F0F0" | | ||
− | * | + | *<span style="color:red">PA5 via SB18</span> |
| bgcolor="#F0F0F0" | | | bgcolor="#F0F0F0" | | ||
*COMP2_INP | *COMP2_INP |
Latest revision as of 17:31, 26 July 2017
Contents
STM32L031K6 Microcontroller Overview
- Ultra-low-power platform
- 1.65 V to 3.6 V power supply
- -40 to 125 °C temperature range
- 0.25 μA Standby mode (2 wakeup pins)
- 0.38 μA Stop mode (16 wakeup lines)
- 0.68 μA Stop mode + RTC + 8 KB RAM retention
- Down to 76 μA/MHz in Run mode
- 5 μs wakeup time (from Flash memory)
- 41 μA 12-bit ADC conversion (at 10ksps)
- Core: ARM® 32-bit Cortex®-M0+
- From 32 kHz up to 32 MHz max.
- 0.95 DMIPS/MHz
- Ultra-safe, low-power BOR (brownout reset) with 5 selectable thresholds
- Ultralow power POR/PDR
- Programmable voltage detector (PVD)
- Clock sources
- 1 to 25 MHz crystal oscillator
- 32 kHz oscillator for RTC with calibration
- High speed internal 16 MHz factory-trimmed RC (+/- 1%)
- Internal low-power 37 kHz RC
- Internal multispeed low-power 65 kHz to 4.2 MHz RC
- PLL for CPU clock
- Pre-programmed bootloader
- USART, SPI supported
- Development support
- Serial wire debug supported
- Up to 38 fast I/Os (31 I/Os 5V tolerant)
- Memories
- Up to 32 KB Flash with ECC
- 8 KB RAM
- 1 KB of data EEPROM with ECC
- 20-byte backup register
- Sector protection against R/W operation
- Rich Analog peripherals
- 12-bit ADC 1.14 Msps up to 10 channels (down to 1.65 V)
- 2x ultra-low-power comparators (window mode and wake up capability, down to 1.8 V)
- 7-channel DMA controller, supporting ADC, SPI, I2C, USART, Timers
- 5x peripherals communication interface
- 1x USART (ISO 7816, IrDA), 1x UART (low power)
- 1x SPI 16 Mbits/s
- 1x I2C (SMBus/PMBus)
- 8x timers: 1x 16-bit with up to 4 channels, 2x 16-bit with up to 2 channels, 1x 16-bit ultra-low-power timer, 1x SysTick, 1x RTC and 2x watchdogs (independent/window)
- CRC calculation unit, 96-bit unique ID
- All packages are ECOPACK®2
STM32L031K6 system architecture
Note:
- only serial controllers USART2 and LPUART1 are available on the LQFP32 package
- Only one I2C controller (I2C1) is available on the LQFP32 package
- Only one SPI controller (SPI1) is available on the LQFP32 package
Documents and files
Datasheet
Specifications
Getting started
Reference manual
Programming manual
Errata
Getting started with STM32F0 or STM32L0 series
Cortex-M0+ Technical Reference Manual
Virtually increasing the number of serial communication peripherals in STM32 applications
Guidelines to increase the number of touch sensing touchkeys
Pinout
Alternate function mapping
All dark grey text indicates that the pin is not available on the LQFP32
Pin | AF0 (SPI1 |
AF1 (SPI1 |
AF2 (LPTIM |
AF3 (I2C1 |
AF4 (I2C1 |
AF5 (TIM2 |
AF6 (LPUART1 |
AF7 (COMP1 |
Additional functions |
---|---|---|---|---|---|---|---|---|---|
PA0 | LPTIM1_IN1 | TIM2_CH1 | USART2_CTS | TIM2_ETR | COMP1_OUT |
COMP1_INM6 | |||
PA1 | EVENTOUT | LPTIM1_IN2 | TIM2_CH2 | I2C1_SMBA | USART2_RTS | TIM21_ETR |
COMP1_INP | ||
PA2 | TIM21_CH1 | TIM2_CH3 | USART2_TX | LPUART1_TX | COMP2_OUT |
COMP2_INM6 | |||
PA3 | TIM21_CH2 | TIM2_CH4 | USART2_RX | LPUART1_RX |
COMP2_INP | ||||
PA4 | SPI1_NSS | LPTIM1_IN1 | USART2_CK | TIM22_ETR |
COMP1_INM4 | ||||
PA5 | SPI1_SCK | LPTIM1_IN2 | TIM2_ETR | TIM2_CH1 |
COMP1_INM5 | ||||
PA6 | SPI1_MISO | LPTIM1_ETR | LPUART1_CTS | TIM22_CH1 | EVENTOUT | COMP1_OUT | ADC_IN6 | ||
PA7 | SPI1_MOSI | LPTIM1_OUT | USART2_CTS | TIM22_CH2 | EVENTOUT | COMP2_OUT | ADC_IN7 | ||
PA8 | MCO | LPTIM1_IN1 | EVENTOUT | USART2_CK | TIM2_CH1 | ||||
PA9 | MCO | I2C1_SCL | USART2_TX | TIM22_CH1 | |||||
PA10 | I2C1_SDA | USART2_RX | TIM22_CH2 | ||||||
PA11 | SPI1_MISO | EVENTOUT | USART2_CTS | TIM21_CH2 | COMP1_OUT | ||||
PA12 | SPI1_MOSI | EVENTOUT | USART2_RTS | COMP2_OUT | |||||
PA13 | SWDIO | LPTIM1_ETR | LPUART1_RX | ||||||
PA14 | SWCLK | LPTIM1_OUT | I2C1_SMBA | USART2_TX | LPUART1_TX | ||||
PA15 | SPI1_NSS | TIM2_ETR | EVENTOUT | USART2_RX | TIM2_CH1 | ||||
PB0 | EVENTOUT | SPI1_MISO | USART2_RTS | TIM2_CH3 |
ADC_IN8 | ||||
PB1 | USART2_CK | SPI1_MOSI | LPUART1_RTS | TIM2_CH4 |
ADC_IN9 | ||||
PB2 | LPTIM1_OUT | ||||||||
PB3 | SPI1_SCK | TIM2_CH2 | EVENTOUT | COMP2_INN | |||||
PB4 | SPI1_MISO | EVENTOUT | TIM22_CH1 | COMP2_INP | |||||
PB5 | SPI1_MOSI | LPTIM1_IN1 | I2C1_SMBA | TIM22_CH2 | COMP2_INP | ||||
PB6 | USART2_TX | I2C1_SCL | LPTIM1_ETR | TIM21_CH1 | COMP2_INP | ||||
PB7 | USART2_RX | I2C1_SDA | LPTIM1_IN2 |
COMP2_INP | |||||
PB8 | I2C1_SCL | ||||||||
PB9 | EVENTOUT | I2C1_SDA | |||||||
PB10 | TIM2_CH3 | LPUART1_TX | |||||||
PB11 | EVENTOUT | TIM2_CH4 | LPUART1_RX | ||||||
PB12 | SPI1_NSS | EVENTOUT | |||||||
PB13 | SPI1_SCK | MCO | TIM21_CH1 | LPUART1_CTS | |||||
PB14 | SPI1_MISO | RTC_OUT | TIM21_CH2 | LPUART1_RTS | |||||
PB15 | SPI1_MOSI | RTC_REFIN | |||||||
PC0 | LPTIM1_IN1 | EVENTOUT | LPUART1_RX | ||||||
PC14 | OSC32_IN | ||||||||
PC15 | OSC32_OUT | ||||||||
PH0 | |||||||||
PH1 |
NUCLEO-L031K6 development Board Overview
Front | Back | Dimentions |
---|---|---|
Packaging literature
Front | Back |
---|---|
Features
- STM32 microcontrollers in 32-pin packages
- Extension with Arduino™ nano connectivity
- ARM® mbed™ -enabled (see http://mbed.org)
- On-board ST-LINK/V2-1 debugger/programmer with SWD connector:
- USB VBUS
- External source
- Three LEDs:
- USB communication (LD1), power LED (LD2), user LED (LD3)
- Reset push-button
- Supported by wide choice of Integrated Development Environments (IDEs) including IAR™ , Keil® , GCC-based IDEs (AC6 SW4STM32, ...)
Documents and files
Specifications
Getting started with STM32 Nucleo board software development tools
User manual
Schematic
Board Layout
Top | Bottom |
---|---|
Pinout
Available pins on board
Bit | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
Port A | PA0 | PA1 | PA2 | PA3 | PA4 | PA5 | PA6 | PA7 | PA8 | PA9 | PA10 | PA11 | PA12 | |||
Port B | PB0 | PB1 | PB3 | PB4 | PB5 | PB6 | PB7 | |||||||||
Port C | PC14 | PC15 |
Solder Bridges
Solder Bridge | fitted | connects |
SB1 | no | power configuration |
SB2 | yes | connects VCP-TX (PA2) to ST-LINK |
SB3 | yes | connects VCP-RX (PA15 - not broken out) to ST-LINK |
SB4 | no | connects PC14 to MCO |
SB5 | yes | connects PC14 to X1 (32.768KHz Xtal) |
SB6 | no | connects PC14 to PC15 (shorts OSC32_IN to OSC32_OUT) |
SB7 | yes | connects PC15 to X1 (32.768KHz Xtal) |
SB8 | no | connects PC15 to PC14 (shorts OSC32_IN to OSC32_OUT) |
SB9 | yes | ST-LINK reset |
SB10 | yes | connects VDD to STM32 pin VDDA |
SB11 | yes | connects STM32 pin VSS to GND |
SB12 | yes | connects BOOT0 to GND |
SB13 | yes | connects GND to STM32 pin VDDA |
SB14 | yes | connects 3.3V regulator output to +3V3/VDD |
SB15 | yes | connects PB3 to LD3 (Green LED) |
SB16 | yes | connects PB6 to PA6 |
SB17 | no | connects PA0 to MCO |
SB18 | yes | connects PB7 to PA5 |
PCB IO map
STM32 pin | Board pin name | Board pin number | Direction | Connected to | Alternate & additional functions see complete AF list |
Notes |
PA0 | A0 | CN4.12 | ↔ |
|
|
|
PA1 | A1 | CN4.11 | ↔ |
|
|
|
PA2 | A7 | CN4.5 | → |
|
|
|
PA3 | A2 | CN4.10 | ↔ |
|
|
|
PA4 | A3 | CN4.9 | ↔ |
|
|
|
PA5 | A4 | CN4.8 | ↔ |
|
|
Limitations on A4 and A5, D4 and D5 related to I2C configuration are explained in Section 6.8: Solder bridges according to SB16/SB18 setting. |
PA6 | A5 | CN4.7 | ↔ |
|
|
Limitations on A4 and A5, D4 and D5 related to I2C configuration are explained in Section 6.8: Solder bridges according to SB16/SB18 setting. |
PA7 | A6 | CN4.6 | ↔ |
|
|
|
PA8 | D9 | CN3.12 | ↔ |
|
|
|
PA9 | D1 | CN3.1 | → |
|
|
Only one USART is available and it is shared between Arduino Nano and VCP. The selection is done by remapping (no need to change the hardware configuration). |
PA10 | D0 | CN3.2 | ← |
|
|
Only one USART is available and it is shared between Arduino Nano and VCP. The selection is done by remapping (no need to change the hardware configuration). |
PA11 | D10 | CN3.13 | ↔ |
|
|
SPI_CS is made by GPIO. |
PA12 | D2 | CN3.5 | ↔ |
|
||
PB0 | D3 | CN3.6 | ↔ |
|
|
|
PB1 | D6 | CN3.9 | ↔ |
|
|
|
PB3 | D13 | CN4.15 | → |
|
|
|
PB4 | D12 | CN3.15 | ↔ |
|
|
|
PB5 | D11 | CN3.14 | ↔ |
|
|
|
PB6 | D5 | CN3.8 | ↔ |
|
|
Limitations on A4 and A5, D4 and D5 related to I 2 C configuration are explained in Section 6.8: Solder bridges according to SB16/SB18 setting. |
PB7 | D4 | CN3.7 | ↔ |
|
|
Limitations on A4 and A5, D4 and D5 related to I 2 C configuration are explained in Section 6.8: Solder bridges according to SB16/SB18 setting. |
PC14 | D7 | CN3.10 | ← |
|
D7/D8 shared with OSC_IN/OSC_OUT. | |
PC15 | D8 | CN3.11 | → |
|
D7/D8 shared with OSC_IN/OSC_OUT. |
Note PA15 is the VCP RX, but is not broken out to a PCB pin.