MachXO2 Pico Development Kit User`s Guide


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 Lattice Semiconductor 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™ microcontroller.
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 Development 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 components 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-1200ZEP1-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 integrates 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-RS232 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 Windows 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
MachXO21200ZE
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 provides 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 context 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 control, 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 initialization, 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
PC
UART
Capacitive Touch
Sense Buttons
LatticeMico8
Microcontroller
LCD
Soft
ADC
Master
SPI
Embedded
Block RAM
Master
I2C
Analog
Signal
SPI
Flash
I2C
Temp
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 interface.
2. Download the ZIP file to your system and unzip it to a location on your PC.
Linux Support:
The USB interface drivers for the evaluation board are included in Linux kernel 2.4.20 or greater, including distributions 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 Windows 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 message 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 version.
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
Description
MachXO2 Pico Development Kit
Ordering Part Number
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
China RoHS Environment-Friendly
Use Period (EFUP)
MachXO2 Pico Development Kit
User’s Guide
Revision History
Date
Version
February 2011
01.0
Initial release.
Change Summary
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 MachXO21200-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” diagram 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
A
B
C
D
C1
1uF
DI
R59
10k
DNI
R53
1M
DNI
DI
IRLML6402PbF
Q4
5
3
+3.3VorBat
VIN
U2
1
2
R54
4.7k
SM/R_0603
DI
C2
1uF
MCP1703T-1202E/CB DI
VOUT
GND
+1.2V
+3.3V or Bat -> +1.2V Rail
[pg3] PWR_ENABLEb
C23
0.33uF
DI
+5V_USB
+5V
3
C21
1uF
DI
R19
1M
DI
SM/R_0603
D2
Blue
SM/D_0603
DI
R60
1k
SM/R_0603
DI
4
IN
U8
1
1
R18
1
1%
SM/R_0603
DI
1
DI
TP1
C7
6.8uF
DI
SM/C_1206
+3.3V
DI
TP2
3
TP1-TP4 are 10mil free Via's
Locate TP1 & TP2 very close to R35
Locate TP3 & TP4 very close to R34
+
To U9 sense for current
Thin signal traces or non load bearing copper pour
Direct path from R35 to U7
VCC_CORE
Q3
IRLML6402PbF
DI
+1.2V
2
4
NCP1117
DI
OUT
TAB
GND
Core Current
SOT-223_checkpins
C8
10uF
DI
SM/C_0805
3
+5.0V_USB_CABLE -> +3.3V Rail +3.3V_USB
4
10k
DI
SM/R_0603
+5V
+3.3VorBat
10k
DI
R29
R5
100k
DI
Q1
IRLML6402PbF
DI
2
TP3
DI
VCCIO_EXT
VCC_IO
2
TP4
DI
SM/R_0603
DI
To U9 sense for current
Thin signal traces
Direct path from R34 to U7
1
1%
R85
I/O Current
USB plugged in => +5V is High, Q4=ON, Q5=OFF
USB un plugged => +5V is Low, Q4=OFF, Q5=ON
R28
100k
DI
SM/R_0603
R27
Q2
IRF240
1
10
1
5
2
3
V-
Batt_Cell_Holder
Vbat+2
Vbat+
NSR0530P2T5G
D3
BT1
1
Lattice Semiconductor Applications
Email: [email protected]
Phone (503) 268-8001 -or- (800) LATTICE
CR2032
Battery Clip/
Optional Charger
20
DNI
SM/R_0603
DNI
R24
Project
MACHXO2 Pico Board
Friday, March 4, 2011
Size
B
Date:
1
Sheet
A
E
Schematic Rev
Board Rev
1
of 6
Title
USB 5V, XO Power Rails 3.0V Batt, 1.2V Rail and Current Monitors
+5V
1
A
B
C
D
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
11
A
B
C
D
5
VCC_IO
[pg5]
VCCIO_EXT
High = Powered (S1)
Low = Disabled (S2)
EnAMP
VCC_CORE
+1.2V
D1
D2
D3
D4
VCC
U20
3S1
3S2 123SEL
4SEL
4S1
GND
4S2
2S1
2S2
1S1
1S2
STG3693QTR
12
14
7
9
4
6
15
1
C26
0.1uF
DI
2
11
3
10
16
5
8
13
4
+3.3VorBat
4
VCC_IO
A
B
7
1
C22
220pF
DI
R51
2k
0.1%
DI
C27
220pF
DI
R57
2k
0.1%
DI
C24
0.1uF
DI
3
D1
D2
D3
D4
VCC
3S1
3S2 123SEL
4SEL
4S1
4S2
GND
2S1
2S2
1S1
1S2
STG3693QTR
12
14
7
9
4
6
15
1
U21
C25
0.1uF
DI
11
3
10
16
5
8
13
2
0
DI
R96
3
0
DI
R97
Vrefin
PWR_AMP
+3.3VorBat
1k
DI
1%
R79
R61
2k
DI
1%
R81
500
DI
1%
0
DI
R75
0
DI
0
C30
0.047uF DI
DI
R65
EnAMP
EnI2CSPI
R46
2k
DI
1%
[pg5]
[pg5]
1k
DI
1%
R92
PWR_I2CSPI
Vrefin
1k
DI
1%
R50
R91
0
500
DI
DI
1%
R89
0
DI
C19 0
DI
0.047uF
DI
R49
R40
2
DSVrefVcc
DSOutVcc
DSInVcc
2
DSVrefVcco
DSOutVcco
DSInVcco
Delta Sig Icco Measurement
Vrefin
1k
DI
1%
R64
Delta Sig Icc Measurement
R58
High = Powered (S1)
Low = Disabled (S2)
Power Supply Enable Mux
DI
6 -
5 +
LMP7708
U15B
PWR_AMP
DI
2 -
3 +
R42
2k
0.1%
DI
LMP7708
U15A
+3.3VorBat
R38
2k
0.1%
DI
R41
50
0.1%
DI
R39
50
0.1%
DI
R52
50
0.1%
DI
R45
50
0.1%
DI
PWR_AMP
8
4
8
4
5
[pg5]
[pg5]
[pg5]
[pg5]
[pg5]
[pg5]
Project
MACHXO2 Pico Board
Friday, March 4, 2011
Size
B
Date:
Title
Current Sense Amplifiers, Power Enable Mux
1
Sheet
Lattice Semiconductor Applications
Email: [email protected]
Phone (503) 268-8001 -or- (800) LATTICE
1
A
E
Schematic Rev
Board Rev
2
of 6
A
B
C
D
MachXO2 Pico Development Kit
User’s Guide
Figure 9. Current Sense Amplifiers, Power Enable Mux
A
B
C
C3
0.1uF
1
VCC
NC
ORG
GND
10
11
6
7
8
9
4
5
2
3
CS
SK
DIN
DOUT
C6
10nF
1
2
3
4
2.2k
EECS
EESK
EEDATA
R4
R3
10k
R1
10k
SM/R_0603
10k
SM/R_0603
SM/R_0603
R26
Digi-Key Part Number 497-5090-1-ND
5
C5
10nF
100k
+3.3V
R7
DI
DI
SM/C_0603
SHLD_Debug
R8
0
DI
L1
Ferrite_bead
SM/R_0603
DI
DI
M93C46-WMN6TP
DI
SOIC-8
M93C46-WMN6TP Manuf:ST Micro
8
7
6
5
U1
MH1
MH2
CASE
CASE
CASE
CASE
NC
GND
DD+
VCC
USB_MINI_B DI
+3.3V
TYPE_B
J1
USB Connection
+5V_USB
4
1
X3
3
[pg4]
USB_12MHZ
DI
4
3
+3.3V
2 G1 G2
C56
18pF 12MHZ
DI
1
VCC18FT
0
DI
R31
12k
DI
R98
C51
3.3uF
DI
C55
18pF
DI
2.2k
DI
R30
L3
2
1
600ohm 500mA
C12
0.1uF
DI
13
3
2
63
62
61
6
14
7
8
49
50
DI
3
C57
0.1uF
DI
+3.3V
FT2232H
PWREN#
BCBUS0
BCBUS1
BCBUS2
BCBUS3
BCBUS4
BCBUS5
BCBUS6
BCBUS7
BDBUS0
BDBUS1
BDBUS2
BDBUS3
BDBUS4
BDBUS5
BDBUS6
BDBUS7
ACBUS0
ACBUS1
ACBUS2
ACBUS3
ACBUS4
ACBUS5
ACBUS6
ACBUS7
ADBUS0
ADBUS1
ADBUS2
ADBUS3
ADBUS4
ADBUS5
ADBUS6
ADBUS7
SUSPEND#
FTDI High-Speed USB
TEST
OSCO
OSCI
EECS
EECLK
EEDATA
REF
RESET#
DM
DP
VREGOUT
VREGIN
C54
0.1uF
DI U23
FT2232HL
C13
4.7uF
DI
3
4
9
VPHY
VPLL
AGND
10
+3.3V
12
37
64
VCORE
VCORE
VCORE
D
4
20
31
42
56
VCCIO
VCCIO
VCCIO
VCCIO
GND
GND
GND
GND
GND
GND
GND
GND
12
1
5
11
15
25
35
47
51
5
36
60
48
52
53
54
55
57
58
59
38
39
40
41
43
44
45
46
26
27
28
29
30
32
33
34
16
17
18
19
21
22
23
24
C58
0.1uF
DI
R36
3.3k
DNI
+3.3V
0
DI
R15
2
0
DI
R16
2
0
DI
0
DI
R11
R14
0
DI
R34
0
DI
R13
0
DI
R43
0
DI
R47
R55
0
DI
U22
2S1
2S2
1S1
1S2
0
DI
R20
0
DI
R56
1
Project
MACHXO2 Pico Board
Friday, March 4, 2011
Size
B
Date:
1
Sheet
A
E
Schematic Rev
[pg1]
[pg5]
[pg5]
[pg5]
[pg5]
Board Rev
3
of 6
PWR_ENABLEb
[pg5]
BDBUS7
[pg5]
BDBUS5
[pg5]
[pg5]
BDBUS4
BDBUS6
[pg5]
[pg5]
BDBUS3
[pg5]
[pg5]
BDBUS2
BDBUS1
BDBUS0
USB_TMS
USB_TDO
USB_TDI
USB_TCK
[pg4,5]
[pg4,5]
USB_SCL
USB_SDA
Lattice Semiconductor Applications
Email: [email protected]
Phone (503) 268-8001 -or- (800) LATTICE
0
DI
R21
12
14
7
9
4
6
15
1
STG3693QTR
3S1
123SEL 3S2
4SEL
4S1
GND
4S2
D1
D2
D3
D4
VCC
FT2232 Controlled
High = JTAG
Low = I2C
11
3
10
16
5
8
13
2
Title
USB to JTAG and I2C for the XO2
0
DI
R35
C9
0.1uF
DI
+3.3VorBat
A
B
C
D
MachXO2 Pico Development Kit
User’s Guide
Figure 10. USB to JTAG and I2C for the MachXO2
13
A
B
C
D
[pg3,5] USB_SCL
[pg3,5] USB_SDA
Tmp_I2C_ALERT
5
R78
10k
DI
PWR_I2CSPI
5
R80
3.3k
DI
[pg3,5] USB_SDA
0
DI
0
DI
R23
C14
D12
LCD_COM2
LCD_COM3
U10A
DI
0_1uF
Bank1
4
PT16A
PT16B
PR10C
PR10D
PR10A
PR10B
PR9C
PR9D
PR9A
PR9B
PR8C
PR8D
PR8A
PR8B
PT17C/INITN
PT17D/DONE
PT17A
PT17B
PT16C
PT16D
6
1
4
U5
GND
ADD0
ALERT
TMP101
DI
SDA
SCL
VCC
2
5
3
PWR_I2CSPI
Temperature Sensor
Slave Addr 1001010
LCMXO2-1200-CSBGA132
PR5C/PCLKT1_0
PR5D/PCLKC1_0
PR5A
PR5B
PR4C
PR4D
PR4A
PR4B
PR3A
PR3B
PR2C
PR2D
PR2A
PR2B
U10B
LCMXO2-1200-CSBGA132
TCK
TMS
TDO
TDI
PT15A
PT15B
PT15C/JTAGENB
PT15D/PROGRAMN
Bank0
PT12C/SCL/IO2/PCLKT0_0
PT12D/SDA/IO3/PCLKC0_0
PT12A/PCLKT0_1
PT12B/PCLKC0_1
PT11A
PT11B
PT10A
PT10B
PT9A
PT9B
PWR_I2CSPI
C20
G13
H12
G12
G14
F13
F14
E13
F12
E12
E14
B14
C13
B6
A6
A4
B4
C8
B8
A7
B7
B5
C6
LCD_COM0
LCD_COM1
R22
XO2_TDO
XO2_TDI
[pg5] XO2_TCK
[pg5] XO2_TMS
[pg5]
[pg5]
[pg3] USB_12MHZ
[pg3,5] USB_SCL
R84
3.3k
DI
A3
C4
A2
B3
4
0
DI
R17
N13
N14
M12
M14
L14
M13
K13
K14
J13
K12
J12
J14
B13
A13
C12
A12
A11
B12
A10
C11
B9
C10
C9
A9
3
Tmp_I2C_ALERT
LCD_11
LCD_12
LCD_9
LCD_10
LCD_7
LCD_8
LCD_5
LCD_6
PROTO_B13 [pg5]
PROTO_A13 [pg5]
PROTO_C10 [pg5]
3
LCD_COM2
LCD_COM1
LCD_COM0
LCD_COM0_LP
LCD_COM1_LP
LCD_COM2_LP
LCD_COM3_LP
COM0
COM1
COM2
COM3
U7
LCD_7
2
C33
0.01uF
DI
C32
0.01uF
DI
C42
0.01uF
DI
R86
5.49k
DI
LCD_12_LP
C43
0.01uF
DI
R87
5.49k
DI
LCD_11_LP
C39
0.01uF
DI
R82
5.49k
DI
LCD_10_LP
LCD_11_LP
LCD_12_LP
LCD_9_LP
LCD_10_LP
LCD_7_LP
LCD_8_LP
LCD_5_LP
LCD_6_LP
1
Project
MACHXO2 Pico Board
Friday, March 4, 2011
Size
B
Date:
1
Sheet
Lattice Semiconductor Applications
Email: [email protected]
Phone (503) 268-8001 -or- (800) LATTICE
C40
0.01uF
DI
R83
5.49k
DI
LCD_9_LP
LCD_12
C36
0.01uF
DI
R76
5.49k
DI
LCD_8_LP
LCD_11
C37
0.01uF
DI
R77
5.49k
DI
LCD_7_LP
11
12
9
10
7
8
5
6
Title
XO2 Bank 0-1, LCD, I2C Temp
R72
5.49k
DI
LCD_6_LP
R68
5.49k
DI
LCD_COM2_LP
LCD_9
C34
0.01uF
DI
C28
0.01uF
DI
LCD_6
R74
5.49k
DI
LCD_5_LP
LCD_8
C31
0.01uF
DI
R67
5.49k
DI
LCD_COM3_LP
LCD_10
4D,4E,4G,4F
COL,4C,4B,4A
3D,3E,3G,3F
DP3,3C,3B,3A
2D,2E,2G,2F
DP2,2C,2B,2A
LowPass Filter
LCD-S401M16KR
1D,1E,1G,1F
DP1,1C,1B,1A
4 Char LCD
R62
5.49k
DI
LCD_COM1_LP
LCD_5
C29
0.01uF
DI
R63
5.49k
DI
LCD_COM0_LP
LCD_COM3
1
2
3
4
2
A
E
Schematic Rev
Board Rev
4
of 6
A
B
C
D
MachXO2 Pico Development Kit
User’s Guide
Figure 11. MachXO2 Banks 0-1, LCD, I2C Temperature
14
A
B
C
D
1
5
CapTouch
CapBtn
C50
0.1uF
DNI
CapBtn4
R93
100k
DNI
U14
C48
0.1uF
DNI
CapBtn2
R94
100k
DNI
CapTouch
CapBtn
VCCIO_EXT
C49
0.1uF
DNI
CapBtn3
1
U11
R90
100k
DNI
VCCIO_EXT
VCCIO_EXT
C47
0.1uF
DNI
CapBtn1
R88
100k
DNI
VCCIO_EXT
N3
P4
PushBtn
1
1
CapTouch
CapBtn
U13
CapTouch
CapBtn
U12
PROTO_K1
PROTO_K3
4
M1
M2
L3
K1
K3
J3
K2
J1
J2
H1
H3
P7
N7
N6
P6
N5
M5
M4
N4
P3
M3
XO2_SPI_CS0
XO2_SPI_CLK
XO2_SPI_OUT
P2
N2
4
EnAMP
EnI2CSPI
[pg2]
[pg2]
Capacitive Touch Pads
5
U10C
PB20A
PB20B
PB18C
PB18D
G3
H2
F1
F3
E3
F2
E1
E2
C2
D1
C1
C3
B1
B2
N12
P13
M11
P12
M10
P11
M9
N10
P9
N9
P8
M8
M7
N8
PROTO_C2
PROTO_D1
PROTO_C1
PROTO_C3
PROTO_B1
PROTO_B2
XO2_SPI_SN
XO2_SPI_IN
CapBtn3
CapBtn4
CapBtn1
CapBtn2
DSVrefVcco
DSInVcco
DSOutVcc
DSOutVcco
DSVrefVcc
DSInVcc
PROTO_M7
PROTO_N8
[pg2]
[pg2]
[pg2]
[pg2]
[pg2]
[pg2]
C11
0.1uF
DI
DI
3
4
2
1
GlobalReset
3
Part Number:EVQ Q2K03W
Panasonic SMD
PCB Footprint = SMT_SW
PushBtn
R25
10k
DI
VCCIO_EXT
S1
BDBUS6
BDBUS7
BDBUS4
BDBUS5
BDBUS2
BDBUS3
BDBUS0
BDBUS1
GSR/Wake from Standby
PL5A/PCLKT3_1
PL5B/PCLKC3_1
PL4C
PL4D
PL4A
PL4B
PL3C
PL3D
PL3A/PCLKT3_2
PL3B/PCLKC3_2
PL2C/L_GPLLT_IN
PL2D/L_GPLLC_IN
PL2A/L_GPLLT_FB
PL2B/L_GPLLC_FB
Bank3
LCMXO2-1200-CSBGA132
PL10C
PL10D
PL10B
PL9A/PCLKT3_0
PL9B/PCLKC3_0
PL8C
PL8D
PL8A
PL8B
PL5C
PL5D
U10D
LCMXO2-1200-CSBGA132
PB11C
PB11D
PB9A/PCLKT2_0
PB9B/PCLKC2_0
PB9C
PB9D
PB18A
PB18B
PB15C
PB15D
PB15A
PB15B
PB11A/PCLKT2_1
PB11B/PCLKC2_1
PB20C/SN
PB20D/SI/SISPI/IO0
Bank2
PB6C/MCLK/CCLK
PB6D/SO/SPISO/IO1
PB6A
PB6B
PB4C/CSSPIN
PB4D
PB4A
PB4B
3
[pg3]
[pg3]
[pg3]
[pg3]
[pg3]
[pg3]
[pg3]
[pg3]
C10
0_1uF
DI
[pg3]
USB_TDI
[pg3]
USB_TDO
[pg3]
USB_TCK
[pg3]
USB_TMS
[pg3,4] USB_SDA
[pg3,4] USB_SCL
[pg4] PROTO_B13
[pg4] PROTO_A13
[pg4] PROTO_C10
2
PWR_I2CSPI
XO2_SPI_SN
XO2_SPI_CS0
XO2_SPI_CLK
XO2_SPI_IN
XO2_SPI_OUT
VCCIO_EXT
2
0
DI
+3.3VorBat
PROTO_K1
PROTO_K3
PROTO_M7
PROTO_N8
PROTO_B1
PROTO_B2
PROTO_C1
PROTO_C3
PROTO_C2
PROTO_D1
4MBit SPI
HEADER 16X2
R2
R32
R33
R37
R48
1
3
5
7
9
11
DI 0 13
DI 0 15
DI 0 17
DI 68 19
DI 0 21
23
25
27
29
31
R95
8
7
3
4
8
7
3
4
S
C
D
Q
1
6
5
2
U17
S
C
D
Q
1
6
5
2
0
DI
R69
XO2_SPI_CS0
XO2_SPI_CLK
XO2_SPI_IN
XO2_SPI_OUT
Project
MACHXO2 Pico Board
Friday, March 4, 2011
Size
B
Date:
1
Sheet
A
E
Board Rev
5
of 6
[pg4]
Schematic Rev
[pg4]
[pg4]
XO2_TCK
[pg4]
Lattice Semiconductor Applications
Email: [email protected]
Phone (503) 268-8001 -or- (800) LATTICE
XO2_SPI_CS0
XO2_SPI_CLK
XO2_SPI_IN
XO2_SPI_OUT
0
DI
R66
Title
XO2 Bank 2-3, Cap Pads, Expansion Header, SPI
AT25DF041A-MH
Vcc
Reset
W
Vss
0
DI
R70
Package: UDFN
0
DI
R71
R44
10k
DI
XO2_TMS
XO2_TDI
XO2_TDO
Package: SOIC8 (WIDE)
AT25DF041A-SH-B
Vcc
Reset
W
Vss
U9
(Refer to Appendix D. Limitations)
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
U3
Header
1
A
B
C
D
MachXO2 Pico Development Kit
User’s Guide
Figure 12. MachXO2 Banks 2-3, Capacitor Pads, Expansion Header, SPI
15
4
NC
VCCIO3
VCCIO3
VCCIO3
VCCIO2
VCCIO2
VCCIO2
VCCIO1
VCCIO1
VCCIO1
VCCIO0
VCCIO0
VCCIO0
L1
D3
G1
N11
M6
P1
L12
H14
D14
C5
A8
B10
C7
3
VCC_IO
M_HOLE1
DI
IW_MNT0
MH11
M_HOLE1
DI
IW_MNT0
1
VCC_IO
C35
0.1uF
DI
C46
0.1uF
DI
VCC_CORE
C41
0.1uF
DI
C44
0.1uF
DI
2
C38
0.1uF
DI
Title
XO2 Power
C45
0.1uF
DI
Lattice Semiconductor Applications
Email: [email protected]
Phone (503) 268-8001 -or- (800) LATTICE
1
C
D
Project
MACHXO2 Pico Board
Friday, March 4, 2011
Size
B
Date:
1
Sheet
A
E
Schematic Rev
Board Rev
6
of 6
A
LCMXO2-1200-CSBGA132
GND
GND
GND
GND
GND
GND
GND
GND
GND
GND
VCC
VCC
VCC
VCC
MH9
1
2
A
L2
G2
D2
L13
P10
P5
A5
B11
D13
H13
N1
P14
A1
A14
U10E
M_HOLE1
DI
IW_MNT0
M_HOLE1
DI
IW_MNT0
MH12
1
1
MH10
Board Mounting Holes
3
B
5
DI
VCC_CORE
DI
G4
Lattice Logo
1
DI
G5
E-Friendly
G6
WEEE
1
Board Logos
4
1
B
C
D
5
MachXO2 Pico Development Kit
User’s Guide
Figure 13. MachXO2 Power
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
0 SM/R_0603
DI
Panasonic ECG
ERJ-3GEY0R00V
Resistor 0.0 SMD 0603
5
35 R2,R8,R11,R13,R14,R15,R1
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
SM/R_0603
DI
Vishay/Dale
CRCW06031K00FKEA
Resistor 1k SMD 0603
7
8 R1,R3,R4,R25,R27,R29,R44, 10k
R78
SM/R_0603
DI
Vishay/Dale
CRCW060310K0FKEA
10K 0603 SMT resistor
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
Atmel
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
Holder
Linx Technologies Inc
BAT-HLD-001
HOLDER BATTERY 20MM
COIN CR2032
SM/C_0603
DI
TDK Corporation
C1608X7R1E104K
CAP CER .10UF 25V X7R
10% 0603
0.1uF
SM/C_0603
DNI
TDK Corporation
C1608X7R1E104K
CAP CER .10UF 25V X7R
10% 0603
0.01uF
SM/C_0603
DI
TDK Corporation
C1608X7R1H103K
CAP CER 10000PF 50V
X7R 10% 0603
17
18
19
1k
16 C3,C9,C11,C12,C24,C25,C2 0.1uF
6,C35,C38,C41,C44,C45,C46
,C54,C57,C58
4 C47,C48,C49,C50
12 C28,C29,C31,C32,C33,C34,
C36,C37,C39,C40,C42,C43
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
Products
MI0603J600R-00
FERRITE 1A 60 OHM
0603 SMD
25
1 U2
MCP1703T-1202E/CB
SOT-23A-3
DI
Microchip Technology
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
SOT223_checkpins
DI
STMicroelectronics
NCP1117ST33T3G
IC REG LDO 1A 3.3V
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
DNI
ON Semiconductor
NSR0530P2T5G
DIODE SCHOTTKY 30V
0.5A SOD-923
41
1 R24
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-1200CSBGA132
LCMXO2-1200CSBGA132
45
1 U7
LCD-S401M16KR
LCDS401M16KR
DI
Lumex
Opto/Components Inc
LCD-S401M16KR
LCD custom order from
[email protected]
com
5.49k
SM/R_0603
DI
Panasonic - ECG
ERJ-3EKF5491V
RES 5.49K OHM 1/10W
1% 0603 SMD
68 SM/R_0603
DI
Panasonic - ECG
ERJ-3GEYJ680V
RES 68 OHM 1/10W 5%
0603 SMD
46
12 R62,R63,R67,R68,R72,R74,
R76,R77,R82,R83,R86,R87
NSR0530P2T5G
SM/SOD_923
20 SM/R_0603
47
1 R37
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
America
FERRITE CHIP 600 OHM
500MA 0603
52
1 U23
FT2232HL
tqfp64_0p5_12p2 DI
x12p2_h1p6
Future
FT2232H R
USB UART/FIFO
53
1 X3
12MHZ
crystal_4p_3p2x2 DI
p5
TXC CORPORATION
7M-12.000MAAJ-T
CRYSTAL 12.000 MHZ
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
AT25DF041ASOIC-8
DI
Atmel
AT25DF041A-SH-B
IC FLASH 4MBIT 70MHZ
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 baseline.
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
U21
19
R97
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 Programming 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