This datasheet provides the description of the STM32F105xx and STM32F107xx
connectivity line microcontrollers. For more details on the whole STMicroelectronics
STM32F10xxx family, please refer to Section 2.2: Full compatibility throughout the family.
The STM32F105xx and STM32F107xx datasheet should be read in conjunction with the
STM32F10xxx reference manual.
For information on programming, erasing and protection of the internal Flash memory
please refer to the STM32F10xxx Flash programming manual.
The reference and Flash programming manuals are both available from the
STMicroelectronics website www.st.com.
For information on the Cortex™-M3 core please refer to the Cortex™-M3 Technical
Reference Manual, available from the www.arm.com website at the following address:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/.
2 Description
The STM32F105xx and STM32F107xx connectivity line family incorporates the highperformance ARM
speed embedded memories (Flash memory up to 256 Kbytes and SRAM up to 64 Kbytes),
and an extensive range of enhanced I/Os and peripherals connected to two APB buses. All
devices offer two 12-bit ADCs, four general-purpose 16-bit timers plus a PWM timer, as well
as standard and advanced communication interfaces: up to two I
five USARTs, an USB OTG FS and two CANs. Ethernet is available on the STM32F107xx
only.
The STM32F105xx and STM32F107xx connectivity line family operates in the –40 to +105
°C temperature range, from a 2.0 to 3.6 V power supply. A comprehensive set of powersaving mode allows the design of low-power applications.
The STM32F105xx and STM32F107xx connectivity line family offers devices in three
different package types: from 64 pins to 100 pins. Depending on the device chosen, different
sets of peripherals are included, the description below gives an overview of the complete
range of peripherals proposed in this family.
®
Cortex™-M3 32-bit RISC core operating at a 72 MHz frequency, high-
2
Cs, three SPIs, two I2Ss,
9/90
DescriptionSTM32F105xx, STM32F107xx
These features make the STM32F105xx and STM32F107xx connectivity line
microcontroller family suitable for a wide range of applications:
●Motor drive and application control
●Medical and handheld equipment
●Industrial applications: PLC, inverters, printers, and scanners
●Alarm systems, Video intercom, and HVAC
●Car audio, home audio equipment
Figure 1 shows the general block diagram of the device family.
2.1 Device overview
Table 2.STM32F105xx and STM32F107xx features and peripheral counts
Flash memory in Kbytes6412825612825664128256128256
SRAM in Kbytes20326448642032644864
EthernetNoYesNoYes
General-purpose4
Timers
Advanced-control1
Basic2
Communication
interfaces
2S)(1)
SPI(I
2
I
C2
USART5
3(2)
USB OTG FSYes
CAN2
GPIOs5180
12-bit ADC
Number of channels
12-bit DAC
Number of channels
2
16
2
2
CPU frequency72 MHz
Operating voltage2.0 to 3.6 V
Operating temperatures
Ambient temperatures: –40 to +85 °C /–40 to +105 °C
Junction temperature: –40 to + 125 °C
PackageLQFP64LQFP100, BGA100
1. The SPI2 and SPI3 interfaces give the flexibility to work in either the SPI mode or the I2S audio mode.
10/90
STM32F105xx, STM32F107xxDescription
2.2 Full compatibility throughout the family
The STM32F105xx and STM32F107xx constitute the connectivity line family whose
members are fully pin-to-pin, software and feature compatible.
The STM32F105xx and STM32F107xx are a drop-in replacement for the low-density
(STM32F103x4/6), medium-density (STM32F103x8/B) and high-density
(STM32F103xC/D/E) performance line devices, allowing the user to try different memory
densities and peripherals providing a greater degree of freedom during the development
cycle.
Table 3.STM32F105xx and STM32F107xx family versus STM32F103xx family
STM32
device
Low-density
STM32F103xx
devices
Medium-density
STM32F103xx devices
High-density
STM32F103xx devices
STM32F105xxSTM32F107xx
Flash
size (KB)
RAM
size (KB)
144 pins
100 pins
64 pins
48 pins
36 pins
1. Ports F and G are not available in devices delivered in 100-pin packages.
The ARM Cortex™-M3 processor is the latest generation of ARM processors for embedded
systems. It has been developed to provide a low-cost platform that meets the needs of MCU
implementation, with a reduced pin count and low-power consumption, while delivering
outstanding computational performance and an advanced system response to interrupts.
The ARM Cortex™-M3 32-bit RISC processor features exceptional code-efficiency,
delivering the high-performance expected from an ARM core in the memory size usually
associated with 8- and 16-bit devices.
With its embedded ARM core, STM32F105xx and STM32F107xx connectivity line family is
compatible with all ARM tools and software.
Figure 1 shows the general block diagram of the device family.
11/90
DescriptionSTM32F105xx, STM32F107xx
2.3.2 Embedded Flash memory
64 to 256 Kbytes of embedded Flash is available for storing programs and data.
2.3.3 CRC (cyclic redundancy check) calculation unit
The CRC (cyclic redundancy check) calculation unit is used to get a CRC code from a 32-bit
data word and a fixed generator polynomial.
Among other applications, CRC-based techniques are used to verify data transmission or
storage integrity. In the scope of the EN/IEC 60335-1 standard, they offer a means of
verifying the Flash memory integrity. The CRC calculation unit helps compute a signature of
the software during runtime, to be compared with a reference signature generated at linktime and stored at a given memory location.
2.3.4 Embedded SRAM
20 to 64 Kbytes of embedded SRAM accessed (read/write) at CPU clock speed with 0 wait
states.
2.3.5 Nested vectored interrupt controller (NVIC)
The STM32F105xx and STM32F107xx connectivity line embeds a nested vectored interrupt
controller able to handle up to 67 maskable interrupt channels (not including the 16 interrupt
lines of Cortex™-M3) and 16 priority levels.
●Interrupt entry vector table address passed directly to the core
●Closely coupled NVIC core interface
●Allows early processing of interrupts
●Processing of late arriving higher priority interrupts
●Support for tail-chaining
●Processor state automatically saved
●Interrupt entry restored on interrupt exit with no instruction overhead
This hardware block provides flexible interrupt management features with minimal interrupt
latency.
2.3.6 External interrupt/event controller (EXTI)
The external interrupt/event controller consists of 20 edge detector lines used to generate
interrupt/event requests. Each line can be independently configured to select the trigger
event (rising edge, falling edge, both) and can be masked independently. A pending register
maintains the status of the interrupt requests. The EXTI can detect an external line with a
pulse width shorter than the Internal APB2 clock period. Up to 80 GPIOs can be connected
to the 16 external interrupt lines.
2.3.7 Clocks and startup
System clock selection is performed on startup, however, the internal RC 8 MHz oscillator is
selected as default CPU clock on reset. An external 3-25 MHz clock can be selected, in
which case it is monitored for failure. If failure is detected, the system automatically switches
back to the internal RC oscillator. A software interrupt is generated if enabled. Similarly, full
12/90
STM32F105xx, STM32F107xxDescription
interrupt management of the PLL clock entry is available when necessary (for example with
failure of an indirectly used external oscillator).
A single 25 MHz crystal can clock the entire system including the ethernet and USB OTG
FS peripherals. Several prescalers and PLLs allow the configuration of the AHB frequency,
the high speed APB (APB2) and the low speed APB (APB1) domains. The maximum
frequency of the AHB and the high speed APB domains is 72 MHz. The maximum allowed
frequency of the low speed APB domain is 36 MHz. Refer to Figure 50: USB OTG FS +
Ethernet solution on page 87.
The advanced clock controller clocks the core and all peripherals using a single crystal or
oscillator. In order to achieve audio class performance, an audio crystal can be used. In this
case, the I
96 kHz with less than 0.5% accuracy error. Refer to Figure 51: USB OTG FS + I
2
S master clock can generate all standard sampling frequencies from 8 kHz to
2
S (Audio)
solution on page 87.
To configure the PLLs, please refer to Table 60 on page 88, which provides PLL
configurations according to the application type.
2.3.8 Boot modes
At startup, boot pins are used to select one of three boot options:
●Boot from User Flash
●Boot from System Memory
●Boot from embedded SRAM
The boot loader is located in System Memory. It is used to reprogram the Flash memory by
using USART1, USART2 (remapped), CAN2 (remapped), USB OTG FS in device mode
(DFU: device firmware upgrade) and Ethernet.
2.3.9 Power supply schemes
●V
●V
●V
= 2.0 to 3.6 V: external power supply for I/Os and the internal regulator.
DD
Provided externally through V
, V
SSA
= 2.0 to 3.6 V: external analog power supplies for ADC, Reset blocks, RCs
DDA
and PLL (minimum voltage to be applied to V
and V
BAT
must be connected to VDD and VSS, respectively.
SSA
= 1.8 to 3.6 V: power supply for RTC, external clock 32 kHz oscillator and backup
registers (through power switch) when V
2.3.10 Power supply supervisor
The device has an integrated power-on reset (POR)/power-down reset (PDR) circuitry. It is
always active, and ensures proper operation starting from/down to 2 V. The device remains
in reset mode when V
external reset circuit.
The device features an embedded programmable voltage detector (PVD) that monitors the
V
DD/VDDA
generated when V
than the V
power supply and compares it to the V
DD/VDDA
threshold. The interrupt service routine can then generate a warning
PVD
message and/or put the MCU into a safe state. The PVD is enabled by software.
is below a specified threshold, V
DD
drops below the V
DD
pins.
is 2.4 V when the ADC is used). V
DDA
is not present.
DD
POR/PDR
threshold. An interrupt can be
PVD
threshold and/or when VDD/V
PVD
, without the need for an
is higher
DDA
DDA
13/90
DescriptionSTM32F105xx, STM32F107xx
2.3.11 Voltage regulator
The regulator has three operation modes: main (MR), low power (LPR) and power down.
●MR is used in the nominal regulation mode (Run)
●LPR is used in the Stop modes.
●Power down is used in Standby mode: the regulator output is in high impedance: the
kernel circuitry is powered down, inducing zero consumption (but the contents of the
registers and SRAM are lost)
This regulator is always enabled after reset. It is disabled in Standby mode.
2.3.12 Low-power modes
The STM32F105xx and STM32F107xx connectivity line supports three low-power modes to
achieve the best compromise between low power consumption, short startup time and
available wakeup sources:
●Sleep mode
In Sleep mode, only the CPU is stopped. All peripherals continue to operate and can
wake up the CPU when an interrupt/event occurs.
●Stop mode
Stop mode achieves the lowest power consumption while retaining the content of
SRAM and registers. All clocks in the 1.8 V domain are stopped, the PLL, the HSI RC
and the HSE crystal oscillators are disabled. The voltage regulator can also be put
either in normal or in low-power mode.
The device can be woken up from Stop mode by any of the EXTI line. The EXTI line
source can be one of the 16 external lines, the PVD output, the RTC alarm or the USB
OTG FS wakeup.
●Standby mode
The Standby mode is used to achieve the lowest power consumption. The internal
voltage regulator is switched off so that the entire 1.8 V domain is powered off. The
PLL, the HSI RC and the HSE crystal oscillators are also switched off. After entering
Standby mode, SRAM and register contents are lost except for registers in the Backup
domain and Standby circuitry.
The device exits Standby mode when an external reset (NRST pin), an IWDG reset, a
rising edge on the WKUP pin, or an RTC alarm occurs.
Note:The RTC, the IWDG, and the corresponding clock sources are not stopped by entering Stop
or Standby mode.
2.3.13 DMA
The flexible 12-channel general-purpose DMAs (7 channels for DMA1 and 5 channels for
DMA2) are able to manage memory-to-memory, peripheral-to-memory and memory-toperipheral transfers. The two DMA controllers support circular buffer management,
removing the need for user code intervention when the controller reaches the end of the
buffer.
Each channel is connected to dedicated hardware DMA requests, with support for software
trigger on each channel. Configuration is made by software and transfer sizes between
source and destination are independent.
The DMA can be used with the main peripherals: SPI, I
and advanced control timers TIMx, DAC, I
14/90
2
S and ADC.
2
C, USART, general-purpose, basic
STM32F105xx, STM32F107xxDescription
2.3.14 RTC (real-time clock) and backup registers
The RTC and the backup registers are supplied through a switch that takes power either on
V
supply when present or through the V
DD
registers used to store 84 bytes of user application data when V
pin. The backup registers are forty-two 16-bit
BAT
power is not present.
DD
They are not reset by a system or power reset, and they are not reset when the device
wakes up from the Standby mode.
The real-time clock provides a set of continuously running counters which can be used with
suitable software to provide a clock calendar function, and provides an alarm interrupt and a
periodic interrupt. It is clocked by a 32.768 kHz external crystal, resonator or oscillator, the
internal low power RC oscillator or the high-speed external clock divided by 128. The
internal low-speed RC has a typical frequency of 40 kHz. The RTC can be calibrated using
an external 512 Hz output to compensate for any natural quartz deviation. The RTC features
a 32-bit programmable counter for long term measurement using the Compare register to
generate an alarm. A 20-bit prescaler is used for the time base clock and is by default
configured to generate a time base of 1 second from a clock at 32.768 kHz.
2.4 Timers and watchdogs
The STM32F105xx and STM32F107xx devices include six general-purpose timers, two
basic timers and two watchdog timers.
Ta bl e 4 compares the features of the general-purpose and basic timers.
Table 4.Timer feature comparison
Timer
TIM116-bit
TIMx
(TIM2,
TIM3,
TIM4,
TIM5)
TIM6,
TIM7
Counter
resolution
16-bit
16-bitUp
Counter
type
Up,
down,
up/down
Up,
down,
up/down
Prescaler
factor
Any integer
between 1
and 65536
Any integer
between 1
and 65536
Any integer
between 1
and 65536
2.4.1 Advanced-control timer (TIM1)
The advanced control timer (TIM1) can be seen as a three-phase PWM multiplexed on 6
channels. It has complementary PWM outputs with programmable inserted dead-times. It
can also be seen as a complete general-purpose timer. The 4 independent channels can be
used for:
●Input capture
●Output compare
●PWM generation (edge or center-aligned modes)
●One-pulse mode output
DMA request
generation
Ye s4Ye s
Ye s4N o
Ye s0N o
Capture/compare
channels
Complementary
outputs
15/90
DescriptionSTM32F105xx, STM32F107xx
If configured as a standard 16-bit timer, it has the same features as the TIMx timer. If
configured as the 16-bit PWM generator, it has full modulation capability (0-100%).
The counter can be frozen in debug mode.
Many features are shared with those of the standard TIM timers which have the same
architecture. The advanced control timer can therefore work together with the TIM timers via
the Timer Link feature for synchronization or event chaining.
2.4.2 General-purpose timers (TIMx)
There are up to 4 synchronizable standard timers (TIM2, TIM3, TIM4 and TIM5) embedded
in the STM32F105xx and STM32F107xx connectivity line devices. These timers are based
on a 16-bit auto-reload up/down counter, a 16-bit prescaler and feature 4 independent
channels each for input capture/output compare, PWM or one pulse mode output. This
gives up to 16 input captures / output compares / PWMs on the largest packages. They can
work together with the Advanced Control timer via the Timer Link feature for synchronization
or event chaining.
The counter can be frozen in debug mode.
Any of the standard timers can be used to generate PWM outputs. Each of the timers has
independent DMA request generations.
2.4.3 Basic timers TIM6 and TIM7
These timers are mainly used for DAC trigger generation. They can also be used as a
generic 16-bit time base.
2.4.4 Independent watchdog
The independent watchdog is based on a 12-bit downcounter and 8-bit prescaler. It is
clocked from an independent 40 kHz internal RC and as it operates independently from the
main clock, it can operate in Stop and Standby modes. It can be used either as a watchdog
to reset the device when a problem occurs, or as a free running timer for application timeout
management. It is hardware or software configurable through the option bytes. The counter
can be frozen in debug mode.
2.4.5 Window watchdog
The window watchdog is based on a 7-bit downcounter that can be set as free running. It
can be used as a watchdog to reset the device when a problem occurs. It is clocked from the
main clock. It has an early warning interrupt capability and the counter can be frozen in
debug mode.
2.4.6 SysTick timer
This timer is dedicated to real-time operating systems, but could also be used as a standard
down counter. It features:
●A 24-bit down counter
●Autoreload capability
●Maskable system interrupt generation when the counter reaches 0.
●Programmable clock source
16/90
STM32F105xx, STM32F107xxDescription
2.4.7 I²C bus
Up to two I²C bus interfaces can operate in multimaster and slave modes. They can support
standard and fast modes.
They support 7/10-bit addressing mode and 7-bit dual addressing mode (as slave). A
hardware CRC generation/verification is embedded.
They can be served by DMA and they support SMBus 2.0/PMBus.
The STM32F105xx and STM32F107xx connectivity line embeds three universal
synchronous/asynchronous receiver transmitters (USART1, USART2 and USART3) and
two universal asynchronous receiver transmitters (UART4 and UART5).
These five interfaces provide asynchronous communication, IrDA SIR ENDEC support,
multiprocessor communication mode, single-wire half-duplex communication mode and
have LIN Master/Slave capability.
The USART1 interface is able to communicate at speeds of up to 4.5 Mbit/s. The other
available interfaces communicate at up to 2.25 Mbit/s.
USART1, USART2 and USART3 also provide hardware management of the CTS and RTS
signals, Smart Card mode (ISO 7816 compliant) and SPI-like communication capability. All
interfaces can be served by the DMA controller except for UART5.
2.4.9 Serial peripheral interface (SPI)
Up to three SPIs are able to communicate up to 18 Mbits/s in slave and master modes in
full-duplex and simplex communication modes. The 3-bit prescaler gives 8 master mode
frequencies and the frame is configurable to 8 bits or 16 bits. The hardware CRC
generation/verification supports basic SD Card/MMC modes.
All SPIs can be served by the DMA controller.
2.4.10 Inter-integrated sound (I2S)
Two standard I2S interfaces (multiplexed with SPI2 and SPI3) are available, that can be
operated in master or slave mode. These interfaces can be configured to operate with 16/32
bit resolution, as input or output channels. Audio sampling frequencies from 8 kHz up to
96 kHz are supported. When either or both of the I
mode, the master clock can be output to the external DAC/CODEC at 256 times the
sampling frequency with less than 0.5% accuracy error owing to the advanced clock
controller (see Section 2.3.7: Clocks and startup).
Please refer to the “Audio frequency precision” tables provided in the “Serial peripheral
interface (SPI)” section of the STM32F10xxx reference manual.
2
S interfaces is/are configured in master
2.4.11 Ethernet MAC interface with dedicated DMA and IEEE 1588 support
Peripheral not available on STM32F105xx devices.
The STM32F107xx devices provide an IEEE-802.3-2002-compliant media access controller
(MAC) for ethernet LAN communications through an industry-standard media-independent
interface (MII) or a reduced media-independent interface (RMII). The STM32F107xx
requires an external physical interface device (PHY) to connect to the physical LAN bus
17/90
DescriptionSTM32F105xx, STM32F107xx
(twisted-pair, fiber, etc.). the PHY is connected to the STM32F107xx MII port using as many
as 17 signals (MII) or 9 signals (RMII) and can be clocked using the 25 MHz (MII) or 50 MHz
(RMII) output from the STM32F107xx.
The STM32F107xx includes the following features:
●Supports 10 and 100 Mbit/s rates
●Dedicated DMA channel
●Tagged MAC frame support (VLAN support)
●Half-duplex (CSMA/CD) and full-duplex operation
●MAC control sublayer (control frames) support
●32-bit CRC generation and removal
●Several address filtering modes for physical and multicast address (multicast and group
addresses)
●32-bit status code for each transmitted or received frame
●Internal FIFOs to buffer transmit and receive frames. The transmit FIFO and the receive
FIFO are both 2 Kbytes (512 × 35 bits), that is 4 Kbytes in total
●Supports hardware PTP (precision time protocol) in accordance with IEEE 1588 1.0
with the timestamp comparator connected to the TIM2 trigger input
●Triggers interrupt when system time becomes greater than target time
2.4.12 Controller area network (CAN)
The two CANs are compliant with the 2.0A and B (active) specifications with a bitrate up to
1 Mbit/s. They can receive and transmit standard frames with 11-bit identifiers as well as
extended frames with 29-bit identifiers. Each CAN has three transmit mailboxes, two receive
FIFOS with 3 stages and 28 shared scalable filter banks (all of them can be used even if one
CAN is used). The 256 bytes of SRAM which are allocated for each CAN (512 bytes in total)
are not shared with any other peripheral.
2.4.13 Universal serial bus on-the-go full-speed (USB OTG FS)
The STM32F105xx and STM32F107xx connectivity line devices embed a USB OTG fullspeed (12 Mb/s) device/host/OTG peripheral with integrated transceivers. The USB OTG FS
peripheral is compliant with the USB 2.0 specification and with the OTG 1.0 specification. It
has software-configurable endpoint setting and supports suspend/resume. The USB OTG
full-speed controller requires a dedicated 48 MHz clock that is generated by a PLL
connected to the HSE oscillator. The major features are:
●1.25 KB of SRAM used exclusively by the endpoints (not shared with any other
peripheral)
●4 bidirectional endpoints
●HNP/SNP/IP inside (no need for any external resistor)
●for OTG/Host modes, a power switch is needed in case bus-powered devices are
connected
●the SOF output can be used to synchronize the external audio DAC clock in
isochronous mode
●in accordance with the USB 2.0 Specification, the supported transfer speeds are:
–in Host mode: full speed and low speed
–in Device mode: full speed
18/90
STM32F105xx, STM32F107xxDescription
2.4.14 GPIOs (general-purpose inputs/outputs)
Each of the GPIO pins can be configured by software as output (push-pull or open-drain), as
input (with or without pull-up or pull-down) or as peripheral alternate function. Most of the
GPIO pins are shared with digital or analog alternate functions. All GPIOs are high currentcapable except for analog inputs.
The I/Os alternate function configuration can be locked if needed following a specific
sequence in order to avoid spurious writing to the I/Os registers.
I/Os on APB2 with up to 18 MHz toggling speed
2.4.15 ADCs (analog-to-digital converters)
Two 12-bit analog-to-digital converters are embedded into STM32F105xx and
STM32F107xx connectivity line devices and each ADC shares up to 16 external channels,
performing conversions in single-shot or scan modes. In scan mode, automatic conversion
is performed on a selected group of analog inputs.
Additional logic functions embedded in the ADC interface allow:
●Simultaneous sample and hold
●Interleaved sample and hold
●Single shunt
The ADC can be served by the DMA controller.
An analog watchdog feature allows very precise monitoring of the converted voltage of one,
some or all selected channels. An interrupt is generated when the converted voltage is
outside the programmed thresholds.
The events generated by the standard timers (TIMx) and the advanced-control timer (TIM1)
can be internally connected to the ADC start trigger and injection trigger, respectively, to
allow the application to synchronize A/D conversion and timers.
2.4.16 DAC (digital-to-analog converter)
The two 12-bit buffered DAC channels can be used to convert two digital signals into two
analog voltage signal outputs. The chosen design structure is composed of integrated
resistor strings and an amplifier in inverting configuration.
This dual digital Interface supports the following features:
●two DAC converters: one for each output channel
●8-bit or 12-bit monotonic output
●left or right data alignment in 12-bit mode
●synchronized update capability
●noise-wave generation
●triangular-wave generation
●dual DAC channel independent or simultaneous conversions
●DMA capability for each channel
●external triggers for conversion
●input voltage reference V
REF+
19/90
DescriptionSTM32F105xx, STM32F107xx
Eight DAC trigger inputs are used in the STM32F105xx and STM32F107xx connectivity line
family. The DAC channels are triggered through the timer update outputs that are also
connected to different DMA channels.
2.4.17 Temperature sensor
The temperature sensor has to generate a voltage that varies linearly with temperature. The
conversion range is between 2 V < V
connected to the ADC1_IN16 input channel which is used to convert the sensor output
voltage into a digital value.
< 3.6 V. The temperature sensor is internally
DDA
2.4.18 Serial wire JTAG debug port (SWJ-DP)
The ARM SWJ-DP Interface is embedded, and is a combined JTAG and serial wire debug
port that enables either a serial wire debug or a JTAG probe to be connected to the target.
The JTAG TMS and TCK pins are shared respectively with SWDIO and SWCLK and a
specific sequence on the TMS pin is used to switch between JTAG-DP and SW-DP.
2.4.19 Embedded Trace Macrocell™
The ARM® Embedded Trace Macrocell provides a greater visibility of the instruction and
data flow inside the CPU core by streaming compressed data at a very high rate from the
STM32F10xxx through a small number of ETM pins to an external hardware trace port
analyzer (TPA) device. The TPA is connected to a host computer using USB OTG FS,
Ethernet, or any other high-speed channel. Real-time instruction and data flow activity can
be recorded and then formatted for display on the host computer running debugger
software. TPA hardware is commercially available from common development tool vendors.
It operates with third party debugger software tools.
20/90
PA[1 5:0]
EXT.IT
WWDG
12bit ADC1
16 ADC12_INs
common to
ADC1 & ADC2
JTDI
JTCK /SWCLK
JTMS/SWDIO
JNTRST
JTDO
NRST
VDD = 2 to 3.6 V
80 AF
PB[1 5:0]
PC[15:0 ]
AHB2
CAN1_RX as AF
2x(8x16bit)
WKUP
GPIO port AP
GPIO port BP
F
max
: 48 / 72 MHz
V
SS
SCL,SDA,SM BAL
I2C2
GP DMA1
TIM2
TIM3
XT
AL osc
3-25 MHz
XTAL 32kH z
OSC_IN
OSC_OUTC_O
OSC32_OUT
OSC32_IN
APB1 : F
max
=24 / 36 MHz
HCLK
MANAGT
as AF
Flash 256 KB
Voltage reg.
3.3 V to 1.8 V
V
DD18
Power
Backup interface
as AF
TIM4
Bus Matrix
64 bit
Int erfa ce
RTC
RC HS
Cortex-M3 CPU
Ibus
Dbus
obl
Flashl
SRAM 512B
USART1
USART2
SPI2 / I2S2
bxCAN1 dev ice
7 ch ann els
Back up
register
4 Channels
TIM1
4 compl. Channels
SCL,SDA,SMBAL
I2C1
as AF
RX,TX, CTS, RTS,
USART3
Temp se nsor
PD[15:0 ]
PE[15:0 ]
BKIN, ETR input as AF
4 Channe ls , ETR
4 Channe ls , ETR
4 Channe ls , ETR
FCLK
RC LS
Standby
IWDG
@V
DD
@V
BAT
POR / PDR
Supply
supervision
@V
DDA
V
DDA
V
SSA
@VDDA
V
BAT
=1.8 V to 3.6 V
CK as A F
RX,TX, CTS, RTS,
CK as AF
RX,TX, CTS, RTS,
CK as AF
APB2 : F
max
=48 / 72 MHz
NVIC
SPI1
MOSI,MISO,
SCK,NSS as AF
12bit ADC2
IF
IF
interface
PVD
Reset
Int
@V
DD
AHB2
APB2
APB1
AWU
POR
TAMPER-RTC/
ALARM/SECOND OUT
System
2x(8x16bit)
SPI3 / I2S3
UART4
RX,TX as AF
UART5
RX,TX as AF
TIM5
4 Channel s, ETR
Reset &
clock
control
12bit DAC1
IFIF
IF
12bit DAC 2
@VDDA
USB OTG FS
SOF
VBUS
ID
DM
DP
SRAM
64 KB
GP DMA2
5 ch ann els
TIM6
TIM7
CAN1_TX as AF
SW/JTAG
TPIU
ETM
Trac e/Tri g
TRACECLK
TRACED[ 0:3]
as AF
as AF
as AF
as AF
as AF
Ethernet MAC
10/100
SRAM 1.25KB
DPRAM 2KB DPRAM 2KB
MII_TXD[3:0]/RMII_TXD[1:0]
MII_TX_CLK/RMII_TX_CLK
MII_TX_EN/RMII_TX_EN
MII_RXD[3:0]/RMII_RXD[1:0]
MII_RX_ER/RMII_RX_ER
MII_RX_CLK/RMII_REF_CLK
MII_RX_DV/RMII_CRS_DV
MII_CRS
MII_COL/RMII_COL
MDC
MDIO
PPS_OUT
bxCA N2 device
CAN2_RX as AF
CAN2_TX as AF
ai15411
DAC_OUT1 as AF
DAC_OUT2 as AF
@V
DDA
PLL1
GPIO port C
GPIO port D
GPIO port E
V
REF+
V
REF–
V
REF+
MOSI/SD, MISO, MCK,
SCK/CK, NSS/WS as AF
MOSI/SD, MISO, MCK,
SCK/CK, NSS/WS as AF
PCLK1
PCLK2
PLL2
PLL3
STM32F105xx, STM32F107xxDescription
Figure 1.STM32F105xx and STM32F107xx connectivity line block diagram
1. TA = –40 °C to +85 °C (suffix 6, see Table 59) or –40 °C to +105 °C (suffix 7, see Table 59), junction temperature up to
105 °C or 125 °C, respectively.
Figure 2.STM32F105xxx and STM32F107xxx connectivity line LQFP100 pinout
22/90
STM32F105xx, STM32F107xxPin descriptions
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
17 18 19 20 21 22 23 2429 30 31 3225 26 27 28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
V
BAT
PC13-TAMPER-RTC
PC14-OSC32_IN
PC15-OSC32_OUT
PD0 OSC_IN
PD1 OSC_OUT
NRST
PC0
PC1
PC2
PC3
V
SSA
V
DDA
PA 0- W K UP
PA 1
PA 2
V
DD_3
V
SS_3
PB9
PB8
BOOT0
PB7
PB6
PB5
PB4
PB3
PD2
PC12
PC11
PC10
PA 1 5
PA 14
V
DD_2
V
SS_2
PA 1 3
PA 1 2
PA 1 1
PA 1 0
PA 9
PA 8
PC9
PC8
PC7
PC6
PB15
PB14
PB13
PB12
PA 3
V
SS_4
V
DD_4
PA 4
PA 5
PA 6
PA 7
PC4
PC5
PB0
PB1
PB2
PB10
PB11
V
SS_1
V
DD_1
LQFP64
ai14392
Figure 3.STM32F105xxx and STM32F107xxx connectivity line LQFP64 pinout
23/90
Pin descriptionsSTM32F105xx, STM32F107xx
AI16001c
PE10
PC14-
OSC32_IN
PC5PA5
PC3
PB4
PE15
PB2
PC4PA4
H
PE14
PE11PE7
DPD4
PD3
PB8PE3
C
PD0
PC12
PE5
PB5
PC0
PE2
BPC11PD2
PC15-
OSC32_OUT
PB7
PB6
A
87654321
V
SS_5
OSC_IN
OSC_OUTV
DD_5
G
F
E
PC1
V
REF–
PC13-
TAMPER-RTC
PB9
PA15
PB3
PE4
PE1
PE0
V
SS_1
PD1PE6NRST
PC2
V
SS_3
V
SS_4
NCV
DD_3
V
DD_4
PB15
V
BAT
PD5
PD6
BOOT0PD7
V
SS_2
V
SSA
PA1
V
DD_2
V
DD_1
PB14
PA0-WKUP
109
K
J
PD10
PD11
PA8
PA9
PA10
PA11
PA12
PC10
PA13
PA14
PC9
PC7
PC6
PD15
PC8
PD14
PE12
PB1PA7
PB11
PE8
PB0PA6
PB10
PE13PE9V
DDA
PB13
V
REF+
PA3
PB12
PA2
PD8
PD9PD13
PD12
Figure 4.STM32F105xxx and STM32F107xxx connectivity line BGA100 ballout
24/90
STM32F105xx, STM32F107xxPin descriptions
Table 5.Pin definitions
Pins
BGA100
A3-1PE2I/O
B3-2PE3I/O
C3-3PE4I/O
D3-4PE5I/O
E3-5PE6I/O
B216V
A227
A138
B149
C2-10V
D2-11V
LQFP64
LQFP100
PC13-TAMPER-
OSC32_OUT
Pin name
BAT
(4)
RTC
PC14-
OSC32_IN
PC15-
SS_5
DD_5
(2)
(1)
Typ e
function
(after reset)
I / O Level
FT
FT
FT
FT
FT
SV
I/OPC13
I/OPC14
(4)
I/OPC15
(4)
SV
SV
Main
(3)
DefaultRemap
PE2TRACECK
PE3TRACED0
PE4TRACED1
PE5TRACED2
PE6TRACED3
BAT
(5)
(5)
(5)
SS_5
DD_5
TAMPER-RTC
OSC32_IN
OSC32_OUT
Alternate functions
C1512OSC_INIOSC_IN
D1613OSC_OUTOOSC_OUT
E1714NRSTI/ONRST
F1815PC0I/OPC0ADC12_IN10
F2916PC1I/OPC1
ADC12_IN11/ ETH_MII_MDC/
ETH_RMII_MDC
E2 10 17PC2I/OPC2ADC12_IN12/ ETH_MII_TXD2
F3 11 18PC3I/OPC3
G1 12 19V
H1-20V
J1-21V
K1 13 22V
SSA
REF-
REF+
DDA
SV
SV
SV
SV
SSA
REF-
REF+
DDA
G2 14 23PA0-WKUPI/OPA0
ADC12_IN0/TIM2_CH1_ETR
ADC12_IN13/
ETH_MII_TX_CLK
WKUP/USART2_CTS
TIM5_CH1/
(6)
ETH_MII_CRS_WKUP
(6)
/ ADC12_IN1/
(6)
H 2 152 4PA 1I / OPA 1
USART2_RTS
TIM5_CH2 /TIM2_CH2
ETH_MII_RX_CLK/
ETH_RMII_REF_CLK
/
25/90
Pin descriptionsSTM32F105xx, STM32F107xx
Table 5.Pin definitions (continued)
Pins
LQFP64
BGA100
Pin name
LQFP100
(2)
(1)
Typ e
Main
function
(after reset)
I / O Level
J 2 1 625PA 2I / OPA2
(3)
USART2_TX
TIM5_CH3/ADC12_IN2/
TIM2_CH3
Alternate functions
DefaultRemap
(6)
/
(6)
/ ETH_MII_MDIO/
ETH_RMII_MDIO
(6)
/
/ ETH_MII_COL
(6)
/DAC_OUT1
(6)
ADC12_IN4
(6)
(6)
/ADC12_IN6
(6)
(6)
/ADC12_IN7
(6)
/
TIM1_BKIN
TIM1_CH1N
K 2 1 7 2 6PA 3I / OPA 3
E4 18 27V
F4 19 28V
SS_4
DD_4
SV
SV
SS_4
DD_4
G 3 2 0 2 9PA 4I /OPA 4
H 3 2 1 3 0PA 5I / OPA5
J 3 2 231PA 6I / OPA6
K 3 2 332PA 7I /OPA 7
USART2_RX
TIM5_CH4/ADC12_IN3
TIM2_CH4
(6)
SPI1_NSS
USART2_CK
SPI1_SCK
DAC_OUT2 ADC12_IN5
SPI1_MISO
TIM3_CH1
SPI1_MOSI
TIM3_CH2
ETH_MII_RX_DV/
ETH_RMII_CRS_DV
ADC12_IN14/
G4 24 33PC4I/OPC4
ETH_MII_RXD0/
ETH_RMII_RXD0
ADC12_IN15/
H4 25 34PC5I/OPC5
ETH_MII_RXD1/
ETH_RMII_RXD1
J4 26 35PB0I/OPB0
K4 27 36PB1I/OPB1
G5 28 37
PB2I/O FT PB2/BOOT1
ADC12_IN8/TIM3_CH3/
ETH_MII_RXD2
ADC12_IN9/TIM3_CH4
ETH_MII_RXD3
(6)
TIM1_CH2N
/
TIM1_CH3N
H5-38PE7I/O FTPE7TIM1_ETR
J5-39PE8I/O FTPE8TIM1_CH1N
K5-40PE9I/O FTPE9TIM1_CH1
---V
---V
SS_7
DD_7
S
S
G6-41PE10I/O FTPE10TIM1_CH2N
H6-42PE11I/O FTPE11TIM1_CH2
J6-43PE12I/O FTPE12TIM1_CH3N
26/90
STM32F105xx, STM32F107xxPin descriptions
Table 5.Pin definitions (continued)
Pins
LQFP64
BGA100
LQFP100
Pin name
(2)
(1)
Typ e
Main
function
(3)
(after reset)
I / O Level
Alternate functions
DefaultRemap
K6-44PE13I/O FTPE13TIM1_CH3
G7-45PE14I/O FTPE14TIM1_CH4
H7-46PE15I/O FTPE15TIM1_BKIN
J7 29 47PB10I/O FTPB10
K7 30 48PB11I/O FTPB11
I2C2_SCL/USART3_TX
ETH_MII_RX_ER
I2C2_SDA/USART3_RX
ETH_MII_TX_EN/
(6)
(6)
/
TIM2_CH3
/
TIM2_CH4
ETH_RMII_TX_EN
E7 31 49V
F7 32 50V
SS_1
DD_1
K8 33 51PB12I/O FTPB12
SV
SV
SS_1
DD_1
SPI2_NSS/I2S2_WS/
I2C2_SMBAL// USART3_CK
TIM1_BKIN
(6)
/CAN2_RX/
(6)
/
ETH_MII_TXD0/
ETH_RMII_TXD0
J8 34 52PB13I/O FTPB13
SPI2_SCK/I2S2_CK
USART3_CTS
TIM1_CH1N/CAN2_TX/
(6)
/
ETH_MII_TXD1/
ETH_RMII_TXD1
H8 35 53PB14I/O FTPB14
G8 36 54PB15I/O FTPB15
K9-55PD8I/O FTPD8
J9-56PD9I/O FTPD9
H9-57PD10I/O FTPD10
G9-58PD11I/O FTPD11
SPI2_MISO/TIM1_CH2N
USART3_RTS
SPI2_MOSI/I2S2_SD
TIM1_CH3N
(6)
(6)
USART3_TX/
ETH_MII_RX_DV
USART3_RX/
ETH_MII_RX_D0
USART3_CK/
ETH_MII_RX_D1
USART3_CTS/
ETH_MII_RX_D2
TIM4_CH1 /
K10 -59PD12I/O FTPD12
USART3_RTS/
ETH_MII_RX_D3
J10-60PD13I/O FTPD13TIM4_CH2
H10 -61PD14I/O FTPD14TIM4_CH3
G10 -62PD15I/O FTPD15TIM4_CH4
F10 37 63PC6I/O FTPC6I2S2_MCK/TIM3_CH1
27/90
Pin descriptionsSTM32F105xx, STM32F107xx
Table 5.Pin definitions (continued)
Pins
LQFP64
BGA100
LQFP100
Pin name
(2)
(1)
Typ e
Main
function
(3)
(after reset)
I / O Level
Alternate functions
DefaultRemap
E10 38 64PC7I/O FTPC7I2S3_MCK/TIM3_CH2
F9 39 65PC8I/O FTPC8TIM3_CH3
E9 40 66PC9I/O FTPC9TIM3_CH4
D 9 4 1 6 7PA 8I / O FTPA 8
C 9 4 2 6 8PA 9I / O FTPA 9
D10 43 69PA10I/O FTPA10
C10 44 70PA11I/O FTPA11
B10 45 71PA12I/O FTPA12
A10 46 72PA13I/O FT JTMS-SWDIO
USART1_CK/OTG_FS_SOF
TIM1_CH1
USART1_TX
(6)
/MCO
(6)
/ TIM1_CH2
OTG_FS_VBUS
USART1_RX
TIM1_CH3
USART1_CTS/CAN1_RX
TIM1_CH4
USART1_RTS/OTG_FS_DP
CAN1_TX
(6)
(6)
(6)
(6)
/
/OTG_FS_ID
/OTG_FS_DM
/TIM1_ETR
(6)
(6)
/
PA 1 3
F8-73Not connected
E6 47 74
F6 48 75
A9 49 76
A8 50 77
B9 51 78
B8 52 79
C8 53 80
D8581
E8682
B7 54 83
C7-84
D7-85
B6-86
C6-87
D6-88
A7 55 89
V
V
SS_2
DD_2
SV
SV
SS_2
DD_2
PA14I/O FT JTCK-SWCLKPA14
PA15I/O FTJTDISPI3_NSS/
PC10I/O FTPC10UART4_TX
PC11I/O FTPC11UART4_RX
PC12I/O FTPC12UART5_TX
PD0I/O FTOSC_IN
PD1I/O FT OSC_OUT
(7)
(7)
TIM2_CH1_ETR
SPI1_NSS
USART3_TX/ SPI3_SCK
USART3_RX/
SPI3_MISO
USART3_CK/
SPI3_MOSI
CAN1_RX
CAN1_TX
PD2I/O FTPD2TIM3_ETR/UART5_RX
PD3I/O FTPD3
PD4I/O FTPD4
PD5I/O FTPD5
PD6I/O FTPD6
PD7I/O FTPD7
PB3I/O FTJTDOSPI3_SCK
USART2_CTS
USART2_RTS
USART2_TX
USART2_RX
USART2_CK
PB3 / TRACESWO/
TIM2_CH2 / SPI1_SCK
/ PA15
28/90
STM32F105xx, STM32F107xxPin descriptions
Table 5.Pin definitions (continued)
Pins
LQFP64
BGA100
A6 56 90
Pin name
LQFP100
PB4I/O FTJNTRSTSPI3_MISO
(2)
(1)
Typ e
Main
function
(3)
(after reset)
I / O Level
I2C1_SMBAl/ SPI3_MOSI/
C5 57 91PB5I/OPB5
ETH_MII_PPS_OUT/
ETH_RMII_PPS_OUT
B5 58 92PB6I/O FTPB6I2C1_SCL
A5 59 93PB7I/O FTPB7I2C1_SDA
Alternate functions
DefaultRemap
TIM3_CH1/
PB4 /
SPI1_MISO
TIM3_CH2/SPI1_MOSI/
CAN2_RX
(6)
/TIM4_CH1
(6)
/TIM4_CH2
(6)
USART1_TX/CAN2_TX
(6)
USART1_RX
D5 60 94BOOT0IBOOT0
B4 61 95PB8I/O FTPB8TIM4_CH3
A4 62 96PB9I/O FTPB9TIM4_CH4
(6)
/ ETH_MII_TXD3I2C1_SCL/CAN1_RX
(6)
I2C1_SDA / CAN1_TX
D4-97PE0I/O FTPE0TIM4_ETR
C4-98PE1I/O FTPE1
E5 63 99V
F5 64 100V
1. I = input, O = output, S = supply, HiZ = high impedance.
2. FT = 5 V tolerant.
3. Function availability depends on the chosen device.
4. PC13, PC14 and PC15 are supplied through the power switch, and so their use in output mode is limited: they can be used
only in output 2 MHz mode with a maximum load of 30 pF and only one pin can be put in output mode at a time.
5. Main function after the first backup domain power-up. Later on, it depends on the contents of the Backup registers even
after reset (because these registers are not reset by the main reset). For details on how to manage these IOs, refer to the
Battery backup domain and BKP register description sections in the STM32F10xxx reference manual, available from the
STMicroelectronics website: www.st.com.
6. This alternate function can be remapped by software to some other port pins (if available on the used package). For more
details, refer to the Alternate function I/O and debug configuration section in the STM32F10xxx reference manual,
available from the STMicroelectronics website: www.st.com.
7. For the LQFP64 package, the pins number 5 and 6 are configured as OSC_IN/OSC_OUT after reset, however the
functionality of PD0 and PD1 can be remapped by software on these pins. For the LQFP100 and BGA100 packages, PD0
and PD1 are available by default, so there is no need for remapping. For more details, refer to Alternate function I/O and
debug configuration section in the STM32F10xxx reference manual.
Unless otherwise specified, all voltages are referenced to VSS.
5.1.1 Minimum and maximum values
Unless otherwise specified the minimum and maximum values are guaranteed in the worst
conditions of ambient temperature, supply voltage and frequencies by tests in production on
100% of the devices with an ambient temperature at T
the selected temperature range).
Data based on characterization results, design simulation and/or technology characteristics
are indicated in the table footnotes and are not tested in production. Based on
characterization, the minimum and maximum values refer to sample tests and represent the
mean value plus or minus three times the standard deviation (mean±3Σ).
5.1.2 Typical values
Unless otherwise specified, typical data are based on TA = 25 °C, VDD = 3.3 V (for the
2V≤V
tested.
≤3.6 V voltage range). They are given only as design guidelines and are not
DD
= 25 °C and TA = TAmax (given by
A
Typical ADC accuracy values are determined by characterization of a batch of samples from
a standard diffusion lot over the full temperature range, where 95% of the devices have an
error less than or equal to the value indicated
5.1.3 Typical curves
Unless otherwise specified, all typical curves are given only as design guidelines and are
not tested.
5.1.4 Loading capacitor
The loading conditions used for pin parameter measurement are shown in Figure 6.
5.1.5 Pin input voltage
The input voltage measurement on a pin of the device is described in Figure 7.
Figure 6.Pin loading conditionsFigure 7.Pin input voltage
Stresses above the absolute maximum ratings listed in Table 6: Voltage characteristics,
Table 7: Current characteristics, and Table 8: Thermal characteristics may cause permanent
damage to the device. These are stress ratings only and functional operation of the device
at these conditions is not implied. Exposure to maximum rating conditions for extended
periods may affect device reliability.
Table 6.Voltage characteristics
SymbolRatingsMinMaxUnit
VDD–V
External main supply voltage (including V
SS
and VDD)
(1)
Input voltage on five volt tolerant pin
V
IN
|ΔV
DDx
− VSS|Variations between all the different ground pins50
|V
SSX
V
ESD(HBM)
1. All main power (VDD, V
supply, in the permitted range.
2. I
INJ(PIN)
maximum is respected. If VIN maximum cannot be respected, the injection current must be limited
externally to the I
induced by V
Table 7.Current characteristics
Input voltage on any other pin
|Variations between different VDD power pins50
Electrostatic discharge voltage (human body
model)
) and ground (VSS, V
DDA
must never be exceeded (see Table 7: Current characteristics). This is implicitly insured if VIN
value. A positive injection is induced by VIN> VINmax while a negative injection is
INJ(PIN)
< VSS.
IN
(2)
) pins must always be connected to the external power
SSA
(2)
DDA
–0.34.0
V
− 0.3+5.5
SS
VSS − 0.3VDD+0.3
see Section 5.3.11:
Absolute maximum ratings
(electrical sensitivity)
SymbolRatings Max.Unit
(1)
(1)
150
150
I
VDD
I
VSS
Total current into VDD/V
Total current out of V
SS
power lines (source)
DDA
ground lines (sink)
Output current sunk by any I/O and control pin25
I
IO
Output current source by any I/Os and control pin− 25
Injected current on NRST pin± 5
(2)(3)
I
INJ(PIN)
ΣI
INJ(PIN)
1. All main power (VDD, V
supply, in the permitted range.
2. I
3. Negative injection disturbs the analog performance of the device. See note in Section 5.3.16: 12-bit ADC
4. When several inputs are submitted to a current injection, the maximum ΣI
must never be exceeded. This is implicitly insured if VIN maximum is respected. If VIN maximum
INJ(PIN)
cannot be respected, the injection current must be limited externally to the I
injection is induced by V
characteristics.
positive and negative injected currents (instantaneous values). These results are based on
characterization with ΣI
Injected current on HSE OSC_IN and LSE OSC_IN pins± 5
Injected current on any other pin
(2)
Total injected current (sum of all I/O and control pins)
) and ground (VSS, V
DDA
> VDD while a negative injection is induced by V
IN
maximum current injection on four I/O port pins of the device.
INJ(PIN)
(4)
(4)
) pins must always be connected to the external power
The parameters given in Tab l e 1 2 are derived from tests performed under ambient
temperature and V
Table 12.Embedded internal reference voltage
SymbolParameterConditionsMin
supply voltage conditions summarized in Tab l e 9 .
DD
Typ
MaxUnit
V
REFINT
T
S_vrefint
Internal reference voltage
ADC sampling time when
(1)
reading the internal reference
voltage
1. Shortest sampling time can be determined in the application by multiple iterations.
2. Guaranteed by design, not tested in production.
5.3.5 Supply current characteristics
The current consumption is a function of several parameters and factors such as the
operating voltage, ambient temperature, I/O pin loading, device software configuration,
operating frequencies, I/O pin switching rate, program location in memory and executed
binary code.
The current consumption is measured as described in Figure 9: Current consumption
measurement scheme.
All Run-mode current consumption measurements given in this section are performed with a
reduced code that gives a consumption equivalent to Dhrystone 2.1 code.
Maximum current consumption
The MCU is placed under the following conditions:
●All I/O pins are in input mode with a static value at V
●All peripherals are disabled except when explicitly mentioned
●The Flash memory access time is adjusted to the f
to 24 MHz, 1 wait state from 24 to 48 MHz and 2 wait states above)
●Prefetch in ON (reminder: this bit must be set before clock setting and bus prescaling)
●When the peripherals are enabled f
The parameters given in Tab l e 1 3, Ta bl e 1 4 and Ta bl e 1 5 are derived from tests performed
under ambient temperature and V
supply voltage conditions summarized in Ta bl e 9 .
●All I/O pins are in input mode with a static value at V
●All peripherals are disabled except if it is explicitly mentioned.
●The Flash access time is adjusted to f
frequency (0 wait state from 0 to 24 MHz, 1
HCLK
wait state from 24 to 48 MHz and 2 wait states above).
●Ambient temperature and V
●Prefetch is ON (Reminder: this bit must be set before clock setting and bus prescaling)
●When the peripherals are enabled f
f
/4
PCLK2
Table 17.Typical current consumption in Run mode, code with data processing
supply voltage conditions summarized in Tab le 9 .
DD
= f
PCLK1
HCLK
running from Flash
SymbolParameterConditionsf
External clock
(3)
Supply
I
DD
current in
Run mode
Running on high
speed internal RC
(HSI), AHB
prescaler used to
reduce the
frequency
1. Typical values are measures at TA = 25 °C, VDD = 3.3 V.
2. Add an additional power consumption of 0.8 mA per ADC for the analog part. In applications, this
consumption occurs only while the ADC is on (ADON bit is set in the ADC_CR2 register).
Table 18.Typical current consumption in Sleep mode, code with data processing
code running from Flash or RAM
(1)
Typ
Symbol ParameterConditionsf
72 MHz29.56.4
48 MHz204.6
36 MHz15.13.6
24 MHz10.42.6
16 MHz7.22
External clock
(3)
8 MHz3.91.3
4 MHz2.61.2
2 MHz1.851.15
1 MHz1.51.1
500 kHz1.31.05
Supply
I
DD
current in
Sleep mode
125 kHz1.21.05
64 MHz25.65.1
48 MHz19.44
HCLK
All peripherals
enabled
(2)
All peripherals
disabled
Unit
mA
36 MHz14.53
24 MHz9.82
Running on high
speed internal RC
(HSI), AHB prescaler
used to reduce the
frequency
16 MHz6.61.4
8 MHz3.30.7
4 MHz20.6
2 MHz1.250.55
1 MHz0.90.5
500 kHz0.70.45
125 kHz0.60.45
1. Typical values are measures at TA = 25 °C, VDD = 3.3 V.
2. Add an additional power consumption of 0.8 mA per ADC for the analog part. In applications, this
consumption occurs only while the ADC is on (ADON bit is set in the ADC_CR2 register).
High-speed external user clock generated from an external source
The characteristics given in Tab l e 2 0 result from tests performed using an high-speed
external clock source, and under ambient temperature and supply voltage conditions
summarized in Ta bl e 9 .
Table 20.High-speed external user clock characteristics
SymbolParameterConditionsMinTypMaxUnit
f
HSE_ext
V
HSEH
V
HSEL
t
w(HSE)
t
w(HSE)
t
r(HSE)
t
f(HSE)
C
in(HSE)
DuCy
I
1. Guaranteed by design, not tested in production.
User external clock source
frequency
(1)
OSC_IN input pin high level voltage0.7V
OSC_IN input pin low level voltageV
OSC_IN high or low time
OSC_IN rise or fall time
OSC_IN input capacitance
Duty cycle4555%
(HSE)
OSC_IN Input leakage current VSS≤VIN≤V
L
(1)
(1)
(1)
DD
0825MHz
DD
SS
16
5pF
V
DD
0.3V
DD
20
±1µA
Low-speed external user clock generated from an external source
The characteristics given in Tab l e 2 1 result from tests performed using an low-speed
external clock source, and under ambient temperature and supply voltage conditions
summarized in Ta bl e 9 .
Table 21.Low-speed external user clock characteristics
SymbolParameterConditionsMinTypMaxUnit
V
ns
f
LSE_ext
V
LSEH
V
LSEL
t
w(LSE)
t
w(LSE)
t
r(LSE)
t
f(LSE)
C
in(LSE)
DuCy
I
1. Guaranteed by design, not tested in production.
Figure 15. High-speed external clock source AC timing diagram
Figure 16. Low-speed external clock source AC timing diagram
High-speed external clock generated from a crystal/ceramic resonator
The high-speed external (HSE) clock can be supplied with a 4 to 25 MHz crystal/ceramic
resonator oscillator. All the information given in this paragraph are based on characterization
results obtained with typical external components specified in Ta bl e 2 2 . In the application,
the resonator and the load capacitors have to be placed as close as possible to the oscillator
pins in order to minimize output distortion and startup stabilization time. Refer to the crystal
resonator manufacturer for more details on the resonator characteristics (frequency,
package, accuracy).
1. Resonator characteristics given by the crystal/ceramic resonator manufacturer.
2. Based on characterization, not tested in production.
3. For CL1 and C
designed for high-frequency applications, and selected to match the requirements of the crystal or
resonator. CL1 and C
capacitance which is the series combination of C
included (10 pF can be used as a rough estimate of the combined pin and board capacitance) when sizing
CL1 and CL2.
4. The relatively low value of the RF resistor offers a good protection against issues resulting from use in a
humid environment, due to the induced leakage and the bias condition change. However, it is
recommended to take this point into account if the MCU is used in tough humidity conditions.
5. t
SU(HSE)
oscillation is reached. This value is measured for a standard crystal resonator and it can vary significantly
with the crystal manufacturer
Oscillator frequency325MHz
Feedback resistor200kΩ
F
Recommended load capacitance
L1
versus equivalent serial
(3)
resistance of the crystal (R
i
HSE driving current
2
Oscillator transconductanceStartup25mA/V
m
(5)
Startup time VDD is stabilized2ms
it is recommended to use high-quality ceramic capacitors in the 5 pF to 25 pF range (typ.),
L2
are usually the same size. The crystal manufacturer typically specifies a load
L2,
is the startup time measured from the moment it is enabled (by software) to a stabilized 8 MHz
(4)
)
S
RS = 30 Ω30pF
= 3.3 V, VIN=V
V
DD
SS
with 30 pF load
and CL2. PCB and MCU pin capacitance must be
L1
1mA
Figure 17. Typical application with an 8 MHz crystal
1. R
value depends on the crystal characteristics. Typical value is in the range of 5 to 6RS.
EXT
Low-speed external clock generated from a crystal/ceramic resonator
The low-speed external (LSE) clock can be supplied with a 32.768 kHz crystal/ceramic
resonator oscillator. All the information given in this paragraph are based on characterization
results obtained with typical external components specified in Ta bl e 2 3 . In the application,
the resonator and the load capacitors have to be placed as close as possible to the oscillator
pins in order to minimize output distortion and startup stabilization time. Refer to the crystal
resonator manufacturer for more details on the resonator characteristics (frequency,
package, accuracy).
it is recommended to use high-quality ceramic capacitors in the 5 pF to
L2
15 pF range selected to match the requirements of the crystal or resonator. C
usually the same size. The crystal manufacturer typically specifies a load capacitance which
is the series combination of C
Load capacitance C
C
is the pin capacitance and board or trace PCB-related capacitance. Typically, it is
stray
has the following formula: CL = CL1 x CL2 / (CL1 + CL2) + C
L
and CL2.
L1
between 2 pF and 7 pF.
Caution:To avoid exceeding the maximum value of C
to use a resonator with a load capacitance C
capacitance of 12.5 pF.
Example: if you choose a resonator with a load capacitance of C
then C
Table 23.LSE oscillator characteristics (f
SymbolParameterConditionsMinTypMaxUnit
t
SU(LSE)
1. Based on characterization, not tested in production.
2. Refer to the note and caution paragraphs above the table.
3. The oscillator selection can be optimized in terms of supply current using an high quality resonator with
4. t
= CL2 = 8 pF.
L1
R
C
C
L2
g
small RS value for example MSIV-TIN32.768kHz. Refer to crystal manufacturer for more details
SU(LSE)
kHz oscillation is reached. This value is measured for a standard crystal resonator and it can vary
significantly with the crystal manufacturer
Feedback resistor5MΩ
F
Recommended load capacitance
L1
versus equivalent serial
(2)
resistance of the crystal (R
I
LSE driving currentV
2
Oscillator Transconductance5µA/V
m
(4)
startup time VDD is stabilized3s
is the startup time measured from the moment it is enabled (by software) to a stabilized 32.768
(3)
)
S
and C
L1
stray
and CL2 (15 pF) it is strongly recommended
L1
≤
7 pF. Never use a resonator with a load
L
= 32.768 kHz)
LSE
= 6 pF, and C
L
(1)
stray
= 2 pF,
RS = 30 kΩ15pF
= 3.3 V, V
DD
IN
= V
SS
1.4µA
are
L2,
where
5.3.7 Internal clock source characteristics
48/90
Figure 18. Typical application with a 32.768 kHz crystal
The parameters given in Tab l e 2 4 are derived from tests performed under ambient
temperature and V
supply voltage conditions summarized in Tab l e 9 .
1. Guaranteed by design, not tested in production.
2. V
Frequency 8MHz
HSI
= –40 to 105 °C±1±3%
T
A
T
= –10 to 85 °C±1±2.5%
Accuracy of HSI oscillator
HSI
A
= 0 to 70 °C±1±2.2%
T
A
= 25 °C±1±2%
T
A
HSI oscillator start up time12µs
HSI oscillator power
consumption
= 3.3 V, TA = –40 to 105 °C unless otherwise specified.
DD
Low-speed internal (LSI) RC oscillator
Table 25.LSI oscillator characteristics
SymbolParameter
(2)
f
LSI
t
su(LSI)
I
DD(LSI)
= 3 V, TA = –40 to 105 °C unless otherwise specified.
1. V
DD
2. Based on characterization, not tested in production.
3. Guaranteed by design, not tested in production.
Frequency304060kHz
(3)
LSI oscillator startup time85µs
(3)
LSI oscillator power consumption0.651.2µA
(1)
Min
80100µA
TypMaxUnit
Wakeup time from low-power mode
The wakeup times given in Ta bl e 2 6 is measured on a wakeup phase with a 8-MHz HSI RC
oscillator. The clock source used to wake up the device depends from the current operating
mode:
●Stop or Standby mode: the clock source is the RC oscillator
●Sleep mode: the clock source is the clock that was set before entering Sleep mode.
All timings are derived from tests performed under ambient temperature and V
voltage conditions summarized in Tabl e 9 .
The characteristics are given at TA = –40 to 105 °C unless otherwise specified.
Table 29.Flash memory characteristics
SymbolParameter ConditionsMin
(1)
TypMax
(1)
Unit
t
t
ERASE
16-bit programming time TA = –40 to +105 °C4052.570µs
prog
Page (1 KB) erase timeTA = –40 to +105 °C2040ms
Mass erase timeTA = –40 to +105 °C2040ms
t
ME
Read mode
= 72 MHz with 2 wait
f
HCLK
states, VDD = 3.3 V
I
DD
Supply current
Write / Erase modes
f
= 72 MHz, VDD = 3.3 V
HCLK
Power-down mode / Halt,
= 3.0 to 3.6 V
V
DD
V
1. Guaranteed by design, not tested in production.
Programming voltage23.6V
prog
Table 30.Flash memory endurance and data retention
SymbolParameter Conditions
N
t
RET
END
Endurance
Data retention
TA = –40 to +85 °C (6 suffix versions)
TA = –40 to +105 °C (7 suffix versions)
1 kcycle
10 kcycles
(2)
at TA = 85 °C
(2)
at TA = 105 °C10
(2)
at TA = 55 °C20
Min
30
10
(1)
20mA
5mA
50µA
Val ue
Unit
TypMax
kcycles
Years1 kcycle
1. Based on characterization, not tested in production.
2. Cycling performed over the whole temperature range.
5.3.10 EMC characteristics
Susceptibility tests are performed on a sample basis during device characterization.
Functional EMS (electromagnetic susceptibility)
While a simple application is executed on the device (toggling 2 LEDs through I/O ports). the
device is stressed by two electromagnetic events until a failure occurs. The failure is
indicated by the LEDs:
●Electrostatic discharge (ESD) (positive and negative) is applied to all device pins until
a functional disturbance occurs. This test is compliant with the IEC 1000-4-2 standard.
●FTB: A Burst of Fast Transient voltage (positive and negative) is applied to V
V
through a 100 pF capacitor, until a functional disturbance occurs. This test is
A device reset allows normal operations to be resumed.
The test results are given in Tab l e 3 1. They are based on the EMS levels and classes
defined in application note AN1709.
Table 31.EMS characteristics
SymbolParameterConditions
= 3.3 V, TA = +25 °C,
V
V
V
FESD
EFTB
Voltage limits to be applied on any I/O pin to
induce a functional disturbance
Fast transient voltage burst limits to be
applied through 100 pF on VDD and V
pins to induce a functional disturbance
SS
DD
f
= 72 MHz
HCLK
conforms to IEC 1000-4-2
VDD = 3.3 V, TA = +25 °C,
f
= 72 MHz
HCLK
conforms to IEC 1000-4-4
Level/
Class
2B
4A
Designing hardened software to avoid noise problems
EMC characterization and optimization are performed at component level with a typical
application environment and simplified MCU software. It should be noted that good EMC
performance is highly dependent on the user application and the software in particular.
Therefore it is recommended that the user applies EMC software optimization and
prequalification tests in relation with the EMC level requested for his application.
Software recommendations
The software flowchart must include the management of runaway conditions such as:
●Corrupted program counter
●Unexpected reset
●Critical Data corruption (control registers...)
Prequalification trials
Most of the common failures (unexpected reset and program counter corruption) can be
reproduced by manually forcing a low state on the NRST pin or the Oscillator pins for 1
second.
To complete these trials, ESD stress can be applied directly on the device, over the range of
specification values. When unexpected behavior is detected, the software can be hardened
to prevent unrecoverable errors occurring (see application note AN1015).
Electromagnetic Interference (EMI)
The electromagnetic field emitted by the device are monitored while a simple application is
executed (toggling 2 LEDs through the I/O ports). This emission test is compliant with SAE J
1752/3 standard which specifies the testboard and the pin loading.
5.3.11 Absolute maximum ratings (electrical sensitivity)
Based on three different tests (ESD, LU) using specific measurement methods, the device is
stressed in order to determine its performance in terms of electrical sensitivity.
Electrostatic discharge (ESD)
Electrostatic discharges (a positive then a negative pulse separated by 1 second) are
applied to the pins of each sample according to each pin combination. The sample size
depends on the number of supply pins in the device (3 parts × (n+1) supply pins). This test
conforms to the JESD22-A114/C101 standard.
Table 33.ESD absolute maximum ratings
SymbolRatingsConditionsClassMaximum value
Max vs. [f
HSE/fHCLK
8/48 MHz 8/72 MHz
(1)
]
Unit
dBµV30 to 130 MHz2219
Unit
= +25 °C
T
V
ESD(HBM)
Electrostatic discharge
voltage (human body model)
Electrostatic discharge
V
ESD(CDM)
voltage (charge device
model)
1. Based on characterization results, not tested in production.
A
conforming to
JESD22-A114
TA = +25 °C
conforming to
JESD22-C101
22000
II500
Static latch-up
Two complementary static tests are required on six parts to assess the latch-up
performance:
●A supply overvoltage is applied to each power supply pin
●A current injection is applied to each input, output and configurable I/O pin
These tests are compliant with EIA/JESD 78A IC latch-up standard.
Unless otherwise specified, the parameters given in Ta bl e 3 5 are derived from tests
performed under the conditions summarized in Tab l e 9 .All I/Os are CMOS and TTL
compliant.
Table 35.I/O static characteristics
SymbolParameterConditionsMinTyp
V
Input low level voltage
IL
Standard IO input high level
voltage
V
IH
V
IL
V
IH
V
hys
I
lkg
(1)
IO FT
input high level voltage
Input low level voltage
Input high level voltage0.65 V
Standard IO Schmitt trigger
voltage hysteresis
IO FT Schmitt trigger voltage
hysteresis
(2)
Input leakage current
(2)
(4)
TTL ports
CMOS ports
V
SS≤VIN≤VDD
Standard I/Os
= 5 V
V
IN
–0.50.8
2V
25.5V
–0.50.35 V
DD
200mV
DD
(3)
5% V
I/O FT
MaxUnit
DD
VDD+0.5
+0.5
±1
3
DD
V
V
mV
µA
R
R
1. FT = Five-volt tolerant.
2. Hysteresis voltage between Schmitt trigger switching levels. Based on characterization, not tested in
3. With a minimum of 100 mV.
4. Leakage could be higher than max. if negative current is injected on adjacent pins.
5. Pull-up and pull-down resistors are designed with a true resistance in series with a switchable
Weak pull-up equivalent
PU
PD
C
IO
production.
PMOS/NMOS. This MOS/NMOS contribution
(5)
resistor
Weak pull-down equivalent
(5)
resistor
I/O pin capacitance5pF
V
= V
IN
SS
V
= V
IN
DD
to the series resistance is minimum (~10% order).
304050kΩ
304050kΩ
All I/Os are CMOS and TTL compliant (no software configuration required), their
characteristics consider the most strict CMOS-technology or TTL parameters:
●For V
–if V
–if V
●For V
–if V
–if V
:
IH
is in the [2.00 V - 3.08 V] range: CMOS characteristics but TTL included
DD
is in the [3.08 V - 3.60 V] range: TTL characteristics but CMOS included
DD
:
IL
is in the [2.00 V - 2.28 V] range: TTL characteristics but CMOS included
DD
is in the [2.28 V - 3.60 V] range: CMOS characteristics but TTL included
The GPIOs (general purpose input/outputs) can sink or source up to +/-8 mA, and sink
+20 mA (with a relaxed V
OL
).
In the user application, the number of I/O pins which can drive current must be limited to
respect the absolute maximum rating specified in Section 5.2:
●The sum of the currents sourced by all the I/Os on V
consumption of the MCU sourced on V
I
(see Ta bl e 7 ).
VDD
●The sum of the currents sunk by all the I/Os on V
consumption of the MCU sunk on V
I
(see Ta bl e 7 ).
VSS
cannot exceed the absolute maximum rating
DD,
cannot exceed the absolute maximum rating
SS
plus the maximum Run
DD,
plus the maximum Run
SS
Output voltage levels
Unless otherwise specified, the parameters given in Ta bl e 3 6 are derived from tests
performed under ambient temperature and V
Ta bl e 9 . All I/Os are CMOS and TTL compliant.
Table 36.Output voltage characteristics
SymbolParameterConditionsMinMaxUnit
supply voltage conditions summarized in
DD
Output low level voltage for an I/O pin
(1)
V
OL
V
OH
V
OL
V
OH
V
OL
V
OH
V
OL
V
OH
1. The IIO current sunk by the device must always respect the absolute maximum rating specified in Table 7
and the sum of I
2. The IIO current sourced by the device must always respect the absolute maximum rating specified in
Table 7 and the sum of IIO (I/O ports and control pins) must not exceed I
3. Based on characterization data, not tested in production.
The definition and values of input/output AC characteristics are given in Figure 19 and
Ta bl e 3 7 , respectively.
Unless otherwise specified, the parameters given in Ta bl e 3 7 are derived from tests
performed under the ambient temperature and V
in Ta bl e 9 .
Table 37.I/O AC characteristics
(1)
supply voltage conditions summarized
DD
MODEx[1:0]
bit value
10
01
11
SymbolParameterConditionsMin MaxUnit
(1)
f
max(IO)out
t
f(IO)out
t
r(IO)out
f
max(IO)out
t
f(IO)out
t
r(IO)out
F
max(IO)out
t
f(IO)out
t
r(IO)out
Maximum frequency
Output high to low
level fall time
Output low to high
level rise time
Maximum frequency
Output high to low
level fall time
Output low to high
level rise time
Maximum frequency
Output high to low
level fall time
Output low to high
level rise time
(2)
CL = 50 pF, V
= 50 pF, V
C
L
(2)
CL = 50 pF, V
= 50 pF, V
C
L
CL = 30 pF, V
(2)
= 50 pF, VDD = 2.7 V to 3.6 V30MHz
C
L
= 50 pF, V
C
L
= 30 pF, V
C
L
= 50 pF, V
C
L
CL = 50 pF, V
= 30 pF, V
C
L
CL = 50 pF, V
CL = 50 pF, V
= 2 V to 3.6 V2MHz
DD
= 2 V to 3.6 V
DD
= 2 V to 3.6 V10MHz
DD
= 2 V to 3.6 V
DD
= 2.7 V to 3.6 V50MHz
DD
= 2 V to 2.7 V20MHz
DD
= 2.7 V to 3.6 V5
DD
= 2.7 V to 3.6 V8
DD
= 2 V to 2.7 V12
DD
= 2.7 V to 3.6 V5
DD
= 2.7 V to 3.6 V8
DD
= 2 V to 2.7 V12
DD
125
125
25
25
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
(3)
Pulse width of
-t
EXTIpw
external signals
detected by the EXTI
10ns
controller
1. The I/O speed is configured using the MODEx[1:0] bits. Refer to the STM32F10xxx reference manual for a
description of GPIO Port configuration register.
2. The maximum frequency is defined in Figure 19.
3. Guaranteed by design, not tested in production.
2. The reset network protects the device against parasitic resets.
3. The user must ensure that the level on the NRST pin can go below the V
Table 38. Otherwise the reset will not be taken into account by the device.
max level specified in
IL(NRST)
5.3.14 TIM timer characteristics
The parameters given in Tab l e 3 9 are guaranteed by design.
Refer to Section 5.3.12: I/O port characteristics for details on the input/output alternate
function characteristics (output compare, input capture, external clock, PWM output).
Table 39.TIMx
(1)
characteristics
SymbolParameterConditionsMinMaxUnit
1
t
res(TIM)
f
EXT
Res
t
COUNTER
Timer resolution time
f
Timer external clock
frequency on CH1 to CH4
Timer resolution16bit
TIM
0
f
TIMxCLK
16-bit counter clock period
TIMxCLK
= 72 MHz
= 72 MHz
13.9ns
f
TIMxCLK
036MHz
165536
when internal clock is
selected
f
TIMxCLK
= 72 MHz
0.0139910µs
/2
65536 × 65536
t
MAX_COUNT
1. TIMx is used as a general term to refer to the TIM1, TIM2, TIM3 and TIM4 timers.
Unless otherwise specified, the parameters given in Ta bl e 4 0 are derived from tests
performed under the ambient temperature, f
conditions summarized in Ta bl e 9 .
2
The STM32F105xx and STM32F107xx
standard I
2
C communication protocol with the following restrictions: the I/O pins SDA and
I
C interface meets the requirements of the
SCL are mapped to are not “true” open-drain. When configured as open-drain, the PMOS
connected between the I/O pin and V
2
The I
C characteristics are described in Ta b le 4 0 . Refer also to Section 5.3.12: I/O port
characteristics
and SCL)
Table 40.I2C characteristics
SymbolParameter
for more details on the input/output alternate function characteristics (SDA
.
is disabled, but is still present.
DD
Standard mode I
MinMaxMinMax
frequency and VDD supply voltage
PCLK1
2C(1)
Fast mode I2C
(1)(2)
Unit
t
w(SCLL)
t
w(SCLH)
t
su(SDA)
t
h(SDA)
t
r(SDA)
t
r(SCL)
t
f(SDA)
t
f(SCL)
t
h(STA)
t
su(STA)
t
su(STO)
t
w(STO:STA)
C
Guaranteed by design, not tested in production.
1.
2. f
PCLK1
higher than 4 MHz to achieve the maximum fast mode I
The maximum hold time of the Start condition has only to be met if the interface does not stretch the low
3.
period of SCL signal.
The device must internally provide a hold time of at least 300ns for the SDA signal in order to bridge the
4.
undefined region of the falling edge of SCL.
SCL clock low time4.71.3
SCL clock high time4.00.6
SDA setup time250100
SDA data hold time0
(3)
SDA and SCL rise time100020 + 0.1C
(4)
0
900
300
b
SDA and SCL fall time300300
Start condition hold time4.00.6
Repeated Start condition
setup time
4.70.6
Stop condition setup time4.00.6 μs
Stop to Start condition time
(bus free)
Capacitive load for each bus
b
line
must be higher than 2 MHz to achieve the maximum standard mode I2C frequency. It must be
Figure 21. I2C bus AC waveforms and measurement circuit
Measurement points are done at CMOS levels: 0.3V
1.
Table 41.SCL frequency (f
PCLK1
= 36 MHz.,VDD = 3.3 V)
and 0.7VDD.
DD
(1)(2)
I2C_CCR value
f
(kHz)
SCL
R
= 4.7 kΩ
P
4000x801E
3000x8028
2000x803C
1000x00B4
500x0168
200x0384
= External pull-up resistance, f
1. R
P
2. For speeds around 200 kHz, the tolerance on the achieved speed is of ±5%. For other speed ranges, the
tolerance on the achieved speed ±2%. These variations depend on the accuracy of the external
components used to design the application.
Unless otherwise specified, the parameters given in Ta bl e 4 2 for SPI or in Tab l e 4 3 for I2S
are derived from tests performed under the ambient temperature, f
supply voltage conditions summarized in Ta b le 9 .
frequency and VDD
PCLKx
Refer to Section 5.3.12: I/O port characteristics for more details on the input/output alternate
function characteristics (NSS, SCK, MOSI, MISO for SPI and WS, CK, SD for I
Table 42.SPI characteristics
SymbolParameterConditionsMinMaxUnit
f
SCK
1/t
c(SCK)
t
r(SCK)
t
f(SCK)
t
su(NSS)
t
h(NSS)
t
w(SCKH)
t
w(SCKL)
t
su(MI)
t
su(SI)
t
h(MI)
SPI clock frequency
SPI clock rise and fall
time
(2)
NSS setup time Slave mode4 t
(2)
NSS hold timeSlave mode73
(2)
SCK high and low time
(2)
Data input setup time
(2)
Master mode
Data input setup time
(2)
Slave mode
Data input hold time
(2)
Master mode
(1)
Master mode 018
Slave mode0 18
Capacitive load: C = 30 pF 8
PCLK
Master mode, f
presc = 4
=36 MHz,
PCLK
5060
SPI11
SPI25
1
SPI11
SPI25
2
S).
MHz
ns
Data input hold time
(2)
t
h(SI)
t
a(SO)
t
dis(SO)
t
v(SO)
t
v(MO)
t
h(SO)
t
h(MO)
1. Remapped SPI1 characteristics to be determined.
2. Based on characterization, not tested in production.
3. Min time is for the minimum time to drive the output and the max time is for the maximum time to validate
the data.
4. Min time is for the minimum time to invalidate the output and the max time is for the maximum time to put
the data in Hi-Z
Slave mode
Data output access
(2)(3)
Slave mode, f
presc = 4
PCLK
=36 MHz,
time
Slave mode, f
Data output disable
(2)(4)
time
(2)(1)
Data output valid time Slave mode (after enable edge)25
(2)(1)
Data output valid time Master mode (after enable edge) 3
The USB OTG interface is USB-IF certified (Full-Speed).
Table 44.USB OTG FS startup time
SymbolParameter Max Unit
t
STARTUP
1. Guaranteed by design, not tested in production.
Table 45.USB OTG FS DC electrical characteristics
(1)
USB OTG FS transceiver startup time1µs
SymbolParameterConditionsMin.
(1)
Max.
(1)
Unit
USB OTG FS operating
V
DD
Input
levels
Output
levels
1. All the voltages are measured from the local ground potential.
2. To be compliant with the USB 2.0 full-speed electrical specification, the USBDP (D+) pin should be pulled
up with a 1.5 kΩ resistor to a 3.0-to-3.6 V voltage range.
3. The STM32F105xx and STM32F107xx USB OTG FS functionality is ensured down to 2.7 V but not the full
USB OTG FS electrical characteristics which are degraded in the 2.7-to-3.0 V V
4. Guaranteed by design, not tested in production.
is the load connected on the USB OTG FS drivers
R
5.
L
(4)
V
DI
(4)
CM
(4)
V
SE
V
OL
V
OH
(2)
voltage
Differential input sensitivityI(USBDP, USBDM) 0.2
Differential common mode rangeIncludes V
range0.82.5
DI
Single ended receiver threshold1.32.0
SS
(5)
(5)
Static output level lowRL of 1.5 kΩ to 3.6 V
Static output level highRL of 15 kΩ to V
(3)
3.0
2.83.6
voltage range.
DD
3.6V
0.3
Figure 27. USB OTG FS timings: definition of data signal rise and fall time
VV
V
Table 46.USB OTG FS electrical characteristics
SymbolParameterConditionsMinMaxUnit
t
t
rfm
V
CRS
1. Guaranteed by design, not tested in production.
Measured from 10% to 90% of the data signal. For more detailed informations, please refer to USB
Refer to Section 5.3.12: I/O port characteristics for more details on the input/output alternate
function characteristics (CANTX and CANRX).
5.3.16 12-bit ADC characteristics
Unless otherwise specified, the parameters given in Ta bl e 5 0 are derived from tests
performed under the ambient temperature, f
conditions summarized in Ta bl e 9 .
Note:It is recommended to perform a calibration after each power-up.
Table 50.ADC characteristics
SymbolParameter ConditionsMinTyp
frequency and V
PCLK2
supply voltage
DDA
MaxUnit
V
DDA
V
REF+
I
VREF
f
ADC
f
S
f
TRIG
V
AIN
R
AIN
R
ADC
C
ADC
t
CAL
t
lat
t
latr
t
S
t
STAB
t
CONV
1. Based on characterization, not tested in production.
2. Guaranteed by design, not tested in production.
3. V
REF+
4. For external triggers, a delay of 1/f
Power supply2.43.6V
Positive reference voltage2.4V
Current on the V
input pin160
REF
ADC clock frequency0.614MHz
(2)
Sampling rate0.051MHz
(2)
External trigger frequency
Conversion voltage range
(2)
External input impedanceSee Equation 1 and Ta b le 5 1kΩ
(2)
Sampling switch resistance1kΩ
(2)
Internal sample and hold capacitor12pF
(2)
Calibration time
(2)
Injection trigger conversion latency
(2)
Regular trigger conversion latency
(2)
Sampling time
(2)
Power-up tim e001µs
Total conversion time (including
(2)
(3)
sampling time)
is internally connected to V
DDA
PCLK2
and V
is internally connected to V
REF-
must be added to the latency specified in Table 50.
--------------------------------------------------------------- - R
ADC
–<
Equation 1: R
max formula:
AIN
The formula above (Equation 1) is used to determine the maximum external impedance allowed for an
error below 1/4 of LSB. Here N = 12 (from 12-bit resolution).
Table 51.R
Ts (cycles)tS (µs)R
max for f
AIN
= 14 MHz
ADC
(1)
max (kΩ)
AIN
1.50.111.2
7.50.5410
13.50.9619
28.52.0441
41.52.9660
55.53.9680
71.55.11104
239.517.1350
1. Based on characterization, not tested in production.
Table 52.ADC accuracy - limited test conditions
SymbolParameterTest conditionsTypMax
(1) (2)
(3)
Unit
ETTotal unadjusted error
EOOffset error±1±1.5
EGGain error±0.5±1.5
EDDifferential linearity error±0.7±1
ELIntegral linearity error±0.8±1.5
1. ADC DC accuracy values are measured after internal calibration.
2. ADC Accuracy vs. Negative Injection Current: Injecting negative current on any of the standard (nonrobust) analog input pins should be avoided as this significantly reduces the accuracy of the conversion
being performed on another analog input. It is recommended to add a Schottky diode (pin to ground) to
standard analog pins which may potentially inject negative current.
Any positive injection current within the limits specified for I
affect the ADC accuracy.
3. Based on characterization, not tested in production.
(1) Example of an actual transfer curve
(2) The ideal transfer curve
(3) End point correlation line
E
T
=Total Unadjusted Error: maximum deviation
between the actual and the ideal transfer curves.
E
O
=Offset Error: deviation between the first actual
transition and the first ideal one.
E
G
=Gain Error: deviation between the last ideal
transition and the last actual one.
E
D
=Differential Linearity Error: maximum deviation
between actual steps and the ideal one.
E
L
=Integral Linearity Error: maximum deviation
between any actual transition and the end point
correlation line.
4095
4094
4093
5
4
3
2
1
0
7
6
1234567
4093 4094 4095 4096
(1)
(2)
E
T
E
D
E
L
(3)
V
DDA
V
SSA
ai14395b
V
REF+
4096
(or depending on package)]
V
DDA
4096
[1LSB
IDEAL =
ai14139d
STM32F10xxx
V
DD
AINx
IL±1 µA
0.6 V
V
T
R
AIN
(1)
C
parasitic
V
AIN
0.6 V
V
T
R
ADC
(1)
C
ADC
(1)
12-bit
converter
Sample and hold ADC
converter
Table 53.ADC accuracy
SymbolParameterTest conditionsTypMax
ETTotal unadjusted error
EOOffset error±1.5±2.5
EGGain error±1.5±3
EDDifferential linearity error±1±2
(1) (2) (3)
f
= 56 MHz,
PCLK2
= 14 MHz, R
f
ADC
V
= 2.4 V to 3.6 V
DDA
< 10 kΩ,
AIN
Measurements made after
ADC calibration
(4)
±2±5
ELIntegral linearity error±1.5±3
1. ADC DC accuracy values are measured after internal calibration.
2. Better performance could be achieved in restricted V
3. ADC Accuracy vs. Negative Injection Current: Injecting negative current on any of the standard (nonrobust) analog input pins should be avoided as this significantly reduces the accuracy of the conversion
being performed on another analog input. It is recommended to add a Schottky diode (pin to ground) to
standard analog pins which may potentially inject negative current.
Any positive injection current within the limits specified for I
affect the ADC accuracy.
, frequency and temperature ranges.
DD
INJ(PIN)
and ΣI
in Section 5.3.12 does not
INJ(PIN)
4. Based on characterization, not tested in production.
Figure 31. ADC accuracy characteristics
Unit
LSB
Figure 32. Typical connection diagram using the ADC
1. Refer to Tab l e 5 0 for the values of R
2. C
represents the capacitance of the PCB (dependent on soldering and PCB layout quality) plus the
parasitic
pad capacitance (roughly 7 pF). A high C
this, f
should be reduced.
ADC
, R
AIN
and C
ADC
parasitic
ADC
value will downgrade conversion accuracy. To remedy
Power supply decoupling should be performed as shown in Figure 33 or Figure 34,
depending on whether V
ceramic (good quality). They should be placed them as close as possible to the chip.
is connected to V
REF+
or not. The 10 nF capacitors should be
DDA
Figure 33. Power supply and reference decoupling (V
STM32F10xxx
V
REF+
(See note 1)
1. V
REF+
and V
1 µF // 10 nF
1 µF // 10 nF
inputs are available only on 100-pin packages.
REF–
V
DDA
V
SSA/VREF-
(See note 1)
Figure 34. Power supply and reference decoupling (V
Settling time (full scale: for an 10-bit
input code transition between the
t
SETTLING
lowest and the highest input codes
34µs
when DAC_OUT reaches final value
±1LSB
Max frequency for a correct
Update
rate
DAC_OUT change when small
variation in the input code (from code i
to i+1LSB)
t
WAKEUP
PSRR+
1. Guaranteed by characterization, not tested in production.
Wakeup time from off state (PDV18
from 1 to 0)
Power supply rejection ratio (to
) (static DC measurement
V
DD33A
6.510µs
–67–40dBNo R
(1)
UnitComments
≤ 50 pF,
C
LOAD
≥ 5 kΩ
R
LOAD
≤ 50 pF,
C
1MS/s
R
C
R
LOAD
LOAD
LOAD
LOAD
≥ 5 kΩ
≤ 50 pF,≥ 5 kΩ
input code between lowest and
highest possible ones.
LOAD
, C
LOAD
= 50 pF
5.3.18 Temperature sensor characteristics
Table 55.TS characteristics
SymbolParameterMinTypMaxUnit
(1)
T
L
Avg_Slope
(1)
V
25
(2)
t
START
S_temp
(3)(2)
T
1. Based on characterization, not tested in production.
2. Guaranteed by design, not tested in production.
3. Shortest sampling time can be determined in the application by multiple iterations.
V
(1)
Average slope4.04.34.6mV/°C
linearity with temperature
SENSE
±1±2
Voltage at 25 °C1.341.431.52V
Startup time410µs
ADC sampling time when reading the temperature17.1µs
°C
74/90
STM32F105xx, STM32F107xxPackage characteristics
6 Package characteristics
6.1 Package mechanical data
In order to meet environmental requirements, ST offers these devices in different grades of
ECOPACK
specifications, grade definitions and product status are available at: www.st.com.
ECOPACK
®
packages, depending on their level of environmental compliance. ECOPACK®
1. Values in inches are converted from mm and rounded to 4 decimal digits.
64
79/90
Part numberingSTM32F105xx, STM32F107xx
7 Part numbering
Table 59.Ordering information scheme
Example:STM32F 105 R CT6xxx
Device family
STM32 = ARM-based 32-bit microcontroller
Product type
F = general-purpose
Device subfamily
105 = connectivity, USB OTG FS
107= connectivity, USB OTG FS & Ethernet
Pin count
R = 64 pins
V = 100 pins
Flash memory size
8 = 64 Kbytes of Flash memory
B = 128 Kbytes of Flash memory
C = 256 Kbytes of Flash memory
Package
H = BGA
T = LQFP
Temperature range
6 = Industrial temperature range, –40 to 85 °C.
7 = Industrial temperature range, –40 to 105 °C.
Options
xxx = programmed parts
TR = tape and real
For a list of available options (speed, package, etc.) or for further information on any aspect
of this device, please contact your nearest ST sales office.
MCLK
Less than 0.5% accuracy
error on MCLK and SCLK
Up to
71.88 MHz
ai15662
0.16% accuracy error
A.4 USB OTG FS interface + Ethernet/I2S interface solutions
With the clock tree implemented on the STM32F107xx, only one crystal is required to work
with both the USB (host/device/OTG) and the Ethernet (MII/RMII) interfaces. Figure 50
illustrate the solution.
Figure 50. USB OTG FS + Ethernet solution
STM32F107
MCU
Div
XTAL
25 MHz
Ethernet
PHY
MCO
OSCOSC
MCO
by 5
sel
sel
PLL2
by 5
PLL3
x10
x8
Div
PLL1
VCO
Up to
50 MHz
x9
Out
x18
up to
72 MHz
Div by 3
Cortex-M3 core
OTG
48 MHz
I2S
PHY
2% accuracy
error
MCLK
SCLK
With the clock tree implemented on the STM32F107xx, only one crystal is required to work
with both the USB (host/device/OTG) and the I
PB4, PB13, PB14, PB15, PB3/TRACESWO moved from Default
column to Remap column, plus small additional changes in Ta b le 5 :
Pin definitions.
Consumption values modified in Section 5.3.5: Supply current
20-Feb-20092
characteristics.
Note modified in Table 13: Maximum current consumption in Run
mode, code with data processing
Maximum current consumption in Sleep mode, code running from
Flash or RAM.
Table 20: High-speed external user clock characteristics and
Table 21: Low-speed external user clock characteristics modified.
Table 27: PLL1 characteristics modified and Table 28: PLL2 and
PLL3 characteristics added.
running from Flash and Table 15:
89/90
STM32F105xx, STM32F107xx
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.