Machxo2 Flash Memory Programming Flow - Lattice Semiconductor MachXO2 Programming And Configuration Usage Manual

Hide thumbs Also See for MachXO2:
Table of Contents

Advertisement

MachXO2 Flash Memory Programming Flow

The MachXO2 Flash memory erasure, and programming requires a specific set of steps and timing. The flow chart in this
section describes the command sequences and the timing required for successful Flash programming. The commands
and timing are common between all of the configuration ports. There are some minor variations in the protocol, but not
the timing, based on the configuration port used. Exceptions are described in the configuration port specific sections.
Figure 20. MachXO2 Flash Memory Programming Flow
Note:
To 'Check Device ID' over the I
the MachXO2 must be in Feature Row HW Default Mode state
(that is, blank/erased), or in User Mode state with the EFB
instantiated and with the EFB 'wb_clk_i' input connected
to a valid clock source of at least 7.5x the I
If the EFB is not instantiated (not recommended),
the I
2
C configuration port 'Check Device ID' readback data
will be 0xFFFF. To temporarily work around this limitation,
the 'Check Device ID' step can be omitted, or moved to
after the 'Transmit Enable Configuration Interface
(Transparent or Offline Mode) Command'.
Check
Delay
No
Flags?
5 µs
Yes
Transmit Read Busy
Flag (0xF0) and Read
Status Register
Command (0x3C)
MachXO2 Programming and Configuration Usage Guide
2
C configuration port,
2
C bus rate.
Transmit Enable
Configuration Interface
(Transparent Mode)
Command (0x74)
N
o
Fail?
Busy?
Yes
Erase Flash
Command (0x0E)
Yes
Start
Check
No
Device ID?
Yes
Transmit Read ID
Command (0xE0)
Read 32 ID Bits
ID
No
Match?
Yes
Yes
No
Transparent
Configuration?
Interface (Offline Mode)
Command (0xC6)
Exit
N
Fail?
Yes
No
No
Erase Flash
CF/UFM
CF/UFM/FR
Command (0x0E)
Transmit Read Busy
Flag (0xF0) or Read
Status Register
Command (0x3C)
Busy?
Note: Do not use fixed delays for the Flash erase sequence.
No
Transmit
Read Status Register
Command (0x3C)
Yes
Fail?
No
1
43
Stop
Transmit Enable
Check
Configuration
Flags?
Yes
Transmit Read Busy
o
Flag (0xF0) and Read
Busy?
Status Register
Command (0x3C)
Yes
Exit
Delay
No
5 µs

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents