EasyManua.ls Logo

Lattice Semiconductor MachXO2 - Machxo2 Flash Memory Programming Flow

Lattice Semiconductor MachXO2
57 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MachXO2 Programming and Configuration Usage Guide
43
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
Fail?
Yes
No
Start
Stop
Check
Device ID?
Transmit Read ID
Command (0xE0)
Check
Flags?
Delay
5 µs
Busy?
Busy?
ID
Match?
Transparent
Configuration?
Transmit Enable
Configuration Interface
(Transparent Mode)
Command (0x74)
Erase Flash
CF/UFM
Command (0x0E)
Transmit Read Busy
Flag (0xF0) or Read
Status Register
Command (0x3C)
Read 32 ID Bits
Transmit Enable
Configuration
Interface (Offline Mode)
Command (0xC6)
Transmit Read Busy
Flag (0xF0) and Read
Status Register
Command (0x3C)
Transmit
Read Status Register
Command (0x3C)
Note: Do not use fixed delays for the Flash erase sequence.
No
No
No
No
oN
oN
Yes
Yes
Yes
Yes
Yes
No
Check
Flags?
Delay
5 µs
Busy?
Transmit Read Busy
Flag (0xF0) and Read
Status Register
Command (0x3C)
No
Yes
1
Exit
Erase Flash
CF/UFM/FR
Command (0x0E)
To 'Check Device ID' over the I
2
C configuration port,
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
2
C bus rate.
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'.
Note:
Exit
Fail?
Fail?
Yes
Yes
No No
Yes

Other manuals for Lattice Semiconductor MachXO2

Related product manuals