Roboaudiostix I/O pins
From GumstixDocsWiki
Contents |
Top of RoboAudioStix
This photo shows the top of the RoboAudioStix board. The black circles correspond to ground pins, and the blue squares are around pin 1. For the 2 x N connectors, the even numbered pins are on the egde of the board, and the odd numbered pins are towards the inside of the board
Bottom of RoboAudioStix
This photo shows the bottom of the RoboAudioStix board.
I/O Pins
Looking at the top of the roboaudiostix, and starting in the top left corner, each section of pins will be described.
Pulse Width Modulation (PWM)
The PWM pins have the center row of pins connected to V_MOTOR, which is jumpered to the BOARD connector. This feature was designed to allow R/C servos to be plugged in directly to the robostix. If you plan on using servos on the PWM pins, then you should cut the jumper and provide a separate supply for driving the servos.
| Pin | Label | GPIO | Function | Description |
|---|---|---|---|---|
| 1 | PWM 1A | Port B.5 | OC1A | Output Compare Match A for Timer 1 |
| 2 | PWM 1B | Port B.6 | OC1B | Output Compare Match B for Timer 1 |
| 3 | PWM 1C | Port B.7 | OC1C or OC2 | Output Compare Match C for Timer 1, or Output Compare Match for Timer 2 |
| 1 | PWM 3A | Port E.3 | OC3A or AIN1 | Output Compare Match A for Timer 3 or Analog Comparator Negative Input |
| 2 | PWM 3B | Port E.4 | OC3B or INT4 | Output Compare Match B for Timer 3 or External Interrupt 4 |
| 3 | PWM 3C | Port E.5 | OC3C or INT5 | Output Compare Match C for Timer 3 or External Interrupt 5 |
MOTOR Power
The two pin MOTOR connector is used to provide power to the center row of the PWM pins (typically used for servos). The pin at the edge of the board is ground and the pin towards the inside of the board is positive (this is backwards from the robostix).
There is a hole labelled V0 right next to the positive MOTOR pin. V0 connects to BOARD. If you want the center row of pins on the PWM connectors to be connected to BOARD, then install a jumper between V0 and the MOTOR positive hole.
BOARD Power
The two pin board connector is used to provide power to the robostix. The pin next to the edge of the board is ground, and the pin towards the inside of the board is positive.
GPIO 5V B
The GPIO_5V_B 2x5 header contains 5v GPIO lines connected to the ATMega128.
| Pin | Name | GPIO | Description |
|---|---|---|---|
| 1 | OC0 | Port B.4 | Output Compare Match for Timer 0 |
| 2 | XCK1 | Port D.5 | USART1 External Clock Input/Output |
| 3 | MISO | Port B.3 | SPI - Master In Slave Out |
| 4 | PEN | Programming Enable (normally unconnected) | |
| 5 | MOSI | Port B.2 | SPI - Master Out Slave In ~hs |
| 6 | PG0 | Port G.0 | General Purpose I/O pin |
| 7 | SCK | Port B.1 | SPI - Clock |
| 8 | PG1 | Port G.1 | General Purpose I/O pin |
| 9 | SS | Port B.0 | SPI - Slave Select |
| 10 | PG2 | Port G.2 | General Purpose I/O pin |
ADC ATMega
The 2x5 ADC_ATMEGA header contains 5v ADC pins connected to the ATMega128.
| Pin | Name | GPIO | JTAG |
|---|---|---|---|
| 1 | ADC1 | Port F.1 | |
| 2 | ADC0 | Port F.0 | |
| 3 | ADC3 | Port F.3 | |
| 4 | ADC2 | Port F.2 | |
| 5 | ADC5 | Port F.5 | TMS |
| 6 | ADC4 | Port F.4 | TCK |
| 7 | ADC7 | Port F.7 | TDI |
| 8 | ADC6 | Port F.6 | TDO |
| 9 | AVCC | ||
| 10 | AGND |
Audio
The 2x3 audio header is connected to the USB1400.
| Pin | Name |
|---|---|
| 1 | UCB Out Right |
| 2 | Line In Right |
| 3 | VREFDRV |
| 4 | Ground |
| 5 | USB Out Left |
| 6 | Line In Left |
ADC UCB
The 2x5 ADC_USB header contains 3.3v ADC pins connected to the UCB1400.
| Pin | Name |
|---|---|
| 1 | AGND |
| 2 | AVDD |
| 3 | TSPX |
| 4 | AD0 |
| 5 | TSMX |
| 6 | AD1 |
| 7 | TSMY |
| 8 | AD2 |
| 9 | TSPY |
| 10 | AD3 |
Gumstix (aka console or FFUART)
The 1x4 GUMSTIX connector brings out a 5v version of the FFUART pins from the hirose connector.
| Pin | Signal |
|---|---|
| 1 | Gnd |
| 2 | FFUART TxD (GPIO 39) |
| 3 | +5 |
| 4 | FFUART RxD (GPIO 34) |
Note that on rev. 816 of the Roboaudiostix, the silk-screen on the solder side labels both pins 2 and 4 as "RXD". Pin 2 is still TxD as in the above table.
GPIO 5V A
The 2x10 GPIO_5V_A pins are 5v GPIO pins connected to the ATMega128.
| Pin | Name | GPIO | Dscription |
|---|---|---|---|
| 1 | PA0 | Port A.0 | General Purpose I/O pin |
| 2 | PC7 | Port C.7 | General Purpose I/O pin |
| 3 | PA1 | Port A.1 | General Purpose I/O pin |
| 4 | PC6 | Port C.6 | General Purpose I/O pin |
| 5 | PA2 | Port A.2 | General Purpose I/O pin |
| 6 | PC4 | Port C.5 | General Purpose I/O pin |
| 7 | PA3 | Port A.3 | General Purpose I/O pin |
| 8 | PC4 | Port C.4 | General Purpose I/O pin |
| 9 | PA4 | Port A.4 | General Purpose I/O pin |
| 10 | PC3 | Port C.3 | General Purpose I/O pin |
| 11 | PA5 | Port A.5 | General Purpose I/O pin |
| 12 | PC2 | Port C.2 | General Purpose I/O pin |
| 13 | PA6 | Port A.6 | General Purpose I/O pin |
| 14 | PC1 | Port C.1 | General Purpose I/O pin |
| 15 | PA7 | Port A.7 | General Purpose I/O pin |
| 16 | PC0 | Port C.0 | General Purpose I/O pin |
| 17 | T1 | Port D.6 | Timer/Counter 1, counter source |
| 18 | T2 | Port D.7 | Timer/Counter 2, counter source |
| 19 | VCC5 | +5 volts | |
| 20 | GND | Ground |
In System Programming (ISP)
The 2x5 ISP header is used for in system programming. These pins should only be used for in system programming when nothing is plugged into the hirose connector.
| Function | Pin | Pin | Function |
|---|---|---|---|
| PDI | 1 | 2 | +5 |
| Ground | 3 | 4 | Gnd |
| Reset | 5 | 6 | Gnd |
| SCK | 7 | 8 | Gnd |
| PDO | 9 | 10 | Gnd |
GPIO 3.3v
The 2x5 GPIO_3.3V header contains 3.3v GPIO pins connected to the UCB1400.
| Pin | Name |
|---|---|
| 1 | IO9 |
| 2 | IO8 |
| 3 | IO7 |
| 4 | IO6 |
| 5 | IO5 |
| 6 | IO4 |
| 7 | IO3 |
| 8 | IO2 |
| 9 | IO1 |
| 10 | IO0 |
UARTS
The 2x8 UARTS connector contains a 5v version of the STUART serial port (from the gumstix), two 5v uarts from the ATMega128, and a 5v I2C bus, which connects to both the robostix and the gumstix.
| Function | Pin | Pin | Function |
|---|---|---|---|
| STUART RxD (GPIO 46) | 1 | 2 | Gnd |
| +5 | 3 | 4 | robostix UART-0 TxD (Port E.1) |
| STUART TxD (GPIO 47) | 5 | 6 | +5 |
| Gnd | 7 | 8 | roostix UART-0 RxD (Port E.0) |
| robostix UART-1 RxD (Port D.2) | 9 | 10 | Gnd |
| +5 | 11 | 12 | I2C SDA (Port D.1) |
| robostix UART-1 TxD (Port D.3) | 13 | 14 | +5 |
| Gnd | 15 | 16 | I2C SCL (Port D.0) |
Internal Connections
This section describes the internal connections between the gumstix and the robostix.
| Gumstix | gs GPIO | rs GPIO | Description |
|---|---|---|---|
| L_DD11 | 69 | Port E.2 | ATM_IRQ - allows robostix to interrupt gumstix |
| L_DD12 | 70 | Enable for Vcc5 and AVcc voltage regulators | |
| L_DD14 | 72 | Active low enable for the '245s | |
| L_DD15 | 73 | robostix Reset | |
| NSSPCLK | 81 | Port B.1 | robostix SCK |
| NSSPFRAME | 82 | Port B.0 | robostix SS |
| X_MOSI | 83 | Port B.2 | robostix MOSI |
| X_MISO | 84 | Port B.3 | robostix MISO |
| X_SCA | Port D.0 | robostix SCL | |
| X_SDA | Port D.1 | robostix SDA |

