Вы находитесь на странице: 1из 4

Getting To Know The Board

Overview
The IOIO board contains the following components: 1. USB connector (type A) female connector: Used to connect to the Android device. 2. GND pins (9 pins): Ground connection. 3. VIN pins (3 pins): Used for power supply to the board. Voltage between 5V-15V should be supplied. 4. 5V pins (3 pins): Normally used as 5V output when the board is powered from VIN. Can be used as 5V input in case VIN is not connected. 5. 3.3V pins (3 pins): 3.3V output. 6. I/O pins (48 pins, numbered 1-48): General purpose I/O pins. Some have special functions, see below. 7. power LED: Lights when the IOIO is getting power. 8. stat LED: Lights briefly during power-up and then becomes under application control. 9. mclr pin: Not normally used. Its purpose is for programming new bootloader firmware on the IOIO board. 10. Charge current trimmer (CHG): Adjusts the amount of charge current supplied on the VBUS line of the USB to the Android device. Turning in the (+) direction increases charge current.

I/O Pins
The I/O pins are the essence of the IOIO. They are used to connect to external circuits using different interfaces. The common denominator to all pins is that they can all serve as 3.3V digital inputs or 3.3V digital outputs. In addition, many of the pins are capable of other functions as detailed in the table at the bottom of this page. For convenience, the common pin functions are presented graphically on the bottom of the board, with a legend:

Pins surrounded by a square can be used as analog inputs (3.3V). For more details, see Analog Input. Pins surrounded by a circle are 5V-tolerant, i.e. can be used as 5V logic inputs or product 5V logic output when used in open-drain mode with the help of a pull-up resistor. For more details, see Digital I/O. Pins marked with "P" can be used as peripheral inputs and outputs. Mainly, this includes PWM, UART, and SPI. The pin marked with "Pi" can be used as peripheral input (but not output). Pins marked with DAx and CLx are used for TWI.

Note: Due to an error in the silk screen (text and graphics printed on the board) design of V1.5 (the first batch of commercial boards), the letter "P" has been omitted from the peripheral pins 34-40 and 45-48. Those 11 pins can, however be used as peripheral inputs or outputs.

Detailed Pin Function Table


This table applies to IOIO V1.1 - V1.5 boards.

Legend:

A/D: pin can be used as analog input I2C: pin can be used as IC: DAx - data pin if IC module number x, CLx - clock pin if IC module number x PPSi: pin can be used as input for remappable peripehreals (input capture, UART, SPI) PPSo: pin can be used as output for remappable peripehreals (UART, SPI, comparator output) 5V: pin is 5V tolerant: can be used as 5V input or 5V output in open-drain mode Comp: pin can be used as comparator input number as specified Prog: pin can be used for ICSP: use Vpp and either C1/D1, C2/D2 or C3/D3 which are clock and data, respectively

Notes:
1. All pins can be used as digital input / output (GPIO) 2. All pins can be used as interrupt on change IOI PI A/ PPS PPS 5 Com Prog O IC C D i o V p. . pin pin

PIC function

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 Y Y Y Y Y (ref +) Y CL 2 DA 2

Y DA Y 0 CL Y 0 Y Y Y Y Y Y Y Y

Y Y Y Y Y

Y Y Y Y Y 3D 3C

39 OSCI/CLKI/CN23/RC12 40 OSCO/CLKO/CN22/RC15 42 RTCC/DMLN/RP2/CN53/RD8 43 DPLN/SDA1/RP4/GD8/CN54/RD9 44 SCL1/RP3/GD6/CN55/RD10 45 RP12/GD7/CN56/RD11 46 DMH/RP11/INT0/CN49/RD0 47 SOSCI/C3IND/CN1/RC13 SOSCO/SCLKI/T1CK/C3INC/RPI37/CN0/R 48 C14 49 VCPCON/RP24/GD9/VBUSCHG/CN50/RD1 50 DPH/RP23/CN51/RD2 51 RP22/GEN/CN52/RD3 52 RP25/GCLK/CN13/RD4 53 RP20/GPWR/CN14/RD5 54 C3INB/CN15/RD6 55 C3INA/SESSEND/CN16/RD7 GD10/VBUSST/VCMPST1/VBUSVLD/CN6 58 8/RF0 59 GD11/VCMPST2/SESSVLD/CN69/RF1 60 GD0/CN58/RE0 61 GD1/CN59/RE1 62 GD2/CN60/RE2 63 GD3/CN61/RE3 64 HSYNC/CN62/RE4 1 VSYNC/CN63/RE5 2 3 1D 1C 2D 2C 1A 1B 2A 2B C1 D1 C3 D3 4 5 6 8 11 12 13 14 GD12/SCL3/CN64/RE6 GD13/SDA3/CN65/RE7 C1IND/RP21/CN8/RG6 C1INC/RP26/CN9/RG7 C2IND/RP19/GD14/CN10/RG8 C2INC/RP27/GD15/CN11/RG9 PGEC3/AN5/C1INA/VBUSON/RP18/CN7/R B5 PGED3/AN4/C1INB/USBOEN/RP28/CN6/R B4 AN3/C2INA/VPIO/CN5/RB3 AN2/C2INB/VMIO/RP13/CN4/RB2

Y Y Y Y Y

Y Y Y Y Y 3B 3A

Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y

15 PGEC1/AN1/VREF-/RP1/CN3/RB1 16 PGED1/AN0/VREF+/RP0/CN2/RB0

37 38 39 40 41 42 43 44 45 46 47 48 stat LED mclr

(ref -) Y Y Y Y Y Y Y Y Y Y

Y Y Y Y

Y Y Y Y

C2 D2

Y Y DA Y 1 CL Y 1 Y

Y Y Y Y Y Y Y Y

17 18 21 22 23 24 27 28 29 30

PGEC2/AN6/RP6/CN24/RB6 PGED2/AN7/RP7/RCV/CN25/RB7 AN8/RP8/CN26/RB8 AN9/RP9/CN27/RB9 TMS/CVREF/AN10/CN28/RB10 TDO/AN11/CN29/RB11 TCK/AN12/CTEDG2/CN30/RB12 TDI/AN13/CTEDG1/CN31/RB13 AN14/CTPLS/RP14/CN32/RB14 AN15/RP29/REFO/CN12/RB15

31 SDA2/RP10/GD4/CN17/RF4 32 SCL2/RP17/GD5/CN18/RF5 33 RP16/USBID/CN71/RF3 Vpp 7 MCLR

Last edited by ytai, November 14, 2011

Вам также может понравиться