OpenCores
URL https://opencores.org/ocsvn/usb_fpga_1_2/usb_fpga_1_2/trunk

Subversion Repositories usb_fpga_1_2

[/] [usb_fpga_1_2/] [trunk/] [examples/] [usb-1.0/] [flashdemo/] [Readme] - Diff between revs 3 and 4

Show entire file | Details | Blame | View Log

Rev 3 Rev 4
Line 2... Line 2...
---------
---------
 
 
This example demonstrates how data can be read and written to/from the
This example demonstrates how data can be read and written to/from the
Flash memory.
Flash memory.
 
 
During the start-up the firmware (defined in flashdemo.c) reads the number of
During the start-up the firmware (defined in flashdemo.c) reads the
last sector n from sector 0 (dword at position 0) and increments it by one. If n
number of last sector n from sector 0 (dword at position 0) and
is larger than or equal to the total amount of sectors, or if it is equal to 0,
increments it by one. If n is larger than or equal to the total amount
n is set to 1.
of sectors, or if it is equal to 0, n is set to 1.
 
 
Then n is written back to sector 0 and sector n is filled with the string
Then n is written back to sector 0 and sector n is filled with the
"Hello World!".
string "Hello World!".
 
 
The host software (defined in FlashDemo.java) reads out the string from the last
The host software (defined in FlashDemo.java) reads out the string from
sector of the flash memory.
the last sector of the flash memory.
the last sector of the flash memory.
the last sector of the flash memory.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.