Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
58
8
General Purpose Input/Output (GPIO)
8.1
Introduction
GPIO is a programmable General Purpose Programming I/O peripheral.
Ameba-D GPIO IP controls the output data and direction of external I/O pads. It also can read back the data on external pads using memory-
mapped registers. And Ameba-D supports two independent GPIO IP: PORT A (0~31) and PORT B (0~31).
Port A/B can be programmed to accept external signals as interrupt sources on any of the bits of the signal. The type of interrupt is
programmable with one of the following settings:
8.1.1
General Product Description
Fig 8-1 shows the following functional groupings of the main interfaces to the GPIO block:
APB interface to or from APB bridge
External data Interface to or from I/O pads
Auxiliary hardware data interface to or from auxiliary data sink or source
Interrupt interface to or from interrupt controller
Fig 8-1 Block diagram
8.1.2
Features
GPIO supports the following features:
Up to 32 independently configurable signals each port
Separate data registers and data direction registers for each signal
Configurable hardware and software control for each signal, or for each bit of each signal
Separate auxiliary data input, data output, and data control for each I/O in Hardware Control mode
Independently controllable signal bits
Configurable interrupt mode for Port A/B
Configurable debounce logic with an external slow clock to debounce interrupts
Option to generate single or multiple interrupts
GPIO Component Type register
GPIO Component Version register
Configurable reset values on output signals
Configurable synchronization of interrupt signals
8.2
Functional Description
This chapter describes the functional operation of the GPIO.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03