46
SBC BL2600
•
DAC_VOLT_SYNC.C
—Demonstrates how to output a voltage that can be read with a
voltmeter. The output voltage is computed with using the calibration constants that are
stored in the reserved EEPROM.
The D/A converter circuit is set up for synchronous operation, which updates the D/A
converter output when the
anaOutStrobe
function call executes. The outputs will be
updated with values previously written via the
anaOut
or
anaOutVolts
function calls.
4.2.6 Use of BL2600 with SF1000 Serial Flash Card
The following sample programs found in the
SAMPLES\BL2600\SF1000
folder demon-
strate the use of the optional SF1000 serial flash card on the BL2600. The
SF1000 User’s
Manual
contains additional information and function calls for the SF1000.
•
FLASH_PATTERN_INSPECT.C
—Writes a pattern to the first 100 sectors of the
SF1000, which can then be inspected or cleared by the user. The user then has the
option to either inspect or clear a page of serial flash memory.
•
SFLASH_TEST.C
—Demonstrates how to read and write data from/to the SF1000.
Once the sample program is compiled and run, it displays a message in the Dynamic C
STDIO
window to report whether the test was successful.
4.2.7 Use of NAND Flash
The following sample programs can be found in the
SAMPLES\BL2600\NANDFlash
folder.
•
NFLASH_DUMP.C
—This program is a utility for dumping the nonerased contents of a
NAND flash chip to the Dynamic C
STDIO
window, and the contents may be redi-
rected to a serial port.
When the sample program starts running, it attempts to initialize the user-selected
NAND flash chip. If the initialization is successful and the main page size is accept-
able, the nonerased page contents (non 0xFF) from the NAND flash page are dumped
to the Dynamic C
STDIO
win.for inspection.
Note that an error message will appear when the first 32 pages (0x20 pages) are
“dumped.” You may ignore the error message.
•
NFLASH_INSPECT.C
—This program is a utility for inspecting the contents of a
NAND flash chip. When the sample program starts running, it attempts to initialize the
NAND flash chip selected by the user. Once a NAND flash chip is found, the user can
execute various commands to print out the contents of a specified page, clear (set to
zero) all the bytes in a specified page, erase, or write to specified pages.
CAUTION:
When you run this sample program, enabling the
#define
NFLASH_CANERASEBADBLOCKS
macro makes it possible to write to bad blocks. The
first two blocks on the memory card are marked bad to protect the configuration data
needed to use the card in a digital camera or PC. You will only be able to use the mem-
ory card in Rabbit-based systems if either of the first two blocks is written to.
•
NFLASH_LOG.C
—This program runs a simple Web server and stores a log of hits in
the NAND flash. This log can be viewed and cleared from a browser.
Summary of Contents for BL2600
Page 1: ...SBC BL2600 C Programmable Single Board Computer with Ethernet User s Manual 019 0142_L...
Page 6: ...SBC BL2600...
Page 14: ...8 SBC BL2600...
Page 96: ...90 SBC BL2600...
Page 112: ...106 SBC BL2600...
Page 116: ...110 SBC BL2600...