User’s Manual
19
3.2.1 Use of Serial Flash
3.2.1.1 Onboard Serial Flash
The following sample programs can be found in the
SAMPLES\RCM3300\SerialFlash
folder.
•
SFLASH_INSPECT.c
—This program is a handy utility for inspecting the contents of a
serial flash chip. When the sample program starts running, it attempts to initialize a
serial flash chip on Serial Port B. Once a serial flash chip is found, the user can perform
two different commands to either print out the contents of a specified page or clear (set
to zero) all the bytes in a specified page.
•
SFLASH_LOG.c
—This program runs a simple Web server and stores a log of hits in
the serial flash. This log can be viewed and cleared from a browser.
3.2.1.2 SF1000 Serial Flash Card
The following sample program can be found in the
SAMPLES\RCM3300\SF1000
folder.
•
SERFLASHTEST.c
—An optional SF1000 Serial Flash card is required to run this dem-
onstration. Install the Serial Flash card into socket J11 on the Prototyping Board. This
sample program demonstrates how to read and write from/to the Serial Flash card.
3.2.2 Serial Communication
The following sample programs can be found in the
SAMPLES\RCM3300\SERIAL
folder.
•
FLOWCONTROL.C
—This program demonstrates hardware flow control by configuring
Serial Port F for CTS/RTS with serial data coming from TxE (Serial Port E) at 115,200
bps. One character at a time is received and is displayed in the
STDIO
window.
To set up the Prototyping Board, you will need to tie
TxE and RxE together on the RS-232 header at J14,
and you will also tie TxF and RxF together as shown in
the diagram.
A repeating triangular pattern should print out in the
STDIO
window. The program will periodically switch flow control on or off to demon-
strate the effect of no flow control.
•
PARITY.C
—This program demonstrates the use of parity modes by repeatedly sending
byte values 0–127 from Serial Port E to Serial Port F. The program will switch between
generating parity or not on Serial Port E. Serial Port F will always be checking parity,
so parity errors should occur during every other sequence.
To set up the Prototyping Board, you will need to tie
TxE and RxF together on the RS-232 header at J14 as
shown in the diagram.
The Dynamic C
STDIO
window will display the error
sequence.
J14
TxE RxE
GND
TxF RxF
485+ GND 485
J14
TxE
RxE GND TxF
RxF
485+ GND 485
Содержание RCM3305
Страница 6: ...RabbitCore RCM3305 RCM3315...
Страница 14: ...8 RabbitCore RCM3305 RCM3315...
Страница 22: ...16 RabbitCore RCM3305 RCM3315...
Страница 28: ...22 RabbitCore RCM3305 RCM3315...
Страница 70: ...64 RabbitCore RCM3305 RCM3315...
Страница 106: ...100 RabbitCore RCM3305 RCM3315...
Страница 144: ...138 RabbitCore RCM3305 RCM3315...
Страница 160: ......