Difference between revisions of "GPIO Pinout"
(→GPIO ordered by Header Pins) |
(→GPIO ordered by Signal Name) |
||
Line 216: | Line 216: | ||
==GPIO ordered by Signal Name== | ==GPIO ordered by Signal Name== | ||
− | + | <table border=1> | |
<th>Signal</th><th>Alt Function</th><th>J8</th><th>H1</th><th>H5</th> | <th>Signal</th><th>Alt Function</th><th>J8</th><th>H1</th><th>H5</th> | ||
<tr><td bgcolor="orange">3.3 VDC Power</td><td></td><td>1</td><td>1</td><td>3</td></tr> | <tr><td bgcolor="orange">3.3 VDC Power</td><td></td><td>1</td><td>1</td><td>3</td></tr> | ||
Line 222: | Line 222: | ||
<tr><td bgcolor="red">5 VDC Power</td><td></td><td>2</td><td>2</td><td>1</td></tr> | <tr><td bgcolor="red">5 VDC Power</td><td></td><td>2</td><td>2</td><td>1</td></tr> | ||
<tr><td bgcolor="red">5 VDC Power</td><td></td><td>4</td><td>4</td><td></td></tr> | <tr><td bgcolor="red">5 VDC Power</td><td></td><td>4</td><td>4</td><td></td></tr> | ||
− | <tr><td bgcolor="yellow">GPIO 2</td><td><b> | + | <tr><td bgcolor="yellow">GPIO 2</td><td><b>I2C1 SDA</b></td><td>3</td><td>3</td><td></td></tr> |
− | <tr><td bgcolor="yellow">GPIO 3</td><td><b> | + | <tr><td bgcolor="yellow">GPIO 3</td><td><b>I2C1 SCL</b></td><td>5</td><td>5</td><td></td></tr> |
<tr><td bgcolor="#cceecc">GPIO 4</td><td></td><td>7</td><td>7</td><td></td></tr> | <tr><td bgcolor="#cceecc">GPIO 4</td><td></td><td>7</td><td>7</td><td></td></tr> | ||
<tr><td bgcolor="#cceecc">GPIO 5</td><td></td><td>29</td><td></td><td></td></tr> | <tr><td bgcolor="#cceecc">GPIO 5</td><td></td><td>29</td><td></td><td></td></tr> | ||
<tr><td bgcolor="#cceecc">GPIO 6</td><td></td><td>31</td><td></td><td></td></tr> | <tr><td bgcolor="#cceecc">GPIO 6</td><td></td><td>31</td><td></td><td></td></tr> | ||
− | <tr><td bgcolor="#cceecc">GPIO 7</td><td><b> | + | <tr><td bgcolor="#cceecc">GPIO 7</td><td><b>SPI0 CE1</b></td><td>26</td><td>26</td><td></td></tr> |
− | <tr><td bgcolor="#cceecc">GPIO 8</td><td><b> | + | <tr><td bgcolor="#cceecc">GPIO 8</td><td><b>SPI0 CE0</b></td><td>24</td><td>24</td><td></td></tr> |
− | <tr><td bgcolor="#cceecc">GPIO 9 </td><td><b> | + | <tr><td bgcolor="#cceecc">GPIO 9 </td><td><b>SPI0 MISO</b></td><td>21</td><td>21</td><td></td></tr> |
− | <tr><td bgcolor="#cceecc">GPIO 10</td><td><b> | + | <tr><td bgcolor="#cceecc">GPIO 10</td><td><b>SPI0 MOSI</b></td><td>19</td><td>19</td><td></td></tr> |
− | <tr><td bgcolor="#cceecc">GPIO 11</td><td><b> | + | <tr><td bgcolor="#cceecc">GPIO 11</td><td><b>SPI0 SCLK</b></td><td>23</td><td>23</td><td></td></tr> |
<tr><td bgcolor="#cceecc">GPIO 12</td><td><b>PWM</b></td><td>32</td><td></td><td></td></tr> | <tr><td bgcolor="#cceecc">GPIO 12</td><td><b>PWM</b></td><td>32</td><td></td><td></td></tr> | ||
<tr><td bgcolor="#cceecc">GPIO 13</td><td></td><td>33</td><td></td><td></td></tr> | <tr><td bgcolor="#cceecc">GPIO 13</td><td></td><td>33</td><td></td><td></td></tr> | ||
− | <tr><td bgcolor="blue">GPIO 14</td><td><b>TXD</b></td><td>8</td><td>8</td><td></td></tr> | + | <tr><td bgcolor="blue">GPIO 14</td><td><b>UART0 TXD</b></td><td>8</td><td>8</td><td></td></tr> |
− | <tr><td bgcolor="blue">GPIO 15</td><td><b>RXD</b></td><td>10</td><td>10</td><td></td></tr> | + | <tr><td bgcolor="blue">GPIO 15</td><td><b>UART0 RXD</b></td><td>10</td><td>10</td><td></td></tr> |
<tr><td bgcolor="#cceecc">GPIO 16</td><td></td><td>36</td><td></td><td></td></tr> | <tr><td bgcolor="#cceecc">GPIO 16</td><td></td><td>36</td><td></td><td></td></tr> | ||
<tr><td bgcolor="#cceecc">GPIO 17</td><td></td><td>11</td><td>11</td><td></td></tr> | <tr><td bgcolor="#cceecc">GPIO 17</td><td></td><td>11</td><td>11</td><td></td></tr> |
Revision as of 04:26, 22 January 2015
Contents
General Purpose Input Output (GPIO)
Resources:
Notes:
- GPIO pins are 3.3 volt logic levels and are not tolerant of 5V levels
- GPIO properties can be set as a block (GPIO pins 0-27 are in the same block) not per pin.
- Can interrupt based on high/low/rise/fall/change.
- Input hysteresis (Schmitt trigger) can be on or off,
- Output slew rate can be fast or limited, and
- Source and sink currents are configurable from 2 mA up to 16 mA.
Color Legend
Color Legend | |
---|---|
3.3 VDC Power | Serial Console/Power |
5 VDC Power | HX711 Scale |
Ground | I2C Sensors |
Unused | I2S Audio |
GPIO ordered by Header Pins
The first 26 pins on J8 (A+ and B+ models) are the same as H1 on the A and B models.
|
|
|
|
|
H5 is only on the A and B models. GPIO 28-31 are not available on the + models. These signals should probably not be used.
|
|
|
|
|
GPIO ordered by Signal Name
Signal | Alt Function | J8 | H1 | H5 |
---|---|---|---|---|
3.3 VDC Power | 1 | 1 | 3 | |
3.3 VDC Power | 17 | 17 | ||
5 VDC Power | 2 | 2 | 1 | |
5 VDC Power | 4 | 4 | ||
GPIO 2 | I2C1 SDA | 3 | 3 | |
GPIO 3 | I2C1 SCL | 5 | 5 | |
GPIO 4 | 7 | 7 | ||
GPIO 5 | 29 | |||
GPIO 6 | 31 | |||
GPIO 7 | SPI0 CE1 | 26 | 26 | |
GPIO 8 | SPI0 CE0 | 24 | 24 | |
GPIO 9 | SPI0 MISO | 21 | 21 | |
GPIO 10 | SPI0 MOSI | 19 | 19 | |
GPIO 11 | SPI0 SCLK | 23 | 23 | |
GPIO 12 | PWM | 32 | ||
GPIO 13 | 33 | |||
GPIO 14 | UART0 TXD | 8 | 8 | |
GPIO 15 | UART0 RXD | 10 | 10 | |
GPIO 16 | 36 | |||
GPIO 17 | 11 | 11 | ||
GPIO 18 | PCM_CLK | 12 | 12 | |
GPIO 19 | PCM_FS | 35 | ||
GPIO 20 | PCM_DIN | 38 | ||
GPIO 21 | PCM DOUT | 40 | ||
GPIO 22 | 15 | 15 | ||
GPIO 23 | 16 | 16 | ||
GPIO 24 | 18 | 18 | ||
GPIO 25 | 22 | 22 | ||
GPIO 26 | 37 | |||
GPIO 27 | 13 | 13 | ||
GPIO 28 | I2C0_SDA | 3 | ||
GPIO 29 | I2C0_SCL | 4 | ||
GPIO 30 | 5 | |||
GPIO 31 | 6 | |||
I2C EEPROM ID_SD | 27 | |||
I2C EEPROM ID_SC | 28 | |||
Ground | 6 | 6 | 7 | |
Ground | 9 | 9 | 8 | |
Ground | 14 | 14 | ||
Ground | 20 | 20 | ||
Ground | 25 | 25 | ||
Ground | 30 | |||
Ground | 34 | |||
Ground | 39 |