This application note describes the best way of configuring the GPIO ports in STR7xx devices.
This document provides guidelines for safely configuring General Purpose Input/Output (GPIO) ports in STR7xx microcontroller devices. It details the various programmable modes available, including input, output, alternate function, open drain, push-pull, and high impedance configurations.
The note includes specific configuration sequences for transitioning between different port states (e.g., from push-pull to analog input) to ensure hardware safety. It covers the STR71x, STR73x, and STR75x families, providing functional descriptions and configuration tables for each.
| Access Method | 16-bit words |
|---|---|
| Programmable Modes | input, output, alternate function, output open drain, output push-pull, bidirectional weak push-pull and high impedance |
The ports can be programmed as input, output, alternate function, output open drain, output push-pull, bidirectional weak push-pull, and high impedance.
The registers must be accessed as 16-bit words; 32-bit or byte access is not allowed.