Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how

Similar documents
Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

Hello, and welcome to this presentation of the STM32L4 System Configuration Controller.

Hello, and welcome to this presentation of the STM32L4 s full-speed on-the-go (OTG) USB device interface. It covers the features of this IP, which is

Hello, and welcome to this presentation of the STM32L4 USB 2.0 Full Speed interface. It covers the features of this interface, which is widely used

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

Using the Special Function Registers of the Digital I/O interface of STM32

Hello, and welcome to this presentation of the STM32 Reset and Clock Controller.

Hello, and welcome to this presentation of the STM32 Touch Sensing Controller (TSC) which enables the designer to simply add touch sensing

Hello, and welcome to this presentation of the STM32 Real- Time Clock. It covers the main features of this peripheral, which is used to provide a

Interconnects, Memory, GPIO

Introduction to ARM LPC2148 Microcontroller

STM32F100RB processor GPIO notes rev 2

Hello, and welcome to this presentation of the STM32F7 System Configuration Controller.

STM32 MICROCONTROLLER

EasyPIC5 Development System

8. Power Management and Sleep Modes

2-Oct-13. the world s most energy friendly microcontrollers and radios

EasyAVR6 Development System

Arduino Uno R3 INTRODUCTION

STM8L and STM32 L1 series. Ultra-low-power platform

Using the Special Function Registers of the Digital I/O interface of STM32

STM32L4 System operating modes

Ultra Low Power Microcontroller - Design Criteria - June 2017

ECE 362 Lab Verification / Evaluation Form Experiment 3

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Hello and welcome to this Renesas Interactive module that covers the Independent watchdog timer found on RX MCUs.

Freescale s Next Generation 8-bit LCD Solutions

AN4311 Application note

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their

AN2606 Application note

LPC4370FET256. Features and benefits

Hello, and welcome to this presentation of the STM32 Random Number Generator. The features of this peripheral, which is widely used to provide random

STM32G0 MCU Series Efficiency at its Best

Hello, and welcome to this presentation of the STM32 I²C interface. It covers the main features of this communication interface, which is widely used

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

AN4749 Application note

MICROPROCESSOR BASED SYSTEM DESIGN

Digital Input and Output

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

AN4809 Application note

NXP AN11528 sensor Application note

BIG8051. Development system. User manual

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Hello, and welcome to this presentation of the STM32 Flash memory interface. It covers all the new features of the STM32F7 Flash memory.

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

AS Channels Capacitive Touch Sensor IC From Santa Clara, United States of America

STM32 Ecosystem workshop. T.O.M.A.S Team

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features

AN3964 Application note

CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

AN5181. Building a thermometer using the STM8 Nucleo-64 boards. Application note. Introduction

General Purpose I/O ARM University Program Copyright ARM Ltd

STM32SnippetsL0. STM32L0xx Snippets firmware package. Features. Description

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

AN2860 Application note

Team 3. By: Miriel Garcia. Microcontrollers/ TI MSP430F5438A. ECE 480 senior Design. Application Note 4/3/15

STM32 Ecosystem workshop. T.O.M.A.S Team

STM32F4 Introduction F1/F2/F4 Comparison Features Highlight

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

ARDUINO MEGA INTRODUCTION

POD 51EH C541U 12 EA ALE PSEN XH0 XH1 XH2 XH3 XH4 XH5 XH6 XH7 XL7 XL6 XL5 XL4 XL3 XL2 XL1 XL0. Figure 1. POD 51EH C541U 12

STM8L162R8 STM8L162M8

Lecture 5: Computing Platforms. Asbjørn Djupdal ARM Norway, IDI NTNU 2013 TDT

ELEC 3040/3050 Lab Manual Lab 2 Revised 8/20/14. LAB 2: Developing and Debugging C Programs in MDK-ARM for the STM32L100RC Microcontroller

Objective: Additional project details: Code: PSEMBP 100 Category:STEM Level: High School/Community C.

STM32L4+ MCU series Excellence in ultra-low-power with more performance

STM32 Cortex-M3 STM32F STM32L STM32W

Remote Keyless Entry In a Body Controller Unit Application

STM32F4 Labs. T.O.M.A.S Technically Oriented Microcontroller Application Services V1.07

RF4431 wireless transceiver module

ecog1kg Microcontroller Product Brief

Hands on Experience with AVR32

Prototyping Module Datasheet

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

Developing and Debugging C Programs in MDK-ARM for the STM32L100RC Microcontroller

Freedom FRDM-KV31F Development Platform User s Guide

AK-STM32-ETH Development Board

AN3147 Application note

Universität Dortmund. IO and Peripheral Interfaces

AN3029 Application note

Introducing STM32 L0x Series. April

High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers

The course provides all necessary theoretical and practical know-how for start developing platforms based on STM32L4 family.

UM2092 User manual. Basic metrology firmware for the STM32F103RD and the STPM32 devices. Introduction

AT-501 Cortex-A5 System On Module Product Brief

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6

RF4432 wireless transceiver module

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6

Application Note. Introduction. AN2255/D Rev. 0, 2/2002. MSCAN Low-Power Applications

POD 51EH C517A 24 XH0 XH1 XH2 XH3 XH4 XH5 XH6 XH7 XL7 XL6 XL5 XL4 XL3 XL2 XL1 XL0 PE EA ALE PSEN JP1. Figure 1. POD 51EH C517A 24

Quick Start Guide. S12VR64EVB S12 MagniV Mixed-Signal MCUs. S12 MagniV

AN3147 Application note

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

STM8L151x6/8 STM8L152x6/8

STM8L151x8 STM8L152x8 STM8L151R6 STM8L152R6

Transcription:

Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how it allows connectivity to the environment around the microcontroller. 1

General-purpose IO pins of STM32 products provide an interface with the external environment. This configurable interface is used by the MCU and also all other embedded peripherals to interface with both digital and analog signals. Application benefits include a wide range of supported IO supply voltages, as well as the ability to externally wake up the MCU from low power modes. 2

General-purpose I/O provides bidirectional operation input and output with independent configuration for each I/O pin. They are shared across up to 9 ports named GPIOA to GPIOI, each of them hosting up to 16 I/O pins. I/O ports support atomic bit set and reset operation through BSSRR and BRR registers and support the use of bit banding in the memory map. I/O ports are directly connected to the AHB2 bus. This allows fast I/O pin operations, e.g. toggling of the pin every 2 clock cycles. Most of the I/O pins are 5 V tolerant when supplied from VDDIOx above 1.6 V. Up to 14 I/O pins are supplied by externally providing a voltage within the VDDIO2 supply domain. This supply is independent of the VDD provided to the part. This functionality allows users to adapt logic levels of the MCU s I/O pins to the levels required by external logic which may be supplied by different voltage domains without need for 3

external level shifters. 3

General-purpose I/O pins can be configured into several operating modes. An I/O pin can be configured in an input mode with floating input, input mode with an internal pull-up or pulldown resistor or as an analog input. An I/O pin could be also configured in an output mode with a push-pull output or an open-drain output with an internal pull-up or pull-down resistor. For each I/O pin, the slew rate speed can be selected from 4 ranges to compromise between maximum speed and emissions from the I/O switching and adjust the application s EMI performance. I/O pins are also used by other integrated peripherals to interface with the external environment. Alternate function registers are used to select the configuration for the peripherals in this case. Configuration of the I/O ports can be locked to increase 4

robustness of the application. Once the configuration is locked by applying the correct write sequence to the lock register, the I/O pin s configuration cannot be modified until the next reset. 4

Several integrated peripherals such as the USART, timers, SPI and others share the same I/O pins in order to interface with the external environment. Peripherals are configured through an alternate function multiplexer which ensures that only one peripheral is connected to the I/O pin at a single time. Of course, this selection can be changed during run time of the application through the GPIOx_AFRL and AFRH registers. 5

The Independent VDDIO2 supply domain allows operation in an environment with several different logic supply voltages. It allows the STM32 to communicate with logic supplied from 1.08 V, much lower than the VDD supply of the STM32, which can range up to 3.6 V. Up to 14 I/O pins in this domain can be used to communicate with other logic circuits which are supplied by voltage rails other than VDD. Independent voltage supplies may allow for the omission of external voltage shifters in the design. 6

During and after reset, the alternate functions (AF) are not active, only debug pins remain in AF mode. JTAG/SWD debug pins remaining in AF configuration mode are listed in this slide. 7

When the external oscillator is switched off, pins related to this oscillator can be used as standard I/O pins. This is the default state after device reset. When the external clock source is used instead of a crystal oscillator, only related OSC_IN or OSC32_IN pins are used for the clock and OSC_OUT or OSC32_OUT pins can be used as standard I/O pins. 8

New GPIOx_ASCR control register has been introduced on STM32L47x/48x devices to control analog interconnection between an I/O pin and ADC input. This register has to be configured before the ADC conversions are started to correctly bring the signal to the ADC input. This register is removed on other Categories of STM32L4 devices and the analog interconnection will be enabled automatically when an ADC channel is selected. 9

A new multi-supply scheme of I/O pins brings new I/O pin structures. Previously-used naming FT, TT has been extended by abbreviation suffixes to highlight alternate supply sources for each FT and TT I/O pin. Previously-used name FTf for Fm+ capable pins has been transformed to FT_f, the new _l suffix has been added to mark pins supplied through LCD supply, suffix _a marks pins supplied by analog supply, suffix _u is used for pins supplied from USB supply and suffix _s now clearly identifies pins within the independent VDDIO2 supply domain. The absolute maximum rating for each I/O pin is defined by the lowest voltage of the supplies listed for each I/O pin. 10

I/O pins remain active in all modes except Standby and Shutdown, where the only available configuration is input with internal pull-up, pull-down resistor or floating input. When exiting Shutdown mode, the I/O configuration is lost. When the MCU is under reset, I/O pins are forced into an analog input mode.

This slide presents the key differences between baseline STM32L47x/48x devices and other devices. Compared to STM32L47x/48x devices, STM32L43x/44x/45x/46x devices have up to 83 GPIOs and STM32L41x/42x devices have up to 52 GPIOs. They no longer have GPIOs connected to an independent power supply (VDDIO2), and the GPIOx_ASCR register, enabling an analog switch connected to the ADC inputs, is no longer present. 12