{"id":1776,"date":"2014-01-29T09:45:43","date_gmt":"2014-01-29T09:45:43","guid":{"rendered":"http:\/\/warc.org.uk\/?page_id=1776"},"modified":"2015-01-28T15:27:35","modified_gmt":"2015-01-28T15:27:35","slug":"1776-2","status":"publish","type":"page","link":"https:\/\/warc.org.uk\/?page_id=1776","title":{"rendered":"More on the Pi"},"content":{"rendered":"<h5>General Purpose Input\/Output<\/h5>\n<p>&nbsp;<\/p>\n<p>The Pi board has a 26 pin expansion header with 17 GPIO pins as well as +3.3V, +5V and GND supply lines.<\/p>\n<p>The default configuration provides 15 GPIO pins and a UART.<\/p>\n<p>The operating system also supports predefined alternate functions for some of the pins<\/p>\n<p>I\u00b2C (Integrated Circuit) is a two wire communication bus developed by Philips, for chip to chip communication.\u00a0 Commonly used for connecting sensors and port expanders.<\/p>\n<p>Serial Peripheral Interface (SPI) bus a synchronous serial data bus designed by Motorola.\u00a0 Commonly used in high speed applications such as digital audio, digital signal processing (DSP) and telecoms.<\/p>\n<p>UART, TXD and RXD.<\/p>\n<p>A Pulse Width Modulator (PWM).<\/p>\n<p>The OS makes the hardware available to a variety of high level program languages including Python, C, Java, BASIC, Perl and Bash shell scripts.<\/p>\n<p>Additional I\/O pins are available by hacking.<\/p>\n<p>&nbsp;<\/p>\n<h5>Serial Peripheral Interface<\/h5>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/warc.org.uk\/wp-content\/uploads\/2014\/01\/spi.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1790 alignleft\" src=\"https:\/\/warc.org.uk\/wp-content\/uploads\/2014\/01\/spi.jpg\" alt=\"spi\" width=\"277\" height=\"195\" srcset=\"https:\/\/warc.org.uk\/wp-content\/uploads\/2014\/01\/spi.jpg 277w, https:\/\/warc.org.uk\/wp-content\/uploads\/2014\/01\/spi-213x150.jpg 213w, https:\/\/warc.org.uk\/wp-content\/uploads\/2014\/01\/spi-150x105.jpg 150w\" sizes=\"auto, (max-width: 277px) 100vw, 277px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Full duplex communication.<\/p>\n<p>Higher throughput than I\u00b2C.<\/p>\n<p>Complete protocol flexibility for the bits transferred.<\/p>\n<p>Not limited to 8-bit words.<\/p>\n<p>Arbitrary choice of message size, content, and purpose.<\/p>\n<p>Extremely simple hardware interfacing.<\/p>\n<p>Typically lower power requirements than I\u00b2C.<\/p>\n<p>No arbitration or associated failure modes.<\/p>\n<p>Slaves use the master&#8217;s clock, and don&#8217;t need precision oscillators.<\/p>\n<p>Slaves don&#8217;t need a unique address \u2014 unlike I\u00b2C.<\/p>\n<p>Transceivers are not needed.<\/p>\n<p>Uses only four pins on IC packages, and wires in board layouts or connectors, much fewer than parallel interfaces.<\/p>\n<p>At most one unique bus signal per device (chip select); all others are shared.<\/p>\n<p>Signals are unidirectional allowing for easy isolation.<\/p>\n<p>Not limited to any maximum clock speed, enabling potentially high throughput.<\/p>\n<p>&nbsp;<\/p>\n<p><a title=\"Rasbperry Pi GPIO Pinout\" href=\"https:\/\/warc.org.uk\/?page_id=1794\">Now on to GPIO Pinout<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a title=\"The Raspberry Pi \u2013 An Introduction and more\" href=\"https:\/\/warc.org.uk\/?page_id=1762\">The Raspberry Pi \u2013 An Introduction and more<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>General Purpose Input\/Output &nbsp; The Pi board has a 26 pin expansion header with 17 GPIO pins as well as +3.3V, +5V and GND supply lines. The default configuration provides 15 GPIO pins and a UART. The operating system also supports predefined alternate functions for some of the pins I\u00b2C\u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/warc.org.uk\/?page_id=1776\">Continue reading<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":98,"featured_media":0,"parent":1762,"menu_order":0,"comment_status":"open","ping_status":"open","template":"templates\/template-page-with-intro.php","meta":{"footnotes":""},"class_list":["post-1776","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/warc.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/1776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/warc.org.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/warc.org.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/warc.org.uk\/index.php?rest_route=\/wp\/v2\/users\/98"}],"replies":[{"embeddable":true,"href":"https:\/\/warc.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1776"}],"version-history":[{"count":16,"href":"https:\/\/warc.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/1776\/revisions"}],"predecessor-version":[{"id":70690,"href":"https:\/\/warc.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/1776\/revisions\/70690"}],"up":[{"embeddable":true,"href":"https:\/\/warc.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/1762"}],"wp:attachment":[{"href":"https:\/\/warc.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}