element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum PiFace CAD: What are the really used PINs on the PI
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 14 replies
  • Answers 2 answers
  • Subscribers 685 subscribers
  • Views 2456 views
  • Users 0 members are here
  • pifacecad
  • hardware_documentation
  • conntection
  • custom_stackable
  • raspberry_pi
  • raspberry-pi
  • unused_signals
Related

PiFace CAD: What are the really used PINs on the PI

balearicdynamics
balearicdynamics over 10 years ago

I have investigated here and there without success until now. There is a lot of (good) documentation about the usage of the PiFace CAD display but I can't find what are the really used PINs on the Raspberry PI. In fact I see that this add-on board can be stacked (PiFace – PiFace Rack) but despite a wide software documentation it seems there is nothing about hardware connections. Maybe I ave searched in the wrong direction ....

 

Thanks in advance. Enrico

  • Sign in to reply
  • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago in reply to balearicdynamics

    First up, the PI Face boards are not using I2C, there using SPI (Look up MCP23S17 which is the chip used on both boards)

     

    Within the length of wires on the boards being stacked there should not be an issue regarding the basic electrical load

     

    I2C can have up to 127 different addressable devices on one line (Logically, not necessarily electrically due to loading etc). Some devices have a common address as well as a unique address allowing them to be talked to in parallel for mass updates or individually (DAC8574 Digital to Analog convertor for example)

     

    Some manufactures components have devices that have the same address as other manufactures so you need to pay attention to the data sheets

     

    the chips used on the PI Face boards come in two types, an I2C version (MCP23017) and a SPI Version (MCP23S17) http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf. The PIFAce boards only seem to use the SPI version

     

    PiFace Digital Boards only expose two of the address setting lines on the 16 bit expander (23S17) limiting the usable boards to only 4, not 8. Also the Piface Digital board using SPI, NOT I2C and uses CE0 to enable the board from the PI.

    The PI Face CAD is also using the MCP23S17 and is also therefore SPI and limited to 4 assuming it is using the same 2 jumpers on the address. this board uses CE1 to enable tote board though so does not conflict with the Digital Board

     

    If you have other SPI connected devices you will run into issues as the PI only supports 2 SPI devices logically. It is a feature of the MCP23S17 chips that allows having up to 8 technically on one SPI but the physical design of the PIFace Digital and Possibly CAD limit this to 4 on for each type (To Be confirmed for the CAD, but definitely true for the Digital)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 10 years ago in reply to Robert Peter Oakes

    Many thanks Peter, things are more clear. So, why the address setting on the Digital? What is the sense as they uses the SPI ? I supposed that SPI was also used in some way as the PiFace rack includes - as in their specifications - both I2C and SPI address settings.

     

    Then the question now moves on how to set a custom board with the SPI address instead of I2C. Or I am wrong and the address settings via jumpers are for the SPI and the I2C (why mentioned everywhere? Boh) is to be ignored.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago in reply to balearicdynamics

    As I explained, the PIFace boards use a chip (23S17) that can support upto 8 on the same chip select (Limited to 4 on the PiFace) Think of it as a sub address. when the command is sent to the SPI using CE0 for example, all the chips connected to CE0 listen to the command byte, it contains an address in it as well as the command, only the chips that have the hardware address pins set the same way as the address bits will respond to the command effectively increasing the available IO pins in multiples of 16 with a single Chip Enable line. Note that not all SPI chips support this feature, the MCP23S17 does.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 10 years ago in reply to Robert Peter Oakes

    Yep, got it. I have rad in detail the datasheet and I think that - thinking in the right direction, i.e. SPI usage - I can reach what I have in mind also with the PiFaceCAD installed.

     

    Thank you Peter.

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube