background image

11

iCE40 UltraLite Breakout Board

GUI Serial Communication Interface

LED Control via SPI

The Software GUI demonstration program communicates with the iCE40 UltraLite device using a SPI serial com-
munication channel. The SPI interface (mode 0) control link is implemented using a simple write-only protocol (see 
Figure 10).

Figure 10. SPI Physical Transaction

SPI Protocol

Data on the MOSI serial line is transmitted MSB first.

Addr[7:0] – Controls which of the 16 bits are updated with REG data. 

Note: Unspecified REG bits must be written, but are ignored.

REG[15:0] – Consists of four control fields.

Addr

Bits Written

Bit Position

0x13

REG[3:0] 

 ------------dddd

0x14

REG[7:4]

 --------cccc----

0x15

REG[11:8] 

 ----bbbb--------

0x16

REG[15:12]

 aaaa------------

0x19

REG[15:0]

 aaaabbbbccccdddd

Field

Bit Positions

Function

aaaa

REG[15:12] RGB 

Color[3:0]

bbbb

REG[11:8] Brightness[3:0]

cccc

REG[7:4] 

Breathe Ramp [3:0]

dddd

REG[3:0] Blink 

Rate 

[3:0]

ADDR

REG [15:8]

REG [7:0]

CSn

SCK

MOSI

 

[7:0]

Summary of Contents for iCE40 UltraLite

Page 1: ...December 2014 EB96_1 0 iCE40 UltraLite Breakout Board User Guide ...

Page 2: ...rs a complete set of schematics and the bill of material for the iCE40 UltraLite Breakout Board Note Static electricity can severely shorten the lifespan of electronic components Be careful when handling the iCE40 UltraLite Breakout Board as to not damage it from ESD Features The iCE40 UltraLite Breakout Board includes iCE40 UltraLite Breakout Board The iCE40 UltraLite Breakout Board features the ...

Page 3: ... you begin developing designs for the board iCEcube2 2014 04 or higher Diamond Programmer 3 3 or higher These software are available at the Lattice website Design Software IP page Make sure you log in to www lattic esemi com otherwise these software downloads will not be visible It is also recommended to download the RGB LED software GUI which interfaces with the iCE40 UltraLite Breakout Board Thi...

Page 4: ... placed across J4 pins 1 2 The HP Torch LED D7 is controlled when a jumper is placed across J4 pins 2 3 The BARCODE LED D8 is under FPGA control when a jumper is placed across J5 pins 2 3 The IRLED FPGA output is 400 mA This can be combined with 100 mA BARCODE FPGA output for a total of 500 mA of drive current This is performed when a jumper is placed across J5 pins 1 2 Note This capability is not...

Page 5: ...or R4 1 Ohm at test points 1 2 V and VCC iCE40 UltraLite VCCIO Onboard 3 3 V supply ICC0 can be measured across the series resistor R2 1Ohm at test points TP4 and VCCIO0 ICC1 can be measured across the series resistor R3 1Ohm at test points TP9 and VCCIO1 ICC2 can be measured across the series resistor R5 1Ohm at test points TP6 and VCCIO2 Board Configuration and Programming The board allows for p...

Page 6: ...rd Figure 3 Configuration and Programming Details CRESETB Push Button U5 Micron N25Q032A13ESC40F iCE40UL1K CM36A U1 USB Mini B Socket J17 J15 Program SPI Flash or iCE40UL J14 Isolate SPI Flash CSn J1 CRESETB Probe D2 DONE LED Green ...

Page 7: ... Ultra Lite I Os as shown in Figure 4 Figure 5 and Figure 6 below Figure 4 J6 Header A Breakouts Figure 5 J7 Header B Breakouts 20 19 GND GND A2 RGB0 F5 CSN GND GND B1 RGB1 E6 SCK GND F6 SO A1 RBG2 E5 SI HP3 3 V GND A6 IRLED nc A5 BARCODE nc 3 3 V nc 2 1 J6 Header A J7 Header B 20 19 GND GND D6 C6 GND F3 C2 F2 A3 E2 B2 C1 B6 D1 A4 E1 B5 F1 3 3 V 3 3 V 2 1 ...

Page 8: ... UltraLite Breakout Board Figure 6 J9 Aardvark and J8 PMOD Connector 1 2 nc GND nc nc FLASH_MISO nc ICE_SCK FLASH_MOSI ICE_CSN GND 9 10 12 11 3 3 V 3 3 V GND GND B2 C1 B6 D1 A4 E1 B5 F1 2 1 J9 Aardvark J8 PMOD ...

Page 9: ... an RGB LED These are the steps necessary to run the demonstration 1 Ensure that the RGB LED GUI is installed 2 Make sure the jumpers on J15 are both in the horizontal position This is the default pins 1 3 and 2 4 shorted together Figure 7 SPI Flash Selection Horizontal for J15 3 Connect the iCE40 UltraLite breakout board via the USB cable to a PC or MAC ...

Page 10: ...g pins 1 2 and 3 4 This is required to allow the USB port to communicate with the iCE40 UltraLite device Figure 8 iCE Selection Vertical for J15 5 Start the RGB GUI on the PC or MAC Figure 9 iCE40 UltraLite LED Demonstration Interface Now you can control the RGB LED on the iCE40 UltraLite Breakout Board You can set the color brightness blink ing rate as well as breathing ...

Page 11: ... SPI Protocol Data on the MOSI serial line is transmitted MSB first Addr 7 0 Controls which of the 16 bits are updated with REG data Note Unspecified REG bits must be written but are ignored REG 15 0 Consists of four control fields Addr Bits Written Bit Position 0x13 REG 3 0 dddd 0x14 REG 7 4 cccc 0x15 REG 11 8 bbbb 0x16 REG 15 12 aaaa 0x19 REG 15 0 aaaabbbbccccdddd Field Bit Positions Function aa...

Page 12: ... Chartreuse 7FFF00 0100 Green 00FF00 0101 Spring Green 00FF7F 0110 Cyan 00FFFF 0111 Azure 007FFF 1000 Blue 0000FF 1001 Violet 7F00FF 1010 Magenta FF00FF 1011 Rose FF007F 1100 1101 1110 1111 White FFFFFF Brightness 3 0 Level 0000 6 25 dim 0001 12 5 0010 18 75 0011 25 0100 31 25 0101 37 5 0110 43 75 0111 50 1000 56 25 1001 62 5 1010 68 75 1011 75 1100 81 25 1101 87 5 1110 93 75 1111 100 bright ...

Page 13: ... 0100 5x 0101 1x 0110 2x 0111 4x slow 1000 1001 1010 1011 1100 1101 1110 1111 Blink Rate 3 0 Off Time s 1 0000 Always On 0001 1 16 fast 0010 1 8 0011 1 4 0100 1 2 0101 1 0110 2 0111 4 1000 Always Off 1001 1010 1011 1100 1101 1110 1111 1 By default the LED On Time is fixed at approximately one second ...

Page 14: ...semi com Internet www latticesemi com Revision History 2014 Lattice Semiconductor Corp All Lattice trademarks registered trademarks patents and disclaimers are as listed at www latticesemi com legal All other brand or product names are trademarks or registered trademarks of their respective holders The specifications and information herein are subject to change without notice Date Version Change S...

Page 15: ...plications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 2 System Diagram ICE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 2 System Diagram ICE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice ...

Page 16: ...tle Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 3 ICE40 Ultra Lite ICE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 3 ICE40 Ultra Lite ICE40 Ultra Lite Breakout Board A C11 10nF R13 0 ...

Page 17: ... Project Thursday August 28 2014 B A 10 4 LEDS ICE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 4 LEDS ICE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Pro...

Page 18: ...e Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 5 Headers iCE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 5 Headers iCE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Ti...

Page 19: ... Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 6 Connectors DNI iCE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 6 Connectors DNI iCE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconduc...

Page 20: ...s Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 7 SPI iCE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 7 SPI iCE40 Ultra Lite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Emai...

