Real-Time Clock - Rabbit RCM3365 User Manual

C-programmable core module with nand flash mass storage and ethernet
Table of Contents

Advertisement

—This program transmits and then receives an ASCII string on Serial
SWITCHCHAR.C
Ports E and F. It also displays the serial data received from both ports in the
window.
To set up the Prototyping Board, you will need to tie
TxE and RxF together on the RS-232 header at J14, and
you will also tie RxE and TxF together as shown in the
diagram.
Once you have compiled and run this program, press
and release S2 on the Prototyping Board to send a message from Serial Port E to Serial
Port F; press and release S3 on the Prototyping Board to send a message from Serial
Port F to Serial Port E. The data sent between the serial ports will be displayed in the
window.
STDIO
Two sample programs,
to illustrate RS-485 master/slave communication. To run these sample programs, you will
need a second Rabbit-based system with RS-485—the second system may be another
RCM3365/RCM3375, or it may be any Rabbit single-board computer or RabbitCore mod-
ule that supports RS-485 serial communication as long as you use the master or slave sam-
ple program associated with that board.
Before running either of these sample programs on the RCM3365/RCM3375 assembly,
make sure pins 1–2 and pins 5–6 are jumpered together on header JP5 to use the RS-485
bias and termination resistors. The sample programs use Serial Port C as the RS-485 serial
port, and they use PD7 to enable/disable the RS-485 transmitter.
The RS-485 connections between the slave and master devices are as follows.
• RS485+ to RS485+
• RS485– to RS485–
• GND to GND
SIMPLE485MASTER.C
lower case letters to a slave. The slave will send back converted upper case letters back
to the master and display them in the
program the slave—reset the slave before you run
master.
SIMPLE485SLAVE.C
lower case letters to a master. The slave will send back converted upper case letters
back to the master and display them in the
gram on the slave before you use

3.2.4 Real-Time Clock

If you plan to use the real-time clock functionality in your application, you will need to set
the real-time clock. Set the real-time clock using the
the Dynamic C
SAMPLES\RTCLOCK
sample program in the Dynamic C
TEST.C
tional examples of how to read and set the real-time clock.
User's Manual
SIMPLE485MASTER.C
—This program demonstrates a simple RS-485 transmission of
STDIO
—This program demonstrates a simple RS-485 transmission of
SIMPLE485MASTER.C
folder, using the onscreen prompts. The
and
SIMPLE485SLAVE.C
window. Use
SIMPLE485SLAVE.C
SIMPLE485MASTER.C
window. Compile and run this pro-
STDIO
to program the master.
SETRTCKB.C
SAMPLES\RTCLOCK
STDIO
TxE RxE
GND
TxF RxF
485+ GND 485–
, are available
to
on the
sample program from
RTC_
folder provides addi-
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rcm3375

Table of Contents