4 Peripherals
4.1 Getting Started
The STM32F103RB is a very complex processor. There is not just one datasheet for all information.
•
Datasheet:
CD:/datasheet/ST/STM32F103x8B.pdf
Gives a general introduction to the STM32F103RB processor. Pinouts, electrical, thermal and
package characteristics are described there. Refer to the datasheet if you want to calculate
the power consumption or to see the pin relation between GPIO and pins (e.g. to which pin
is GPIOA1 connected to).
•
Reference manual RM008:
CD:/datasheet/ST/RM0008 Reference Manual.pdf
Describes the function inside the processor, such as periphery, clock management or power
control. Refer to this manual for programming.
•
CD:/code/self/
offers proved examples for
µ
Vision3.
•
The Firmware Library
stm32f10x stdperiph lib
(see also Chapter
) offers examples
CD:/code/stm32f10x stdperiph lib/Project/STM32F10x StdPeriph Examples/
•
Insider’s Guide from Hitex
CD:/datasheet/hitex-guide STM32
Gives a general introduction to the STM32F103RB processor.
•
More help can be found on
http://www.st.com/mcu/devicedocs-STM32F103RB-110.html
and
4.2 Configuration Wizard
b
gpio2
F
GPIO usage by register acces and Configuration Wizard.
Keil offers a Configuration Wizard (see Figure
) which lets the user configure the processor
registers without need of knowing the specific registers. This wizard can be used only for simple
programs like controlling GPIO or serial interface. In case you need to use more complex functions
like SPI, I
2
C or even DMA we suggest you to use the firmware library from STMicroelectronics
(see Chapter
). In this document the Configuration Wizard is used whenever possible.
The access of the register can’t be done by the Configuration Wizard, the Firmware Library (see
Chapter
) or direct register access (see Chapter
) has to be used.
23