Digilent Pmod Hat Adapter User Manual

Pmod HAT Adapter

Pmod HAT Adapter

The Pmod HAT Adapter is a device that allows you to connect
Pmods to your Raspberry Pi board. It is compatible with all
Raspberry Pi boards that use the 40-pin GPIO connector.

Features:

  • External Power Jack (J2) for powering the Pmod HAT adapter and
    the attached Raspberry Pi
  • Jumpers JP1 & JP2 to enable pullup resistors for the Pmod
    Port JB I2C pins when shorted
  • Jumper JP3 to enable writing to the onboard EEPROM containing
    device tree fragment and other information used to configure the
    Raspberry Pi OS and drivers (for advanced use only)

Power:

The Pmod HAT Adapter can be powered in two ways:

  1. From the Raspberry Pi through the 40-pin GPIO connector’s two
    5V pins
  2. From an external 5V supply through the power jack. The external
    supply must be able to provide 1.3 Amps of current.

Important! Never connect both the Pmod HAT
Adapter and Raspberry Pi’s power supplies at the same time. When
changing power supplies, make sure to first fully disconnect the
original supply.

Software Support:

The DesignSpark Pmod Library by RS Components can be used with a
Raspberry Pi to control Pmods through the Pmod HAT Adapter using
the Python programming language. Documentation and downloads for
this library can be found here.

Pinout Tables:

Raspberry Pi 40-Pin Connector PinoutPmod Pin
1N/C
3JB10
5JB9
7JC7
9GND
11JC4
13N/C
15N/C
17N/C
19JB2
21JB3
23JB4
25GND
27N/C
29JC9
31JC10
33JB8
35JA7
37JB7
39GND
Raspberry Pi 40-Pin Connector PinoutPmod Pin
2N/C
4N/C
6GND
8JC2
10JC3
12JA10
14GND
16N/C
18N/C
20GND
22N/C
24JA1
26JB1
28N/C
30GND
32JC8
34GND
36JC1
38JA9
40JA8

1300 Henley Court Pullman, WA 99163
509.334.6306 www.store. digilent.com https://www.rs-online.com/designspark/home
PmodTM HAT Adapter Reference Manual
This manual applies to the Pmod HAT Adapter Rev. B

Overview
The Pmod HAT Adapter makes it easy to connect Digilent Pmods to a Raspberry Pi. It supports plug-and-play functionality, only requiring that the host Raspberry Pi be booted with the Pmod HAT attached. The Pmod HAT has three 2×6 Digilent Pmod ports and provides access to additional I/O available via the Raspberry Pi 40pin GPIO connector. The Pmod HAT Adapter comes with example Python libraries hosted on DesignSpark. See the Software Support section below for more information.

The Pmod HAT Adapter RS Stock No 1448419

Features include:
· Provides access to full line of Digilent Pmod peripheral modules.
· Enables use of up to three Pmods at a time. · Supports SPI, UART, I2C, and GPIO connections. · Optionally powered through a 5V barrel jack. · Follows Raspberry Pi HAT specification. See
the Raspberry Pi HAT Introduction for more details.
The Pmod HAT Adapter is compatible with all Raspberry Pi boards that use the 40pin GPIO connector:
· Raspberry Pi Model A+ · Raspberry Pi Model B+ · Raspberry Pi 2 B · Raspberry Pi 3 B · Raspberry Pi Zero W · Raspberry Pi Zero

SKU: 410-366
Downloaded from Arrow.com.

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

Page 1 of 4

PmodTM HAT Adapter Reference Manual
1 Functional Description
1.1 Connectors and Jumpers
40 Pin Raspberry Pi GPIO Connector (J1): This connector is used to attach the Pmod HAT to the host Raspberry Pi and provide access to each of the connector pins. Most of these 40 pins are shared with the Pmod ports. The Pmod ports are not intended to be used simultaneously with an additional HAT. However, five GPIO pins (22-25 and 27) are unused by the Pmod HAT Adapter. These pins are available for use by other HATs or as user GPIO. Pmod port pins are connected to the 40-pin GPIO connector as seen in the Pinout Table Appendix.
External Power Jack (J2): This connector can be used to provide power to the Pmod HAT adapter and the attached Raspberry PI. See the Power section below for more information.
Pmod Port JA: The first of the three 2×6 Pmod host ports, this port supports SPI and GPIO Pmods.
Pmod Port JB: The second of the three 2×6 Pmod host ports, this port supports SPI and GPIO Pmods, as well as 6pin I2C Pmods on the bottom row.
Pmod Port JC: The third of the three 2×6 Pmod host ports, this port supports UART and GPIO Pmods.
Jumpers JP1 & JP2: These jumpers enable pullup resistors for the Pmod Port JB I2C pins when shorted.
Jumper JP3: This jumper enables writing to the onboard EEPROM containing the device tree fragment and other information used to configure the Raspberry Pi OS and drivers. Shorting this jumper is for advanced use only. See the Raspberry Pi HAT Introduction for more details.
1.2 Power
The Pmod HAT Adapter can be powered either from the Raspberry Pi through the 40-pin GPIO connector’s two 5V pins, or from an external 5V supply through the power jack. If an external supply is used, it must be able to provide 1.3 Amps of current. In addition, each Pmod GPIO pin can supply at most 16mA of current.

