PmodIOXPTM Reference Manual Revision: August 24, 2011 1300 NE Henley Court, Suite 3 Pullman, WA 99163 (509) 334 6306 Voice | (509) 334 6300 Fax Overview The PmodIOXP is an I/O expansion module powered by the Analog Devices ADP5589. Features include: * * * * * * * * 16-element FIFO for event recording 19 configurable I/Os Keypad decoding for matrices up to 11x8 PWM generator Open-drain interrupt output Dual Programmable logic blocks Debouncing on IOs I2C interface Functional Description The PmodIOXP functions as an I/O port expander and keypad matrix decoder. The PmodIOXP uses a standard 8-pin I2C connector and can communicate to a system board via I2C. Connector J3 - I2C Communications Pin Signal Description 1, 2 SCLK Serial Clock 3, 4 SDA / SDI / I2C Data / SPI Master SDIO out Slave in Data 5, 6 GND Power Supply Ground 7, 8 VCC Power Supply (3.3V) Interface Interface Connector Signal Description All communications with the device must specify a register address and a flag indicating whether the communication is a read or a write. This is followed by the actual data transfer. The I2C interface standard uses two signal lines. These are I2C data (SDA) and serial clock (SCLK). These signals map to the serial data (SDA) and serial clock (SCLK) respectively on the ADP5589. Device configuration is performed by writing to control registers within the device. Input and event data is accessed by reading certain device registers. Event FIFO A full list of registers and their functionality, as well as communication specifications, is found in the ADP5589 datasheet available on the Analog Devices website. Doc: 502-219 The PmodIOXP has an event FIFO that can record up to 16 events. The FIFO includes key events and can be configured to include general-purpose input (GPI) and logic activity. When the FIFO is read from, the first entry is always read. Specific registers related to the FIFO are outlined in the ADP5589 datasheet. page 1 of 2 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners. PmodIOXP Reference Manual Connector J5 Pin Signal 1 INT 2 GND Description Interrupt Open Drain Output Power Supply Ground Open-Drain Interrupt Output The interrupt pin can be configured to trigger on an event, GPI level, FIFO overflow, logic function output, and on keyboard lock. The corresponding bit in the interrupt enable register must be set in order for the interrupt to be set. Specific registers related to the interrupts are described in the ADP5589 datasheet. Connector J6 Pin Signal 1 RST 2 GND Description Reset pin Power Supply Ground Reset Pin The PmodIOXP has an active-low reset pin that can be used to reset the ADP5589 to default settings. General Purpose I/O (GPIO) The PmodIOXP has 19 GPIOs that can be configured a number of ways. The GPIOs can be set as either input or output, set to decode a keypad matrix, or implement logic functions. The functionality of the IOs can be set using the configuration registers which are described in the ADP5589 datasheet. www.digilentinc.com Connector J1 - GPIOs Pin Signal 1 R0 2 R1 3 R2 4 R3 5 GND 6 VCC 7 C0 8 C1 9 C2 10 C3 11 GND 12 VCC Description Row 0 (GPIO 1) Row 1 (GPIO 2) Row 2 (GPIO 3) Row 3 (GPIO 4) Power Supply Ground Power Supply(3.3V) Column 0 (GPIO 9) Column 1 (GPIO 10) Column 2 (GPIO 11) Column 3 (GPIO 12) Power Supply Ground Power Supply(3.3V) Connector J2 - GPIOs Pin Signal 1 R4 2 R5 3 R6 4 R7 5 GND 6 VCC 7 C4 8 C5 9 C6 10 C7 11 GND 12 VCC Description Row 4 (GPIO 5) Row 5 (GPIO 6) Row 6 (GPIO 7) Row 7 (GPIO 8) Power Supply Ground Power Supply(3.3V) Column 4 (GPIO 13) Column 5 (GPIO 14) Column 6 (GPIO 15) Column 7 (GPIO 16) Power Supply Ground Power Supply(3.3V) Connector J4 - GPIOs Pin Signal Description 1 C8 Column 8 (GPIO 17) 2 GND Power Supply Ground 3 C9 Column 9 (GPIO 18) 4 GND Power Supply Ground 5 C10 Column 10 (GPIO 19) 6 GND Power Supply Ground page 2 of 2 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.