Pmod peripheral modules are powered by the host via the interface s power and ground pins.



Similar documents
JTAG-HS2 Programming Cable for Xilinx FPGAs. Overview. Revised January 22, 2015 This manual applies to the HTAG-HS2 rev. A

DK40 Datasheet & Hardware manual Version 2

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

Arduino Motor Shield (L298) Manual

WICE-SPI Hardware Operation Manual

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

RC2200DK Demonstration Kit User Manual

Pololu DRV8835 Dual Motor Driver Shield for Arduino

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

PolyBot Board. User's Guide V1.11 9/20/08

DS1307ZN. 64 x 8 Serial Real-Time Clock

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

The Programming Interface

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

EZmoto V2. Product description Rev. 6 10/01/2014. EZmoto V2 Product description Rev.6 10/01/2014

Web Site: Forums: forums.parallax.com Sales: Technical:

Options for ABB drives, converters and inverters. User s manual FDPI-02 diagnostics and panel interface

xpico Wi-Fi SMT Embedded Device Server Integration Guide

Cable Guide. Click on the subject to view the information. Digi Cables Building Cables General Cable Information

PN532 NFC RFID Module User Guide

AN460 Using the P82B96 for bus interface

RS-232 COMMUNICATIONS

MFRD52x. Mifare Contactless Smart Card Reader Reference Design. Document information

Universal EXTension connector (UEXT)

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

UniPi technical documentation REV 1.1

Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme Alle Rechte vorbehalten

USB to serial chip CH340

1000BASE-T and 10/100/1000BASE-T Copper SFP Transceiver

XPort Universal Demo Board User Guide

Doc: page 1 of 17

Selecting and Implementing H-Bridges in DC Motor Control. Daniel Phan A

ABB Drives. User s Manual HTL Encoder Interface FEN-31

Allows the user to protect against inadvertent write operations. Device select and address bytes are Acknowledged Data Bytes are not Acknowledged

Bluetooth UART/RS232 Module

HARDWARE MANUAL. BrightSign HD120, HD220, HD1020. BrightSign, LLC Lark Ave., Suite 200 Los Gatos, CA

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

Bi-directional level shifter for I²C-bus and other systems.

Cable Pinouts. SRP I/O Module

Hardware Specifications of V2AF Series Hybrid Card Reader

SyncLink GT2/GT4 Serial Adapter

Three Channel Optical Incremental Encoder Modules Technical Data

A DIY Hardware Packet Sniffer

FLYPORT Wi-Fi G

Advanced Data Capture and Control Systems

Raspberry Pi. Hans- Petter Halvorsen, M.Sc.

8 by 8 dot matrix LED displays with Cascadable Serial driver B32CDM8 B48CDM8 B64CDM8 General Description

PCAN-MicroMod Evaluation Test and Development Environment for the PCAN-MicroMod. User Manual. Document version ( )

Real Time Clock USB Evaluation Board V3.0

DMX-K-DRV. Integrated Step Motor Driver + (Basic Controller) Manual

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

CAUTION! THE 7I29 USES VOLTAGE AND POWER LEVELS THAT REPRESENT A HAZARD TO LIFE AND LIMB.

Wireless Security Camera

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

2-Port RS232/422/485 Combo Serial to USB2.0 Adapter (w/ Metal Case and Screw Lock Mechanism) Installation Guide

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

SM1231 USER GUIDE SM1231 RF MODULE USER GUIDE

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

SV 210 Signal Splitter and Incremental Converter for Sine-Cosine Encoders

Two mechanical buttons Two user LEDs Four expansion headers. Board controller with USB interface. One power LED and one status LED

Micro-Step Driving for Stepper Motors: A Case Study

MILE Encoder for EC 90 flat

MicroVGA - Device Overview

dlan Green PHY Module

ABB Drives. User s Manual. Pulse Encoder Interface Module RTAC-01

Sam440ep-flex User Guide

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

1. Introduction IIM7010A Features. WIZnet Inc.

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

HAC-LM Series Low Power Data Radio Module

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

ACR120 Technical Specifications version 2.9 November 2005

Future Technology Devices International Ltd

SYSTEM 4C. C R H Electronics Design

DS1621 Digital Thermometer and Thermostat

Introducing AVR Dragon

INTEGRATED CIRCUITS DATA SHEET. SAA digit LED-driver with I 2 C-Bus interface. Product specification File under Integrated Circuits, IC01

