18.12.2012 Aufrufe

MachXO2 Programming and Configuration Usage Guide - Lattice ...

MachXO2 Programming and Configuration Usage Guide - Lattice ...

MachXO2 Programming and Configuration Usage Guide - Lattice ...

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

<strong>MachXO2</strong> ユーザガ イ ド<br />

ラティスセミコンダクター プログラミングとコンフィグレーション<br />

// Enable the Flash, enter <strong>Programming</strong> Mode<br />

! Issue START<br />

! Transmit slave address with write (X80)<br />

! Transmit ISC ENABLE comm<strong>and</strong> (0xC6), followed by 3 oper<strong>and</strong>s (0x08, 0x00, 0x00)<br />

! Issue STOP<br />

// Erase the Flash (<strong>Configuration</strong> Flash <strong>and</strong> UFM)<br />

! Issue START<br />

! Transmit slave address with write (0x80)<br />

! Transmit ISC ERASE comm<strong>and</strong> (0x0E), followed by 3 oper<strong>and</strong>s (0x0C, 0x00, 0x00)<br />

! Issue STOP<br />

! Wait 5s for Flash erase<br />

//Program the <strong>Configuration</strong> Flash<br />

! Issue START<br />

! Transmit slave address with write (0x80)<br />

! Transmit LSC_INIT _ADDRESS comm<strong>and</strong> (0x46), followed by 3 oper<strong>and</strong>s (0x00, 0x00,<br />

0x00)<br />

! Issue STOP<br />

! Issue START<br />

! Transmit slave address with write (0x80)<br />

! Transmit LSC_PROG_INCR_NV comm<strong>and</strong> (0x70), followed by 3 oper<strong>and</strong>s (0x00, 0x00, 0x00)<br />

! Transmit one 16 data byte page<br />

! Issue STOP<br />

! Wait 1ms for Flash page programming<br />

! Repeat above comm<strong>and</strong> sequence “LSC_PROG_INCR_NV comm<strong>and</strong> + 3 oper<strong>and</strong>s + 1 page of<br />

! data + Wait” for all the Flash pages<br />

// Program the UFM<br />

! Issue START<br />

! Transmit slave address with write (0x80)<br />

! Transmit LSC_INIT_ADDR_UFM comm<strong>and</strong> (0x47), followed by 3 oper<strong>and</strong>s (0x00, 0x00,<br />

0x00)<br />

! Issue STOP<br />

! Issue START<br />

! Transmit slave address with write (0x80)<br />

! Transmit LSC_PROG_INCR_NV comm<strong>and</strong> (0x70), followed by 3 oper<strong>and</strong>s (0x00, 0x00, 0x00)<br />

! Transmit one 16 data byte page<br />

! Issue STOP<br />

! Wait 1ms for Flash page programming<br />

! Repeat above comm<strong>and</strong> sequence “LSC_PROG_INCR_NV comm<strong>and</strong> + 3 oper<strong>and</strong>s + 1 page of<br />

! data + Wait” for all the Flash pages<br />

// Program DONE bit<br />

! Issue START<br />

! Transmit slave address with write (0x80)<br />

! Transmit ISC PROGRAM DONE comm<strong>and</strong> (0x5E), followed by 3 oper<strong>and</strong>s (0x00, 0x00, 0x00)<br />

! Issue STOP<br />

14-26 TN1204JP_01.3e

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!