Use Of Serial Flash; Serial Communication - Rabbit RabbitCore User Manual

C-programmable core module with ethernet, serial flash
Table of Contents

Advertisement

3.2.1 Use of Serial Flash

The following sample programs can be found in the
and the
SAMPLES\RCM3720\SerialFlash
SERIAL_FLASHLOG.C
hits on the home page of the serial flash "server." This log can be viewed and cleared
from a browser at http://10.10.6.100/. You will likely have to first
work interface card for a "10Base-T Half-Duplex" or an "Auto-Negotiation" connection on the
"Advanced" tab, which is accessed from the control panel (Start > Settings > Control
Panel) by choosing Network Connections.
SFLASH_INSPECT.C
serialflash 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.

3.2.2 Serial Communication

The following sample programs can be found in the
SAMPLES\RCM3720\SERIAL
NOTE: Pin PE5 is set up to enable/disable the RS-232 chip on the RCM3700 Prototyping
Board. This pin will also be toggled when you run RS-232 sample programs on an
RCM3700 Prototyping Board. If you plan to use this pin for something else while you
are running any of the RS-232 sample programs, comment out the following line.
BitWrPortI(PEDR, &PEDRShadow, 0, 5);//set low to enable rs232 device
FLOWCONTROL.C
Serial Port C for CTS/RTS with serial data coming from Serial Port D. The serial data
received are displayed in the
To set up the Prototyping Board, you will need to tie TxC and RxC
together on the RS-232 header at J2, and you will also tie TxD and
RxD together using the 0.1" jumpers supplied in the Development Kit
as shown in the diagram.
A repeating triangular pattern should print out in the
The program will periodically switch flow control on or off to demonstrate the effect of
no flow control.
—This program demonstrates the use of parity modes by
PARITY.C
repeatedly sending byte values 0–127 from Serial Port D to Serial Port
C. The program will switch between generating parity or not on Serial
Port D. Serial Port C 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 TxD and RxC together on the
RS-232 header at J2 using the 0.1" jumpers supplied in the Development Kit as shown
in the diagram.
The Dynamic C
STDIO
Getting Started
—This program runs a simple Web server and stores a log of
—This program is a handy utility for inspecting the contents of a
folders.
—This program demonstrates hardware flow control by configuring
STDIO
window.
window will display the error sequence.
SAMPLES\RCM3700\SerialFlash
folders.
SAMPLES\RCM3700\SERIAL
STDIO
window.
"configure" your net-
and the
RXC TXC
RXE
RXC
TXC RXE
17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rcm3750

Table of Contents