 MachXO2 Pico Development Kit  User’s Guide

October 2012 Revision: EB61_02.0 MachXO2 Pico Development Kit User’s Guide

Introduction Thank you for choosing the MachXO2™ Pico Development Kit.

This guide describes how to begin using the MachXO2 Pico Development Kit, an easy-to-use platform for rapidly prototyping system control designs using MachXO2 PLDs. Along with the evaluation board and accessories, this kit includes the pre-loaded Pico SoC Demo (Environment Scanning Demonstration Design) that demonstrates board diagnostic functions including ultra-low power, LCD driver, I/O control, current measuring, time stamps and data logging to non-volatile memory using the 8-bit LatticeMico8™ .

The contents of this user’s guide include demo operation, top-level functional descriptions of the various portions of the evaluation board, descriptions of the on-board connectors, switches, a complete set of schematics and the bill of materials for the MachXO2 Pico Evaluation Board.

Note: Static electricity can severely shorten the lifespan of electronic components. See the MachXO2 Pico Devel- opment Kit QuickSTART Guide for handling and storage tips. Features The MachXO2 Pico Development Kit includes:

• MachXO2 Pico Evaluation Board – The MachXO2 Pico Evaluation Board features the following on-board com- ponents and circuits: – MachXO2 LCMXO2-1200ZE PLD device in a 132-ball csBGA package. The board is designed for density migration, allowing a lower density MachXO2 device to be assembled on the board. - Part number LCMXO2-1200ZE-P-EVN is populated with the R1 silicon. Part number LCMXO2-1200ZE- P1-EVN is populated with the Standard silicon. The demos have been targeted for a specific version of silicon and are not interchangeable. For more information on the R1 to Standard migration refer to AN8086, Designing for Migration from MachXO2-1200-R1 to Standard (Non-R1) Devices - 4 Mbit SPI Flash memory – Current sensor circuits using Delta-Sigma ADC – LCD driven with PWM analog output circuitry – Expansion header for JTAG, SPI, I2C and PLD I/Os – 4 capacitive touch sense buttons – Standard USB cable for device programming – RS-232/USB and JTAG/USB interface – RoHS-compliant packaging and process – USB or 2032 battery powered • Pre-loaded Reference Designs and Demo – The kit includes a pre-loaded Pico SoC Demo design that inte- grates several Lattice reference designs including: the LatticeMico8 microcontroller, master WISHBONE bus controller, soft delta-sigma ADC, SPI master controller, UART peripheral, Embeded Block RAM and additional control functions. • USB connector Cable – A mini B USB port provides power, a communication and debug port via a USB-to-RS- 232 physical channel and programming interface to the MachXO2 JTAG port. • Battery – A 2032 coin battery can provides an alternate source of power. • QuickSTART Guide – Provides information on connecting the MachXO2 Pico Evaluation Board, installing Win- dows hardware drivers, and running the Pico SoC Demo.

Figure 1 shows the top side of the MachXO2 Pico Evaluation Board with comments on the specific features that are designed in the board.

2 MachXO2 Pico Development Kit User’s Guide

Figure 1. MachXO2 Pico Evaluation Board, Top Side

Push-button

2x16 GPIO Header

LCD Screen

Capacitive Touch Sense Buttons

MachXO2- 1200ZE

SPI Flash Memory

I2C Temperature Sensor Coin Battery Slot USB Interface Socket

MachXO2 Device This board features a MachXO2 PLD with a 1.2V core supply. The PLD is packaged in a 132-ball csBGA which pro- vides a migration path to devices ranging from 640 LUTs to 4340 LUTs. A complete description of this device can be found in the MachXO2 Family Handbook. Software Requirements You should install the following software before you begin developing designs for the evaluation board:

• Lattice Diamond™ 1.2 (or higher) • ispVM™ System 17.9.1 (or higher) Demonstration Design Lattice provides the Pico SoC Demo design programmed in the board. The design utilizes the MachXO2 in the con- text of low power applications.

The Pico SoC Demo illustrates the use of the LatticeMico8 microcontroller, associated peripherals and firmware to provide a low power system featuring voltage/current measurement, data logging to nonvolatile memory, I/O con- trol, embedded block RAM utilization, UART communication, capacitive touch sense buttons and a LCD controller.

• The LatticeMico8 executable program initializes the peripherals that are embedded in the SoC design. During ini- tialization, the LatticeMico8 uploads the user menu on the Terminal of a PC. • Users interact with LatticeMico8 and the board through the Terminal of a PC or through the capacitive touch sense buttons.

3 MachXO2 Pico Development Kit User’s Guide

Figure 2. Pico SoC Demo Block Diagram

MachXO2 Pico Evaluation Board

MachXO2-1200ZE

Capacitive Touch LatticeMico8 PC UART LCD Sense Buttons Microcontroller

Soft Master Embedded Master ADC SPI Block RAM I2C

I2C Analog SPI Temp Signal Flash Sensor

Power management is handled in two phases by the MachXO2 Pico Evaluation Board system:

1. MachXO2 Function – After the reset is de-asserted, LatticeMico8 initializes the peripherals embedded in the MachXO2 device and uploads the user menu onto the HyperTerminal window of a PC.

Figure 3. HyperTerminal User Menu

2. Users interact with LatticeMico8 microcontroller and the board by selecting the available options in the HyperTerminal menu. The available options are: •‘m’ – This option re-displays the main menu anytime during the demonstration. PICO is displayed on the LCD screen. •‘i’ – This option measures the Icc using a Delta Sigma. The result is displayed to the terminal and the LCD. Board button 3 performs the same function but results are only displayed to the LCD. •‘o’ – This option measures Icco using Delta Sigma. The result is displayed to the terminal and the LCD. Pressing board button 2 performs the same function but results are only displayed to the LCD.

4 MachXO2 Pico Development Kit User’s Guide

