![Maxim Integrated MAX32660 Скачать руководство пользователя страница 58](http://html1.mh-extra.com/html/maxim-integrated/max32660/max32660_user-manual_1744484058.webp)
MAX32660 User Guide
Maxim Integrated
Page 58 of 195
6
General-Purpose I/O and Alternate Function Pins
The general-purpose I/O (GPIO) pins share both a firmware-controlled I/O mode and up to three peripheral alternate
functions. Each pin is individually enabled for GPIO or peripheral alternate function 1 (AF1), alternate function 2 (AF2) or
alternate function 3 (AF3). Configuring a pin for an alternate function supersedes its use as a firmware-controlled GPIO,
however the input data is always readable via the GPIO input register if the GPIO input is enabled.
Multiplexing between the alternate functions and the I/O function is often static in an application; set at initialization and
dedicated as either an alternate function or GPIO. If needed, dynamic multiplexing between AF1, AF2, AF3 and I/O mode is
supported. Dynamic multiplexing must be managed by the application firmware and the application must manage the AFs
and GPIO to ensure each is set up properly when switching from a peripheral to the I/O function. Refer to the MAX32660
Data Sheet
Electrical Characteristics Table
http://www.maximintegrated.com
, for information on the GPIO pin behavior
based on the configurations described in this document.
In GPIO mode each I/O pin supports interrupt function that can be independently enabled, and configured as a level
triggered interrupt, a rising edge, falling edge or both rising and falling edge interrupt. All GPIO share the same interrupt
vector. No all GPIO are available on all packages.
The GPIO are all bidirectional digital I/O that include:
•
Input Mode Features
−
Standard CMOS or Schmitt Hysteresis
−
Input data from the input data register (
) or to a peripheral (alternate function)
−
Input state selectable for floating (tri-state) or weak pull-up/pull-down
•
Output Mode Features
−
Output data from the output data register (
) in GPIO mode
−
Output data driven from peripheral if an Alternate Function is selected
−
Standard GPIO
◦
Four drive strength modes
◦
Slow or Fast slew rate selection
−
GPIO with I
2
C as an Alternate Function
◦
Two drive strength modes
•
Selectable weak pull-up resistor, weak pull-down resistor or tri-state mode for Standard GPIO pins
•
Selectable weak pull-down or tri-state mode for GPIO pins with I
2
C as an Alternate Function
•
Wake from low power modes on rising edge, falling edge or both on the I/O pins
6.1
General Description
The MAX32660 provides up to 14 GPIO pins in the 20-TQFN package and up to 10 GPIO pins in the 16-WLP. Each GPIO pin
maps to a GPIO port. For the MAX32660 all GPIO pins are grouped in GPIO port 0 (GPIO0).
and
, below,
show the GPIO and the assigned AF1, AF2 and AF3 for the 16-WLP and 20-TQFN packages of the MAX32660.
A dedicated interrupt vector is assigned for GPIO port 0 and is detailed in the section
Содержание MAX32660
Страница 4: ...MAX32660 User Guide Maxim Integrated Page 4 of 195 8 UART 84 9 Real Time Clock RTC 96 10 Timers 105...
Страница 7: ...MAX32660 User Guide Maxim Integrated Page 7 of 195 15 Trademarks 195 16 Revision History 195...
Страница 14: ...MAX32660 User Guide Maxim Integrated Page 14 of 195 Figure 2 1 MAX32660 High Level Block Diagram...