HAC-UM Series SHENZHEN HAC TECHNOLOGY CO., LTD. HAC-UM Series. Version 2.3C SHENZHEN HAC TELECOM TECHNOLOGY CO., LTD

DS1621 Digital Thermometer and Thermostat

Connectors and Cables

Application. Characteristics RTU560. Data Sheet Communication Unit 560CMD11. Communication Unit 560CMD11

The quadrature signals and the index pulse are accessed through five inch square pins located on 0.1 inch centers.

SafeSPI - Serial Peripheral Interface for Automotive Safety

Manual Serial PCI Cards

Strato Pi Hardware Guide

Copyright 2012 by Fen Logic Ltd. All rights reserved.

Android Controlled Based Interface

ZL30136 GbE and Telecom Rate Network Interface Synchronizer

RS-232/422/485, Power over Ethernet

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence :

KTA-223 Arduino Compatible Relay Controller

Transcription:

Digilent Pmod Interface Specification Revision: November 20, 2011 1300 NE Henley Court, Suite 3 Pullman, WA 99163 (509) 334 6306 Voice (509) 334 6300 Fax Introduction The Digilent Pmod interface is used to connect low frequency, low I/O pin count peripheral modules to host controller boards. There are six-pin and twelve-pin versions of the interface defined. The six-pin version provides four digital I/O signal pins, one power pin and one ground pin. The twelve-pin version provides eight I/O signal pins, two power pins and two ground pins. The signals of the twelve-pin version are arranged so that it provides two of the six-pin interfaces stacked. In general, Pmod peripheral modules can plug directly into connectors on the host controller board, or be connected to the controller board via six-pin or twelve-pin cables. Two six-pin peripheral modules can be connected to a single twelve-pin host connector via a twelve-pin to dual six-pin splitter cable. Similarly, a single twelve-pin peripheral module can be connected to two six-pin host connectors via the same twelve-pin to dual six-pin splitter cable. Pmod peripheral modules are powered by the host via the interface s power and ground pins. The Pmod interface is not intended for high frequency operation, however, using RJ45 connectors and twisted pair Ethernet cable, signals have been sent reliably at 24Mhz and distances of up to 4 meters. In addition to the six and twelve pin interfaces, the Pmod peripheral module interface also encompasses a variant using the I 2 C interface, and two or four wire MTE cables. In some cases, an I 2 C connected module can be connected directly to a Pmod connector on a system board, but generally the connection will be via MTE cables. The Pmod I 2 C interface provides the two I 2 C signals, SDA and SCL, plus power and ground. Electrical Specifications The digital signal characteristics are not specified. However, the general expectation is that a 3.3V logic power supply will be used and the signals will conform to LVCMOS 3.3V or LVTTL 3.3V logic conventions. The driver current source/sink capability isn t specified and depends on the capabilities of the specific system board or module. The I/O pins on the system board are generally directly driven by the FPGA or microcontroller. The I/O pins on Xilinx FPGAs generally have symmetrical 24mA source/sink capability. The drive capability of microcontrollers is generally less and some of them are not symmetrical. The drive strength for microcontroller pins is generally in the range +/-5mA to +/-10mA. The I/O pins on system board Pmod connectors generally have ESD protection diodes and 200ohm series resistors. The resistors are to limit short circuit currents if pins are inadvertently shorted, or to protect against driver conflicts if outputs are inadvertently connected together. Peripheral modules may be connected to the host via cables of up to 18 in length. The drivers on the host or peripheral module should have sufficient drive strength to drive this length of cable at Doc: 510-002 page 1 of 11

whatever the operating speed of the interface on the Pmod is expected to be. In general, this means that the driver should be able to source or sink at least 5mA of current. Peripheral modules may not assume that pull-up or pull-down resistors are present on the host and must provide for proper termination of inputs, if necessary, and may not use open drain or open collector outputs, unless the pull-up is provided on the peripheral module itself. For I 2 C connected modules, the digital signal characteristics conform to the I 2 C specification. Either 5V or 3.3V levels can be used on most modules, but Digilent system boards operate at 3.3V, and the modules are primarily intended for operation at 3.3V The driver current sink capability isn t specified and depends on the capabilities of the specific system board or module. The I/O pins on the system board are generally directly driven by the FPGA or microcontroller. The I/O pins on Xilinx FPGAs generally have symmetrical 24mA source/sink capability. The drive capability of microcontrollers is generally less and some of them are not symmetrical. The I 2 C bus is an open collector bus. The pull-up resistors used to provide the logic high level are not provided on the modules and therefore must be provided on the system board. Some Digilent system boards use current mirrors rather than simple pull-up resistors to provide the logic high level to allow driving longer busses with greater capacitive load. Microcontroller system boards are generally provided with dedicated I 2 C connectors and provide pullup resistors that are jumper selectable to be in or out of circuit. FPGA based system boards generally do not provide dedicated I 2 C connectors, and depend on the internal pull-up resistors in the FPGA I/O blocks to provide the pull-ups. Power Supply The power pins of the interface provide power from the host to the peripheral. The complete interface requires that the host provide the ability to switch the voltage on the power pins between 5.0V and 3.3V. A reduced functionality subset of the spec. allows the host to provide only 3.3V at the power supply pins, with no ability to switch. On the twelve-pin version of the interface, both power supply pins switch together and always supply the same voltage. These pins may be shorted together at either the host end or the peripheral end. On I 2 C connected modules, the power pins of the interface provide power from the system board to the peripheral module. The supplied voltage will generally be 3.3V, but operation at 5V is supported by some modules. The connector on the modules provides two sets of the I2C signals and the power and ground pins to allow daisy chaining multiple modules onto the bus. The two power pins and the two ground pins may be shorted together respectively at either the system board end or the peripheral module end of the connection. The amount of power a peripheral module is allowed to draw from the host is not specified, but should not be assumed to be more than approximately 100mA. www.digilentinc.com page 2 of 11

Physical Connection Standard Pmod connections are made using standard 100mil spaced, 25mil square, pin-header style connectors. The peripheral module board will have a male connector. This will typically be a right angle connector, at the board edge, for direct connection to a host board, This can be a straight male connector inboard from the board edge if only cable connections will be used. The host board will typically have a right angle female connector at the board edge for direct connection of peripheral module boards. This connector can be a straight male connector inboard from the board edge if only cable connections will be used. When multiple connectors are placed side-by-side along a board edge (either host or peripheral), the connectors are spaced 0.9, center-to-center. This allows for 0.8 wide modules to be plugged sideby-side into a host without interference. Peripheral modules with multiple connectors must also have them spaced on 0.9 centers for direct connection to a host. Peripheral modules with a single connector that are intended for direct connection to a host, or that are intended to fit into the Pmod mounting clip, should be 0.8 wide. There should also be >25mil of clearance from the board edge to any components to allow clearance for the Pmod clip to latch the board edge. The connector should be centered along the 0.8 side of the module. Peripheral modules that are more than 0.8 wide can be directly connected to a host in some cases but may interfere with adjacent connectors on the host. The following diagrams show physical connector placement and pin numbering conventions for the host (system board) and peripheral module sides of the connection. Note that the pin numbering conventions for the 2x6 connectors are non-standard and are mirrored between the host connector and the peripheral board connector. Host Peripheral 1 2 3 4 5 6 1 2 3 4 5 6 0.40" Right angle female connector 0.15" Right angle male connector Fig 1: Standard Six-Pin Connector Placement www.digilentinc.com page 3 of 11

Host Peripheral 1 7 7 1 2 8 8 2 3 9 9 3 4 10 10 4 5 11 11 5 6 12 12 6 0.45" 0.20" Right angle female connector Right angle male connector Fig 2: Standard Twelve-Pin Connector Placement The connection standard for system boards that provide I 2 C connectors is to use a 2x4 male, 100 mil spaced, pin header connector with straight pins. This connector is generally not near a board edge, as the intent is to use cable connections rather than directly plugging the module into the connector. The connector provides two sets of the I 2 C signals, power and ground, so that the I 2 C bus can be formed by daisy chaining system boards or Pmods. The system board can either be the root of one or two daisy chains, or in the middle of a daisy chain. Pmods with I 2 C interfaces will also have a 2x4 pin header connector so that the module can be included in a daisy chain of modules and system boards. The I 2 C connector can either be a right angle male connector at the board edge if reason to restrict overall module height or a straight male connector anywhere on the board if there is no reason to restrict module height. Some modules have both an SPI and an I 2 C interface. In this case the SPI interface will appear on a 2x6 right angle male connector conforming to the above placement conventions, and the I 2 C interface will appear on a 2x4 straight male connector inboard from the board edge. The following diagram shows basic PCB dimensions, physical connector placement and pin numbering conventions for the module circuit boards intended to make use of Pmod clips or for direct connection to system boards. Note that the connector is offset from the center of the board. This offset allows I 2 C modules to be plugged into Pmod connectors on some boards with the appropriate pin offset so that the power and ground pins will mate appropriately and keep the module within the same geometry as a Pmod. www.digilentinc.com page 4 of 11

I 2 C Module PCB 0.80" 0.30" 1 3 5 7 2 4 6 8 0.20" Right angle male connector Fig 3: Standard Module Dimensions Some early Digilent microcontroller based system boards have different connector layouts for the I 2 C connectors. Some have two sets of 2x2 connectors, one for signals, and the other for power and ground. One board has a 2x4 connector, but with the power and grounds reversed. All system boards going forward should use a 2x4 connector with the signal assignments as described below in the I/O Signal Assignment Conventions section. Digilent has 2-wire MTE cables and a four wire cable specifically intended for I 2 C connections. The four wire cable has a 4-position MTE shell on one end and two 2-position MTE shells on the other end. This cable can be used to connect any Pmod with a standard (four wire) I 2 C connector to any Digilent system board. www.digilentinc.com page 5 of 11

I/O Signal Assignment Conventions The following define standard signal assignments to the I/O pins on the connector for certain standard interfaces. In the following, the direction is defined from the perspective of the host: i.e. Out means from the host to the peripheral; In means from the peripheral to the host. Generally the host is a Digilent system board (e.g. Nexys II or Cerebot 32MX4). The peripheral will generally be a Digilent Pmod peripheral module. I2C Interface Pin Signal Pin Signal Number Number 1 SCL 2 SCL 3 SDA 4 SDA 6 GND 7 VCC 8 VCC Pmod Interface Type 1 (GPIO) This interface is used for general purpose logic. The host must provide the ability for all signals to be bi-directional logic signals. The peripheral may use any of the pins as inputs, outputs, or bidirectional. 1 IO1 In/Out 2 IO2 In/Out 3 IO3 In/Out 4 IO4 In/Out Pmod Interface Type 2 (SPI) This provides a Serial Peripheral Interface (SPI) port. The host generally acts as an SPI master device and the peripheral module generally acts as an SPI slave device. When this interface is placed on a 12-pin connector on a host, it should use pins 1-6 (i.e. the upper row of pins). 1 SS Out 2 MOSI Out 3 MISO In 4 SCK Out SS - Slave Select. Active low to enable slave device MOSI - Master Out Slave In. Data from master to slave www.digilentinc.com page 6 of 11

MISO SCK - Master In Slave Out. Data from slave to master - Serial clock. Data clock from master to slave Pmod Interface Type 2A (expanded SPI) This provides an SPI interface plus additional control signals. Many SPI devices provide additional control or status signals that can provide additional functions between the master and slave devices. The host generally acts as an SPI master device and the peripheral module generally acts as an SPI slave device. 1 SS Out 2 MOSI Out 3 MISO In 4 SCK Out 7 INT In 8 RESET Out 9 N/S N/S 10 N/S N/S 11 GND 12 VCC SS MOSI MISO SCK INT RESET N/S - Slave Select. Active low to enable slave device - Master Out Slave In. Data from master to slave - Master In Slave Out. Data from slave to master - Serial clock. Master provides the clock to shift the data - Interrupt signal from slave to master - Reset signal for master to reset slave - not-specified, depending on the module, these pins may be unconnected or additional module specific inputs or outputs. Pmod Interface Type 3 (UART) This provides a UART interface with optional RTS/CTS handshaking. When this interface is placed on a twelve-pin connector on a host, pins 1-6 should be used (i.e. the upper row of pins). The RTS/CTS handshaking signals are optional, and some Pmods do not use them. In this case, pins 1 & 2 are not used. NOTE: This interface definition is deprecated. System boards and peripheral module boards designed before 07/2010 use this signal definition. This has been superseded by Pmod Interface Type 4 below. When making connections between a Type 3 UART connection and a Type 4 UART connection, a flying lead cable or crossover cable is required. www.digilentinc.com page 7 of 11

1 CTS Out 2 RTS In 3 RXD In 4 TXD Out CTS RTS RXD TXD - Permission for peripheral to send data to host - Request from peripheral to send data to host - Data from peripheral to host - Data from host to peripheral Pmod Interface Type 4 (UART) This provides a UART interface with optional hardware flow control. When this interface is placed on a twelve-pin connector on a host, pins 1-6 should be used (i.e. the upper row of pins). The hardware flow control signals are optional, and some Pmods do not use them. In this case pins 1 & 4 are not used. The hardware flow control signal names are defined from the system board perspective. The RTS signal is an output indicating that the device (host or peripheral) is ready to receive data. The device asserts this signal low when it is ready to receive data. The CTS signal is an input to the device (host or peripheral). The device will only transmit data when the CTS input is asserted low. A peripheral module that uses hardware flow control will connect the host s RTS signal to its internal CTS input and the host s CTS signal to its internal RTS output. NOTE: This interface type supersedes the Type 3 UART interface. System and peripheral module boards designed after 07/2010 use this signal definition for UART connectors. When making connections between the Type 3 UART interface and the Type 4 UART interface, a flying lead cable or crossover cable is required. The change in UART signal definition from Type 3 UART to Type 4 UART was motivated by the fact that some microcontroller families (notable some Microchip PIC32 parts) have serial interface controllers that support both SPI operation and UART operation. This signal definition allows system boards using those microcontroller chips to have Pmod connectors that can support both SPI and UART on the same connector. www.digilentinc.com page 8 of 11

1 CTS In 2 TXD Out 3 RXD In 4 RTS Out CTS RTS RXD TXD - Device will only transmit when this signal is asserted - Device is ready to receive data - Data from peripheral to host - Data from host to peripheral Pmod Interface Type 4A (expanded UART) This provides a UART interface with optional hardware flow control plus additional control signals. The hardware flow control signals are optional, and some Pmods do not use them. In this case pins 1 & 4 are not used. The hardware flow control signal names are defined from the system board perspective. The RTS signal is an output indicating that the device (host or peripheral) is ready to receive data. The device asserts this signal low when it is ready to receive data. The CTS signal is an input to the device (host or peripheral). The device will only transmit data when the CTS input is asserted low. A peripheral module that uses hardware flow control will connect the host s RTS signal to its internal CTS input and the host s CTS signal to its internal RTS output. 1 CTS In 2 TXD Out 3 RXD In 4 RTS Out 7 INT In 8 RESET Out 9 N/S N/S 10 N/S N/S 11 GND 12 VCC CTS RTS RXD TXD INT RESET - Device will only transmit when this signal is asserted - Device is ready to receive data - Data from peripheral to host - Data from host to peripheral - Interrupt signal from peripheral to host - Reset signal for host to reset peripheral www.digilentinc.com page 9 of 11

N/S - not-specified, depending on the module, these pins may be unconnected or additional module specific inputs or outputs. Pmod Interface Type 5 (H-Bridge) This interface provides for controlling a single H-Bridge with motor speed sensing feedback. The DIR pin sets the rotational direction of the motor. The EN signal is pulse width modulated to control the effective voltage applied to the motor. EN is an active high signal, i.e. a high logic level enable current flow through the bridge. The SA and SB signals are quadrature encoder feedback signals used to sense the motor speed. These are square wave signals, whose frequency is proportional to motor rotational speed and that are in quadrature. (i.e. 90 out of phase). 1 DIR Out 2 EN Out 3 SA In 4 SB In DIR EN SA SB - Motor direction - Motor enable, active high - feedback sense A - feedback sense B Pmod Interface Type 6 (dual H-Bridge) This interface provides for controlling two independent H-Bridges. This can be used to control two brushed DC motors, or the two phases of a bi-polar stepper motor. 1 DIR1 Out 2 EN1 Out 3 DIR2 Out 4 EN2 Out DIR1 EN1 DIR2 EN2 - Motor/Phase 1 direction - Motor/Phase 1 enable, active high - Motor/Phase 2 direction - Motor/Phase 2 enable, active high www.digilentinc.com page 10 of 11

Revision History: 11/20/2011(Gene Apperson) Added descriptions for I 2 C interface. 05/05/2011(Gene Apperson) Formatted for public release 12/06/2010(Gene Apperson) Corrected pin number errors in descriptions of UART interfaces Minor rewording of several sections to improve clarity. 09/02/2010(Gene Apperson) Revised Electrical Specification section to add discussion of drive strength, ESD protection diodes and series current limiting resistors. Revised Physical Connection Standard section to add note about pin numbering conventions on 2x6 connectors. Added Pmod Interface Type 2A (expanded SPI) definition Deprecated Pmod Interface Type 3 (UART) Added Pmod Interface Type 4 (UART) definition Added Pmod Interface Type 4A (expanded UART) definition Changed H-Bridge Interface number from Type 4 to Type 5 Changed Dual H-Bridge Interface number from Type 5 to Type 6 05/14/2009(Gene Apperson) Created www.digilentinc.com page 11 of 11