•‘s’ – This option reads the device ID of the SPI Flash on the board. The results are displayed to the terminal and the LCD. •'t' - This option reads the I2C temperature sensor on the board. The result is displayed to the Terminal and to the LCD. Button 4 on the board performs the same function but the result is only displayed on the LCD •'r' This option samples the capacitive touch buttons on the board and displays the data in the terminal. •"0-9" - These values will echoed to the terminal and displayed on the LCD •'l' - This option will read the Icc, Icco, and Temperature and log it to the SPI flash memory. The WRITE page pointer will increment when 'l' is pressed. The initial value of the page pointer after power up is a 0. Button 1 on the board performs the same function the LCD will display 8888 •'d' - This option will read the data from the SPI Flash device and display to to the Terminal window. The READ page pointer will increment when 'd' is pressed. The intial value of the page pointer after a power up is 0. •'c' - This option will clear (reset) the WRITE and READ page pointers •'e' - This selection will perform a bulk-erase of the Flash memory in the SPI Flash device and will clear (reset) the WRITE and READ page pointers. Setting up the Board Drivers and Firmware Before you begin, you will need to obtain the necessary hardware drivers for Windows from the Lattice web site.

1. Browse to www.latticesemi.com/alpha-mxo2-pico-kit and locate the hardware device drivers for the USB inter- face.

2. Download the ZIP file to your system and unzip it to a location on your PC. Support:

The USB interface drivers for the evaluation board are included in Linux kernel 2.4.20 or greater, including distribu- tions compatible with Lattice Diamond design software (Red Hat Enterprise v.3, v.4 or Novell SUSE Enterprise v.10).

The Pico SoC Demo is preprogrammed into the MachXO2 Pico Evaluation Board, however over time it is likely that your board will be modified.

To download the demo source files and reprogram the MachXO2 Pico Evaluation Board:

1. Download the demo appliction source code from www.latticesemi.com/alpha-mxo2-pico-kit.

2. Use .\Environment_Scanning_demo\project\impl1\Environment_Scanning_demo_impl1.jed to restore the Environment Scanning demonstration design. Connecting to the MachXO2 Pico Evaluation Board 1. Connect the evaluation board to your PC using the USB cable provided. The USB connector on the board includes reference designator J1. Once the connection is made, a blue LED with reference designator D2 will illuminate.

2. If you are prompted “Windows may connect to Windows Update”, select No, not this time from available options and click Next to proceed with the installation. 3. Choose the Install from specific location (Advanced) option and click Next. 4. Select Search for the best driver in these locations and click the Browse button to browse to the Win- dows driver folder created earlier. Select the CDM 2.04.06 WHQL Certified folder and click OK. 5. Click Next. A screen will display as Windows copies the required driver files. Windows will display a mes- sage indicating that the installation was successful.

5 MachXO2 Pico Development Kit User’s Guide

Programming the MachXO2 Using ispVM System software, users can scan and perform JTAG operations, including programming, with the MachXO2 device. Setting Up Windows HyperTerminal You will use a terminal program to communicate with the evaluation board. The following instructions describe the Windows HyperTerminal program which is found on most Windows PCs. You may use another terminal program but setup will be somewhat different. Windows 7 does not include HyperTerminal. Tera Term has been verified to work with Windows 7. For Linux, Minicom is a good alternative.

Note: This step uses the procedure for Windows XP users. Steps may vary slightly if using another Windows ver- sion.

1. From the Start menu, select Control Panel > System. The “System Properties” dialog appears.

2. Select the Hardware tab and click Device Manager. The “Device Manager” dialog appears. Figure 4. Device Manager – COM Port

3. Expand the Ports (COM & LPT) entry and note the COM port number for the USB Serial Port. 4. From the Start menu, select Programs > Accessories > Communications > HyperTerminal. The HyperTerminal application and a “Connection Description” dialog appear.

6 MachXO2 Pico Development Kit User’s Guide

Figure 5. New Connection – COM Port

5. Specify a Name and Icon for the new connection. Click OK. The “Connect To” dialog appears. 6. Select the COM port identified in Step 3 from the Connect using: list. Click OK. Figure 6. Selecting the COM Port

7. The “COMn Properties” dialog appears where “n” is the COM port selected from the list. 8. Select the following Port Settings and click OK. Bits per second: 115200 Data bits: 8 Parity: None Stop bits: 1 Flow control: None

Figure 7. COM Port Properties

7 MachXO2 Pico Development Kit User’s Guide

9. The HyperTerminal window appears. 10. From the MachXO2 Pico Evaluation Board, press the reset push-button with reference designator S1. The Pico SoC demo main menu appears. Setting Up Linux Minicom Minicom is a terminal program found with most Linux distributions. It can be used to communicate with the MachXO2 Pico Evaluation Board.

To setup Minicom:

1. Check active serial ports:

#dmesg | grep tty

Note the tty label assigned to the USB port

2. From a command prompt, start Minicom: #minicom –s

The configuration menu appears.

3. Highlight Serial port setup and press Enter. Serial port settings appear. 4. Press A (Serial Device). Specify the active serial device noted in Step 1 and press Enter. 5. Press E (Bps/Par/Bits). Specify 115200, None, 8 and press Enter. 6. Press F (Hardware Flow Control). Specify None and press Enter. 7. Press Esc. The configuration menu appears. 8. Select Save setup as dfl. Minicom saves the port setup as the new default. 9. Select Exit. The Minicom interface appears. 10. From the evaluation board, press the S1 push-button (GSR). The Pico SoC demo main menu appears. Ordering Information

China RoHS Environment-Friendly Description Ordering Part Number Use Period (EFUP)

MachXO2 Pico Development Kit LCMXO2-1200ZE-P-EVN

Technical Support Assistance Hotline: 1-800-LATTICE (North America) +1-503-268-8001 (Outside North America) e-mail: [email protected] Internet: www.latticesemi.com

8 MachXO2 Pico Development Kit User’s Guide

Revision History Date Version Change Summary February 2011 01.0 Initial release. April 2011 01.1 Updated Pico Evaluation Board Top Side diagram, Pico SoC Demo block diagram, HyperTerminal User Manual information, Appendix A and Appendix B. June 2011 01.2 Added Appendix C. July 2011 01.3 Updated Features list with information on migration from MachXO2- 1200-R1 to Standard (non-R1) devices. July 2011 01.4 Added limitations section to Appendix C. December 2011 01.5 Added Appendix D. February 2012 01.6 Updated document with new corporate logo. June 2012 01.7 Added Appendix D, Dual Boot Demonstration. Updated Appendix E, Limitations. June 2012 01.8 Added “MachXO2 Pico Evaluation Board I2C Bus Power Enable” dia- gram to Appendix D. July 2012 01.9 Appendix D figure title changed from “MachXO2 Pico Evaluation Board I2C Bus Power Enable” to “MachXO2 Pico Evaluation Board SPI/I2C Bus Power Enable”. October 2012 02.0 Highlighted board limitations and workarounds in the demos.

© 2012 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.

9 MachXO2 Pico Development Kit User’s Guide

Appendix A. Schematic Figure 8. USB 5V, MachXO2 Power Rails, 3.0V Battery, 1.2V Rail and Current Monitors D C B A A E 6 of Board Rev 1 Schematic Rev Sheet 1 1 1 and Current Monitors and Current V- BT1 Vbat+ Vbat+2 Batt_Cell_Holder 3 2 NSR0530P2T5G D3 Lattice Semiconductor Applications Semiconductor Lattice Email: [email protected] DNI CR2032 Clip/Battery Charger Optional Phone (503) 268-8001Phone -or- (800) LATTICE R24 20 DNI SM/R_0603 Friday, March 4, 2011 MACHXO2 Pico Board Project +5V USB 5V, XO Power Rails 3.0V Batt, 1.2V Rail Rail 1.2V Batt, 3.0V Rails Power XO 5V, USB B Title Size Date: R5 100k DI 2 2 Q1 IRLML6402PbF DI DI TP4

R29 10k DI VCC_IO 1 SM/R_0603 DI +5V +3.3VorBat R85 1 1% R27 10k DI SM/R_0603 Q2

I/O Current IRF240 1 To sense for current U9 Thin signal traces Direct path from R34 to U7 DI DI TP3 R28 100k USB plugged in => +5V is High, Q4=ON, Q5=OFF Q4=ON, plugged High, is USB +5V in => Q5=ON Low, is Q4=OFF, +5V => un plugged USB VCCIO_EXT SM/R_0603 +3.3V 3 3 DI SM/C_1206 C7 6.8uF TP1 DI TP2 DI TP1-TP4 are 10mil free Via's Locate TP1R35 to close & TP2 very Locate TP3R34 to close & TP4 very + 1 1 4 2 NCP1117 DI R18 1 1% SM/R_0603 DI TAB OUT 1 GND U8 IN 3 +1.2V DI SM/C_0805 C8 10uF SOT-223_checkpins Core Current Core Q3 IRLML6402PbF DI VCC_CORE To sense for current U9 Thin signal traces or nonpour load copper bearing U7 to R35 from path Direct 4 4 DI +5.0V_USB_CABLE -> +3.3V Rail +3.3V_USB Rail +3.3V -> +5.0V_USB_CABLE DI 1k R60 1uF C21 DI R19 1M SM/R_0603 SM/R_0603 D2 Blue SM/D_0603 DI +5V R54 4.7k DI SM/R_0603 DI C2 1uF DI +1.2V Q4 R53 1M DNI 2 R59 10k DNI IRLML6402PbF MCP1703T-1202E/CB 1 VOUT GND U2 VIN 5 5 C23 DI 3 +5V_USB 0.33uF +3.3VorBat +3.3V or Bat -> +1.2V Rail C1 1uF DI PWR_ENABLEb [pg3] B D C A

10 MachXO2 Pico Development Kit User’s Guide

Figure 9. Current Sense Amplifiers, Power Enable Mux D C B A A E 6 of Board Rev Schematic Rev 2 Sheet 1 1 Lattice Semiconductor Applications Semiconductor Lattice Email: [email protected] Phone (503) 268-8001Phone -or- (800) LATTICE Friday, March 4, 2011 MACHXO2 Pico Board Project Current Amplifiers, Sense Power Enable Mux B Title Size Date: 2 2 DSInVcc [pg5] DSVrefVcc [pg5] DSOutVcc [pg5] DSInVcco [pg5] DSVrefVcco [pg5] DSOutVcco [pg5] R64 0 DI R75 R65 0 DI 0 DI 0 DI R40 0 DI R89 0 DI R49 500 C30 0.047uF DI R81 500 DI 1% C19 0.047uF DI R91 DI 1% R61 2k DI 1% R46 2k DI 1% R79 1k DI 1% R92 1k DI 1% Vrefin Vrefin Delta Sig Icc Measurement Icc Sig Delta R58 1k DI 1% Delta Sig Icco Measurement Icco Sig Delta R50 1k DI 1% EnI2CSPI [pg5] PWR_I2CSPI EnAMP [pg5] High = Powered (S1) Low = Disabled (S2) Vrefin R97 0 DI 3 3 DI 0 R96 DI C24 0.1uF PWR_AMP +3.3VorBat R51 2k 0.1% DI R57 2k 0.1% DI C27 220pF DI C22 220pF DI 1 7 3 8 13 10 11 5 2 16

D2 D1 D3 D4 8 4 8 4 U21 VCC GND 4SEL A B DI C25 123SEL + - + - DI PWR_AMP PWR_AMP 0.1uF DI 2 3 5 6 2S1 3S2 1S1 1S2 3S1 4S2 2S2 4S1 2k DI R42 LMP7708 U15B 0.1% 7 6 4 9 1 STG3693QTR 15 14 12 Power Supply Enable Mux Enable Power Supply LMP7708 U15A +3.3VorBat R45 50 0.1% DI R52 50 0.1% DI R39 50 0.1% DI R41 50 0.1% DI R38 2k 0.1% DI VCC_IO 4 4 +3.3VorBat 2 16 3 8 10 5 11 13 D2 D1 D4 D3 U20 VCC GND 4SEL DI C26 123SEL 0.1uF 3S2 1S1 3S1 4S2 1S2 2S1 2S2 4S1 1 6 9 7 4 STG3693QTR 15 14 12 +1.2V EnAMP High = Powered (S1) Low = Disabled (S2) VCC_CORE [pg5] VCCIO_EXT 5 5 VCC_IO B D C A

11 MachXO2 Pico Development Kit User’s Guide

Figure 10. USB to JTAG and I2C for the MachXO2 D C B A A E 6 of Board Rev Schematic Rev 3 USB_SCL [pg4,5] USB_TDO [pg5] USB_SDA [pg4,5] USB_TCK [pg5] USB_TMS [pg5] USB_TDI [pg5] PWR_ENABLEb [pg1] BDBUS1BDBUS2 [pg5] [pg5] BDBUS0 [pg5] BDBUS3 [pg5] BDBUS5 [pg5] BDBUS7 [pg5] BDBUS4 [pg5] BDBUS6 [pg5] Sheet 1 1 15 9 14 1 4 7 12 6 1S1 3S2 4S2 1S2 2S1 3S1 4S1 2S2 STG3693QTR U22 4SEL D2 D3 VCC D1 D4 123SEL GND R56 0 DI Lattice Semiconductor Applications Email: [email protected] 2 3 5 8 16 13 10 11 R21 0 DI Phone (503) 268-8001Phone -or- (800) LATTICE R20 0 DI FT2232 Controlled High = JTAG = I2C Low +3.3VorBat R55 0 DI R47 0 DI Friday, March 4, 2011 MACHXO2 Pico Board Project R43 DI 0 DI USB to JTAG and I2C for the XO2 the for I2C and JTAG to USB C9 B 0.1uF Title Size Date: R35 0 DI R13 0 DI R34 0 DI R11 0 DI R14 0 DI 2 2 R16 0 DI R15 0 DI R36 3.3k DNI +3.3V C58 0.1uF DI

16 22 44 60 17 18 19 21 23 24 26 27 28 29 30 33 34 38 40 41 43 48 58 36 32 39 45 46 52 53 54 55 57 59

VCCIO

56

VCCIO

DI 42

GND

C57 VCCIO

51

31 ADBUS0 ADBUS5 BDBUS5 ADBUS1 ADBUS2 ADBUS3 ADBUS4 ADBUS6 ADBUS7 ACBUS0 ACBUS1 ACBUS2 ACBUS3 ACBUS4 ACBUS6 ACBUS7 BDBUS0 BDBUS2 BDBUS3 BDBUS4 BCBUS0 BCBUS6 ACBUS5 BDBUS1 BDBUS6 BDBUS7 BCBUS1 BCBUS2 BCBUS3 BCBUS4 BCBUS5 BCBUS7

GND 0.1uF VCCIO PWREN#

20 47

SUSPEND# GND

+3.3V 35

GND

25

VCORE GND

64 15

VCORE GND

37 11

VCORE GND

12 5

GND

1

VPLL

9

VPHY AGND

4 10 3 3 0.1uF DI C12 FTDI High-Speed USB High-Speed FTDI FT2232H DP VREGOUT DM RESET# REF VREGIN EECS EECLK EEDATA OSCI OSCO TEST DI 8 2 7 6 3 50 49 14 63 62 61 13 U23 FT2232HL 4.7uF DI C13 C54 0.1uF DI C51 3.3uF DI R30 2.2k DI C55 18pF DI 1 R98 12k DI L3 R31 DI 0 600ohm 500mA 2 3 4 3 +3.3V G2 +3.3V 1 G1 X3 DI 12MHZ USB_12MHZ VCC18FT 1 2 18pF C56 DI [pg4] 4 4 EECS EESK EEDATA R4 10k SM/R_0603 R3 10k SM/R_0603 10nF C5 R1 10k SM/R_0603 DI DI R26 2.2k 10nF C6 +3.3V R7DI 100k SM/C_0603 4 2 3 1 DI L1 Ferrite_bead SM/R_0603 R8 0 DI SK CS DIN SHLD_Debug DOUT +5V_USB 5 5 DI 1 11 7 10 2 6 9 4 3 5 8 NC GND VCC ORG U1 M93C46-WMN6TP DI SOIC-8 D- D+ NC 7 5 8 6 VCC MH2 MH1 GND CASE CASE CASE CASE M93C46-WMN6TP Manuf:ST Micro Digi-Key Part Number 497-5090-1-ND +3.3V J1 USB_MINI_B TYPE_B USB Connection C3 0.1uF B D C A

12 MachXO2 Pico Development Kit User’s Guide

Figure 11. MachXO2 Banks 0-1, LCD, I2C Temperature D C B A A E 6 of Board Rev 4 Schematic Rev Sheet 1 1 LCD_10_LP LCD_11_LP LCD_12_LP C39 0.01uF DI C43 0.01uF DI C42 0.01uF DI R86 R82 5.49k DI R87 5.49k DI 5.49k DI LCD_5_LP LCD_7_LP LCD_6_LP LCD_9_LP LCD_10_LP LCD_12_LP LCD_8_LP LCD_11_LP 9 11 6 8 10 5 7 12 Lattice Semiconductor Applications Email: [email protected] Phone (503) 268-8001Phone -or- (800) LATTICE LCD_7_LP LCD_8_LP LCD_9_LP LCD_10 LCD_11 LCD_12 0.01uF C37 0.01uF DI C36 0.01uF DI C40 DI R77 5.49k DI R83 5.49k DI R76 5.49k DI 1D,1E,1G,1F 2D,2E,2G,2F 3D,3E,3G,3F 4D,4E,4G,4F DP3,3C,3B,3A DP1,1C,1B,1A DP2,2C,2B,2A COL,4C,4B,4A Friday, March 4, 2011 MACHXO2 Pico Board Project XO2 Bank 0-1,XO2 Bank I2C LCD, Temp B Title Size Date: LCD_5_LP LCD_6_LP LCD_8 LCD_7 LCD_9 LCD_COM3_LP C31 0.01uF DI C34 0.01uF DI C33 0.01uF DI R67 5.49k DI R74 5.49k DI R72 5.49k DI 4 Char LCD 4 Char LCD-S401M16KR LowPass Filter 2 2 U7 COM0 COM3 COM1 COM2 LCD_5 LCD_6 1 2 3 4 LCD_COM3 LCD_COM0_LP LCD_COM1_LP LCD_COM2_LP DI C29 0.01uF C28 0.01uF DI C32 0.01uF DI R63 5.49k DI R62 5.49k DI R68 DI 5.49k LCD_COM0_LP LCD_COM2_LP LCD_COM1_LP LCD_COM3_LP LCD_COM0 LCD_COM1 LCD_COM2 3 3 PROTO_C10 [pg5] PROTO_B13 [pg5] PROTO_A13 [pg5] LCD_6 LCD_8 LCD_10 LCD_5 LCD_9 LCD_11 LCD_7 LCD_12 Tmp_I2C_ALERT R17 0 DI K13 K14 A13 J13 M13 J14 C10 A11 B12 C9 A12 K12 L14 J12 B13 N14 M12 M14 B9 A9 A10 C11 C12 N13 PR9A PR9B PR8B PR8A PR8C PR9D PR8D PR9C PT15A PT17B PT15B PT16A PT16B PT17A PT16C PT16D PR10A PR10B PR10D PR10C PT17C/INITN PT17D/DONE 2 3 5 PWR_I2CSPI PT15C/JTAGENB PT15D/PROGRAMN GND ADD0 ALERT Bank0 Bank1 TMP101 DI U5 VCC SCL SDA 4 1 6 Temperature Sensor Temperature 1001010 Addr Slave U10A U10B PT9A PT9B PT10B PT11A PT11B TDO TDI PR5B PT10A PT12A/PCLKT0_1 PT12B/PCLKC0_1 PT12C/SCL/IO2/PCLKT0_0 PT12D/SDA/IO3/PCLKC0_0 TCK TMS PR2A PR2B PR2C PR2D PR3A PR3B PR4A PR4B PR4C PR4D PR5A PR5C/PCLKT1_0 PR5D/PCLKC1_0 4 4 LCMXO2-1200-CSBGA132 LCMXO2-1200-CSBGA132 B3 B5 A3 A7 B7 B8 B6 A6 A2 A4 B4 C8 C4 C6 F12 F13 F14 B14 E12 E14 E13 C13 C14 D12 H12 G14 G12 G13 PWR_I2CSPI C20 0_1uF DI R23 0 DI LCD_COM0 LCD_COM1 LCD_COM3 LCD_COM2 R22 0 DI XO2_TDI XO2_TDO XO2_TMS XO2_TCK USB_12MHZ [pg5] [pg5] [pg5] [pg5] [pg3] USB_SCL USB_SDA R80 3.3k DI [pg3,5] [pg3,5] DI R84 3.3k R78 10k DI 5 5 PWR_I2CSPI USB_SCL USB_SDA Tmp_I2C_ALERT [pg3,5] [pg3,5] B D C A

13 MachXO2 Pico Development Kit User’s Guide

Figure 12. MachXO2 Banks 2-3, Capacitor Pads, Expansion Header, SPI D C B A A E 6 of Board Rev 5 Schematic Rev XO2_TCK [pg4] Sheet 1 1 R44 XO2_SPI_CLK XO2_SPI_CS0 XO2_SPI_OUT XO2_SPI_IN XO2_TDI [pg4] XO2_TMS [pg4] XO2_TDO [pg4] 10k DI R69 0 DI R66 0 DI +3.3VorBat Lattice Semiconductor Applications Semiconductor Lattice PROTO_K1 PROTO_K3 R70 0 DI PROTO_C3 PROTO_M7 PROTO_N8 PROTO_B1 PROTO_B2 PROTO_C1 PROTO_C2 PROTO_D1 Email: [email protected] XO2_SPI_CS0 XO2_SPI_CLK XO2_SPI_OUT XO2_SPI_IN Phone (503) 268-8001Phone -or- (800) LATTICE R95 0 DI R71 0 DI 7 13 27 31 6 1 1 3 5 9 11 17 19 21 23 29 15 25 2 5 6 5 1 2 Header Friday, March 4, 2011 MACHXO2 Pico Board 4MBit SPI 4MBit Project S S D C D C Q Q DI DI DI DI DI XO2 Bank 2-3, Cap Pads, Expansion Header, SPI 2-3, Bank XO2 Header, Pads, Expansion Cap Package: SOIC8 (WIDE) Package: UDFN B Title Size Date: U3 R32R33 0 R37 0 R48 68 0 HEADER 16X2 R2 0 2 4 6 8 AT25DF041A-MH AT25DF041A-SH-B U9 U17 W Vcc Reset W Vss Vcc Reset Vss 12 22 10 14 16 24 28 32 18 20 26 30 (Refer to Appendix D. Limitations) 8 7 4 8 3 3 7 4 2 2 PWR_I2CSPI XO2_SPI_SN XO2_SPI_CLK XO2_SPI_IN XO2_SPI_OUT XO2_SPI_CS0 VCCIO_EXT C10 DI 0_1uF USB_TDI USB_TDO USB_TMS USB_TCK USB_SDA USB_SCL PROTO_B13 PROTO_A13 PROTO_C10 [pg3] [pg3] [pg3] [pg3] [pg3,4] [pg3,4] [pg4] [pg4] [pg4] S1 BDBUS2BDBUS3 [pg3] [pg3] BDBUS6 [pg3] BDBUS0BDBUS1 [pg3] [pg3] BDBUS4BDBUS5 [pg3] BDBUS7 [pg3] [pg3] GlobalReset 1 2 CapBtn4 CapBtn1 CapBtn2 CapBtn3 4 3 3 3 DI XO2_SPI_SN XO2_SPI_IN DSOutVcc [pg2] Panasonic SMD DSOutVcco [pg2] Part Number:EVQ Q2K03W DSVrefVccDSInVcc [pg2] [pg2] DSInVcco [pg2] DSVrefVcco [pg2] PROTO_M7 PROTO_C1 PROTO_C3 PROTO_C2 PROTO_N8 PROTO_D1 R25 10k DI PROTO_B1 PROTO_B2 VCCIO_EXT C11 DI 0.1uF P9 C2 P8 M7 G3 M8 M9 C1 N8 C3 B1 N12 N9 M10 P11 N10 M11 P12 F2 E1 E2 F1 F3 H2 P13 B2 E3 D1 PCB Footprint = SMT_SW GSR/Wake from Standby GSR/Wake from PL4A PL4B PL3C PL3D PL4C PL4D PushBtn PB15A PB15B PB18A PB18B PB20A PB20B PB15D PB18C PB18D PB15C PB20C/SN PL3A/PCLKT3_2 PL5A/PCLKT3_1 PL3B/PCLKC3_2 PL5B/PCLKC3_1 PB11A/PCLKT2_1 PB11B/PCLKC2_1 PL2C/L_GPLLT_IN PL2D/L_GPLLC_IN PL2A/L_GPLLT_FB PL2B/L_GPLLC_FB PB20D/SI/SISPI/IO0 Bank2 Bank3 U10C U10D PB4C/CSSPIN PB4B PB4D PL5D PB4A PB6A PB6B PB6C/MCLK/CCLK PB6D/SO/SPISO/IO1 PB9C PB9D PB9A/PCLKT2_0 PB9B/PCLKC2_0 PL8A PL8B PB11C PB11D PL5C PL8C PL9B/PCLKC3_0 PL10B PL10C PL8D PL9A/PCLKT3_0 PL10D LCMXO2-1200-CSBGA132 LCMXO2-1200-CSBGA132 4 4 J1 J2 J3 L3 P2 P4 P6 P7 K3 P3 K2 K1 N7 H1 N2 H3 N3 N4 N5 N6 M5 M1 M2 M3 M4 CapTouch CapTouch U13 U12 CapBtn CapBtn EnAMP EnI2CSPI PushBtn PROTO_K3 PROTO_K1 1 1 XO2_SPI_OUT XO2_SPI_CS0 XO2_SPI_CLK DNI [pg2] R90 100k R93 100k DNI [pg2] VCCIO_EXT VCCIO_EXT C48 DNI C50 DNI 0.1uF 0.1uF CapBtn4 CapBtn2 CapTouch CapTouch U11 U14 CapBtn CapBtn 5 5 1 1 Capacitive Touch Pads Touch Capacitive R88 100k DNI R94 100k DNI VCCIO_EXT VCCIO_EXT C47 DNI C49 DNI 0.1uF 0.1uF CapBtn1 CapBtn3 B D C A

14 MachXO2 Pico Development Kit User’s Guide

Figure 13. MachXO2 Power D C B A A E 6 of Board Rev Schematic Rev 6 Sheet 1 1 Lattice Semiconductor Applications Email: [email protected] Phone (503) 268-8001Phone -or- (800) LATTICE Friday, March 4, 2011 MACHXO2 Pico Board Project XO2 Power B Title Size Date: C45 0.1uF DI DI C38 0.1uF 2 2 C44 0.1uF DI C41 0.1uF DI C46 0.1uF DI C35 0.1uF DI VCC_CORE VCC_IO MH11 M_HOLE1 DI IW_MNT0 1 3 3 MH9 M_HOLE1 DI IW_MNT0 1 VCC_IO MH12 M_HOLE1 DI IW_MNT0 1 N11 P1 B10 H14 C5 A8 L12 D14 M6 L1 D3 G1 C7 Board Mounting Holes Mounting Board MH10 M_HOLE1 DI IW_MNT0 1 NC

VCCIO0 VCCIO1 VCCIO0 VCCIO0 VCCIO1 VCCIO1 VCCIO2 VCCIO2 VCCIO3 VCCIO3 VCCIO3 VCCIO2 1 G5 E-Friendly DI 4 4 U10E VCC VCC GND GND GND VCC GND GND GND GND GND GND VCC GND LCMXO2-1200-CSBGA132 L2

A5 A1 P5 N1 D2 G2

L13 A14 P10 B11 P14 D13 H13 1 G6 WEEE DI VCC_CORE

Board Logos Board 1 G4 Lattice Logo DI 5 5 B D C A

15 MachXO2 Pico Development Kit User’s Guide

Appendix B. Bill of Materials

Item Quantity Reference Part Footprint Populate Vendor Part Number Description

1 2 C10,C20 0_1uF SM/C_0603 DI Panasonic ECJ-1VB1C104K 0.1uF surface mount cap

2 3 C1,C2,C21 1uF SM/C_0603 DI Panasonic ECJ-2YB1A105K 1uF surface mount cap

3 2 C5,C6 10nF SM/C_0603 DI Panasonic ECG ECJ-1VB1C104K 10nF SMC

4 1 J1 USB_MINI_B TYPE_B DI Hirose UX60-MB-5ST USBType-BMiniConnector

5 35 R2,R8,R11,R13,R14,R15,R1 0 SM/R_0603 DI Panasonic ECG ERJ-3GEY0R00V Resistor 0.0 SMD 0603 6,R17,R20,R21,R22,R23,R31 ,R32,R33,R34,R35,R40,R43, R47,R48,R49,R55,R56,R64, R65,R66,R69,R70,R71,R75, R89,R95,R96,R97 6 5 R50,R58,R60,R79,R92 1k SM/R_0603 DI Vishay/Dale CRCW06031K00FKEA Resistor 1k SMD 0603

7 8 R1,R3,R4,R25,R27,R29,R44, 10k SM/R_0603 DI Vishay/Dale CRCW060310K0FKEA 10K 0603 SMT resistor R78 8 1 R59 10k SM/R_0603 DNI Vishay/Dale CRCW060310K0FKEA 10K 0603 SMT resistor

9 1 U1 M93C46-WMN6TP SOIC-8 DI STMicroelectronics M93C46-WMN6TP IC 1K EEPROM 8-SOIC

10 1 U5 TMP101 SM/SOT23_6 DI TI TMP101NA/250 IC TEMP SENSOR DIG SOT-23-6 11 1 R19 1M SM/R_0603 DI PanasonicECG ERJ-3GEYJ105V RES 1.0M1/10W5%

12 1 R53 1M SM/R_0603 DNI PanasonicECG ERJ-3GEYJ105V RES 1.0M1/10W5%

13 1 U17 AT25DF041A-MH UDFN DNI AT25DF041A-MH IC FLASH 4MBIT 70MHZ 8SOIC 14 4 MH9,MH10,MH11,MH12 M_HOLE1 IW_MNT0 DI 3M SJ-5003 (BLACK) BUMPON HEMISPHERE .44X.20 BLACK 15 6 R38,R42,R46,R51,R57,R61 2k SM/R_0603 DI Susumu Co Ltd RG1608P-202-B-T5 RES 2.0K OHM 1/10W .1% 0603 SMD 16 1 BT1 Batt_Cell_Holder BA2032_Battery_ DI Linx Technologies Inc BAT-HLD-001 HOLDER BATTERY 20MM Holder COIN CR2032 17 16 C3,C9,C11,C12,C24,C25,C2 0.1uF SM/C_0603 DI TDK Corporation C1608X7R1E104K CAP CER .10UF 25V X7R 6,C35,C38,C41,C44,C45,C46 10% 0603 ,C54,C57,C58 18 4 C47,C48,C49,C50 0.1uF SM/C_0603 DNI TDK Corporation C1608X7R1E104K CAP CER .10UF 25V X7R 10% 0603 19 12 C28,C29,C31,C32,C33,C34, 0.01uF SM/C_0603 DI TDK Corporation C1608X7R1H103K CAP CER 10000PF 50V C36,C37,C39,C40,C42,C43 X7R 10% 0603 20 1 C23 0.33uF SM/C_0603 DI TDK Corporation C1608X7R1A334K CAP CER .33UF 10V X7R 0603 21 1 C7 6.8uF SM/C_1206 DI AVX Corporation TAJA685K020RNJ CAP TANTALUM 6.8UF 20V 10% SMD 22 1 C8 10uF SM/C_0805 DI Nichicon TAJA685K020RNJ CAP TANTALUM 10UF 6.3V 20% SMD 23 1 D2 Blue SM/D_0603 DI Lite-On Inc LTST-C190TBKT LED 468NM BLUE CLEAR 0603 SMD 24 1 L1 Ferrite_bead SM/R_0603 DI Laird-Signal Integrity MI0603J600R-00 FERRITE 1A 60 OHM Products 0603 SMD 25 1 U2 MCP1703T-1202E/CB SOT-23A-3 DI MCP1703T-1202E/CB IC REG LDO 1.2V 200MA SOT-23A 26 3 R5,R7,R28 100k SM/R_0603 DI Panasonic - ECG ERJ-3GEYJ104V RES 100K OHM 1/10W 5% 0603 SMD 27 4 R88,R90,R93,R94 100k SM/R_0603 DNI Panasonic - ECG ERJ-3GEYJ104V RES 100K OHM 1/10W 5% 0603 SMD 28 1 R54 4.7k SM/R_0603 DI Panasonic - ECG ERJ-3EKF4701V RES 4.70K OHM 1/10W 1% 0603 SMD 29 2 R26,R30 2.2k SM/R_0603 DI Panasonic - ECG ERJ-3GEYJ222V RES 2.2K OHM 1/10W 5% 0603 SMD 30 4 R39,R41,R45,R52 50 SM/R_0603 DI Vishay/Dale TNPW060349R9BEEA RES 49.9 OHM 1/10W 0.1% 0603 31 2 R81,R91 500 SM/R_0603 DI Panasonic - ECG ERJ-3EKF4990V RES 499 OHM 1/10W 1% 0603 SMD

16 MachXO2 Pico Development Kit User’s Guide

Item Quantity Reference Part Footprint Populate Vendor Part Number Description

32 1 R98 12k SM/R_0603 DI Panasonic - ECG ERA-3AEB123V RES 12K OHM 1/10W .1% 0603 SMD 33 3 Q1,Q3,Q4 IRLML6402PbF SM/SOT23_123 DI International Rectifier IRLML6402TRPBF MOSFET P-CH 20V 3.7A SOT-23 34 1 Q2 IRF240 SM/SOT23_123 DI International Rectifier IRLML2502TRPBF MOSFET N-CH 20V 4.2A SOT-23 35 1 S1 GlobalReset SMT_SW DI Panasonic - ECG EVQ-Q2K03W SWITCH LT 6MM 130GF H=3.1MM SMD 36 1 U8 NCP1117 SOT- DI STMicroelectronics NCP1117ST33T3G IC REG LDO 1A 3.3V 223_checkpins SOT223 37 1 U3 HEADER 16X2 Header16x2 DNI Samtec Inc TLW-108-06-G-D CONN HEADER .100" 16POS DL GOLD 38 2 C19,C30 0.047uF SM/C_0603 DI TDK Corporation C1608X7R1H473K CAP CER 47000PF 50V X7R 10% 0603 39 2 R18,R85 1 SM/R_0603 DI Vishay/Dale CRCW06031R00FKEA RES 1.00 OHM 1/10W 1% 0603 SMD 40 1 D3 NSR0530P2T5G SM/SOD_923 DNI ON Semiconductor NSR0530P2T5G DIODE SCHOTTKY 30V 0.5A SOD-923 41 1 R24 20 SM/R_0603 DNI Panasonic - ECG ERJ-3GEYJ200V RES 20 OHM 1/10W 5% 0603 SMD 42 2 R80,R84 3.3k SM/R_0603 DI Rohm Semiconductor MCR03EZPJ332 RES 3.3K OHM 1/10W 5% 0603 SMD 43 1 R36 3.3k SM/R_0603 DNI Rohm Semiconductor MCR03EZPJ332 RES 3.3K OHM 1/10W 5% 0603 SMD 44 1 U10 LCMXO2-1200-CSBGA132 CSBGA132 DI Lattice LCMXO2-1200- LCMXO2-1200- CSBGA132 CSBGA132 45 1 U7 LCD-S401M16KR LCD- DI Lumex LCD-S401M16KR LCD custom order from S401M16KR Opto/Components Inc phil@duerfeldtengineering. com 46 12 R62,R63,R67,R68,R72,R74, 5.49k SM/R_0603 DI Panasonic - ECG ERJ-3EKF5491V RES 5.49K OHM 1/10W R76,R77,R82,R83,R86,R87 1% 0603 SMD 47 1 R37 68 SM/R_0603 DI Panasonic - ECG ERJ-3GEYJ680V RES 68 OHM 1/10W 5% 0603 SMD 48 2 C55,C56 18pF SM/C_0603 DI TDK Corporation C1608C0G1H180J CAP CER 18PF 50V C0G 5% 0603 49 1 C51 3.3uF SM/C_0603 DI TDK Corporation C1608X5R0J335K CAP CER 3.3UF 6.3V X5R 0603 50 1 C13 4.7uF SM/C_0603 DI TDK Corporation C1608X5R0J475K CAP CER 4.7UF 6.3V X5R 0603 51 1 L3 600ohm 500mA FB0603 DI Murata Electronics North BLM18AG601SN1D FERRITE CHIP 600 OHM America 500MA 0603 52 1 U23 FT2232HL tqfp64_0p5_12p2 DI Future FT2232H R USB UART/FIFO x12p2_h1p6 53 1 X3 12MHZ crystal_4p_3p2x2 DI TXC CORPORATION 7M-12.000MAAJ-T CRYSTAL 12.000 MHZ p5 18PF SMD 54 3 U20,U21,U22 STG3693QTR QFN DI STMicroelectronics STG3693QTR IC SWITCH QUAD SPDT 16QFN 55 1 U15 LMP7708 MSOP DI STMicroelectronics LMP7708MM/NOPB IC AMP PREC R-R OUT DUAL 8-MSOP 56 2 C22,C27 220pF SM/C_0603 DI TDK Corporation C1608X7R1H221K CAP CER 220PF 50V X7R 10% 0603 57 1 U9 AT25DF041A-SH-B AT25DF041A- DI Atmel AT25DF041A-SH-B IC FLASH 4MBIT 70MHZ SOIC-8 8SOIC 58 1 G4 Lattice Logo LOGO300_1000 DI

59 1 G5 E-Friendly EFRIENDLY_400 DI _SM 60 1 G6 WEEE WEEE_SM DI

61 4 TP1,TP2,TP3,TP4 TP LOGO300_1000 DI

62 4 U11,U12,U13,U14 CapTouch CapTouch

17 MachXO2 Pico Development Kit User’s Guide

Appendix C. SPI Programming • In order to support SPI programing of the MachXO2 device the zero ohm resistors (R71, R70, R66, R69) will have to be removed • Once removed, the SPI programming pins can be accessed via the header U3 (XO2_SPI_OUT, XO2_SPI_IN, XO2_SPI_CLK, XO2_SPI_SN) – Programming is supported using Diamond Programmer\ispVM or using an external processor – As defined in “Appendix E. Limitations” on page 21 the signal XO2_SPI_CLK is recommended to have a  1K Ohm pull up to VCC_IO

18 MachXO2 Pico Development Kit User’s Guide

Appendix D. Dual Boot Demonstration You can demonstrate MachXO2 dual boot using the MachXO2 Pico Evaluation Board.

Before you start you will need to do the following:

1. Create a SVF file to erase only the Configuration Flash and UFM memory. Do NOT erase the Feature Row. a. Use ispVM or Diamond Programmer to create a SVF file with the which erases the device as a base- line. b. Modify your SVF to change the following: ! Shift in ISC ERASE(0x0E) instruction SIR 8 TDI (0E); SDR 8 TDI (0C); ! Change from E=1110 to C=1100 no Feature Row c. For more information on the Feature Row, refer to TN1204, MachXO2 Programming and Configuration Usage Guide. 2. Update the MachXO2 Pico Demo to enable dual boot. a. Using Diamond in the Spreadsheet View, Global Preference tab set MASTER_SPI_PORT=ENABLE. 3. Power-on the SPI memory on the MachXO2 Pico Evaluation Board. a. This is a low power board and if something is not used it is powered down. This can done by shorting the south side of C25 and R97 by soldering or holding a probe on them as they are beside each other. For reference, the north side of the board has the header U3. Shorting these components provides sets the mux U21 select high powering up the SPI device. b. For more information, refer to the board schematics in “Appendix A. Schematic” on page 10.

4. As defined in “Appendix E. Limitations” on page 21 the signal XO2_SPI_CLK is recommended to have a 1K Ohm pull up to VCC_IO. Figure 14. MachXO2 Pico Evaluation Board SPI/I2C Bus Power Enable

R96 C25 R97

U21

19 MachXO2 Pico Development Kit User’s Guide

Demonstrating Dual Boot 1. Program the MachXO2 device with the modified Pico Demo. a. Select the operation Flash Erase, Program, Verify. b. “PICO” will display on the LCD showing that it is running. 2. Program the SPI Flash (SPI-AT25DF041A) on the board with the modified Pico Demo. a. Using ispVM or Diamond Programmer the SPI Flash can be programmed with the SPI Flash Program- ming option. b. As defined in TN1204, MachXO2 Programming and Configuration Usage Guide, the starting address must be 0x010000. 3. Reprogram the MachXO2 device with the modified Pico Demo as the Feature Row was erased when the SPI was programmed. 4. Erase the MachXO2 Flash (and not the Feature Row) using the modified SVF file. 5. Power cycle and watch dual boot in action as the MachXO2 loads the image from the SPI into the SRAM. a. “PICO” will display on the LCD showing that it is running. b. The Flash can be read back, confirming that the SRAM image came from the SPI memory.

20 MachXO2 Pico Development Kit User’s Guide

Appendix E. Limitations • Pin A7 USB_12MHz clock should be an input unless R31 is removed to ensure FTDI device operation • Pin B9 JTAGENB is not connected on the board • It is recommended to have a 1K Ohm pull up on MachXO2 pin MCLK (signal XO2_SPI_CLK)

21