tinyVision.ai · Dev board
UPduino v3.1
A small Lattice iCE40UP5K FPGA board with an FT232H programmer, 4 MB flash and an RGB LED, with every FPGA I/O on two 24-pin headers. Works with the open toolchain: yosys, nextpnr and iceprog.
- Logic level
- 3.3 V
- Package
- 2x24 2.54 mm headers plus a 2-pin 5V/GND header, 62 x 22 mm
1.Pinout diagram
Highlight a signalhover to preview, click to keep
Left (USB at top)
UPDUINO
Right (USB at top)
Pin detail
Hover a pin for its mappings and gotchas. Click to keep it here.
- Logic level
- 3.3 V
- Package
- 2x24 2.54 mm headers plus a 2-pin 5V/GND header, 62 x 22 mm
Fig. 1. UPduino v3.1, 2x24 2.54 mm headers plus a 2-pin 5V/GND header, 62 x 22 mm. Hover or tap a signal to light up every pin that carries it.
2.Caution
- All I/O is 3.3 V and not 5 V tolerant. Bank 1 (the pins from 20 down to 6 on the right, plus SS, SCK, SI and SO) is fixed at 3.3 V because the flash and FT232H share it. Banks 0 and 2 can be moved to another voltage through the VIO pin and solder jumpers.
- Header labels are the FPGA's SG48 package pin numbers, which is what goes in the PCF file. Pin 23 on the silkscreen is set_io 23.
- The 12 MHz oscillator always reaches the 12M header pin. It only reaches the FPGA (pin 20, a global input) once you bridge the solder jumper marked OSC. The vendor PCF calls it R16, the v3.1 schematic SJ16.
- The FT232H is wired as the SPI programmer for the flash, and optionally for the FPGA's configuration RAM. The official PCF also names pins 14 and 15 as a serial link to it, and both are shared with the flash.
- The FPGA boots from a 4 MB SPI flash on SS, SCK, SI and SO, so those four pins are busy at power-up and whenever you program. qSPI mode needs two solder jumpers and costs pins 10 and 20.
- The RGB LED pins (R, G, B) are open drain only. Pin 35 is the vendor's recommended clock input because the PLL sits next to it.
- A 2-pin header at the far end from USB repeats 5V and GND.
- UPduino v3.0 and v3.1 have identical header wiring. The one difference worth knowing: v3.0 boards have GND and 12M swapped on the silkscreen (right side, rows 7 and 8). This page follows the v3.1 schematic and silkscreen, which agree.
- Needs checking: the vendor pinout image, the readthedocs pinout table and the MPSSE section of the official PCF put FPGA pin 17 on SI and pin 14 on SO. The v3.1 schematic, with its default resistors, puts pin 14 on SI and pin 17 on SO, which is the only order that lets the FPGA boot from flash. This page follows the schematic.
- Needs checking: the schematic's RGB LED symbol names its pins in a different color order from the net names. This page follows the net names, the PCF and the silkscreen: red on pin 41, green on 39, blue on 40.
3.Full pin reference
Every pin, alias and mapping. This table is included when you print the page.
Table 1. Pin assignments.
| FPGA pin | Name | Also called | Functions | Notes |
|---|---|---|---|---|
| - | GND | - | Ground | |
| - | VIO | VIO_BANK_0_2, VCCIO_0, VCCIO_2 | I/O supply input for FPGA banks 0 and 2 | Not connected as shipped. Banks 0 and 2 run from 3.3 V through shorted solder jumpers. To run them from this pin, cut the shorted jumper and bridge the open one for each bank. |
| 8 | RST | CRESET_B, CRESET_N | CRESET_B, FT232H ADBUS7 | Active low, with a 10 kOhm pull-up. The FT232H drives it during programming. Releasing it makes the FPGA reload its image from the flash. |
| 7 | DONE | CDONE | CDONE, FT232H ADBUS6, Green status LED | Goes high once the FPGA has configured, which also lights the green LED. Lattice's SG48 pinout lists it as a configuration pin only, not user I/O. |
| 41 | R | RGB2, led_red | RGB2, Bank 0, Red LED (on-board RGB) | Open-drain current sink, not a push-pull output. The LED anode is tied to 3.3 V, so writing 0 turns the color on. Cut the R28 jumper to free the pin from the LED. |
| 39 | G | RGB0, led_green | RGB0, Bank 0, Green LED (on-board RGB) | Open-drain current sink, not a push-pull output. The LED anode is tied to 3.3 V, so writing 0 turns the color on. Cut the R28 jumper to free the pin from the LED. |
| 40 | B | RGB1, led_blue | RGB1, Bank 0, Blue LED (on-board RGB) | Open-drain current sink, not a push-pull output. The LED anode is tied to 3.3 V, so writing 0 turns the color on. Cut the R28 jumper to free the pin from the LED. |
| - | 5V5 V | VBUS, +5VD | USB VBUS through a ferrite bead, Feeds the 3.3 V and 1.2 V regulators | Straight from the USB connector through a ferrite bead, with no diode or fuse. Feeding 5 V in here with USB plugged in pushes it back into the host. |
| - | 3V33.3 V | 3.3V, +3V3 | Output of the on-board 3.3 V regulator | |
| - | GND | - | Ground | |
| 23 | 23 | IOT_37a, gpio_23 | IOT_37a, Bank 0 | |
| 25 | 25 | IOT_36b, gpio_25 | IOT_36b, Bank 0 | |
| 26 | 26 | IOT_39a, gpio_26 | IOT_39a, Bank 0 | |
| 27 | 27 | IOT_38b, gpio_27 | IOT_38b, Bank 0 | |
| 32 | 32 | IOT_43a, gpio_32 | IOT_43a, Bank 0 | |
| 35 | 35Clock | IOT_46b_G0, gpio_35 | IOT_46b_G0, Bank 0, Global buffer input G0 | The best pin for an external clock, because it sits next to the PLL. Using it as an input for anything other than a clock rules out the PLL. |
| 31 | 31 | IOT_42b, gpio_31 | IOT_42b, Bank 0 | |
| 37 | 37Clock | IOT_45a_G1, gpio_37 | IOT_45a_G1, Bank 0, Global buffer input G1 | |
| 34 | 34 | IOT_44b, gpio_34 | IOT_44b, Bank 0 | |
| 43 | 43 | IOT_49a, gpio_43 | IOT_49a, Bank 0 | |
| 36 | 36 | IOT_48b, gpio_36 | IOT_48b, Bank 0 | |
| 42 | 42 | IOT_51a, gpio_42 | IOT_51a, Bank 0 | |
| 38 | 38 | IOT_50b, gpio_38 | IOT_50b, Bank 0 | |
| 28 | 28 | IOT_41a, gpio_28 | IOT_41a, Bank 0 | |
| 16 | SSSPI | IOB_35b, SPI_SS, spi_ssn, spi_cs, gpio_16 | IOB_35b_SPI_SS, Bank 1, Flash chip select, FT232H ADBUS4 | Flash chip select, with a 10 kOhm pull-up. Drive it high in your design unless you are talking to the flash, or the flash answers on the shared pins. |
| 15 | SCKSPIUART | IOB_34a, SPI_SCK, spi_sck, serial_rxd, gpio_15 | IOB_34a_SPI_SCK, Bank 1, Flash clock, FT232H ADBUS0, PCF serial_rxd (from the FTDI) | Shared with the flash and the FT232H, with a 10 kOhm pull-up. The FT232H drives it while programming. |
| 14 | SISPIUART | IOB_32a, SPI_SO, FLASH_MOSI, serial_txd | Through R12, IOB_32a_SPI_SO, Bank 1, Flash DI, FT232H ADBUS1, PCF serial_txd (to the FTDI) | Needs checking: this is the flash data input, reached from FPGA pin 14 through R12, which the schematic fits by default. The vendor pinout image and pinout table show FPGA pin 17 here instead, which is only true with the CRAM resistor option fitted. |
| 17 | SOSPI | IOB_33b, SPI_SI, FLASH_MISO | Through R13, IOB_33b_SPI_SI, Bank 1, Flash DO, FT232H ADBUS2 | Needs checking: this is the flash data output, reaching FPGA pin 17 through R13, which the schematic fits by default. The vendor pinout image and pinout table show FPGA pin 14 here instead, which is only true with the CRAM resistor option fitted. |
| 20 | 20Clock | IOB_25b_G3, gpio_20 | IOB_25b_G3, Bank 1, Global buffer input G3, 12 MHz oscillator (OSC jumper), Flash IO3 (qSPI jumper) | Bridge the OSC solder jumper and the on-board 12 MHz clock drives this pin through a buffer. Then treat it as a clock input only and never drive it. The qSPI jumper also lands flash IO3 here. |
| 10 | 10 | IOB_18a, gpio_10 | IOB_18a, Bank 1, Flash IO2 (qSPI jumper) | Bridging the qSPI solder jumper connects flash IO2 here, so the pin is no longer free. |
| - | GND | - | Ground | UPduino v3.0 boards have this pin and 12M swapped on the silkscreen. The v3.1 silkscreen is correct. |
| - | 12M | 12MHz, CLK_12M_EXT | 12 MHz clock output, Buffered from the on-board oscillator | Always running, from a buffer on the 12 MHz oscillator. It is not an FPGA pin: jumper it to a global input, or bridge OSC to reach pin 20. UPduino v3.0 silkscreen swaps it with the GND above. |
| 12 | 12 | IOB_22a, gpio_12 | IOB_22a, Bank 1, USB D+ (unfitted resistor R21) | An unfitted resistor footprint (R21) joins this pin to USB D+ for the tinyFPGA bootloader. Unconnected as shipped. |
| 21 | 21 | IOB_23b, gpio_21 | IOB_23b, Bank 1, USB D+ (open jumper R22) | An open solder jumper (R22) joins this pin to USB D+ for the tinyFPGA bootloader. Unconnected as shipped. |
| 13 | 13 | IOB_24a, gpio_13 | IOB_24a, Bank 1, USB D- (open jumper R23) | An open solder jumper (R23) joins this pin to USB D- for the tinyFPGA bootloader. Unconnected as shipped. |
| 19 | 19 | IOB_29b, gpio_19 | IOB_29b, Bank 1 | |
| 18 | 18 | IOB_31b, gpio_18 | IOB_31b, Bank 1 | |
| 11 | 11 | IOB_20a, gpio_11 | IOB_20a, Bank 1 | |
| 9 | 9 | IOB_16a, gpio_9 | IOB_16a, Bank 1 | |
| 6 | 6 | IOB_13b, gpio_6 | IOB_13b, Bank 1 | |
| 44 | 44Clock | IOB_3b_G6, gpio_44 | IOB_3b_G6, Bank 2, Global buffer input G6 | |
| 4 | 4 | IOB_8a, gpio_4 | IOB_8a, Bank 2 | |
| 3 | 3 | IOB_9b, gpio_3 | IOB_9b, Bank 2 | |
| 48 | 48 | IOB_4a, gpio_48 | IOB_4a, Bank 2 | |
| 45 | 45 | IOB_5b, gpio_45 | IOB_5b, Bank 2 | |
| 47 | 47 | IOB_2a, gpio_47 | IOB_2a, Bank 2 | |
| 46 | 46 | IOB_0a, gpio_46 | IOB_0a, Bank 2 | |
| 2 | 2 | IOB_6a, gpio_2 | IOB_6a, Bank 2 |
Primary sources
- UPduino v3.0/v3.1 repository (tinyVision.ai) ↗
- UPduino v3.1 schematic (KiCad) ↗
- UPduino v3.1 board layout and silkscreen (KiCad) ↗
- Official PCF constraint file ↗
- UPduino pinout table and errata ↗
- UPduino v3.0 pinout image ↗
- Oscillator options ↗
- Bank voltages ↗
- CRAM programming resistor options ↗
- qSPI flash jumpers ↗
- Disconnecting the RGB LED ↗
- UPduino documentation ↗
- iCE40 UltraPlus family datasheet, FPGA-DS-02008 (Lattice) ↗
- iCE40UP5K pinout spreadsheet (Lattice) ↗
To fix a wrong pin, edit data/boards/upduino-v3.json.