Page 21: ...t 28 2014 B A 10 8 FTDI iCE40 Ultra Lite Breakout Board A C31 4 7uF C30 0 1uF C27 0 1uF R44 10k C26 0 1uF R51 0 R53 0 J16 1 2 R52 0 C25 0 1uF C34 0 1uF R50 2 2k C36 0 1uF C33 4 7uF X1 12 000MHZ SIT1602AC 73 33S 12 0000G VDD 4 STANDBY 1 GND 2 OUTPUT 3 C35 10uF R47 2 2k FTDI High Speed USB FT2232H FT2232HL U7 VREGIN 50 VREGOUT 49 DM 7 DP 8 REF 6 RESET 14 EECS 63 EECLK 62 EEDATA 61 OSCI 2 OSCO 3 TEST...

Page 22: ...support Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 9 Voltage Regulators iCE40 Ultra Lite Breakout Board A L3 600 OHM 800MA J19 2 Position Terminal Block 1 1 2 2 C67 0 1uF C47 10uF C55 0 1uF R67 40 2K C65 0 1uF R75 0 R60 1M U10 LT3030EFE TRPBF GND3 5 IN1_1 18 SHDN2 11 GND2 15 PWRGD1 19 IN1_2 17 IN2_1 14 PWRGD2 12 GND4 6 IN2_2 13 SHDN1 20 GND1 16 OUT1_1 3 OUT1_2 4 BYP1 2 ADJ1 1...

Page 23: ...cal Details ICE40 UltraLite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 28 2014 B A 10 10 Mechanical Details ICE40 UltraLite Breakout Board A Date Size Schematic Rev of Sheet Title Lattice Semiconductor Applications Email techsupport Latticesemi com Board Rev Project Thursday August 2...

Page 24: ...24 iCE40 UltraLite Breakout Board ...

Page 25: ... C40 C44 C50 C57 C 58 C59 10 nF Kemet C0603C103K4RACTU Yes 13 2 C42 C46 22 uF TDK C2012X5R1A226M125AB Yes 14 1 C45 4 7 uF Murata GRM188R60J475KE19D Yes 15 1 C48 1uF Murata GRM188R61A105KA61D Yes 16 2 C60 C64 10 uF Taiyo Yuden LMK107BBJ106MAHT 17 1 C61 22 uF TDK C2012X5R1A226M125AB 18 4 C62 C65 C66 C67 0 1 uF Kemet C0603C104K4RACTU 19 4 D1 D3 D4 D5 CDBU0520 Comchip CDBU0520 Yes 20 2 D2 D9 Green Osr...

Page 26: ... R10 R11 R12 R13 R 14 R15 R16 R17 R1 8 R20 R21 R22 R51 R52 R 53 R54 R55 R56 0 Panasonic ERJ 3GEY0R00V Yes 50 2 R19 R48 2 2 k Yageo RC0603FR 072K2L 51 1 R23 110 Panasonic ERJ 3EKF1100V Yes 52 1 R24 62 Panasonic ERJ 3EKF62R0V Yes 53 1 R25 62 Panasonic ERJ 3EKF62R0V Yes 54 1 R26 100 Panasonic ERJ 3EKF1000V 55 10 R27 R35 R36 R37 R 38 R39 R70 R71 R7 2 R81 0 Panasonic ERJ 3GEY0R00V 56 7 R28 R29 R30 R31 ...

Page 27: ... Yes 75 1 U2 LED TRI COLOUR_0 Seoul Semicon ductor Inc SFT722N S Yes 76 1 U3 TSMP4138 Vishay TSMP4138 77 1 U4 MicroSD 114 00841 68 Amphenol 114 00841 68 78 1 U5 N25Q032A 13ESC40F Micron N25Q032A13ESC40F Yes 79 1 U6 93LC56 SO8 Microchip 93LC56CT I SN Yes 80 1 U7 FT2232HL FTDI FT2232HL REEL Yes 81 1 U8 NCP1117S T18 ON Semicon ductor NCP1117ST18T3G 82 1 U10 LT3030EFE TRPBF Linear LT3030EFE TRPBF Yes ...

Reviews: