EasyManua.ls Logo

ST STM32F10 Series User Manual

ST STM32F10 Series
519 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #73 background imageLoading...
Page #73 background image
UM0306 General purpose and alternate function I/O (GPIO and AFIO)
73/519
5 General purpose and alternate function I/O (GPIO and
AFIO)
5.1 GPIO functional description
Each of the General Purpose I/O Ports has two 32-bit configuration registers (GPIOx_CRL,
GPIOx_CRH, two 32-bit data registers (GPIOx_IDR, GPIOx_ODR), a 32-bit set/reset
register (GPIOx_BSRR), a 16-bit reset register (GPIOx_BRR) and a 32-bit locking register
(GPIOx_LCKR).
Subject to the specific hardware characteristics of each I/O port listed in the datasheet, each
port bit of the General Purpose IO (GPIO) Ports, can be individually configured by software
in several modes:
Input floating
Input Pull-up
Input-Pull-down
Analog Input
Output Open-Drain
Output Push-Pull
Alternate Function Push-Pull
Alternate Function Open-Drain
Each I/O port bit is freely programmable, however the I/O port registers have to be accessed
as 32-bit words (half-word or byte accesses are not allowed). The purpose of the
GPIOx_BSRR and GPIOx_BRR registers is to allow atomic read/modify accesses to any of
the GPIO registers. This way, there is no risk that an IRQ occurs between the read and the
modify access.
Figure 9 shows the basic structure of an I/O Port bit.
www.BDTIC.com/ST

Table of Contents

Other manuals for ST STM32F10 Series

Question and Answer IconNeed help?

Do you have a question about the ST STM32F10 Series and is the answer not in the manual?

ST STM32F10 Series Specifications

General IconGeneral
SeriesSTM32F10
CoreARM Cortex-M3
Operating FrequencyUp to 72 MHz
Flash Memory16 KB to 1 MB
SRAM4 KB to 96 KB
GPIO PinsUp to 80
ADC Resolution12-bit
Number of ADCsUp to 3
Operating Voltage2.0 V to 3.6 V
DAC Resolution12-bit
Communication InterfacesI2C, SPI, USART, USB
Operating Temperature-40°C to +85°C
Package OptionsLQFP, BGA
Number of DACsUp to 2 (some devices)

Related product manuals