STMicroelectronics AN432 ST62xx I/O Ports Safety Application Note

This application note explains the architecture and functionality of the I/O ports in the ST62 series microcontrollers, and provides guidance on how to use these features safely. The ST62 series is suitable for industrial control and other applications.


STMicroelectronics AN432 ST62xx I/O Ports Safety Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
12
File format
PDF
File size
397 KB
Published
07 August, 2012
Updated
28 September, 2023
Model
ST62
MD5 checksum
0E4180C33FF4E1D56298AECEE771C23A

About this manual

This document describes the architecture of the I/O ports in the ST62 Series of microcontrollers, detailing the Data Register (DR), Data Direction Register (DDR), and Option Register (OR). It explains how these registers control input/output modes, including push-pull, open drain, interrupt, and analog input capabilities.

The note provides critical guidance on safely switching between these modes to prevent system malfunctions. It specifically addresses the risks associated with using single-bit instructions (SET, RES, RS, IRR) on the Data Register when pins are configured as inputs, offering recommended coding sequences and RAM buffering strategies to avoid unintended state changes.

What's inside

  • I/O Port Structure
  • Control Registers (DR, DDR, OR)
  • Input and Output Modes
  • Interrupt Input Function
  • Analog Input Configuration
  • Single Bit Instructions
  • Safe Switching Procedures
  • RAM Buffering Strategy
  • False Transitions
  • Legal Disclaimer

Specifications

Pull-up resistor value100K
Analog switch resistance1/4 kΩ

Frequently asked questions

What happens if multiple pins are switched to analog input mode simultaneously?

All pins switched to analog input mode will be connected together via the analog switches.

How do multiple interrupt input pins behave together?

They are connected in a logical AND function to the same core interrupt input line.

Why is a RAM buffer recommended when using SET/RES instructions?

To prevent accidental changes to the input mode of pins configured as inputs during the read-modify-write cycle.

Download PDF (397 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →