| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
LAN8808D Datasheet(PDF) 46 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
LAN8808D Datasheet(HTML) 46 Page - Microchip Technology |
|
46 / 80 page ![]() LAN8808D DS00005833C-page 46 © 2026 Microchip Technology Inc. and its subsidiaries 5.16 GPIOs The General Purpose I/Os (GPIOs) consist of 22 programmable input/output pins that are shared with other pins. These pins are individually configurable via the GPIO registers. GPIOs support the following functions: • Software-readable GPIO. The GPIO is an input and its value can be directly read via the GPIO Data register. In addition, these GPIOs can also be configured to generate interrupts. • Software-writable GPIO. The GPIO is an output and its value can be directly set via the GPIO Data register. • GPIO Alternate Function. The GPIO pin is shared with some other function. Depending on the alternate function, the GPIO pin may be either an input or output. If the GPIO pin is an input, it can still be configured to perform any GPIO input function in addition to the alternate function. For a pin to function as its GPIO, the GPIO must be enabled via the corresponding bit in the GPIO Enable Registers. When configured as an input, via the GPIO Direction register (GPIO_DIR1 or GPIO_DIR2), the pin’s pull-up is enabled. Each bit in the GPIO Data Registers reflects the current state of the corresponding GPIO input. When configured as an output, the output buffer type is selected by the corresponding bit in the GPIO Buffer Type Reg- isters. Push/pull and open-drain output buffers are supported for each GPIO. • When functioning as an open-drain driver, the GPIO output pin is driven low when the corresponding bit in the GPIO Data Registers is cleared to ‘0’ and is not driven when set to ‘1’. • When functioning as a push/pull output, the GPIO output pin is driven low or high by the corresponding bit in the GPIO Data Registers. When a GPIO is set to an output, the pin’s pull-up is disabled, however the pin’s input buffer remains enabled. A read of the GPIO Data Registers returns the state of the GPIO inputs (not the previous values written to these registers). 5.16.1 GPIO ALTERNATE FUNCTIONS Many GPIOs have the ability to be used as an alternate function. Once enabled as a GPIO, the alternate function is selected by the bits in the GPIO Alternate Function Select Registers. The alternate function buffer type is still selected via the GPIO Buffer Type Registers. If the alternate function is a Port LED and the GPIO Buffer Type is open-drain, the output buffer will automatically select between open-source and open- drain based on the applicable LED Polarity. Alternate Functions input pins can be read by software via the GPIO Data register, can generate GPIO Interrupts. Table 5-7 describes the alternate function mappings. Alternate functions are each described fully in Section 3.0, "Pin Descriptions and Configuration". Note: Extreme care must be taken on strap input pins that may be used for General Purpose Inputs. The General Purpose Inputs must be conditioned or otherwise disabled such that they do not drive incorrect strap input values during the strap loading time. TABLE 5-7: GPIO ALTERNATE FUNCTIONS GPIO Alternate Function Configuration Strap Comments GPIO23 SOF3 —— GPIO21 SOF1 GPIO20 PORT2LED2 PORT2_LED2_POL To enable LED operation with either a pull-up or pull-down, LED Polarity takes on the inverted value of the configuration strap. Refer to Section 5.17, "LEDs" and Section 3.3.4, "LED Polarity (PORT[3:0]_LED[2:1]_POL)" for additional information. GPIO19 PORT2LED1 PORT2_LED1_POL GPIO18 PORT1LED2 PORT1_LED2_POL GPIO17 PORT1LED1 PORT1_LED1_POL |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |