Summary of Contents for Lattice Semiconductor MachXO
Page 1
MachXO™ Mini Development Kit User’s Guide March 2012 Revision: EB41_01.4 Arrow.com. Downloaded from...
Page 2
Features The MachXO Mini Development Kit includes: • MachXO Mini Evaluation Board – The Mini board is a small board (about the size of a business card) with the following on-board components and circuits: – MachXO LCMXO2280C-4TN144C CPLD –...
Page 3
C peripheral controller). The Mini SoC demo design is pre- programmed into the MachXO Mini Evaluation Board by Lattice. • MachXO Sleep Mode – Shows application of an external “sleep circuit” to cycle the low-power, sleep mode input of the MachXO PLD.
Page 4
Before you begin, you will need to obtain the necessary hardware drivers for Windows from the Lattice web site. To download Windows Hardware Drivers: 1. From the MachXO Mini Development Kit web page, locate the hardware device drivers for the RS-232/USB debug interface.
Page 5
2. Use .\Demo_MachXO_Mini_SoC\project\impl1\mini_soc_demo_impl1.jed to restore the Mini SoC demo design. Connect to the MachXO Mini Evaluation Board Use the USB cables provided to connect the evaluation board to your PC: 1. Connect one USB cable from a USB port on your PC to the board’s RS-232/USB Debug socket (DEBUG-J8) on the top-left side of the board as shown in Figure 2.
Page 6
MachXO Mini Development Kit User’s Guide 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 HyperTer- minal application and a Connection Description dialog appear.
Page 7
MachXO Mini Development Kit User’s Guide 6. Select the COM port identified in Step 3 from the Connect using: list. Click OK. The COMn Properties dialog appears where n is the COM port selected from the list. 7. Select the following Port Settings.
Page 8
MachXO Mini Development Kit User’s Guide ========================================================================= Welcome to the MachXO Mini Evaluation Board Mini SoC Demonstration Rev 1.0, February 2009 Main Menu ------------------------------------------------------------ 0: Re-display Main Menu 1: Read SPI Flash Memory IDCode 2: Read I2C Temperature Sensor 3: Read DIP Switch Bank...
Page 9
MachXO Mini Development Kit User’s Guide To scan the SPI Flash Memory IDCode: 1. From the terminal Main Menu, press 1. The ID number is returned as a hex value and the transaction is logged to the on-board SRAM and the current address pointer is indicated.
Page 10
MachXO Mini Development Kit User’s Guide To read data history from SRAM: 1. From the terminal window press 5. The transaction log is listed. Example: SRAM: Temp:30.50°C ID:0x12 SW:0X0 Copy Data History from On-Board SRAM to SPI Flash Memory This demo uses both the SRAM and SPI Flash Memory controller modules of the Mini SoC to copy the transaction history logged to the volatile on-board SRAM to the non-volatile on-board SPI Flash Memory.
Page 11
When I/O pin 89 goes low, C60 discharges. PNP transistor Q5 then conducts, discharging C59. Provided SW1D is closed, this value is forced onto the SLEEPN pin of the MachXO device, putting it into low power sleep mode. Once in sleep mode, all I/O pins are tristated, allowing C60 to slowly charge. This then turns off Q5 and allows C59 to charge.
Page 12
LED bank. If no inputs have changed it will return to the sleep state. The LED bank will flicker during the sleep/wake cycle. 5. Depress SW1. The MachXO wakes for ~3s and the LED array is lit according the SW1 values. Once the SW1 is released the Mini board reverts to the sleep/wake cycle.
Page 13
3. Toggle SW1_2 CNTEN to the OFF (1) position. The LEDs show the up-counter values. In the following procedure you will load a down-count function into the MachXO Flash program space. After the TransFR operation is complete, the down-counter results will be displayed on LEDs.
Page 14
I/Os ever having been tri-stated. To prepare the transfer of Flash configuration contents to the SRAM space of the MachXO: 1. From ispVM System, choose ispTools > Scan Chain. The New Scan Configuration Setup window appears.
Page 15
You have now built the TransFR serial vector format (SVF) file that you will use in the ispVM SVF Debugger pro- gram. To transfer the Flash configuration contents to the SRAM space of the MachXO: 1. Choose ispTools > SVF Debugger... The SVF Debugger application initial Svf File1 screen appears.
Page 16
14. Press F11. SVFDebugger reports “Process Done. No Error”. Click OK. The MachXO I/Os are now released from boundary scan control and counter’s initial value (0xFF) is driven to the LED displays. The displays do not start counting yet because the CNTEN is deasserted.
Page 17
• .\RDxxxx – Reference designs integrated by the Mini SoC Demo. Programming Demo Designs with ispVM This section describes the programming procedure to program the MachXO device using ispVM. If you have Lat- tice Diamond 1.3 installed, then you must download the latest version of the ispVM System device programming software.
Page 18
MachXO Mini Development Kit User’s Guide To program a demo programming file: 1. Connect the Mini board to a host PC using both USB DEBUG and PROG ports. 2. From the Mini board toggle SW1D to the OFF position. 3. From the Start menu run ispVM System. ispVM appears.
Page 19
6. Import the logical preference file (<demo>.lpf) with I/O plan and timing requirements. 7. Run the Generate Data File (JEDEC) process. 8. See the MachXO Sleep Mode Demo section of this document for details on downloading a programming file to the Mini board.
Page 20
This section describes the features of the MachXO Mini Evaluation Board in detail. Overview The Mini board is a complete USB-powered development platform for the Lattice MachXO PLD. The board includes on-board SRAM and SPI Flash memory, I C and SPI microcontroller communication interfaces, a USB pro- gram/debug port, and an expansion header to support test connections.
Page 21
This section describes the principle subsystems for the Mini board in alphabetical order. Clock Sources Three clock sources are available to the MachXO, an unconditioned input from a 25MHz crystal or a 48MHz origi- nating from the FTDI USB Device controller.
Page 22
2x16 100mil centered pin header. Eight pins of the MachXO top bank (which provides PCI clamp support) and eight pins of the left or right bank (dif- ferential output support) are connected to the connector.
Page 23
Transistor Q3 Output as high as 5V 1. MachXO I/O pins are not 5V tolerant. This signal should not be connected to any MachXO pins. C Temperature Sensor The temperature sensor is a TI TMP101NA/250 device. It uses an I C/SMBus interface to provide the temperature reading on the board.
Page 24
A USB B-type mini socket on the board serves as the JTAG programming interface. For JTAG programming, a preprogrammed Cypress CY7C68013A USB peripheral controller, and boot PROM are provided on the Mini board to serve as the programming interface to the MachXO PLD. Programming requires the ispVM System software.
Page 25
The board has two user push-button switches (S1 and S2). S1 connects to the GSRN pin which asserts the Global Set/Reset input on the MachXO. In order for the GSR to operate, it is necessary to instantiate the GSR macro in the VHDL/Verilog HDL source, otherwise it may be used as a general input pin.
Page 26
MachXO Mini Development Kit User’s Guide Table 17. RS-232 Interface Pin Information Function Direction U1 Pin Description MachXO Pin Transmit Data Receive Data RTS# Request to Send CTS# Clear to Send DTR# Data Terminal Ready DSR# Data Set Ready DCD#...
Page 27
Eight red LEDs can be used for custom status signaling. The LEDs are located at the top of the board, next to the expansion header. Each LED illuminates when the corresponding pin on the MachXO is driven low. Table 22. User LEDs Reference...
User-defined Programming Programming for the MachXO device is controlled using the ispVM System software. Refer to the ispVM System software for help regarding operation of this software. The MachXO Mini Evaluation Board is equipped with a built-in USB-based programming circuit. This consists of a USB PHY and a USB connector.
Page 29
MachXO Mini Development Kit User’s Guide Table 24. MachXO Pin Information and Bank Summary (Continued) LCMXO2280TN144 Board Connection Pin # Pin Function Bank Mini SoC Demo PL4B Bank7 PL4C Bank7 VCCIO7 Bank7 PL6C Bank7 PL7A Bank7 PL7B Bank7 rst_n PL7D...
Page 30
MachXO Mini Development Kit User’s Guide Table 24. MachXO Pin Information and Bank Summary (Continued) LCMXO2280TN144 Board Connection Pin # Pin Function Bank Mini SoC Demo PB10B Bank4 sram_addr_5 PB12A Bank4 sram_addr_6 PB12B Bank4 sram_addr_7 PB12E Bank4 sram_addr_8 VCCIO4 Bank4...
Page 31
MachXO Mini Development Kit User’s Guide Table 24. MachXO Pin Information and Bank Summary (Continued) LCMXO2280TN144 Board Connection Pin # Pin Function Bank Mini SoC Demo PR3A Bank2 PT16D Bank1 PT16C Bank1 PT16B Bank1 PT16A Bank1 PT15D Bank1 PT15C Bank1...
Troubleshooting Mini Board is Not Responsive or ispVM Reports Programming Errors Ensure SW1D (4) is toggled to the OFF position. This will disable the MachXO Sleep Mode circuit. Determine the Source of a Pre-Programmed Part It is likely that you will receive your Mini board after it has been reviewed and reprogrammed by someone else. To restore the Mini board to the factory default, see the Download Demo Designs section of this document for details on downloading and reprogramming the device.
3. Start ispVM and choose ispTools > Scan. The LCMXO2280C appears in the Device List. 4. From the Operation list choose FLASH Calculate Checksum and click OK. 5. Choose Project > Download. ispVM reads the Flash contents from the MachXO and displays a hexadecimal checksum value in the Status column.
MachXO Mini Development Kit User’s Guide Appendix B. Bill of Materials Table 25. Bill of Materials Item Quantity Reference Part Part Number Description C1,C50,C60 0.33µF C2,C51 10µF 1µF C4,C5 12pF C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, 0.1µF...
Page 43
MachXO Mini Development Kit User’s Guide Table 25. Bill of Materials (Continued) Item Quantity Reference Part Part Number Description XO Global Reset XO Sleep FT232R / 32-QFN CY7C68013A-QFN56 U7,U9 NCP1117 CY128X8TSOP 24LC64 M25PE20 TMP101 LMV331 LCMXO2280C-4TN144 24 MHz 25 MHz Arrow.com.
MachXO Mini Development Kit User’s Guide Appendix C. Mini SoC Demo I/O Plan LOCATE preferences from mini_soc_demo.lpf. LOCATE COMP “led_0” SITE “137” ; LOCATE COMP “led_1” SITE “138” ; LOCATE COMP “led_2” SITE “139” ; LOCATE COMP “led_3” SITE “140” ;...
Need help?
Do you have a question about the MachXO and is the answer not in the manual?
Questions and answers