Important!
Make sure to never connect both the Pmod HAT Adapter and Raspberry Pi’s power supplies at the same time. When changing power supplies, make sure to first fully disconnect the original supply

2 Software Support
RS Components has produced the DesignSpark Pmod Library which can be used with a Raspberry Pi to control Pmods through the Pmod HAT Adapter using the Python programming language. Documentation and downloads for this library can be found at the following locations:
· Python library at Python.org. · Documentation and installation instructions on Readthedocs.io. · Source code at Github.com. · RS Components Stock No 1448419

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
Downloaded from Arrow.com.

Page 2 of 4

PmodTM HAT Adapter Reference Manual
Appendix: Pinout Tables
Raspberry Pi 40-Pin Connector Pinout

Image Courtesy of the Raspberry Pi Foundation licensed under CC BY-SA.

40-Pin GPIO Connector Pin #
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39

Bottom Row 40-Pin GPIO
Connector Pin Name 3V3
GPIO02 GPIO03 GPIO04
GND GPIO17 GPIO27 GPIO22
3V3 GPIO10 GPIO09 GPIO11
GND ID EEPROM
GPIO05 GPIO06 GPIO13 GPIO19 GPIO26
GND

Pmod Pin
N/C JB10 JB9 JC7 GND JC4 N/C N/C N/C JB2 JB3 JB4 GND N/C JC9 JC10 JB8 JA7 JB7 GND

40-Pin GPIO Connector Pin #
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40

Top Row 40-Pin GPIO
Connector Pin Name 5V 5V GND
GPIO14 GPIO15 GPIO18
GND GPIO23 GPIO24
GND GPIO25 GPIO08 GPIO07 ID EEPROM
GND GPIO12
GND GPIO16 GPIO20 GPIO21

Pmod Pin
N/C N/C GND JC2 JC3 JA10 GND N/C N/C GND N/C JA1 JB1 N/C GND JC8 GND JC1 JA9 JA8

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
Downloaded from Arrow.com.

Page 3 of 4

PmodTM HAT Adapter Reference Manual
Pmod Pinout Table

Pmod Pin # 1 2 3 4 7 8 9 10

JA 40-Pin GPIO Connector Pin #
24 19 21 23 35 40 38 12

40-Pin GPIO Connector Pin Name SPI0_CE0/GPIO08 SPI0_MOSI/GPIO10 SPI0_MISO/GPIO09 SPI0_CLK/GPIO11
PCM_FS/GPIO19/PWM1 PCM_DOUT/GPIO21/GPCLK1 PCM_DIN/GPIO20/GPCLK0
PCM_CLK/GPIO18/PWM0

Pmod Pin # 1 2 3 4 7 8 9 10

JB 40-pin GPIO Connector Pin #
26 19 21 23 37 33 5 3

40-Pin GPIO Connector Pin Name SPI0_CE1/GPIO07 SPI0_MOSI/GPIO10 SPI0_MISO/GPIO09 SPI0_CLK/GPIO11 GPIO26 PWM1/GPIO13 SCL1/GPIO03* SDA1/GPIO02*

Pmod Pin # 1 2 3 4 7 8 9 10

JC 40-Pin GPIO Connector Pin #
36 8 10 11 7 32 29 31

40-Pin GPIO Connector Pin Name CTS0/GPIO16 TXD0/GPIO14 RXD0/GPIO15 RTS0/GPIO17
GPCLK0/GPIO04 PWM0/GPIO12 GPCLK1/GPIO05 GPCLK2/GPIO06

* Pullup resistors for pins SCL1 and SDA1 can be enabled by shorting jumpers JP1 and JP2, respectively.
Pins #5 and #11 of each Pmod port are tied to Ground. Pins #6 and #12 of each Pmod port are tied to the HAT Adapter’s 3V3 rail.

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
Downloaded from Arrow.com.

Page 4 of 4

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals