Lecture3_Microcontroller Architecture
Lecture3_Microcontroller Architecture
3
Outline
• The STM32F4 Microcontroller
– Central Processing Unit
– Memory
– General Purpose Input and Output Ports
– Clock and Timer Modules
– Analog Modules
– Digital Communication Modules
– Other Modules
• The STM32F4 Board: Nucleo-F401re
– General Information
– Pin Layout
– Powering the Board and Programming the Microcontroller on It
4
The STM32F4 Microcontroller
Memory Types
• Random Access Memory (RAM)
– Stores temporary data.
– Contents of RAM are lost when the power fed to it is turned off.
• Read Only Memory (ROM), Flash memory
– stores code or data permanently.
– Even if the power fed to it is turned off, contents of ROM are
kept.
Memory
17
INTRODUCTION TO NUCLEO – F401RE
BOARD FEATURES
Provides an affordable and flexible way for users to try out new
concepts and build prototypes
STM32 microcontroller
32.768 kHz crystal oscillator
• Two types of extension resources
• Arduino Uno Revision 3 connectivity
• STMicroelectronics Morpho extension pin headers for full
access to all STM32 I/Os
• On-board ST-LINK/V2-1 debugger/programmer with SWD connector
• Selection-mode switch to use the kit as a standalone ST-
LINK/V2-1
• Flexible board power supply
• USB VBUS or external source (3.3 V, 5 V, 7 - 12 V)
• Power management access point
• User LED (LD2)
•Two push buttons: USER and RESET
• USB re-enumeration capability: three different interfaces supported
on USB
• Virtual Com port
• Mass storage (USB Disk drive) for drag'n'drop programming
• Debug port
• Comprehensive free software libraries and examples available with
the STM32Cube MCU Package
• Support of a wide choice of Integrated Development Environments
(IDEs) including IAR Embedded Workbench®, MDK-ARM, and
STM32CubeIDE
INTRODUCTION TO NUCLEO – F401RE
Pinout
The STM32F4 Board
Powering the Board and Programming the Microcontroller on It