No part of the contents of this manual may be reproduced or transmitted in any form or by any means
without the express written permission of Digi International.
Permission is granted to make one or more copies as long as the copyright page contained therein is
included. These copies of the manuals may not be let or sold for any reason without the express written
permission of Digi International.
Digi International reserves the right to make changes and
improvements to its products without providing not ice.
Trademarks
Rabbit, RabbitCore, and Dynamic C are registered trademarks of Digi International Inc.
Rabbit 3000 is a trademark of Digi International Inc.
4.3.1 Changing Between Program Mode and Run Mode....................................................................33
4.3.2 Standalone Operation of the RCM3305/RCM3315 ...................................................................34
4.4 Other Hardware.................................................................................................................................. 35
A.2 Bus Loading ......................................................................................................................................71
A.3 Rabbit 3000 DC Characteristics........................................................................................................74
A.4 I/O Buffer Sourcing and Sinking Limit.............................................................................................75
B.2 Mechanical Dimensions and Layout..................................................................................................83
B.3 Power Supply.....................................................................................................................................85
B.4 Using the Prototyping Board..............................................................................................................86
B.4.1 Adding Other Components.........................................................................................................87
B.4.2 Digital I/O...................................................................................................................................88
B.4.2.1 Digital Inputs..................................................................................................................... 88
B.4.3 CMOS Digital Outputs...............................................................................................................89
B.4.4 Sinking Digital Outputs..............................................................................................................89
E.2.1 Control and Routing.................................................................................................................141
E.3 Function Calls...................................................................................................................................142
E.3.1 Status Byte................................................................................................................................148
Index149
Schematics153
User’s Manual
RabbitCore RCM3305/RCM3315
1. INTRODUCTION
The RCM3305 and RCM3315 RabbitCore modules feature a
compact module that incorporates the latest revision of the power-
ful Rabbit® 3000 microprocessor, flash memory, mass storage
(serial flash), static RAM, and digital I/O ports. The RCM3305
and RCM3315 feature an integrated 10/100Base-T Ethernet port,
and provide for LAN and Internet-enabled systems to be built as
easily as serial-communication systems.
In addition to the features already mentioned above, the RCM3305 and RCM3315 have
two clocks (main oscillator and real-time clock), reset circuitry , and the circuitry necessary
for management of battery backup of the Rabbit 3000’s internal real-time clock and the
static RAM. Two 34-pin headers bring out the Rabbit 3000 I/O bus lines, parallel ports,
and serial ports.
The RCM3305’ s and the RCM3315’ s mass-storage capabilities make them suited to running
the optional Dynamic C FAT file system module and the featured remote application
update where data are stored and handled using the same directory file structure commonly used on PCs.
The RCM3305 or RCM3315 receives +3.3 V power from the customer-supplied motherboard on which it is mounted. The RCM3305 and RCM3315 can interface with all kinds
of CMOS-compatible digital devices through the motherboard.
The Development Kit has what you need to design your own microprocessor-based
system: a complete Dynamic C software development system and a Prototyping Board
that allows you to evaluate the RCM3305 or RCM3315, and to prototype circuits that
interface to the RCM3305 or RCM3315 module.
User’s Manual1
1.1 RCM3305/RCM3315 Features
• Small size: 1.85" x 2.73" x 0.86"
(47 mm x 69 mm x 22 mm)
• Microprocessor: Rabbit 3000 running
at 44.2 MHz
• 49 parallel 5 V tolerant I/O lines: 43 configurabl e for I/O, 3 fixed in put s, 3 fi xed o utp ut s
• Three additional digital inputs, two additional digital outputs
• External reset
• Alternate I/O bus can be configured for 8 data lines and 6 address lines (shared with
parallel I/O lines), plus I/O read/write
• Ten 8-bit timers (six cascadable) and one 10-bit timer with two match registers
• 512K flash memory, 512K program execution SRAM, 512K data SRAM
• Serial-flash mass-storage memory options, which are required to run the optional
Dynamic C FAT file system module and the featured remote application update.
• Real-time clock
• Watchdog supervisor
• Provision for customer-supplied backup battery via connections on header J4
• 10-bit free-running PWM counter and four pulse-width registers
• Two-channel Input Capture (shared with parallel I/O ports) can be used to time input
Five or six 3.3 V CMOS-compatible serial ports with a maximum asynchronous baud
rate of 5.525 Mbps
. Three ports are configurable as a clocked serial port (SPI), and two
ports are configurable as SDLC/HDLC serial ports (shared with parallel I/O ports).
• Supports 1.15 Mbps IrDA transceiver
The RCM3900/RCM3910 and RCM3365/RCM3375 RabbitCore modules are similar to
the RCM3305/RCM3315 and RCM3309/RCM3319, but they use fixed NAND or removable media for their mass-storage memories instead of the fixed serial flash options of the
RCM3305/RCM3315 and the RCM3309/RCM3319.
2RabbitCore RCM3305/RCM3315
Table 1 below summarizes the main features of the RCM3305 and the RCM3315 modules.
Table 1. RCM3305/RCM3315 Features
FeatureRCM3305RCM3315
MicroprocessorRabbit 3000 running at 44.2 MHz
SRAM512K program (fast SRAM) + 512K data
Flash Memory
(program)
Flash Memory
(mass data
storage)
Serial P orts
8 Mbytes
(serial flash)
5 shared high-speed, 3.3 V CMOS-compatible ports:
all 5 are configurable as asynchronous serial ports;
3 are configurable as a clocked serial port (SPI) and 1 is
configurable as an HDLC serial port;
option for second HDLC serial port at the expense of 2
clocked serial ports (SPI)
512K
4 Mbytes
(serial flash)
The RCM3305 and RCM3315 are programmed over a standard PC serial port through a
programming cable supplied with the Development Kit, and can also be programed through
a USB port with an RS-232/USB converter, or directly over an Ethernet link using the featured remote application update or the Dynamic C download manager with or without a
RabbitLink.
Appendix A provides detailed specifications for the RCM3305 and the RCM3315.
User’s Manual3
1.2 Comparing the RCM3309/RCM3319 and RCM3305/RCM3315
We can no longer obtain certain components for the RCM3305/RCM3315 RabbitCore
modules that support the originally specified -40°C to +70°C temperature range. Instead of
changing the design of the RCM3305/RCM3315 RabbitCore modules to handle available
components specified for the original temperature range, we decided to develop a new
product line — the RC M3 309/ RCM331 9 — based on th e RCM3900 RabbitCore modules
that were released for the same reason.
The RCM3309/RCM3319 modules are similar in form, dimensions, and function to the
RCM3305/RCM3315 modules. We strongly recommend that existing RCM3305/3315
customers and designers of new systems consider using the new RCM3309/RCM3319
RabbitCore modules.
This section compares the two lines of RabbitCore modules.
• Temperature Specifications — RCM3305/RCM3315 RabbitCore modules manufac-
tured after May, 2008, are specified to operate at 0°C to +70°C. The RCM3309/
RCM3319, rated for -40°C to +85°C, are offered to customers requiring a larger
temperature range after May, 2008.
• Maximum Current — The RCM3305/RCM3315 draws 250 mA vs. the 325 mA
required by the RCM3309/RCM3319.
• LEDs — The SPEED and user (USR/BSY)LED locations have been swapped between
the RCM3305/RCM3315 and the RCM3309/RCM3319, the LNK/ACT LEDs have
been combined to one LED on the RCM3309/RCM3319, and the RCM 3309/R CM331 9
has an FDX/COL LED instead of the SF LED on the RCM3305/RCM3315. The SF
LED on the RCM3305/RCM3315 blinks when data are being written to or read from
the serial f las h . T he FDX/COL LED on the RCM3309/RCM3319 indicates whether the
Ethernet connection is in full-duplex mode (steady on) or that a half-duplex connection
is experiencing collisions (blinks).
NOTE: The change in LED indicators means that there is no indication on the
RCM3309/RCM3319 when data are being written to or read from the serial flash.
• Ethernet chip. A different Ethernet controller chip is used on the RCM3309/RCM3319.
The Ethernet chip is able to detect automatically whether a crossover cable or a straightthrough cable is being used in a particular setup, and will configure the signals on the
Ethernet jack interface.
• Dynamic C — As long as no low-level FAT file system calls were used in your application developed for the RCM3305/RCM3315, you may run that application on the
RCM3309/RCM3319 after you recompile it using Dynamic C v. 9.60.
4RabbitCore RCM3305/RCM3315
1.3 Advantages of the RCM3305 and RCM3315
• Fast time to market using a fully engineered, “ready-to-run/ready-to-program” microprocessor core.
• Competitive pricing when c ompar ed with the alternative of purchasing and assembling
individual components.
• Easy C-language program development and debugging
• Program download utility (Rabbit Field Utility) and cloning board options for rapid
production loading of programs.
• Generous memory size allows large programs with tens of thousands of lines of code,
and substantial data storage.
• Integrated Ethernet port for network connectivity, with royalty-free TCP/IP software.
• Ideal for network-enabling security and access systems, home automation, HVAC
systems, and industrial controls
User’s Manual5
1.4 Development and Evaluation Tools
1.4.1 RCM3305 Series Development Kit
The RCM3305 Series Development Kit contains the hardware you need to use your
RCM3305 or RCM3315 module.
• RCM3309 module.
• Prototyping Board.
• Universal AC adapter, 12 V DC, 1 A (includes Canada/Japan/U.S., Australia/N.Z., U.K.,
and European style plugs).
• USB programming cable with 10-pin header.
• Dynamic C CD-ROM, with complete product documentation on disk.
• Getting Started instructions.
• Accessory parts for use on the Prototyping Board.
• Screwdriver and Cat. 5 Ethernet cables.
• Rabbit 3000 Processor Easy Reference poster.
• Registration card.
Programming
DIAG
PROG
RabbitCore® RCM3305 Series
The RCM3305 series of RabbitCore modules features built-in Ethernet, and onboard mass storage (serial
flash). These Getting Started instructions included with the Development Kit will help you get your
RCM3309 up and running so that you can run the sample programs to explore its capabilities and develop
your own applications.
Development Kit Contents
The RCM3305 Series Development Kit contains the following items
•
RCM3309 module.
•
Prototyping Board.
•
Universal AC adapter, 12 V DC, 1 A (includes Canada/Japan/U.S., Australia/N.Z., U.K., and
European style plugs).
•
USB programming cable with 10-pin header.
•
Dynamic C® CD-ROM — with complete product documentation on disk.
•
A bag of accessory parts for use on the Prototyping Board.
•
Screwdriver and Cat. 5 Ethernet cables.
•
Getting Started instructions.
•
Rabbit 3000 Processor Easy Reference poster.
•
Registration card.
Visit our online Rabbit store at www.rabbit.com/store/ for
the latest information on peripherals and accessories that
are available for the RCM3305 series of RabbitCore
modules.
Rabbit, RabbitCore, Dynamic C, and Digi are registered trademarks of Digi International Inc.
Cable
Installing Dynamic C
Insert the CD from the Development Kit in
your PC’s CD-ROM drive. If the installation
does not auto-start, run the setup.exe pro-
gram in the root directory of the Dynamic C
CD. Install any optional Dynamic C modules
or packs after you install Dynamic C
Getting Started
Instructions
Screwdriver
Universal
AC Adapter
with Plugs
Ethernet
Cables
Accessory Parts for
Prototyping Board
VMA+ MDA1 MDA2 MDA3 MDA4 VMA
POWER
+DC
GND
D
D
C
J1
N
N
D
1
G
+
G
S
D
R1
J2
C1
C10
C11
C9
U4
JB
4
3
2
1
O
O
O
O
H
H
H
H
R31
R32
DS5DS6
TxE RxE GND TxF RxF 485+ GND 485
U1
OUT
C12
JP4
R16
J13
J14
J3
D1
C2
J10
00 01 02 03 04 05 06 07
RP2
RP1
C13
U5
R15
CX1
UX1
SO20W
CX2
UX2
SO20W
U9
C21
C22
C23
C24
C25
JP1
C3
U2
L293D
H-DRIVER
C4
R13
OUT
R17
+5 V
GND
+3.3 V
RX13
RX14
RX15
UX4
DX1
UX5
DX2
C18
C17
R33
R34
U10
R35
R36
R37
JP5
R38
C26
J8
GND
NC
GND
+3.3 V
VBT
VRAM
/RES
SMODE1
SM0
D2
/IORD
/IOWR
PG4
L1
PG5
PG6
R11
PG7
PE0
PE1
PE3
PE4
PE5
R12
7
E
PE6
P
6
F
PF7
P
4
F
PF5
P
R67
C8
PB7
PB6
R68
R69
PB5
PB4
R70
PB3
PB2
PB0
/RES_OUT
RCM3300
PROTOTYPING
BOARD
CORE MODULE
GND/EGND
LINK
ACT
PD6
PD7
PD2
PD3
PD4
PD5
PG2
PG3
PG0
®
.
PG1
PC6
PC7
PC4
PC5
PC2
PC3
PC0
PC1
PF1
PF0
PF3
PF2
PA1
PA0
PA3
PA2
PA5
PA4
PA7
PA6
GND
STAT
R25
J9
S1
S2
RESET
U8
C16
R24
R23
R21
R22
Q1
Q2Q3Q4
JA
D
N
G
J12
R28
R27
R26
R50
D4
D5D6D7
Q6
R49
R30
R29
CORE
S3
DS2
DS4
DS3
VMB MDB1 MDB2MDB3MDB4 VMB+
J5
J4
R52 R53
R51
R54
PF0_CLKD
JP3
PF0_QD
JP2
L293D
H-DRIVER
R14
BT1
RX16
RX17
RX18
SOT23-6
SOT23-6
LCD1JB
U3
C5
LCD1JA
J15
R39
0
S
D
E
E
R
+V/
L
1
T
S
L
D
D
C
/
K
E
E
B
L
L
+
C19
R40
U11
KEYPAD DISPLAY BOARD
5
6
7
8
5
5
5
5
R
R
R
R
+5 V
GND
+3.3 V
0
1
2
3
D
0
1
2
3
S
A
A
A
A
C
D
D
D
D
C
L
/
B
B
B
B
B
B
B
B
2
4
6
D
D
D
D
N
E
E
E
L
L
L
G
A3A1D0D2D4D
0
7
3
5
D
D
A2A
D1D3D5D
D
N
N
E
G
G
L
R42
C20
R41
K1
U12
D8
R45
LCD1JC
GND IN3 IN2 IN1 IN0 +5V
+5V QD2A QD2B QD1A QD1B GND
R60 R61
U7
R59
R62
3
4
5
6
6
6
6
6
R
R
R
R
R9
4
5
6
7
D
D
D
D
B
B
B
B
J16
6
C27
C28
R44
R43
C30C29
R46
DS7
Q5
R47
RELAY
R48
R8
J17
NO1 COM1 NC1 NO2 COM2 NC2
J7
J6
C7
RABBITNET
R2
R7
R3R4R5
R6
C6
U6
R10
/
H
S
J11
A
C14
C15
L
F
L
M
A
E
I
D
R
O
E
S
M
R19
R20
R18
D
E
V
0
T
A
3
R
@
Y
A
A
L
.5
E
0
R
Prototyping Board
Figure 1. RCM3305 Series Development Kit
6RabbitCore RCM3305/RCM3315
1.4.2 Software
The RCM3305 and the RCM3315 are programmed using version 9.25 or later of Rabbit’s
Dynamic C. A compatible version is included on the Development Kit CD-ROM.
Dynamic C v . 9.60, which is required for the related RCM3309 and RCM3319 RabbitCore
modules, includes the popular µC/OS-II real-time operating system, point-to-point protocol (PPP), F AT file system, RabbitWeb, and other select libraries that were previ ously sold
as indidual Dynamic C modules.
Rabbit also offers for purchase the Rabbit Embedded Security Pack featuring the Secure
Sockets Layer (SSL) and a specific Advanced Encryption Standard (AES) library. In addition to the Web-based technical support included at no extra charge, a one-year telephonebased technical support subscription is also available for purchase.
1.4.3 Connectivity Interface Kits
Rabbit has available a Connector Adapter Board.
• Connector Adapter Board (Part No. 151-0114)—allows you to plug the RCM3305/
RCM3315 whose headers have a 2 mm pitch into header sockets with a 0.1" pitch.
1.4.4 Onlin e Documentation
The online documentation is installed along with Dynamic C, and an icon for the documentation menu is placed on the workstation’s desktop. Double-click this icon to reach the
menu. If the icon is missing, use your browser to find and load default.htm in the docs
folder, found in the Dynamic C installation folder.
The latest versions of all documents are always available for free, unregistered download
from our Web sites as well.
User’s Manual7
8RabbitCore RCM3305/RCM3315
2. GETTING S TARTED
This chapter describes how to set up and use an RCM3305 series
module and the Prototyping Board included in the Development Kit.
NOTE: It is assumed that you have a Development Kit. If you purchased an RCM3305
series module by itself, you will have to adapt the information in this chapter and elsewhere to your test and development setup.
2.1 Install Dynamic C
To develop and debug programs for an RCM3305 series module (and for all other Rabbit
hardware), you must install and use Dynamic C.
If you have not yet installed Dynamic C version 9.25 (or a later version), do so now by
inserting the Dynamic C CD from the Development Kit in your PC’s CD-ROM drive. If
autorun is enabled, the CD installation will begin automatically.
If autorun is disabled or the installation otherwise does not start, use the Windows
Start | Run menu or Windows Disk Explorer to launch setup.exe from the root folder
of the CD-ROM.
The installation program will guide you through the installation process. Most steps of the
process are self-explanatory.
Dynamic C uses a COM (serial ) port to communica te with the tar get deve lopment sy stem.
The installation allows you to choose the COM port that will be used. The default selection is COM1. You may select any available port for Dynamic C’s use. If you are not certain which port is available, select COM1. This selection can be changed later within
Dynamic C.
NOTE: The installation utility does not check the selected COM port in any way. Speci-
fying a port in u se by a not her device (mouse, modem, etc.) may l ea d t o a me ss age such
as
"could not open serial port" when Dynamic C is started.
Once your installation is complete, you will have up to three icons on your PC desktop.
One icon is for Dynamic C, one opens the documentation menu, and the third is for the
Rabbit Field Utility, a tool used to download precompiled software to a target system.
If you have purchased the optional Dynamic C Rabbit Embedded Security Pack, install it
after installing Dynamic C. You must install the Rabbit Embedded Security Pack in the
same directory where Dynamic C was installed.
User’s Manual9
2.2 Hardware Connections
There are three steps to connecting the Prototyping Board for use with Dynamic C and the
sample programs:
1. Attach the RCM3305 series RabbitCore module to the Prototyping Board.
2. Connect the programming cable between the RCM3305 series RabbitCore module and
the workstation PC.
3. Connect the power supply to the Prototyping Board.
2.2.1 Step 1 — Attach Module to Prototyping Board
Turn the RCM3305 series module so that the Ethernet jack is facing the direction shown in
Figure 2 below. Align the pins from the headers on the bottom side of the module into
header sockets JA and JB on the Prototyping Board.
RCM3305 series
RabbitCore module
(RCM3305/RCM3315 look
slightly different)
Do not press down
here.
RP1
JB
HO4
D5D6D7
R30
DS4
L293D
H-DRIVER
RP2
JB
HO3
R31
DS5 DS6
R13
HO2
VMA+ MDA1MDA2MDA3MDA4 VMA
JP1
C3
U2
C4
OUT
R17
R15
CX1
UX1
SO20W
CX2
UX2
SO20W
J13
C21
C22
HO1
C23
C24
J14
R32
TxE RxE GND TxF RxF 485+ GND 485
2
U8
R24
R23
C37
Y2
R13 R14
U4
U3
R6
R5
GND/EGND
C2
JA
C43
C38
R4
C29
R12
J1
R15
GND
C1
C49
C50
R27
C9
R18
U4
R7
R8
C1
J1
GND
JP12
JP11
JP13
C10
C28
C25
U6
C24
C20
C21
C6
C7
C5
CORE MODULE
R2
R21
Q1
R27
+DC
GND
D1
C42
C41
C11
C12
JP4
C17
C16
C13
C12
R11
Y1
R3
R1
U1
R22
Q2Q3Q4
R28
S3
R1
J2
C2
U1
OUT
R50
Q6
R49
CORE
POWER
DS1
J3
J10
00 01 02 03 04 05 06 07
C13
U5
R16
U8
C16
R24
R23
GND
J12
D4
R29
DS2
DS3
+DC
J8
GND
NC
GND
+3.3 V
VBT
VRAM
/RES
SMODE1
DS4
RCM39XX
U9
SM0
D2
/IORD
BSY
CE
Q2
D1
DS3
/IOWR
PG4
R35
SPD
R31
L1
R32
U10
DS2
R29
C48
LNK
ACT
PG5
PG6
R11
C45
R34
COL
FDX
R28
C47
PG7
PE0
Q1
R30
R33
DS1
JP14
C46
PE1
PE3
C44
C40
PE4
PE5
Y3
1
R12
R26
C39
R22
R25
PE6
R21
PF7
R20
PF5
PF4 PF6 PE7
R67
R19
U7
C8
C36
PB7
PB6
R68
C34
C30
R69
C31
PB5
PB4
C35
L2
R70
R16
PB3
PB2
J3
C32
C33
C26
PB0
/RES_OUT
L1
C27
JP10
JP8
JP9
JP7
C22
C23
RCM3300
R17
PROTOTYPING
C19
BOARD
C18
C15
C14
C11
U5
C9
C10
C8
R9
R10
C3
C4
JP3
JP4
JP2
JP5
LINK
ACT
PD6
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
U2
PD2
J2
JP1
PD4
PG2
PG0
PC6
PC4
PC2
JA
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
R25
R26
J9
S1
S2
RESET
VMB MDB1 MDB2MDB3MDB4 VMB+
J5
J4
PF0_CLKD
PF0_QD
JP2
U3
L293D
H-DRIVER
R14
C5
BT1
+5 V
GND
+3.3 V
RX13
RX16
RX14
RX17
RX18
RX15
UX4
DX1
SOT23-6
UX5
DX2
SOT23-6
C18
C17
R33
R34
U10
U9
R35
R36
R37
JP5
R38
C26
C25
JP3
R51
LCD1JA
R52 R53
R55
LCD1JB
R54
R56
R57
R58
R39
+V
+BKLT
R40
U11
+5V QD2A QD2B QD1A QD1B GND
R59
LCD
/CS
BA0
J15
/RES
LED0
LED2
LED4
/CS
LED1
LED3
LED5
C19
R41
KEYPAD DISPLAY BOARD
R60 R61
U7
R62
R63
R64
R65
R66
+5 V
+3.3 V
BA1
BA2
BA3
LED6
GNDA3A1D0D2D4D6
A2
GND
GND
R42
C20
U12
D8
GND IN3 IN2 IN1 IN0 +5V
J6
C7
R2
R3R4R5
R6
C6
R8
U6
R9
R10
C14
C15
GND
BD0
BD1
BD2
BD3
BD4
BD5
BD6
BD7
J16
A0
D1D3D5
D7
K1
C27
C28
R43
C30C29
R45
Q5
R48
LCD1JC
CORE LED
Figure 2. Install the RCM3305/ Series Module on the Prototyping Board
NOTE: It is important that yo u line up the pins from the h eaders on the bo ttom side of the
RCM3305 series module exactly with the corresponding pins of header sockets JA and
JB on the Prototyping Board. The header pins may become bent or damaged if the pin
alignment is offset, and the module will not work. Permanent electrical damage to the
module may also result if a misaligned module is powered up.
RABBITNET
R7
R18
R44
R46
R47
J7
J11
SERIAL FLASH/
MODEM
R19
R20
0.5 A @ 30 V
RELAY RATED
J17
NO1 COM1 NC1 NO2 COM2 NC2
DS7
RELAY
Press the module’s pins firmly into the Prototyping Board header sockets—press down in
the area above the header pins using your thumbs or fingers over the connectors as shown
in Figure 2. Do not press down on the middle of the RCM3305 series module to avoid
flexing the module, which could damage the module or the components on the module.
Should you need to remove the RCM3305 series module, grasp it with your fingers along the
sides by the connectors and gently work the module up to pull the pins away from the sockets
where they are installed. Do not remove the module by grasping it at the top and bottom
10RabbitCore RCM3305/RCM3315
.
2.2.2 Step 2 — Connect Programming Cable
The programming cable connects the RCM3305 series module to the PC running
Dynamic C to download programs and to monitor the module during debugging.
2.2.2.1 RCM3309 and RCM3319
Connect the 10-pin connector of the programming cable labeled PROG to header J1 on
the RCM3309/RCM3319 as shown in Figure 3(a). There is a small dot on the circuit board
next to pin 1 of header J1. Be sure to orient the marked (usually red) edge of the cable
towards pin 1 of the connector. (Do not use the DIAG connector, which is used for a nonprogramming serial connection.)
Insert tab into slot
1
Press down on clip,
2
snap plug into place
J1
Assemble
AC Adapter
PROG
J8
GND
GND
VBT
/RES
SM0
/IOWR
PG5
PG7
PE1
PE4
PE6
PF7
PF5
PB7
PB5
PB3
PB0
RCM3300
PROTOTYPING
BOARD
ACT
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
J9
S1
RESET
NC
+3.3 V
VRAM
SMODE1
/IORD
PG4
PG6
PE0
PE3
PE5
PF4 PF6 PE7
PB6
PB4
PB2
/RES_OUT
LINK
PD6
PD2
PD4
PG2
PG0
PC6
PC4
PC2
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
AC adapter
3-pin
power connector
R60 R61
U7
R62
R63
R64
R65
R66
+5 V
+3.3 V
BA1
BA2
BA3
LED6
GNDA3A1D0D2D4D6
A2
GND
GND
R42
C20
U12
D8
GND
BD0
BD1
A0
D1D3D5
GND IN3 IN2 IN1 IN0 +5V
C7
R8
R9
BD2
BD3
BD4
D7
K1
To
J7
J6
RABBITNET
R2
R7
R3R4R5
R6
C6
U6
R10
J11
C14
C15
R19
R18
BD5
BD6
BD7
J16
J17
C27
C28
R44
R43
PC USB port
C30C29
R45
R46
Q5
R47
R48
LCD1JC
SERIAL FLASH/
RELAYRATED
DS7
MODEM
R20
0.5 A@ 30 V
RELAY
NO1 COM1 NC1 NO2 COM2 NC2
RP1
Y3
R25
C30
C31
R9
U3
C3
C4
R6
R5
U2
HO4
D5D6D7
L293D
H-DRIVER
R13
RP2
C49
C50
R27
C43
2
U8
R24
R23
C38
C37
C29
R18
Y2
R13 R14
R12
R7
U4
R8
R4
C2
PROG
J1
C1
JB
R15
HO3
HO2
R30
R31
DS5 DS6
DS4
VMA+ MDA1MDA2MDA3MDA4 VMA
JP1
C3
U2
C4
OUT
R17
JP12
JP11
R15
JP13
C42
C41
C28
C25
U6
C24
C20
C21
CX1
C17
C16
C13
UX1
C12
SO20W
R11
C6
C7
CX2
Y1
C5
R3
UX2
SO20W
R2
R1
J13
U1
C21
C22
HO1
C23
C24
J14
R32
TxE RxEGND TxF RxF 485+ GND 485
CE
R32
Q1
GND/EGND
JA
GND
J1
C1
C9
U4
DS4
BSY
R31
C48
R30
GND
+DC
C10
C11
Q2
U10
C47
JP14
CORE MODULE
J3
JP10
JP8
JP9
R21
Q1
Q2Q3Q4
R28
R27
S3
POWER
GND
DS1
R1
J2
J3
D1
C2
U1
J10
00 01 02 03 04 05 06 07
OUT
C12
JP4
RCM39XX
U9
D1
R16
R29
C45
R28
C46
C44
C40
1
R26
C39
R22
R21
R20
R19
U7
C36
C34
C35
L2
C32
C33
C26
C27
JP7
C22
C23
R17
C19
C18
C15
C14
C11
U8
U5
C10
C16
R24
R23
JP3
JP4
R22
JP5
J2
JP1
J12
R50
D4
Q6
R49
CORE
DS2
C13
U5
R16
C9
C8
R10
JP2
GND
R29
DS3
+DC
D2
L1
R11
R12
R67
C8
R68
R69
R70
DS3
R35
SPD
DS2
LNK
ACT
R34
COL
FDX
R33
DS1
L1
R25
R26
S2
VMB MDB1 MDB2MDB3MDB4 VMB+
JP2
U3
L293D
H-DRIVER
R14
C5
BT1
+5 V
GND
+3.3 V
RX13
RX14
RX15
UX4
DX1
UX5
DX2
C18
C17
R33
R34
U9
R35
R36
JP5
C26
C25
DIAG
Colored edge
J4
PF0_CLKD
RX16
RX17
RX18
U10
R38
JP3
LCD1JA
R52 R53
R51
R55
LCD1JB
R54
R56
R57
R58
R39
+V
/RES
/CS
+BKLT
R40
U11
+5V QD2A QD2 B QD1A QD1B GND
R59
LCD
/CS
BA0
J15
LED0
LED2
LED4
LED1
LED3
LED5
C19
R41
KEYPAD DISPLAYBOARD
J5
PF0_QD
SOT23-6
SOT23-6
R37
Programming Cable
Figure 3(a). Connect Programming Cable and Power Supply
Connect the other end of the programming cable to an available USB port on your PC or
workstation. Your PC should recognize the new USB hardware, and the LEDs in the
shrink-wrapped area of the USB programming cable will flash.
User’s Manual11
2.2.2.2 RCM3305 and RCM3315
Connect the 10-pin connector of the programming cable labeled PROG to header J1 on
the RCM3305/RCM3315 as shown in Figure 3(b). There is a small dot on the circuit
board next to pin 1 of header J1. Be sure to orient the marked (usually red) edge of the
cable towards pin 1 of the connector . (Do not use the DIAG connector, which is used for a
nonprogramming serial connection.)
J8
GND
GND
VBT
/RES
SM0
/IOWR
PG5
PG7
PE1
PE4
PE6
PF7
PF5
PB7
PB5
PB3
PB0
RCM3300
PROTOTYPING
BOARD
ACT
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
J9
S1
RESET
NC
+3.3 V
VRAM
SMODE1
/IORD
PG4
PG6
PE0
PE3
PE5
PF4 PF6 PE7
PB6
PB4
PB2
/RES_OUT
LINK
PD6
PD2
PD4
PG2
PG0
PC6
PC4
PC2
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
alternate
AC adapter
3-pin
power connector
U7
R62
R64
R65
R66
+5 V
GND
+3.3 V
BA1
BA2
BA3
BD0
LED6
GNDA3A1D0D2D4D6
A2
A0
GND
GND
R42
C20
U12
D8
BD1
D1D3D5
GND IN3 IN2 IN1 IN0 +5V
C7
R8
R9
BD2
BD3
BD4
D7
K1
LCD1JC
J7
J6
RABBITNET
R2
R7
R3R4R5
R6
C6
U6
R10
J11
C14
C15
SERIAL FLASH/
MODEM
R19
R20
R18
BD5
BD6
BD7
J16
0.5 A@ 30 V
RELAYRATED
J17
C27
C28
R44
R43
C30C29
R45
R46
NO1 COM1 NC1 NO2 COM2 NC2
DS7
Q5
R47
RELAY
R48
J1
PROG
RP1
C13
U5
U5
C23
C25
C19
C15
C10
R8
GND
D5D6D7
R29
DS3
L293D
H-DRIVER
RP2
C74
C33
C32
C31
R13
R9
J1
RP1
JB
HO4
HO3
R30
R31
DS5 DS6
DS4
VMA+ MDA1MDA2MDA3MDA4 VMA
JP1
C3
U2
C4
R13
OUT
R17
U13
R15
R64
R63
R62
R61
R60
C81
R45
CX1
R16
UX1
SO20W
C14
U2
CX2
R12
R11
R10
UX2
SO20W
PROG
J13
R1
C21
HO2
HO1
C23
C24
J14
R32
TxE RxEGND TxF RxF 485+ GND 485
C22
GND/EGND
JP4
R14
C22
C18
JA
POWER
GND
J1
GND
+DC
GND
DS1
R1
J2
J3
D1
C1
C2
U1
J10
C10
C11
C9
00 01 02 03 04 05 06 07
OUT
C12
JP4
U4
SPEED
RCM33XX
C78
C79
C71
DS4
C12
R50
J2
JP7
C27
U3
C21
C17
C9
C42
C90
L3
R81
CORE MODULE
JP6
C35
C30
R21
C26
R20
R21
C5
C8
R7
Q1
Q2Q3Q4
C2C3R3
R27
S3
R16
C77
R79
L2
C72
C76
C86
C70
C80
R82
C82
R30
R31
R54
R53
R44
C61
C58
C43
C34
Y2
R23
R17
C28
R18
R22
C29
U4
R19
C24
C20
U8
C16
C16
C11
R24
R23
R22
U1
R6
C6
C7
R5
C4
Y1
R2
C1
J12
R28
R50
D4
Q6
R49
CORE
DS2
R38
R37
R36
R35
JP8
C13
Q1
+DC
D2
L1
R11
R12
R67
C8
R68
R69
R70
USR SF LINK ACT
DS3
DS2
DS1
L1
JP5
R15
R25
R26
S2
VMB MDB1 MDB2MDB3MDB4 VMB+
JP2
U3
L293D
H-DRIVER
R14
C5
BT1
+5 V
GND
+3.3 V
RX13
RX14
RX15
UX4
DX1
UX5
DX2
C18
C17
R33
R34
U9
R35
R36
JP5
C26
C25
DIAG
Colored edge
J4
PF0_CLKD
RX16
RX17
RX18
U10
R38
PF0_QD
SOT23-6
SOT23-6
R37
J5
JP3
+5V QD2A QD2 B QD1A QD1B GND
R52 R53
R51
R54
R59
R55
R56
R57
R58
LCD
/CS
BA0
J15
R39
+V
/RES
LED0
LED2
LED4
LCD1JA
/CS
LED1
LED3
LED5
+BKLT
C19
R40
R41
To
U11
PC COM port
Blue
KEYPAD DISPLAYBOARD
shrink wrap
LCD1JB
R60 R61
R63
Programming Cable
Figure 3(b). Connect Programming Cable and Power Supply
NOTE: Be sure to use the serial programming cable (part number 101-0542)—the pro-
gramming cable has blue shrink wrap around the RS-232 converter section located in the
middl e o f t he ca ble . Th e USB programmin g cable an d programming cables with cle ar or
red shrink wrap from other Rabbit kits are not designed to work with RCM3305/
RCM3315 modules.
Connect the other end of the programming cable to a COM port on your PC.
NOTE: It may be possible to use an RS-232/USB converter wit h t he ser ia l programming
described in this section. An RS-232/USB converter (part number 20-151-0178) is
available through the Web store. Note that not all RS-232/USB converters work with
Dynamic C.
12RabbitCore RCM3305/RCM3315
2.2.3 Step 3 — Connect Power
When all other connections have been made, you can connect power to the Prototyping
Board.
If you have the universal power supply, prepare the AC adapter for the country where it
will be used by selecting the plug. The RCM3305 Series Development Kit presently
includes Canada/Japan/U.S., Australia/N.Z., U.K., and European style plugs. Snap in the
top of the plug assembly into the slot at the top of the AC adapter as shown in Figure 3(a),
then press down on the spring-loaded clip below the plug assembly to allow the plug
assembly to click into place.
Depending on the style of adapter, connect the AC adapter to 3-pin header J2 or jack J1 on
the Prototyping Board as shown in Figure 3(a) or Figure 3(b).
Plug in the AC adapter. The red CORE LED on the Prototyping Board should light up.
The RCM3305 series RabbitCore module and the Prototyping Board are now ready to be
used.
NOTE: A RESET button is provided on the Protot yping Board to allow a h ardware re set
without disconnectin g power.
2.2.3.1 Alternate Power-Supply Connections
All Development Kits sold up to May, 2008, included a header connector that may be used
to connect your power supply to 3-pin header J2 on the Prototyping Board. The connector
may be attached either way as long as it is not offset to one side—the center pin of J2 is
always connected to the positive terminal, and either edge pin is negative. The power
supply should deliver 8 V to 30 V DC at 8 W.
User’s Manual13
2.3 St arting Dynamic C
NOTE: Dynamic C v. 9.60 or a later version is r equ ir ed i f you are usi ng an RCM3309 or
an RCM3319 RabbitCore module.
Once the RCM3305 series module is connected as described in the preceding pages, start
Dynamic C by double-clicking on the Dynamic C icon on your desktop or in your
Start
menu. Select Code an d BIOS in Fla sh , Run in RAM on the “Compiler” tab in the
Dynamic C Options > Project Options menu. Click OK.
If you are using a USB port to connect you r computer to the RCM3305 /RCM3315 module,
choose Options > Project Options and select “Use USB to Serial Converter” on the
Communications tab. Click OK.
2.4 Run a Sample Program
Use the File menu to open the sample program PONG.C, which is in the Dynamic C
SAMPLES folder. Press function key F9 to compile and run the program. The STDIO win-
dow will open on your PC and will display a small square bouncing around in a box.
This program shows that the CPU is working. The sample program described in
Section 6.5, “Run the PINGME.C Sample Program,” tests the TCP/IP portion of the board.
2.4.1 Troubleshooting
If Dynamic C cannot find the target system (error message "No Rabbit Processor
Detected."):
• Check that the RCM3305 series module is powered correctly — the red CORE LED on
the Prototyping Board shou ld be lit when the module is mounted on the Prototyping Board and
the AC adapter is plugged in
.
• Check both ends of the programming cable to ensure that they are firmly plugged into
the PC and the PROG connector, not the DIAG connector , is plugged in to the programming port on the RCM3305 series module with the marked (colored) edge of the programming cable towards pin 1 of the programming header.
• Ensure that the RCM3305 series module is firmly and correctly installed in its connectors on the Prototyping Board.
• Dynamic C uses the COM port or USB port specified during installation. Select a different COM port within Dynamic C. From the Options menu, select Project Options,
then select Communications. Select another COM port from the list, then click OK.
Press <Ctrl-Y> to force Dynamic C to recompile the BIOS. If Dynamic C still re ports it
is unable to locate the target system, repeat the above steps until you locate the COM
port used by the programming cable.
• If you get an error message when you plugged the programming cable into a USB port,
you will have to install USB drivers. Drivers for Windows XP are available in the
Dynamic C Drivers\Rabbit USB Programming Cable\WinXP_2K folder —
double-click DPInst.exe to install the USB drivers. Drivers for other operating systems are available online at www.ftdichip.com/Drivers/VCP.htm.
14RabbitCore RCM3305/RCM3315
If Dynamic C appears to compile the BIOS successfully, but you then receive a communication error message when you compile and load the sample program, it is possible that
your PC cannot handle the higher program-loading baud rate. Try changing the maximum
download rate to a slower baud rate as follows.
• Locate the Serial Options dialog in the Dynamic C O ptions > Project Options >
Communications menu. Select a slower Max download baud rate.
If a program compiles and loads, but then loses target communication before you can
begin debugging, it is possible that your PC cannot handle the default debugging baud
rate. Try lowering the debugging baud rate as follows.
• Locate the Serial Options dialog in the Dynamic C O ptions > Project Options >
Communications menu. Choose a lower debug baud rate.
2.5 Where Do I Go From Here?
If the sample program ran fine, you are now ready to go on to other sample programs and to
develop your own applications. The sour ce code for the sample programs is provided to allow
you to modify them for your own use. The RCM3305/RCM3315 User’s Manual also
provides complete hardware reference information and describes the software function calls
for the RCM3305 and the RCM3315, the Prototyping Board, and the optional LCD/keypad
module. The RCM3309/RCM3319 User’s Manual also provides complete hardware refer-
ence information and describes the software function calls for the RCM3309 and the
RCM3319, the Prototyping Board, and the optional LCD/keypad module.
For advanced development topics, refer to the Dynamic C User’s Manual and the Dynamic C TCP/IP User’s Manual, also in the online documentation set.
2.5.1 Technical Support
NOTE: If you purchased your RCM3305 series module t hrough a distributor or through a
Rabbit partner, contact the distributor or p artner first for technical support.
User’s Manual15
16RabbitCore RCM3305/RCM3315
3. RUNNING SAMPLE PROGRAMS
To develop and debug programs for the RCM3305/RCM3315
(and for all other Rabbit hardware), you must install and use
Dynamic C.
3.1 Introduction
To help familiarize you with the RCM3305 and RCM3315 modules, Dynamic C includes
several sample programs. Loading, executing and studying these programs will give you a
solid hands-on overview of the RCM3305/RCM3315’s capabilities, as well as a quick
start using Dynamic C as an application development tool.
NOTE: The sample programs assume that you have at least an el ementary grasp of the C
programming language. If you do not, see the introductory pages of the Dynamic C User’s Manual for a suggested reading list.
More complete information on Dynamic C is provided in the Dynamic C User’s Manual.
In order to run the sample programs discussed in this chapter and elsewhere in this manual,
1. Your RCM3305/RCM3315 must be plugged in to the Prototyping Board as described
in Chapter 2, “Getting Started.”
2. Dynamic C must be installed and running on your PC.
3. The programming cable must connect the programming header on the RCM3305/
RCM3315 to your PC.
4. Power must be applied to the RCM3305/RCM3315 through the Prototyping Board.
Refer to Chapter 2, “Getting Started,” if you need further information on these steps.
To run a sample program, open it with the File menu, then press function key F9 to com-
pile and run the program. The RCM3305/RCM3315 must be in Program Mode (see
Figure 8) and must be connected to a PC using the programming cable.
User’s Manual17
3.2 Sample Programs
Of the many sample programs included with Dynamic C, several are specific to the
RCM3305 and the RCM3315. Sample programs illustrating the general operation of the
RCM3305/RCM3315, serial communication, and the serial flash are provided in the
SAMPLES\RCM3300 folder. Each sample program has comments that describe the purpose
and function of the program. Follow the instructions at the beginning of the sample program. Note that the RCM3305/RCM3315 must be installed on the Prototyping Board
when using the sample programs described in this chapter.
• CONTROLLED.c—Demonstrates use of the digital inputs by having you turn the LEDs
on the Prototyping Board on or off from the STDIO window on your PC.
Once you compile and run CONTROLLED.C, the following display will appear in the
Dynamic C STDIO window.
Press “2” or “3” or “4”or “5”on your keyboard to select LED DS3 or DS4 or DS5 or
DS6 on the Prototyping Board. Then follow the prompt in the Dynamic C STDIO window to turn the LED on or off.
• FLASHLED.c—Demonstrates assembly-language program by flashing the USR LED
on the RCM3305/RCM3315 and LEDs DS3, DS4, DS5, and DS6 on the Prototyping
Board.
• SWRELAY.c—Demonstrates the relay-switching function call using the relay installed
on the Prototyping Board through screw-terminal header J17.
• TOGGLESWITCH.c—Uses costatements to detect switches S2 and S3 using debouncing. The corresponding LEDs (DS3 and DS4) will turn on or off.
Once you have loaded and executed these five programs and have an understanding of
how Dynamic C and the RCM3305/RCM3315 modules interact, you can move on and try
the other sample programs, or begin building your own.
18RabbitCore RCM3305/RCM3315
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 inspect ing 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 progra m can be found in the SAMPLES\RCM3300\SF1000 folder.
• SERFLASHTEST.c—An optional SF1000 Serial Flash card is required to run this demonstration. 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 (Ser ial P ort E) a t 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.
J14
TxE RxE GND TxF RxF 485+ GND 485
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
J14
TxE RxE GND TxF RxF 485+ GND 485
sequence.
User’s Manual19
• SIMPLE3WIRE.C—This program demonstrates basic RS-232 serial communication.
Lower case characters are sent by TxE, and are received by RxF. The characters are
converted to upper case and are sent out by TxF , are received by RxE, and are displayed
in the Dynamic C STDIO 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.
J14
TxERxE GND TxF RxF 485+ GND 485
• SIMPLE5WIRE.C—This program demonstrates 5-wire RS-232 serial communication
with flow control on Serial Port F and data flow on Serial Port E.
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.
J14
TxE RxE GND TxF RxF 485+ GND 485
Once you have compiled and run this program, you can
test flow control by disconnecting TxF from RxF while the program is running. Characters will no longer appear in the STDIO window, and will display again once TxF is
connected back to RxF.
• SWITCHCHAR.C—This program transmits and then receives an ASCII string on Serial
Ports E and F. It also displays the serial data received from both ports in the STDIO
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.
J14
TxERxE GND TxF RxF 485+ GND 485
Once you have compiled and run this program, press
and release S2 and S3 on the Prototyping Board. The data sent between the serial ports
will be displayed in the STDIO window.
Two sample programs, SIMPLE485MASTER.C and SIMPLE485SLAVE.C, are available
to illustrate RS-485 master/slave communication. To run these sample programs, you will
need a second Rabbit-based system with RS-485—another Rabbit single-board computer
or RabbitCore module may be used as long as you use the master or slave sample program
associated with that board.
Before running either of these sample programs on the RCM3305/RCM3315 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.
20RabbitCore RCM3305/RCM3315
The RS-485 connections between the slave and master devices are as follows.
•RS485+ to RS485+
•RS485– to RS485–
•GND to GND
• SIMPLE485MASTER.C—This program demonstrates a simple RS-485 transmission of
lower case letters to a slave. The slave will send back converted upper case letters back
to the master and display them in the STDIO window. Use SIMPLE485SLAVE.C to
program the slave.
• SIMPLE485SLAVE.C—This program demonstrates a simple RS-485 transmission of
lower case letters to a master. The slave will send back converted upper case letters
back to the master and display them in the STDIO window. Use SIMPLE485MASTER.C
to program the master.
3.2.3 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 SETRTCKB.C sample program from
the Dynamic C SAMPLES\RTCLOCK folder, using the onscreen prompts. The RTC_
TEST.C
sample program in the Dynamic C SAMPLES\RTCLOCK folder provides addi-
tional examples of how to read and set the real-time clock.
3.2.4 RabbitNet
Sample programs are available for each RabbitNet peripheral card, and can be found in the
Dynamic C SAMPLES\RabbitNet folder. When you run any of these sample programs
in conjunction with the RCM3305/RCM3315 and the Prototyping Board, you need to add
the line
#use rcm33xx.lib
at the beginning of the sample program.
TIP: You need to add #use rcm33xx.lib at the beginning of any sample program
that is not in the Dynamic C SAMPLES\RCM3300 folder.
3.2.5 Other Sample Programs
Section 6.6 describes the TCP/IP sample programs, and Appendix C.7 provides sample
programs for the optional LCD/keypad module that can be installed on the Prototyping
Board.
User’s Manual21
22RabbitCore RCM3305/RCM3315
4. HARDWARE REFERENCE
Chapter 4 describes the hardware components and principal hardware
subsystems of the RCM3305/RCM3315 modules. Appendix A,
“RCM3305/RCM331 5 Specific ations,” pr ovides com plete phys ical
and electrical specifications.
Figure 4 shows the Rabbit-based subsystems designed into the RCM3305/RCM3315.
Ethernet
Fast SRAM
(program)
Data
SRAM
Program
Flash
Serial
Flash
32 kHz
osc
RABBIT
Battery-Backup
44.2 MHz
3000
Circuit
RabbitCore Module
Figure 4. RCM3305/RCM3315 Subsystems
osc
®
Customer-specific
applications
CMOS-level signals
Level
converter
RS-232, RS-485
serial communication
drivers on motherboard
Customer-supplied
external 3 V battery
User’s Manual23
4.1 RCM3305/RCM3315 Digital Inputs and Outputs
Figure 5 shows the RCM3305/RCM3315 pinouts for headers J3 and J4.
The pinouts for the RCM3000, RCM3100, RCM3200, RCM3305/RCM3315, RCM3360/
RCM3370, and RCM3365/RCM3375 are almost compatible, except signals PB0, PC4, and PC5.
PB0, PC4, and PC5 are used for the SPI interface to the serial flash on the RCM3305 and the
RCM3315. Visit the Web site
for further information.
Headers J3 and J4 are standard 2 × 34 headers with a nominal 2 mm pitch. An RJ-45 Ether-
net port is also included with the RCM3305/RCM3315.
Pins 29–32 on header J3 are configured using 0 Ω resistors at locations JP4, JP5, JP6, and
JP7 to be PD2, PD3, PD6, and PD7 respectively. They may also be reconfigured to carry
the Ethernet signals TPI+, TPI–, TPO+, and TPO–.
Pins 33 and 34 on header J3 are wired to carry the LINK and ACT signals that illuminated
the corresponding LEDs on the RCM3305/RCM3315 module. These signals may be “disconnected” by removing 0 Ω surface-mount resistors R41 and R42.
See Appendix A.5 for more information about the locations of these surface-mount
resistors.
24RabbitCore RCM3305/RCM3315
Figure 6 shows the use of the Rabbit 3000 microprocessor ports in the RCM3305/
RCM3315 modules.
PC0, PC2
PC1, PC3
PG2PG3
PG6PG7
PB1, PC6, STATUS
PC7, /RESET,
SMODE0, SMODE1
4 Ethernet signals
PA0PA7
Port A
Port C
(Serial Ports C & D)
Port G
(Serial Ports E & F)
Programming
Port
(Serial Port A)
Ethernet
Port
RAM
PB2PB7
Port B
R
ABBIT
®
3000
Real-Time Clock
Watchdog
11 Timers
Slave Port
Clock Doubler
Backup Battery
Support
PD2PD7
Port D
Port E
(+Ethernet Port)
Port F
Port G
(+Serial Ports)
Misc. I/O
Flash
PE0PE1,
PE3PE7
PF0PF7
PG0PG1,
PG4PG5
/RES
/RES
/IORD
/IOWR
Figure 6. Use of Rabbit 3000 Ports
The ports on the Rabbit 3000 microprocessor used in the RCM3305/RCM3315 are configurable, and so the factory defaults can be reconfigured. Table 2 lists the Rabbit 3000 factory defaults and the alternate configurations.
User’s Manual25
Table 2. RCM3305/RCM3315 Pinout Configurations
PinPin NameDefault UseAlternate UseNotes
1GND
2STATUSOutput (Status)Output
External data bus
3–10PA[7:0]Parallel I/O
11PF3Input/OutputQD2A
12PF2Input/OutputQD2B
(ID0–ID7)
Slave port data bus
(SD0–SD7)
External Data Bus
13PF1Input/Output
14PF0Input/Output
QD1A
CLKC
QD1B
CLKD
15PC0OutputTXD
Serial Port D
16PC1InputRXD
17PC2OutputTXC
Serial Port C
18PC3InputRXC
19PC4OutputTXB
20PC5InputRXB
Header J3
21PC6OutputTXA
22PC7InputRXA
Serial Port B
RCM3305/RCM3315—
Not Connected (used for
onboard serial flash)
Serial Port A
(programming port)
23PG0Input/OutputTCLKFSerial Clock F output
24PG1Input/OutputRCLKFSerial Clock F input
25PG2Input/OutputTXF
20PG7Input/OutputRXE
21PG6Input/OutputTXE
22PG5Input/OutputRCLKESerial Clock E input
23PG4Input/OutputTCLKESerial Clock E ouput
24/IOWROutputExternal write strobe
25/IORDOutput External read strobe
(0,0)—start executing at address zero
(0,1)—cold boot from slave port
26–27
28/RESET_INInputInput to Reset Generator
29VRAMOutputSee Notes below table
30VBAT_EXT3 V battery Input
SMODE0,
SMODE1
(1,0)—cold boot from clocked Serial Port A
SMODE0 =1, SMODE1 = 1
Cold boot from asynchronous Serial Port A at
2400 bps (programming cable connected)
Serial Port E
Also connected to
programmi ng cable
Minimum bat tery
voltage 2.85 V
31+3.3 VINPower Input3.15–3.45 V DC
32GND
33n.c.Reserved for future use
34GND
Header J4
Notes
1. When using pins 33–34 on header J3 to drive LEDs, these pins can handle a sinking
current of up to 8 mA.
2. The VRAM voltage is temperature-dependent. If the VRAM voltage drops below about
1.2 V to 1.5 V, the contents of the battery-backed SRAM may be lost. If VRAM drops
below 1.0 V, the 32 kHz oscillator could stop running. Pay careful attention to this voltage if you draw any current from this pin.
28RabbitCore RCM3305/RCM3315
4.1.1 Memory I/O Interface
The Rabbit 3000 address lines (A0–A18) and all the data lines (D0–D7) are routed
internally to the onboard flash memory and SRAM chips. I/0 write (/IOWR) and I/0 read
(/IORD) are available for interfacing to external devices.
Parallel Port A can also be used as an external I/O data bus to isolate external I/O from the
main data bus. Parallel Port B pins PB2–PB5 and PB7 can also be used as an external
address bus.
When using the external I/O bus for a digital output or the LCD/keypad module on the
Prototyping Board, or for any other reason, you must add the following line at the beginning of your program.
#define PORTA_AUX_IO // required to enable external I/O bus
4.1.2 Other Inputs and Outputs
The status, /RESET_IN, SMODE0, and SMODE1 I/O are normally associated with the
programming port. Since the status pin is not used by the sys tem once a program has been
downloaded and is running, the status pin can then be used as a general-purpose CMOS
output. The programming port is described in more detail in Section 4.2.3.
/RES is an output from the reset circuitry that can be used to reset external peripheral
devices.
4.1.3 LEDs
The RCM3305/RCM3315 has three Ethernet status LEDs located beside the RJ-45 Ethernet jack—these are discussed in Section 4.2.
Addiitionally, there are two other LEDs. The SF LED at DS3 blinks when data are being
written to or read from the flash mass-storage device. The red USR LED at DS3 is a userprogrammable LED, which is controlled by PD0 on the Rabbit 3000’s Parallel Port D. The
sample program FLASHLED.C provided in the Dynamic C SAMPLES\RCM3300 folder
shows how to set up and use this user-programmable LED.
User’s Manual29
4.2 Serial Communication
The RCM3305/RCM3315 does not have any serial transceivers directly on the board.
However, a serial interface may be incorporated into the board the RCM3305/RCM3315
is mounted on. For example, the Prototyping Board has RS-232 and RS-485 transceiver
chips.
4.2.1 Serial Ports
There are six serial ports designated as Serial Ports A, B, C, D, E, and F. All six serial
ports can operate in an asynchronous mode up to the baud rate of the system clock divided
by 8. An asynchronous port can handle 7 or 8 data bits. A 9th bit address scheme, where
an additional bit is sent to mark the first byte of a message, is also supported.
Serial Port A is normally used as a programming port, but may be used either as an asynchronous or as a clocked serial port once the RCM3305/RCM3315 has been programmed
and is operating in the Run Mode.
Serial Port B is used to communicate with the serial flash on the RCM3305/RCM3315 and
is not available for other use.
Serial Ports C and D can also be operated in the clocked serial mode. In this mode, a clock
line synchronously clocks the data in or out. Either of the two communicating devices can
supply the clock.
Serial Ports E and F can also be configured as HDLC serial ports. The IrDA protocol is
also supported in SDLC format by these two ports.
30RabbitCore RCM3305/RCM3315
4.2.2 Ethernet Port
Figure 7 shows the pinout for the RJ-45 Ethernet port (J2). Note that some Ethernet connectors are numbered in reverse to the order used here.
ETHERNET
RJ-45 Plug
1
RJ-45 Jack
1. E_Tx+
2. E_Tx
3. E_Rx+
6. E_Rx
8
Figure 7. RJ-45 Ethernet Port Pinout
The RJ-45 connector is shielded to minimize EMI effects to/from the Ethernet signals.
Three Ethernet status LEDs are located beside the RJ-45 Ethernet jack: ACT, LINK, and
SPEED. The yellow ACT LED at DS1 indicates ne two rk ac ti vity. The green LINK LED at
DS2 indicates that the RCM3305/RCM3315 is connected to a working network. The
green SPEED LED at DS4 is on to indicate when the RCM3305/RCM3315 is connected
to a 100Base-T Ethernet connection.
User’s Manual31
4.2.3 Programming Port
The RCM3305/RCM3315 is programmed either through the serial programming port,
which is accessed using header J1, or through the Ethernet jack. The RabbitLink may be
used to provide a serial connection via the RabbitLink’s Ethernet jack. The programming
port uses the Rabbit 3000’s Serial Port A for communication; Serial Port A is not used
when programming is done over an Ethernet connection via the Dynamic C download
manager or the remote application update. Dynamic C uses the programming port to
download and debug programs.
The programming port is also used for the following operations.
• Cold-boot the Rabbit 3000 on the RCM3305/RCM3315 after a reset.
• Remotely download and debug a program over an Ethernet connection using the
RabbitLink EG2110.
• Fast copy designated portions of flash memory from one Rabbit-based board (the
master) to another (the slave) using the Rabbit Cloning Board.
In addition to Serial Port A, the Rabbit 3000 startup-mode (SMODE0, SMODE1), status,
and reset pins are available on the programming port.
The two startup mode pins determine what happens after a reset—the Rabbit 3000 is
either cold-booted or the program begins executing at address 0x0000.
The status pin is used by Dynamic C to determine whether a Rabbit microprocessor is
present. The status output has three different programmable functions:
1. It can be driven low on the first op code fetch cycle.
2. It can be driven low during an interrupt acknowledge cycle.
3. It can also serve as a general-purpose CMOS output.
The /RESET_IN pin is an external input that is used to reset the Rabbit 3000 and the
RCM3305/RCM3315 onboard peripheral circuits. The serial programming port can be
used to force a hard reset on the RCM3305/RCM3315 by asserting the /RESET_IN signal.
Alternate Uses of the Programming Port
All three clocked Serial Port A signals are available as
• a synchronous serial port
• an asynchronous serial port, with the clock line usable as a general CMOS I/O pin
The programming port may also be used as a serial port once the application is running.
The SMODE pins may then be used as inputs and the status pin may be used as an output.
Refer to the Rabbit 3000 Microprocessor User’s Manual for more information.
32RabbitCore RCM3305/RCM3315
4.3 Programming Cable
The programming cable is used to connect the programming port of the RCM3305/
RCM3315 to a PC serial COM port. The programming cable converts the RS-232 voltage
levels used by the PC serail port to the CMOS voltage levels used by the Rabbit 3000.
When the
PROG connector on the programming cable is connected to the RCM3305/
RCM3315 programming port, programs can be downloaded and debugged over the serial
interface.
The DIAG connector of the prog r am m i n g c ab l e m a y b e u s ed on header J1 o f t h e RCM3305/
RCM3315 with the RCM3305/RCM3315 operating in the Run Mode. This allows the
programming port to be used as a regular serial port.
4.3.1 Changing Between Program Mode and Run Mode
The RCM3305/RCM3315 is automatically in Program Mode when the PROG connector
on the programming cable is attached, and is automatically in Run Mode when no programming cable is attached. When the Rabbit 3000 is reset, the operating mode is determined by the state of the SMODE pins. When the programming cable’s PROG connector
is attached, the SMODE pins are pulled high, placing the Rabbit 3000 in the Program
Mode. When the programming cable’s PROG connector is not attached, the SMODE pins
are pulled low, causing the Rabbit 3000 to operate in the Run Mode.
GND IN3 IN2 IN1 IN0 +5V
U7
R62
C7
R65
R66
R8
R9
+5 V
GND
+3.3 V
BA2
BA3
BD0
BD1
BD2
BD3
BD4
GNDA3A1D0D2D4D6
A2
A0
D1D3D5
D7
GND
R42
C20
K1
To
D8
PC COM port
LCD1JC
J6
U6
BD5
J7
RABBITNET
R2
R7
R3R4R5
R6
C6
R10
J11
C14
C15
SERIAL FLASH/
MODEM
R19
R20
R18
BD6
BD7
J16
0.5 A @ 30 V
RELAY RATED
J17
C27
C28
R44
R43
C30C29
R45
R46
NO1 COM1 NC1 NO2 COM2 NC2
DS7
Q5
R47
RELAY
R48
J8
GND
GND
VBT
/RES
SM0
/IOWR
PG5
PG7
PE1
PE4
PE6
PF7
PF5
PB7
PB5
PB3
PB0
RCM3300
PROTOTYPING
BOARD
ACT
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
J9
S1
RESET
NC
+3.3 V
VRAM
SMODE1
/IORD
PG4
PG6
PE0
PE3
PE5
PF4 PF6 PE7
PB6
PB4
PB2
/RES_OUT
LINK
PD6
PD2
PD4
PG2
PG0
PC6
PC4
PC2
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
JP1
L293D
H-DRIVER
R13
RP2
R17
C78
R15
C71
C77
R79
C72
C76
C70
C80
C82
R31
R54
R44
C58
C43
C34
U5
Y2
R23
R17
C28
R18
R22
U4
R19
C24
C25
C20
C16
C11
U1
R6
C6
C7
R5
C4
JB
Y1
R2
HO4
HO3
HO2
HO1
R30
R31
R32
DS5 DS6
DS4
VMA+ MDA1MDA2MDA3MDA4 VMA
C3
U2
C4
OUT
C74
U13
R64
R63
R62
R61
R60
C81
R45
CX1
C33
C32
C31
UX1
R16
SO20W
C23
CX2
C14
C19
U2
R12
R11
R13
C15
R10
C10
R9
UX2
SO20W
R8
J1
RP1
J13
R1
C21
C22
C23
C24
J14
TxE RxE GND TxF RxF 485+ GND 485
GND
J1
C1
C9
U4
USR SF LINK ACT
DS3
DS1
GND
+DC
C10
C11
DS2
CORE MODULE
L1
JP5
R15
R14
R21
Q1
Q2Q3Q4
R28
R27
S3
POWER
GND
DS1
R1
J2
J3
D1
C2
U1
J10
00 01 02 03 04 05 06 07
OUT
C12
JP4
SPEED
R16
R38
R37
R50
DS4
C42
R36
R35
C90
L3
J2
JP6
C35
C30
R21
JP7
JP8
JP4
C26
C27
U8
U3
C21
C22
C16
C17
C18
R24
R23
R22
C12
C13
C9
C8
R7
Q1
C2C3R3
J12
R50
D4
Q6
R49
CORE
DS2
RP1
C13
U5
RCM33XX
C79
L2
C86
R81
R82
R30
R53
C61
C29
R20
C5
C1
GND
D5D6D7
R29
DS3
+DC
D2
L1
R11
R12
R67
C8
R68
R69
R70
GND/EGND
JA
R25
R26
S2
VMB MDB1 MDB2MDB3MDB4 VMB+
J5
J4
PF0_CLKD
PF0_QD
JP2
U3
L293D
H-DRIVER
R14
C5
BT1
+5 V
GND
+3.3 V
RX13
RX16
RX14
RX17
RX18
RX15
UX4
DX1
SOT23-6
UX5
DX2
SOT23-6
C18
C17
R33
R34
C25
PROG
R36
C26
U10
R35
R37
JP5
R38
DIAG
U9
+5V QD2A QD2B QD1A QD1B GND
R52 R53
R51
JP3
R55
LCD1JA
Programming Cable
LCD1JB
Colored edge
R54
R56
R57
R58
R39
+V
/RES
/CS
+BKLT
R40
U11
R60 R61
R59
R63
R64
LCD
/CS
BA0
BA1
J15
LED0
LED2
LED4
LED6
GND
LED1
LED3
LED5
C19
R41
U12
KEYPAD DISPLAYBOARD
RESET
RESET RCM3305/RCM3315 when changing mode:
Press RESET button (if using Prototyping Board),
OR
Cycle power off/on
after removing or attaching programming cable.
Figure 8. Switching Between Program Mode and Run Mode
User’s Manual33
A program “runs” in either mode, but can only be downloaded and debugged when the
RCM3305/RCM3315 is in the Program Mode.
Refer to the Rabbit 3000 Microprocessor User’s Manual for more information on the pro-
gramming port.
4.3.2 Standalone Operation of the RCM3305/RCM3315
The RCM3305/RCM3315 must be programmed via the Prototyping Board or via a similar
arrangement on a customer-supplied board. Once the RCM3305/RCM3315 has been programmed successfully, remove the programming cable from the programming connector
and reset the RCM3305/RCM3315. The RCM3305/RCM3315 may be reset by cycling the
power off/on or by pressing the RESET button on the Prototyping Board. The RCM3305/
RCM3315 module may now be removed from the Prototyping Board for end-use
installation.
CAUTION: Disconnect power to the Prototyping Board or other boards when removing
or installing your RCM3305/RCM3315 module to protect against inadvertent shorts
across the pins or damage to the RCM3305/RCM3315 if the pins are not plugged in
correctly. Do not reapply power until you have verified that the RCM3305/RCM3315
module is plugged in correctly.
34RabbitCore RCM3305/RCM3315
4.4 Other Hardware
4.4.1 Clock Doubler
The RCM3305/RCM3315 takes advantage of the Rabbit 3000 microprocessor’s internal
clock doubler. A built-in clock doubler allows half-frequency crystals to be used to reduce
radiated emissions. The 44.2 MHz frequency specified for the RCM3305/RCM3315 is
generated using a 22.12 MHz resonator.
The clock doubler may be disabled if 44.2 MHz clock speeds are not required. This will
reduce power consumption and further reduce radiated emissions. The clock doubler is
disabled with a simple configuration macro as shown below.
1. Select the “Defines” tab from the Dynamic C Options > Project Options menu.
2. Add the line CLOCK_DOUBLED=0 to always disable the clock doubler.
The clock doubler is enabled by default, and usually no entry is needed. If you need to
specify that the clock doubler is always enabled, add the line CLOCK_DOUBLED=1 to
always enable the clock doubler.
3. Click OK to save the macro. The clock doubler will now remain off whenever you are
in the project file where you defined the macro.
4.4.2 Spectrum Spreader
The Rabbit 3000 features a spectrum spreader, which helps to mitigate EMI problems. The
spectrum spreader is on by default, but it may also be turned of f or set to a stronger setting.
The means for doing so is through a simple configuration macro as shown below.
1. Select the “Defines” tab from the Dynamic C Options > Project Options menu.
2. Normal spreading is the default, and usually no entry is needed. If you need to specify
normal spreading, add the line
ENABLE_SPREADER=1
For strong spreading, add the line
ENABLE_SPREADER=2
To disable the spectrum spreader, add the line
ENABLE_SPREADER=0
NOTE: The strong spectru m-s prea ding se tti ng is unne cess ary fo r th e RCM3305/RCM3 315.
3. Click OK to save the macro. The spectrum spreader will now be set to the state specified
by the macro value whenever you are in the project file where you defined the macro.
NOTE: Refer to the Rabbit 3000 Microprocessor User’s Manual for more information
on the spectrum-spreading setting and the maximum clock speed.
User’s Manual35
4.5 Memory
4.5.1 SRAM
RCM3305/RCM3315 boards have 512K of program-execution fast SRAM at U11. The
program-execution SRAM is not battery-backed. There are 512K of battery-backed data
SRAM installed at U10.
4.5.2 Flash EPROM
RCM3305/RCM3315 boards also have 512K of flash EPROM at U9.
NOTE: Rabbit recommends that any customer applications should not be constrained by
the sector size of the flash EPROM since it may be necessary to change the sector size
in the future.
Writing to arbitrary flash memory addresses at run time is also discouraged. Instead, use a
portion of the “user block” area to store persistent data. The functions writeUser-Block() and readUserBlock() are provided for this. Refer to the Rabbit 3000
Microprocessor Designer’s Handbook
additional information.
4.5.3 Serial Flash
A serial flash is supplied on the RCM3305 and the RCM3315 to store data and Web pages.
Sample programs in the SAMPLES\RCM3300 folder illustrate the use of the serial flash.
These sample programs are described in Section 3.2.1, “Use of Serial Flash.”
and the Dynamic C Function Reference Manual for
4.5.4 Dynamic C BIOS Source Files
The Dynamic C BIOS source files handle different standard RAM and flash EPROM sizes
automatically.
36RabbitCore RCM3305/RCM3315
5. SOFTWARE REFERENCE
Dynamic C is an integrated development system for writing
embedded software. It runs on an IBM-compatible PC and is
designed for use with controllers based on the Rabbit mi croprocessor. Chapter 5 describes the libraries and function calls
related to the RCM3305/RCM3315.
5.1 More About Dynamic C
Dynamic C has been in use worldwide since 1989. It is specially designed for programming embedded systems, and features quick compile and interactive debugging. A complete reference guide to Dynamic C is contained in the Dynamic C User’s Manual.
You have a choice of doing your software development in the flash memory or in the static
SRAM included on the RCM3305/RCM3315. The flash memory and SRAM options are
selected with the Options > Program Options > Compiler menu.
The advantage of working in RAM is to save wear on the flash memory, which is limited
to about 100,000 write cycles. The disadvantage is that the code and data might not both
fit in RAM.
NOTE: An application should be run from the program execution SRAM after the pro-
gramming cable is disconnected. Your final code must always be stored in flash memory
for reliable operation. RCM3305/RCM3315 modules running at 44.2 MHz have a fast
program execution SRAM tha t is no t batt ery-b acked. Se lect
Run in RAM
store the code in flash and copy it to the fast program execution SRAM at run-time to
take advantage of the faster clock speed. This option optimizes the performance of
RCM3305/RCM3315 modules running at 44.2 MHz.
NOTE: Do not depend on the flash memory sector size or type in your program logic.
The RCM3305/RCM3315 and Dynamic C were designed to accommodate flash
devices with various sector sizes in response to the volatility of the flash-memory
market.
Developing software with Dynamic C is simple. Users can write, compile, and test C and
assembly code without leaving the Dynamic C development environment. Debugging
occurs while the application runs on the target. Alternatively, users can compile a program
to an image file for later loading. Dynamic C runs on PCs under Windows 2000 and
later—see Rabbit’s Technical Note TN257, Running Dynamic C® With Windows Vista®,
from the Dynamic C Options > Project Options > Compiler menu to
Code and BIOS in Flash,
User’s Manual37
for additional information if you are using a Dynamic C release prior to v. 9.60 under Windows Vista. Programs can be downloaded at baud rates of up to 460,800 bps after the program compiles.
Dynamic C has a number of standard features.
• Full-feature source and/or assembly-level debugger, no in-circuit emulator required.
• Royalty-free TCP/IP stack with source code and most common protocols.
• Hundreds of functions in source-code libraries and sample programs:
X Exceptionally fast support for floating-point arithmetic and transcendental functions.
X RS-232 and RS-485 serial communication.
X Analog and digital I/O drivers.
X I2C, SPI, GPS, file system.
X LCD display and keypad drivers.
• Powerful language extensions for cooperative or preemptive multitasking
• Loader utility program to load binary images into Rabbit targets in the absence of
Dynamic C.
• Provision for customers to create their own source code libraries and augment on-line
help by creating “function description” block comments using a special format for
library functions.
• Standard debugging features:
X Breakpoints—Set breakpoints that can disable interrupts.
X Single-stepping—Step into or over functions at a source or machine code level, µC/OS-II aware.
X Code disassembly—The disassembly window displays addresses, opcodes, mnemonics, and
machine cycle times. Switch between debugging at machine-code level and source-code level by
simply opening or closing the disassembly window.
X Watch expressions—Watch expressions are compiled when defined, so complex expressions
including function calls may be placed into watch expressions. Watch expressions can be updated
with or without stopping program execution.
X Regi ster window— All process or registers and f lags are di splayed. T he contents of gener al register s
may be modified in the window by the user.
X Stack window—shows the contents of the top of the stack.
X Hex memory dump—displays the contents of memory at any address.
X STDIO window—printf outputs to this window and keyboard input on the host PC can be
detected for debugging purposes.
printf output may also be sent to a serial port or file.
38RabbitCore RCM3305/RCM3315
5.1.1 Developing Programs Remotely with Dynamic C
Dynamic C is an integrated development environment that allows you to edit, compile,
and debug your programs. Dynamic C has the ability to allow programming over the
Internet or local Ethernet. This is accomplished in one of two ways.
1. V ia the Rabbit RabbitLink, which allows a Rabbit-based tar get to have programs downloaded to it and debugged with the same ease as exists when the target is connected
directly to a PC.
2. The RCM3305/RCM3315 has a featured remote application update written specifically
to allow the RCM3305/RCM3315 to be programmed over the Internet or local Ethernet. These programs,
SAMPLES\RCM3300\RemoteApplicationUpdate
DLP_STATIC.C
and
DLP_WEB.C
, are available in the Dynamic C
folder. Complete information on
the use of these programs is provided in the Remote Application Update instructions,
which are available with the online documentation.
Dynamic C provides sample programs to illustrate the use of a download manager.
User’s Manual39
5.2 Dynamic C Functions
5.2.1 Digital I/O
The RCM3305/RCM3315 was designed to interface with other systems, and so there are
no drivers written specifically for the I/O. The general Dynamic C read and write functions allow you to customize the parallel I/O to meet your specific needs. For example, use
WrPortI(PEDDR, &PEDDRShadow, 0x00);
to set all the Port E bits as inputs, or use
WrPortI(PEDDR, &PEDDRShadow, 0xFF);
to set all the Port E bits as outputs.
When using the external I/O bus on the Rabbit 3000 chip, add the line
#define PORTA_AUX_IO // required to enable external I/O bus
to the beginning of any programs using the external I/O bus.
The sample programs in the Dynamic C
SAMPLES/RCM3300
folder provide further
examples.
5.2.2 SRAM Use
The RCM3305/RCM3315 have a battery-backed data SRAM and a program-execution
SRAM. Dynamic C provides the
protected
keyword to identify variables that are to be
placed into the battery-backed SRAM. The compiler generates code that creates a backup
copy of a protected variable before the variable is modified. If the system resets while the
protected variable is being modified, the variable's value can be restored when the system
restarts.
The sample code below shows how a protected variable is defined and how its value can
be restored.
protected nf_device nandFlash;
int main() {
...
_sysIsSoftReset(); // restore any protected variables
The
bbram
keyword may also be used instead if there is a need to store a variable in bat-
tery-backed SRAM without affecting the performance of the application program. Data
integrity is not assured when a reset or power failure occurs during the update process.
Additional information on
bbram
and
protected
variables is available in the Dynamic C
User’s Manual.
40RabbitCore RCM3305/RCM3315
5.2.3 Serial Co mmunication Drivers
Library files included with Dynamic C provide a full range of serial communications support. The
PACKET.LIB
RS232.LIB
library provides packet-based serial functions where packets can be delimited
library provides a set of circular-buffer-based serial functions. The
by the 9th bit, by transmission gaps, or with user-defined special characters. Both libraries
provide blocking functions, which do not return until they are finished transmitting or
receiving, and nonblocking functions, which must be called repeatedly until they are finished, allowing other functions to be performed between calls. For more information, see
the Dynamic C Function Reference Manual and Technical Note TN213, Rabbit Serial Port Software.
5.2.4 TCP/IP Drivers
The TCP/IP drivers are located in the
LIB\TCPIP
folder. Complete information on these
libraries and the TCP/IP functions is provided in the Dynamic C TCP/IP User’s Manual.
5.2.5 Serial Flash Drivers
The Dynamic C
SerialFlash\SFLASH.LIB
library is used to interface to serial flash
memory devices on an SPI bus such as the serial flash on board the RCM3305 and the
RCM3315, which use Serial Port B as an SPI port. The library has two sets of function
calls—the first is maintaine d for c ompatibility with pre vious versions of t he
SFLASH.LIB
library. The functions are all blocking and only work for single flash devices. The new
functions, which should be used for the RCM3305/RCM3315, make use of an
sf_device
structure as a handle for a specific serial flash device. This allows multiple
devices to be used by an application.
More information on these function calls is available in the Dynamic C Function Refer-
ence Manual.
User’s Manual41
5.2.6 Prototyping Board Functions
The functions described in this section are for use with the Prototyping Board features.
The source code is in the Dynamic C SAMPLES\RCM3300\RCM33xx.LIB library if you
need to modify it for your own board design.
The
RCM33xx.LIB
library is supported by the RN_CFG_RCM33.LIB—library, which is
used to configure the RCM3305/RCM3315 for use with RabbitNet peripheral boards on
the Prototyping Board.
Other generic functions applicable to all devices based on Rabbit microprocessors are
described in the Dynamic C Function Reference Manual.
5.2.6.1 Board Initialization
void brdInit (void);
Call this function at the beginning of your program. This function initializes Parallel Ports A through G
for use with the Prototyping Board.
Summary of Initialization
1. I/O port pins are configured for Prototyping Board operation.
2. Unused configurable I/O are set as tied inputs or outputs.
3. External I/O are disabled.
4. The LCD/keypad module is disabled.
5. RS-485 is not enabled.
6. RS-232 is not enabled.
7. LEDs are off.
8. Ethernet select is disabled.
9. Mass-storage flash select is disabled.
10. Motor control is disabled.
11. The RabbitNet SPI interface is disabled.
12. The relay is set to normally closed positions.
RETURN VALUE
None.
42RabbitCore RCM3305/RCM3315
5.2.6.2 Digital I/O
int digIn(int channel);
Reads the input state of inputs on Prototyping Board headers J5 and J6. D o not use this function if you
configure these pins for alternate use after
PARAMETERS
channels
is the channel number corresponding to the signal on header J5 or J6
Writes a value to an output channel on Prototyping Board header J10. Do not use this function if you
have installed the stepper motor chips at U2 and U3.
PARAMETERS
channel is output channel 0–7 (OUT00–OUT07).
value is the value (0 or 1) to output.
RETURN VALUE
None.
SEE ALSO
brdInit
User’s Manual43
5.2.6.3 Switches, LEDs, and Relay
int switchIn(int swin);
Reads the state of a switch input.
PARAMETERS
swin
is the switch input to read:
2—S2
3—S3
RETURN VALUE
State of the switch input:
1 = open
0 = closed
SEE ALSO
brdInit
void ledOut(int led, int value);
Controls LEDs on the Prototyping Board and on the RCM3305/RCM3315.
PARAMETERS
led is the LED to control:
0 = red User LED on RCM3305/RCM3315
3 = DS3 on Prototyping Board
4 = DS4 on Prototyping Board
5 = DS5 on Prototyping Board
6 = DS6 on Prototyping Board
value
is the value used to control the LED:
0 = off
1 = on
RETURN VALUE
None.
SEE ALSO
brdInit
44RabbitCore RCM3305/RCM3315
void relayOut(int relay, int value);
Sets the position for the relay common contact. The default position is for normally closed contacts.
PARAMETERS
relay is the one relay (1)
value is the value used to connect the relay common contact:
0 = normally closed positions (NC1 and NC2)
1 = normally open positions (NO1 and NO2)
RETURN VALUE
None.
SEE ALSO
brdInit
5.2.6.4 Serial Communication
void ser485Tx(void);
Enables the RS-485 transmitter. Transmitted data are echoed back into the receive data buffer. The
echoed data may be used as an indicator for disabling the transmitter by using o ne of the fo llowing m ethods:
Byte mode—disable the transmitter after the same byte that is transmitted is detected in the receive
data buffer.
Block data mode—disable the transmitter after the same number of bytes transmitted are detected in
the receive data buffer.
Remember to call the
SEE ALSO
ser485Rx
serXopen()
function before running this function.
void ser485Rx(void);
Disables the RS-485 transmitter. This puts the device into the listen mode, which allows it to receive data
from the RS-485 interface.
Remember to call the
SEE ALSO
ser485Tx
serXopen()
function before running this function.
User’s Manual45
5.2.6.5 RabbitNet Port
The function calls described in this section are used to configure the RabbitNet port on the
Prototyping Board for use with RabbitNet peripheral cards. The user’s manual for the specific peripheral card you are using contains additional function calls related to the RabbitNet protocol and the individual peripheral card. Appendix E provides additional
information about the RabbitNet.
These RabbitNet peripheral cards are available at the present time.
• Digital I/O Card (RN1100)
• A/D Converter Card (RN1200)
• Relay Card (RN1400)
• Keypad/Display Interface (RN1600)
• D/A Converter Card (RN1300)
Before using the RabbitNet port, add the following lines at the start of your program.
#define RN_MAX_DEV 10 // max number of devices
#define RN_MAX_DATA 16 // max number of data bytes in any transaction
#define RN_MAX_PORT 2 // max number of serial ports
Set the following bits in RNSTATUSABORT to abort transmitting data afte r the status byte is
returned. This does not affect the status byte and still can be interpreted. Set any bit combination to abort:
bit 7—device busy is hard-coded into driver
bit 5—identifies router or slave
bits 4,3,2—peripheral-board-specific bits
bit 1—com mand rejected
bit 0—watchdog timeout
#define RNSTATUSABORT 0x80
// hard-coded driver default to abort if the peripheral board is busy
void rn_sp_info();
Provides rn_init() with the serial port control information needed for RCM3305/RCM3315 modules.
RETURN VALUE
None.
46RabbitCore RCM3305/RCM3315
void rn_sp_close(int port);
Deactivates the RCM3305/RCM3315 RabbitNet port as a clocked serial port. This call is also used by
rn_init().
PARAMETERS
portnum = 0
RETURN VALUE
None
void rn_sp_enable(int portnum);
This is a macro that enables or asserts the RCM3305/RCM3315 RabbitNet port chip select prio r to data
transfer.
PARAMETERS
portnum = 0
RETURN VALUE
None
void rn_sp_disable(int portnum);
This is a macro that disables or deasserts the RCM3305/RCM3315 RabbitNet port chip select to invalidate data transfer.
PARAMETERS
portnum = 0
RETURN VALUE
None.
User’s Manual47
5.3 Upgrading Dynamic C
5.3.1 Extras
Dynamic C installations are designed for use with the board they are included with, and
are included at no charge as part of our low-cost kits.
Starting with Dynamic C version 9.60, Dynamic C includes the popular µC/OS-II realtime operating system, point-to-point protocol (PPP), FAT file system, RabbitWeb, and
other select libraries. Rabbit also offers for purchase the Rabbit Embedded Security Pack
featuring the Secure Sockets Layer (SSL) and a specific Advanced Encryption Standard
(AES) library.
In addition to the Web-based technical support included at no extra charge, a one-year
telephone-based technical support subscription is also available for purchase.
48RabbitCore RCM3305/RCM3315
6. USINGTHE TCP/IP FEATURES
6.1 TCP/IP Connections
Programming and development can be done with the RCM3305/RCM3315 modules without connecting the Ethernet port to a network. However, if you will be running the sample
programs that use the Ethernet capability or will be doing Ethernet-enabled development,
you should connect the RCM3305/RCM3315 module’s Ethernet port at this time.
Before proceeding you will need to have the following items.
• If you don’t have Ethernet access, you will need at least a 10Base-T Ethernet card
(available from your favorite computer supplier) installed in a PC.
• Two RJ-45 straight-through Ethernet cables and a hub, or an RJ-45 crossover Ethernet
cable.
A straight-through and a crossover Ethernet cable are included in both the RCM3305/
RCM3315 Development Kit. Figure 9 sho w s ho w to identi fy t h e t wo c a b l e s b as ed on the
wires in the transparent RJ-45 connectors.
Same
color order
in connectors
Different
color order
in connectors
StraightThrough
Cable
Figure 9. How to Identify Straight-Through and Crossover Ethernet Cables
Ethernet cables and a 10Base-T Ethernet hub are available from Rabbit in a TCP/IP tool
kit. .
User’s Manual49
Crossover
Cable
Now you should be able to make your connections.
1. Connect the AC adapter and the programming cable as shown in Chapter 2, “Getting
Started.”
2. Ethernet Connections
There are four options for connecting the RCM3305/RCM3315 module to a network
for development and runtime purposes. The first two options permit total freedom of
action in selecting network addresses and use of the “network,” as no action can interfere with other users. We recommend one of these options for initial development.
• No LAN — The simplest alternative for desktop development. Connect the
RCM3305/RCM3315 module’s Ethernet port directly to the PC’s network interface
card using an RJ-45 crossover cable. A crossover cable is a special cable that flips
some connections between the two connectors and permits direct connection of two client systems. A standard RJ-45 network cable will not work for this purpose.
• Micro-LAN — Another simple alternative for desktop development. Use a small Ethernet 10Base-T hub and connect both the PC’s network interface card and the
RCM3305/RCM3315 module’s Ethernet port to it using standard network cables.
The following options require more care in address selection and testing actions, as
conflicts with other users, servers and systems can occur:
• LAN — Connect the RCM3305/RCM3315 module’s Ethernet port to an existing
LAN, preferably one to which the development PC is already connected. You will need
to obtain IP addressing information from your network administrator.
• WAN — The RCM3305/RCM3315 is capable of direct connection to the Internet and
other Wide Area Networks, but exceptional care should be used with IP address
settings and all network-related programming and development. We recommend that
development and debugging be done on a local network before connecting a RabbitCore system to the Internet.
TIP: Checking and debugging the initial setup on a micro-LAN is recommended before
connecting the system to a LAN or WAN.
The PC running Dynamic C does not need to be the PC with the Ethernet card.
3. Apply Power
Plug in the AC adapter. The RCM3305/RCM3315 module and Prototyping Board are
now ready to be used.
50RabbitCore RCM3305/RCM3315
6.2 TCP/IP Primer on IP Addresses
Obtaining IP addresses to interact over an existing, operating, network can involve a number of complications, and must usually be done with cooperation from your ISP and/or
network systems administrator. For this reason, it is suggested that the user begin instead
by using a direct connection between a PC and the RCM3305/RCM3315 using an Ethernet crossover cable or a simple arrangement with a hub. (A crossover cable should not be
confused with regular straight through cables.)
In order to set up this direct connection, the user will have to use a PC without networking,
or disconnect a PC from the corporate network, or install a second Ethernet adapter and set
up a separate private network attached to the second Ethernet adapter. Disconnecting your
PC from the corporate network may be easy or nearly impossible, depending on how it is
set up. If your PC boots from the network or is dependent on the network for some or all
of its disks, then it probably should not be disconnected. If a second Ethernet adapter is
used, be aware that Windows TCP/IP will send messages to one adapter or the other,
depending on the IP address and the binding order in Microsoft products. Thus you should
have different ranges of IP addresses on your private network from those used on the corporate network. If both networks service the same IP address, then Windows may send a
packet intended for your private network to the corporate network. A similar situation will
take place if you use a dial-up line to send a packet to the Internet. Windows may try to
send it via the local Ethernet network if it is also valid for that network.
The following IP addresses are set aside for local networks and are not allowed on the
Internet: 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to
192.168.255.255.
The RCM3305/RCM3315 uses a 10/100Base-T type of Ethernet connection, which is the
most common scheme. The RJ-45 connectors are similar to U.S. style telephone connectors, except they are larger and have 8 contacts.
An alternative to the direct connection using a crossover cable is a direct connection using
a hub. The hub relays packets received on any port to all of the ports on the hub. Hubs are
low in cost and are readily available. The RCM3305/RCM3315 uses 10/100 Mbps Ethernet, so the hub or Ethernet adapter can be a 10 Mbps unit, a 100 Mbps unit, or a 10/100
Mbps unit.
In a corporate setting where the Internet is brought in via a high-speed line, there are typically machines between the outside Internet and the internal network. These machines
include a combination of proxy servers and firewalls that filter and multiplex Internet traffic. In the configuration below, the RCM3305/RCM3315 could be given a fixed address
so any of the computers on the local network would be able to contact it. It may be possible to configure the firewall or proxy server to allow hosts on the Internet to directly contact the controller, but it would probably be easier to place the controller directly on the
external network outside of the firewall. This avoids some of the configuration complications by sacrificing some security.
User’s Manual51
Hub(s)
T1 in
Adapter
Ethernet
Typical Corporate Network
Firewall
Proxy
Server
Network
Ethernet
RCM3305/RCM3315
System
If your system administrator can give you an Ethernet cable along with its IP address, the
netmask and the gateway address, then you may be able to run the sample programs without having to setup a direct connection between your computer and the RCM3305/
RCM3315. You will also need the IP address of the nameserver, the name or IP address of
your mail server, and your domain name for some of the sample programs.
52RabbitCore RCM3305/RCM3315
6.2.1 IP Addresses Explained
IP (Internet Protocol) addresses are expressed as 4 decimal numbers separated by periods,
for example:
216.103.126.155
10.1.1.6
Each decimal number must be between 0 and 255. The total IP address is a 32-bit number
consisting of the 4 bytes expressed as shown above. A local network uses a group of adja-
cent IP addresses. There are always 2N IP addresses in a local network. The netmask (also
called subnet mask) determines how many IP addresses belong to the local network. The
netmask is also a 32-bit address expressed in the same form as the IP address. An example
netmask is:
255.255.255.0
This netmask has 8 zero bits in the least significant portion, and this means that 28
addresses are a part of the local network. Applied to the IP address above
(216.103.126.155), this netmask would indicate that the following IP addresses belong to
the local network:
216.103.126.0
216.103.126.1
216.103.126.2
etc.
216.103.126.254
216.103.126.255
The lowest and highest address are reserved for special purposes. The lowest address
(216.102.126.0) is used to identify the local network. The highest address
(216.102.126.255) is used as a broadcast address. Usually one other address is used for the
address of the gateway out of the network. This leaves 256 - 3 = 253 available IP
addresses for the example given.
User’s Manual53
6.2.2 How IP Addresses are Used
The actual hardware connection via an Ethernet uses Ethernet adapter addresses (also
called MAC addresses). These are 48-bit addresses and are unique for every Ethernet
adapter manufactured. In order to send a packet to another computer, given the IP address
of the other computer, it is first determined if the packet needs to be sent directly to the
other computer or to the gateway. In either case, there is an Ethernet address on the local
network to which the packet must be sent. A table is maintained to allow the protocol
driver to determine the MAC address corresponding to a particular IP address. If the table
is empty, the MAC address is determined by sending an Ethernet broadcast packet to all
devices on the local network asking the device with the desired IP address to answer with
its MAC address. In this way, the table entry can be filled in. If no device answers, then
the device is nonexistent or inoperative, and the packet cannot be sent.
Some IP address ranges are reserved for use on internal networks, and can be allocated
freely as long as no two internal hosts have the same IP address. These internal IP
addresses are not routed to the Internet, and any internal hosts using one of these reserved
IP addresses cannot communicate on the external Internet without being connected to a
host that has a valid Internet IP address. The host would either translate the data, or it
would act as a proxy.
Each RCM3305/RCM3315 RabbitCore module has its own unique MAC address, which
consists of the prefix 0090C2 followed by a code that is unique to each RCM3305/
RCM3315 module. For example, a MAC address might be 0090C2C002C0.
TIP: You can always obtain the MAC address on your board by running the sample pro-
gram DISPLAY_MAC.C from the SAMPLES\TCPIP folder.
54RabbitCore RCM3305/RCM3315
6.2.3 Dynamically Assigned Internet Addresses
In many instances, devices on a network do not have fixed IP addresses. This is the case
when, for example, you are assigned an IP address dynamically by your dial-up Internet
service provider (ISP) or when you have a device that provides your IP addresses using
the Dynamic Host Configuration Protocol (DHCP). The RCM3305/RCM3315 modules
can use such IP addresses to send and receive packets on the Internet, but you must take
into account that this IP address may only be valid for the duration of the call or for a
period of time, and could be a private IP address that is not directly accessible to others on
the Internet. These addresses can be used to perform some Internet tasks such as sending
e-mail or browsing the Web, but it is more difficult to participate in conversations that
originate elsewhere on the Internet. If you want to find out this dynamically assigned IP
address, under Windows 98 you can run the
winipcfg program while you are connected
and look at the interface used to connect to the Internet.
Many networks use IP addresses that are assigned using DHCP. When your computer
comes up, and periodically after that, it requests its networking information from a DHCP
server. The DHCP server may try to give you the same address each time, but a fixed IP
address is usually not guaranteed.
If you are not concerned about accessing the RCM3305/RCM3315 from the Internet, you
can place the RCM3305/RCM3315 on the internal network using an IP address assigned
either statically or through DHCP.
User’s Manual55
6.3 Placing Your Device on the Network
In many corporate settings, users are isolated from the Internet by a firewall and/or a
proxy server. These devices attempt to secure the company from unauthorized network
traffic, and usually work by disallowing traffic that did not originate from inside the network. If you want users on the Internet to communicate with your RCM3305/RCM3315,
you have several options. You can either place the RCM3305/RCM3315 directly on the
Internet with a real Internet address or place it behind the firewall. If you place the
RCM3305/RCM3315 behind the firewall, you need to configure the firewall to translate
and forward packets from the Internet to the RCM3305/RCM3315.
56RabbitCore RCM3305/RCM3315
6.4 Running TCP/IP Sample Programs
We have provided a number of sam ple program s demo nst rating va riou s uses of TCP/IP for
networking embedded systems. These programs require you to connect your PC and the
RCM3305/RCM3315 board together on the same network. This network can be a local private network (preferred for initial experimentation and debugging), or a connection via the
Internet.
RCM3305/RCM3315
System
User’s PC
Ethernet
crossover
cable
Direct Connection
(network of 2 comp uters)
Ethernet
cables
RCM3305/RCM3315
System
To additional
Hub
network
elements
Direct Connection Using a Hub
User’s Manual57
6.4.1 How to Set IP Addresses in the Sample Programs
With the introduction of Dynamic C 7.30 we have taken steps to make it easier to run
many of our sample programs. You will see a TCPCONFIG macro. This macro tells
Dynamic C to select your configuration from a list of default configurations. You will
have three choices when you encounter a sample program with the TCPCONFIG macro.
1. You can replace the TCPCONFIG macro with individual MY_IP_ADDRESS, MY_NET-
MASK
, MY_GATEWAY, and MY_NAMESERVER macros in each program.
2. You can leave TCPCONFIG at the usual default of 1, which will set the IP configura tions
to 10.10.6.100, the netmask to 255.255.255.0, and the nameserver and gateway
to 10.10.6.1. If you would like to change the default values, for example, to use an IP
address of 10.1.1.2 for the RCM3305/RCM3315 board, and 10.1.1.1 for your PC,
you can edit the values in the section that directly follows the “General Configuration”
comment in the TCP_CONFIG.LIB library. Yo u will find this library in the LIB\TCPIP
directory.
3. You can create a CUSTOM_CONFIG.LIB library and use a TCPCONFIG value greater
than 100. Instructions for doing this are at the beginning of the TCP_CONFIG.LIB
library in the LIB\TCPIP directory.
There are some other “standard” configurations for TCPCONFIG that let you select different features such as DHCP. Their values are documented at the top of the TCP_CON-
FIG.LIB
library in the LIB\TCPIP directory. More information is available in the
Dynamic C TCP/IP User’s Manual.
58RabbitCore RCM3305/RCM3315
6.4.2 How to Set Up your Computer for Direct Connect
Follow these instructions to set up your PC or notebook. Check with your administrator if
you are unable to change the settings as described here since you may need administrator
privileges. The instructions are specifically for Windows 2000, but the interface is similar
for other versions of Windows.
TIP: If you are using a PC that is already on a network, you will disconnect the PC from
that network to run these sample programs. Write down the existing settings before
changing them to facilitate restoring them when you are finished with the sample programs and reconnect your PC to the network.
1. Go to the control panel (Start > Settings > Control Panel), and then double-click the
Network icon.
2. Select the network interface card used for the Ethernet interface you intend to use (e.g.,
TCP/IP Xircom Credit Card Network Adapter) and click on the “Properties” button.
Depending on which version of Windows your PC is running, you may have to select
the “Local Area Connection” first, and then click on the “Properties” button to bring up
the Ethernet interface dialog. Then “Configure” your interface card for a “10Base-T
Half-Duplex” or an “Auto-Negotiation” connection on the “Advanced” tab.
NOTE: Your network interface card will likely have a different name.
3. Now select the IP Address tab, and check Specify an IP Address, or select TCP/IP and
click on “Properties” to assign an IP address to your computer (this will disable “obtain
an IP address automatically”):
4. Click <OK> or <Close> to exit the various dialog boxes.
RCM3305/RCM3315
IP 10.10.6.101
Netmask
255.255.255.0
System
User’s PC
Ethernet
crossover
cable
Direct Connection PC to RCM3305/RCM3315 Board
User’s Manual59
6.5 Run the PINGME.C Sample Program
Connect the crossover cable from your computer’s Ethernet port to the RCM3305/
RCM3315 board’s RJ-45 Ethernet connector. Open this sample program from the SAM-
PLES\TCPIP\ICMP
The crossover cable is connected from your computer’s Ethernet adapter to the RCM3305/
RCM3315 board’s RJ-45 Ethernet connector. When the program starts running, the green
LINK light on the RCM3305/RCM3315 module should be on to indicate an Ethernet con-
nection is made. (Note: If the LNK light does not light, you may not be using a crossover
cable, or if you are using a hub perhaps the power is off on the hub.)
The next step is to ping the board from your PC. This can be done by bringing up the MSDOS window and running the pingme program:
ping 10.10.6.101
or by Start > Run
and typing the entry
ping 10.10.6.101
Notice that the yellow ACT light flashes on the RCM3305/RCM3315 module while the
ping is taking place, and indicates the transfer of data . The ping routine will ping the board
four times and write a summary message on the screen describing the operation.
folder, compile the program, and start it running under Dynamic C.
6.6 Running Additional Sample Programs With Direct Connect
The following sample programs are in the Dynamic C SAMPLES\RCM3300\TCPIP\
folder.
• BROWSELED.C—This program demonstrates a basic controller running a Web page.
Two “device LEDs” are created along with two buttons to toggle them. Users can use
their Web browser to change the status of the lights. The DS3 and DS4 LEDs on the
Prototyping Board will match those on the W eb page. As long as you have not modified
the TCPCONFIG 1 macro in the sample program, enter the following server address in
your Web browser to bring up the Web page served by the sample program.
http://10.10.6.100
Otherwise use the TCP/IP settings you entered in the TCP_CONFIG.LIB library.
• MBOXDEMO.C—The optional LCD/keypad module (see Appendix C) must be plugged
in to the Prototyping Board when using this sample program. This program demonstrates sending e-mail messages that are then shown on the LCD/keypad module display. The keypad is used to scroll through a menu to view the messages, flip to other
messages, mark messages as read, and delete messages. When a new e-mail arrives, an
LED on the LCD/keypad module turns on, and then turns off once the message has
been marked as read. A log of all e-mail actions is kept, and can be displayed in the
Web browser. All current e-mails can also be read with the Web browser.
• PINGLED.C—This program demonstrates ICMP by pinging a remote host. It will flash
LEDs DS3 and DS4 on the Prototyping Board when a ping is sent and received.
60RabbitCore RCM3305/RCM3315
• SMTP.C—This program demonstrates using the SMTP library to send an e-mail when
the S2 and S3 switches on the Prototyping Board are pressed. LEDs DS3 and DS4 on
the Prototyping Board will light up when e-mail is being sent.
6.6.1 RabbitWeb Sample Programs
You will need to have the Dynamic C RabbitWeb module installed before you run the
sample programs described in this section. The following sample programs are in the
Dynamic C SAMPLES\RCM3300\TCPIP\RABBITWEB folder.
• BLINKLEDS.C—This program demonstrates a basic example to change the rate at
which the DS3 and DS4 LEDs on the Prototyping Board blink.
• DOORMONITOR.C—The optional LCD/keypad module (see Appendix C) must be plugged
in to the Prototyping Board when using this sample program. This program demonstrates adding and monitoring passwords entered via the LCD/keypad module.
• SPRINKLER.C—This program demonstrates how to schedule times for the relay and
digital outputs in a 24-hour period.
6.6.2 Remote Application Update
The following programs that make up the featured application for the RCM3305/
RCM3315 can be found in the SAMPLES\RCM3300\RemoteApplicationUpdate folder.
• DLP_STATIC.C—This program uses the TCP/IP HTTP.LIB library, and outputs a
basic static Web page.
• DLP_WEB.C—This program outlines a basic download program with a Web interface.
Complete information on the use of these programs is provided in the Remote Application Update instructions, which are available with the online documentation.
6.6.3 Dynamic C FAT File System, RabbitWeb, and SSL Modules
The Dynamic C FAT File System, RabbitWeb, and Secure Sockets Layer (SSL) modules
have been integrated into a sample program for the RCM3305 and the RCM3315. The
sample program requires that you have installed the Dynamic C FAT File System, RabbitWeb, and SSL modules.
TIP: Before running any of the sample programs described in this section, you should
look at and run sample programs for the TCP/IP
system, RabbitWeb, SSL, the download manager, and HTTP upload to become more
familiar with their operation.
ZSERVER.LIB library, the FAT file
The INTEGRATION.C sample program in the SAMPLES\RCM3300\Module_Integra-
tion
folder demonstrates the use of the TCP/IP ZSERVER.LIB library and FAT file system functionality with RabbitWeb dynamic HTML content, all secured using SSL. The
sample program also supports dynamic updates of both the application and its resources
using the Rabbit Download Manager (DLM) and HTTP upload capability, respectively—
note that neither of these currently supports SSL security.
User’s Manual61
First, you need to format and partition the serial flash. Find the FMT_DEVICE.C sample
program in the Dynamic C
SAMPLES\FileSystem folder. Open this sample program
with the File > Open menu, then compile and run it by pressing F9. FMT_DEVICE.C
formats the mass storage device for use with the FAT file system. If the serial flash or
NAND flash is already formatted, FMT_DEVICE.C gives you the option of erasing the
mass storage flash and reformatting it with a single large partition. This erasure does not
check for non-FAT partitions and will destroy all existing partitions.
Next, run the INTEGRATION_FAT_SETUP.C sample program in the Dynamic C
SAMPLES\RCM3300\Module_Integration folder . Ope n this sample program with the File > Open menu, then compile and run it by pressing F9. INTEGRATION_FAT_
SETUP.C
will copy some #ximported files into the FAT file system.
The last step to complete before you can run the INTEGRATION.C sample program is to
create an SSL certificate. The SSL walkthrough in the online documentation for the
Dynamic C SSL module explains how to do this.
Now you are ready to run the INTEGRATION.C sample program in the Dynamic C
SAMPLES\RCM3300\Module_Integration folder . Ope n this sample program with the
File > Open menu, then compile and run it by pressing F9.
NOTE: Since HTTP upload and the Dynamic C SSL module currently do not work
together, compiling the INTEGRATION.C
warning. Ignore the warning because we are not using HTTP upload over SSL. A
macro (HTTP_UPLOAD_SSL_SUPRESS_WARNING) is available to suppress the
warning message.
sample program will generate a serious
Open a Web browser, and browse to the device using the IP address from the TCP_
CONFIG.LIB
library or the URL you assigned to the device. The humidity monitor will
be displayed in your Web browser. This page is accessible via plain HTTP or over SSLsecured HTTPS. Click on the administrator link to bring up the admin page, which is
secured automatically using SSL with a user name and a password. Use myadmin for user
name and use myadmin for the password.
The admin page demonstrates some RabbitWeb capabilities and provides access to the
HTTP upload page. Click the upload link to bring up the HTTP upload page, which allows
you to choose new files for both the humidity monitor and the admin page. If your browser
prompts you again for your user name and password, they are the same as above.
Note that the upload page is a static page included in the program flash, and can only be
updated by recompiling and downloading the application. This page is protected so that
you cannot accidentally change the upload page, possibly restricting yourself from performing future updates.
To try out the update capability, click the upload link on the admin page and choose a simple text file to replace monitor.ztm. Open another browser window and load the main
page. You will see that your text file has replaced the humidity monitor. To restore the
monitor, go back to the other window, click back to go to the upload page again, and
choose HUMIDITY_MONITOR.ZHTML to replace monitor.ztm and click Upload.
62RabbitCore RCM3305/RCM3315
When you refresh the page in your browser, you will see that the page has been restored.
You have successfully updated and restored your application's files remotely!
When you are finished with the INTEGRATION.C sample program, you need to follow a
special shutdown procedure before powering off to prevent any possible corruption of the
F AT file system. Press and hold switch S2 on the Prototyping Board until LED DS3 blinks
rapidly to indicate that it is now safe to turn the RCM3305/RCM3315 off. This procedure
can be modified by the user to provide other application-specific shutdown tasks.
6.7 Where Do I Go From Here?
NOTE: If you purchased your RCM3305/RCM3315 through a distributor or through a
Rabbit partner, contact the distributor or partner first for technical support.
Additional sample programs are described in the Dynamic C TCP/IP User’s Manual.
Please refer to the Dynamic C TCP/IP User’s Manu al to develop your own applications.
An Introduction to TCP/IP provides background information on TCP/IP, and is available
on the CD and on our Web site.
User’s Manual63
64RabbitCore RCM3305/RCM3315
APPENDIX A. RCM3305/RCM3315
SPECIFICATIONS
Appendix A provides the specifications for the RCM3305/
RCM3315, and describes the conformal coating.
User’s Manual65
A.1 Electrical and Mechanical Characteristics
Figure A-1 shows the mechanical dimensions for the RCM3305/RCM3315.
1.850
(47.0)
1.375
(34.9)
C2C3R3
C1
R2
Y1
C4
R5
C6
C7
R6
RP1
J1
R8
R9
C11
C10
C16
C15
R13
C19
C20
C25
C24
R19
U4
R22
R18
C23
C28
R17
C31
C32
C33
R23
Y2
U5
C34
C43
Q1
R7
C8
C9
U1
C5
C12
C13
C18
C17
C22
C21
R14
R15
U3
C27
R20
C29
C26
JP7
JP8
JP4
JP5
R21
C30
C35
JP6
L1
Please refer to the RCM3305
footprint diagram later in this
appendix for precise header
locations.
(69.2)
2.725
0.100 dia
(2.5)
R1
R10
R11
R12
U2
C14
R16
R45
C81
R60
R61
R62
R63
R64
U13
C58
C61
R44
R53
R54
R31
R30
C82
R82
C80
R81
C70
C86
J2
C76
L3
C90
C72
C42
R50
L2
C77
R79
C71
C79
C78
C74
RCM33XX
DS1
R35
DS2
R36
DS4
R37
DS3
R38
SPEED
(17.5)
0.690
(33.5)
1.320
USR SF LINK ACT
0.47
(11.9)
0.17
(4.3)
0.97
(24.7)
(14)
0.55
1.850
(47.0)
J3J4
(1.6)
0.087
0.063
Figure A-1. RCM3305/RCM3315 Dimensions
(2.2)
(6.2)
0.245
(22)
0.86
NOTE: All measurements are in inc hes fo llowed b y milli meters enclos ed in pa renthe se s.
All dimensions have a manufacturing tolerance of ±0.01" (0.25 mm).
66RabbitCore RCM3305/RCM3315
It is recommended that you allow for an “exclusion zone” of 0.04" (1 mm) around the
RCM3305/RCM3315 in all directions when the RCM3305/RCM3315 is incorporated into
an assembly that includes other printed circuit boards. An “exclusion zone” of 0.08"
(2 mm) is recommended below the RCM3305/RCM3315 when the RCM3305/RCM3315
is plugged into another assembly. Figure A-2 shows this “exclusion zone.”
2.81
(71.2)
0.6
(16)
2.725
(69.2)
(2)
0.08
Exclusion
1.93
(49.0)
Zone
0.6
(16)
1.850
(47.0)
J3J4
(2)
0.08
Figure A-2. RCM3305/RCM3315 “Exclusion Zone”
NOTE: All measurements are in inches followed by millimeters enclosed in parentheses.
User’s Manual67
T ableA-1 lists the electrical, mechanical, and environmental specifications for the RCM3305/
RCM3315.
Table A-1. RCM3305/RCM3315 Specifications
ParameterRCM3305RCM3315
Microprocessor
EMI ReductionSpectrum spreader for reduced EMI (radiated emissions)
Ethernet Port10/100Base-T, RJ-45, 3 LEDs
SRAM512K program (fast SRAM) + 512K data
Flash Memory
(program)
Flash Memory
(mass data
storage)
LED Indicators
Backup Battery
49 parallel digital I/0 lines:
General-Purpose
I/O
Additional InputsStartup mode (2), reset in
Low-EMI Rabbit 3000® at 44.2 MHz
512K
8 Mbytes
(serial flash)
ACT (activity)
LINK (link)
SPEED (on for 100Base-T Ethernet connection)
SF (serial flash)
USR (user-programmable)
Connection for user-supplied backup battery
(to support RTC and data SRAM)
• 43 configurable I/O
• 3 fixed inputs
• 3 fixed ou tputs
4 Mbytes
(serial flash)
Additional
Outputs
External I/O Bus
Can be configured for 8 data lines and
5 address lines (shared with parallel I/O lines), plus I/O read/write
Five 3.3 V, CMOS-compatible ports (shared with I/O)
Status, reset out
• all 5 configurable as asynchronous (with IrDA)
Serial P orts
• 3 configurable as clocked serial (SPI)
• 2 configurable as SDLC/HDLC
• 1 asynchronous serial port dedicated for programming
Serial RateMaximum asynchronous baud rate = CLK/8
A slave port allows the RCM3305/RCM3315 to be used as an
Slave Interface
Real-Time ClockYes
Timers
68RabbitCore RCM3305/RCM3315
intelligent peripheral device slaved to a master processor, which
may either be another Rabbit 3000 or any other type of processor
Ten 8-bit timers (6 cascadable, 3 reserved for internal peripherals),
2-channel input capture can be used to time input signals from
various port pins
2-channel quadrature decoder accepts inputs from external
incremental encoder modules
250 mA @ 44.2 MHz, 3.3 V
-40°C to +70°C (boards manufactured up to May, 2008)
0°C to +70°C (boards manufactured after May, 2008)
Yes
3.15–3.45 V DC
Humidity5% to 95%, noncondensing
Connectors
Board Size
one 2 × 5 for programming with 1.27 mm pitch
Two 2 × 17, 2 mm pitch
1.850" × 2.725" × 0.86"
(47 mm × 69 mm × 22 mm)
User’s Manual69
A.1.1 Headers
The RCM3305/RCM3315 uses headers at J3 and J4 for physical connection to other
boards. J3 and J4 are 2 × 17 SMT headers with a 2 mm pin spacing. J1, the programming
port, is a 2 × 5 header with a 1.27 mm pin spacing.
Figure A-3 shows the layout of another board for the RCM3305/RCM3315 to be plugged
into. These values are relative to the mounting hole.
J4
J1
(28.6)
1.125
(34.1)
1.341
1.199
(29.1)
1.147
(30.5)
dia
(2.5)
0.100
J3
(0.5)
0.020 sq typ
(2.0)
0.079
(2.0)
0.079
(7.7)
0.303
(24.2)
0.953
(26.5)
1.043
(28.8)
1.135
(30.6)
1.205
RCM3300 Series
Footprint
(0.25)
0.010
(8.3)
0.328
Figure A-3. User Board Footprint for RCM3305/RCM3315
70RabbitCore RCM3305/RCM3315
A.2 Bus Loading
You must pay careful attention to bus loading when designing an interface to the
RCM3305/RCM3315. This section provides bus loading information for external devices.
Table A-2 lists the capacitance for the various RCM3305/RCM3315 I/O ports.
Table A-2. Capacitance of Rabbit 3000 I/O Ports
Input
I/O Ports
Parallel Ports A to G1214
Capacitance
(pF)
Output
Capacitance
(pF)
Table A-3 lists the external capacitive bus loading for the various RCM3305/RCM3315
output ports. Be sure to add the loads for the devices you are using in your custom system
and verify that they do not exceed the values in Table A-3.
Table A-3. External Capacitive Bus Loading -40°C to +85°C
Output Port
All I/O lines with clock
doubler enabled
Clock Speed
(MHz)
44.2100
Maximum External
Capacitive Loading (pF)
User’s Manual71
Figure A-4 shows a typical timing diagram for th e Rabbit 3000 mi croprocessor extern al I/O
read and write cycles.
External I/O Read (one programmed wait state)
T1
Tw
T2
CLK
A[15:0]
/CSx
/IOCSx
/IORD
/BUFEN
D[7:0]
CLK
A[15:0]
valid
T
adr
T
IOCSx
T
T
BUFEN
T
setup
T
CSx
IORD
T
hold
T
CSx
T
IOCSx
T
IORD
T
BUFEN
External I/O Write (one programmed wait state)
T1
T
adr
Tw
valid
T2
valid
/CSx
T
CSx
T
CSx
/IOCSx
T
IOCSx
T
IOCSx
/IOWR
T
IOWR
T
IOWR
/BUFEN
valid
T
BUFEN
T
DVHZ
T
BUFEN
D[7:0]
T
DHZV
Figure A-4. I/O Read and Write Cycles—No Extra Wait States
NOTE: /IOCSx can be programmed to be active low (default) or active high.
72RabbitCore RCM3305/RCM3315
Table A-4 lists the delays in gross memory access time at 3.3 V.
Table A-4. Data and Clock Delays VIN ±10%, Temp, -40°C–+85°C (maximum)
Clock to Address Output Delay
(ns)
VIN
30 pF60 pF90 pF
3.3 V681113/4.54.5/9
Data Setup
Time Delay
(ns)
Spectrum Spreader Delay
(ns)
Normal
no dbl/dbl
Strong
no dbl/dbl
The measurements are taken at the 50% points under the following conditions.
• T = -40°C to 85°C, V = VDD ±10%
• Internal clock to nonloaded CLK pin delay ≤ 1 ns @ 85°C/3.0 V
The clock to address output delays are similar, and apply to the following delays.
• T
• T
• T
• T
• T
, the clock to address delay
adr
, the clock to memory chip select delay
CSx
, the clock to I/O chip select delay
IOCSx
, the clock to I/O read strobe delay
IORD
, the clock to I/O write strobe delay
IOWR
• T
BUFEN
The data setup time delays are similar for both T
, the clock to I/O buffer enable delay
setup
and T
hold
.
When the spectrum spreader is enabled with the clock doubler, every other clock cycle is
shortened (sometimes lengthened) by a maximum amount given in the table above. The
shortening takes place by shortening the high part of the clock. If the doubler is not
enabled, then every clock is shortened during the low part of the clock period. The maximum shortening for a pair of clocks combined is shown in the table.
Technical Note TN227, Interfacing External I/O with Rabbit 2000/3000 Designs, contains suggestions for interfacing I/O devices to the Rabbit 3000 microprocessors.
User’s Manual73
A.3 Rabbit 3000 DC Characteristics
Table A-5. Rabbit 3000 Absolute Maximum Ratings
SymbolParameterMaximum Rating
T
Operating T emperatu re-55° to +85°C
A
T
Storage Temperature-65° to +150°C
S
Maximum Input Voltage:
• Oscillator Buffer Input
• 5-V-tolerant I/O
V
Maximum Operating Voltage3.6 V
DD
VDD + 0.5 V
5.5 V
Stresses beyond those listed in Table A-5 may cause permanent damage. The ratings are
stress ratings only, and functional operation of the Rabbit 3000 chip at these or any other
conditions beyond those indicated in this section is not implied. Exposure to the absolute
maximum rating conditions for extended periods may affect the reliability of the Rabbit
3000 chip.
Table A-6 outlines the DC characteristics for the Rabbit 3000 at 3.3 V over the recommended operating temperature range from TA = –55°C to +85°C, VDD = 3.0 V to 3.6 V.
Table A-6. 3.3 Volt DC Characteristics
SymbolParameterTest ConditionsMinTypMaxUnits
V
V
V
V
V
I
I
I
Supply Voltage3.03.33.6V
DD
High-Level Input Voltage2.0V
IH
Low-Level Input Voltage0.8V
IL
High-Level Output Voltage
OH
Low-Level Output Voltage
OL
High-Level Input Current
IH
(absolute w o rs t c as e , all buffers)
Low-Level Input Current
IL
(absolute w o rs t c as e , all buffers)
High-Impedance State
Output Current
OZ
(absolute w o rs t c as e , all buffers)
IOH = 6.8 mA,
V
= VDD (min)
DD
IOL = 6.8 mA,
V
= VDD (min)
DD
VIN = VDD,
= VDD (max)
V
DD
VIN = VSS,
V
= VDD (max)
DD
VIN = VDD or VSS,
= VDD (max), no pull-up
V
DD
0.7 x
V
DD
-10µA
-1010µA
V
0.4V
10µA
74RabbitCore RCM3305/RCM3315
A.4 I/O Buffer Sourcing and Sinking Limit
Unless otherwise specified, the Rabbit I/O buffers are capable of sourcing and sinking
6.8 mA of current per pin at full AC switching speed. Full AC switching assumes a
22.1 MHz CPU clock and capacitive loading on address and data lines of less than 100 pF
per pin. The absolute maximum operating voltage on all I/O is 5.5 V.
Table A-7 shows the AC and DC output drive limits of the parallel I/O buffers when the
Rabbit 3000 is used in the RCM3305/RCM3315.
Table A-7. I/O Buffer Sourcing and Sinking Capability
Output Drive (Full AC Switching)
Pin Name
All data, address, and I/O
lines with clock doubler
enabled
Sourcing/Sinking Limits
(mA)
SourcingSinking
6.86.8
Under certain conditions, you can exceed the limits outlined in Table A-7. See the Rabbit 3000 Microprocessor User’s Manual for additional information.
User’s Manual75
A.5 Jumper Configurations
Figure A-5 shows the jumper locations used to configure the various RCM3305/
RCM3315 options. The black square indicates pin 1.
RCM3305/RCM3315
Top Side
JP6
JP7
JP8
JP4
JP5
Bottom Side
JP1
JP2
JP3
R41
R42
R81
Figure A-5. Location of RCM3305/RCM3315 Configurable Positions
76RabbitCore RCM3305/RCM3315
Table A-8 lists the configuration options.
Table A-8. RCM3305/RCM3315 Jumper Configurations
HeaderDescriptionPins Connected
1–2128K/256K
JP1Flash Memory Size
JP2Flash Memory Bank Select
JP3Data SRAM Size
JP4
JP5
JP6
Ethernet or I/O Output
on Header J3
Ethernet or I/O Output
on Header J3
Ethernet or I/O Output
on Header J3
2–3512K
1–2Reserved for future use
2–3Normal Mode
1–2128K/256K
2–3512K
1–2TPO+
2–3PD3
1–2TPO–
2–3PD2
1–2ENET_INT
2–3PE0
Factory
Default
×
×
×
×
×
×
JP7
JP8
Ethernet or I/O Output
on Header J3
Ethernet or I/O Output
on Header J3
NOTE: The jumper connections are made using 0 Ω surface-mounted resistors.
1–2TPI+
2–3PD7
1–2TPI–
2–3PD6
×
×
User’s Manual77
A.6 Conformal Coating
The areas around the 32 kHz real-time clock crystal oscillator have had the Dow Corning
silicone-based 1-2620 conformal coating applied. The conformally coated area is shown
in Figure A-6. The conformal coating protects these high-impedance circuits from the
effects of moisture and contaminants over time.
Conformally coated
RCM 3305/RCM3315
R2
R1
R10
R11
R12
U2
C14
R16
R45
C81
R60
R61
R62
R63
R64
U13
Y1
C4
R5
C6
C7
R6
RP1
J1
R8
R9
C10
C15
R13
C19
C25
C23
C31
C32
C33
U5
C74
U1
C11
C16
C20
C24
R19
U4
C29
R22
R18
C28
R17
R23
Y2
C34
C43
C58
C61
R44
R53
R54
R31
R30
C82
R82
C80
C70
C76
C72
L2
C77
R79
C71
C79
C78
C2C3R3
C1
R7
C5
R20
R21
C30
R81
C86
L3
C42
RCM33XX
Q1
C8
C9
C12
C13
C18
C17
C22
C21
R14
R15
U3
C27
C26
JP7
JP8
JP4
JP5
C35
JP6
L1
J2
C90
R50
DS1
R35
DS2
R36
DS4
R37
DS3
R38
USR SF LINK ACT
SPEED
areas
Figure A-6. RCM3305/RCM3315 Areas Receiving Conformal Coating
Any components in the conformally coated area may be replaced using standard soldering
procedures for surface-mounted components. A new conformal coating should then be
applied to offer continuing protection against the effects of moisture and contaminants.
NOTE: For more information on conformal coatings, refer to Technical Note 303,
Conformal Coatings.
78RabbitCore RCM3305/RCM3315
APPENDIX B. PROTOTYPING BOARD
Appendix B describes the features and accessories of the Prototyping Board.
User’s Manual79
B.1 Introduction
The Prototyping Board included in the Development Kit makes it easy to connect an
RCM3305/RCM3315 module to a power supply and a PC workstation for development. It
also provides some basic I/O peripherals (RS-232, RS-485, a relay, LEDs, and switches),
as well as a prototyping area for more advanced hardware development.
For the most basic level of evaluation and development, the Prototyping Board can be
used without modification.
As you progress to more sophisticated experimentation and hardware development, modifications and additions can be made to the board without modifying or damaging the
RCM3305/RCM3315 module itself.
The Prototyping Board is shown below in Figure B-1, with its main features identified.
Power
Module
Extension Header
Voltage
Regulators
RCM3300/RCM3310
Module
Connectors
Module
Extension Header
GND
GND
VBT
/RES
SM0
/IOWR
PG5
PG7
PE1
PE4
PE6
PF7
PF5
PB7
PB5
PB3
PB0
RCM3300
PROTOTYPING
BOARD
ACT
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
RESET
Reset
Switch
Input
J8
NC
+3.3 V
VRAM
SMODE1
/IORD
PG4
L1
PG6
R11
PE0
PE3
PE5
R12
PF4 PF6 PE7
PB6
PB4
PB2
/RES_OUT
LINK
PD6
PD2
PD4
PG2
PG0
PC6
PC4
PC2
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
J9
S1
Switches
D2
R67
R68
R69
R70
R25
User
H-Bridge
LED
+DC
GND
D1
C11
C12
JP4
R22
Q2Q3Q4
R28
S3
R1
J2
C2
U1
OUT
U8
R23
R50
Q6
R49
CORE
Core
LED
Motor Driver
Terminals
{
POWER
DS1
J3
L293D
H-DRIVER
R13
J10
00 01 02 03 04 05 06 07
RP2
RP1
C13
U5
R16
C16
R24
JB
GND
HO4
HO3
HO2
J12
D4
D5D6D7
R30
R31
R29
DS2
DS5 DS6
DS4
DS3
User
LEDs
VMA+ MDA1MDA2MDA3MDA4 VMA
JP1
C3
U2
C4
OUT
R17
R15
CX1
UX1
SO20W
SMT Prototyping
CX2
Area
UX2
SO20W
J13
U9
C21
C22
HO1
C23
C24
J14
R32
TxE RxE GND TxF RxF 485+ GND 485
{
RS-232
Signals
+5 V
+3.3 V
{
Power
+DC
GND
J1
GND
C1
C10
C9
C8
U4
CORE MODULE
GND/EGND
R21
Q1
JA
R27
R26
S2
JP2
U3
L293D
H-DRIVER
R14
C5
BT1
GND
RX13
RX14
RX15
DX1
DX2
C18
C17
R33
R34
R36
JP5
C26
C25
RS-485
Quadrature
Decoder
Terminals
VMB MDB1 MDB2MDB3MDB4 VMB+
J5
J4
PF0_CLKD
PF0_QD
Prototyping Area
RX16
RX17
RX18
UX4
SOT23-6
UX5
SOT23-6
U10
R35
R37
R38
{
{
+5V QD2A QD2 B QD1A QD1B GND
R52 R53
R51
R54
JP3
R55
R56
R57
R58
Through-Hole
LCD
/CS
J15
R39
+V
/RES
LED0
LED2
LCD1JA
/CS
LED1
LED3
+BKLT
C19
R40
U11
KEYPAD DISPLAY BOARD
LCD1JB
Digital
Inputs
{
R60 R61
U7
R59
R62
R63
R64
R65
R66
+5 V
GND
+3.3 V
BA0
BA1
BA2
BA3
BD0
BD1
BD2
BD3
LED4
LED6
GNDA3A1D0D2D4D6
A2
A0
D1D3D5
GND
GND
LED5
R42
C20
R41
K1
U12
D8
LCD1JC
LCD/Keypad
Module
Connections
RabbitNet
Port
GND IN3 IN2 IN1 IN0 +5V
J6
C7
R2
R3R4R5
R6
C6
R8
U6
R9
R10
C14
BD4
BD5
BD6
BD7
J16
D7
C27
C28
R43
C30C29
R45
Q5
R48
R7
C15
R18
R44
R46
R47
J7
RABBITNET
J11
SERIAL FLASH/
MODEM
R19
R20
0.5 A @ 30 V
RELAY RATED
J17
NO1 COM1 NC1 NO2 COM2 NC2
DS7
RELAY
Serial Flash
Socket
+5 V, 3.3 V, and
GND Buses
{
Relay
Terminals
Relay User
LED
Figure B-1. Prototyping Board
80RabbitCore RCM3305/RCM3315
B.1.1 Prototyping Board Features
• Power Connection—A power-supply jack and a 3-pin header are provided for connection to the power supply. Note that the 3-pin header is symmetrical, with both outer
pins connected to ground and the center pin connected to the raw V+ input. The cable
of the AC adapter provided with the North American version of the Development Kit
ends in a plug that connects to the power-supply jack (J1). A header plug leading to
bare leads is provided for overseas customers to connect their power supply to the 3-pin
header (J2)—the center pin of J2 is always connected to the positive terminal, and
either edge pin is negative.
Users providing their own power supply should ensure that it delivers 8–30 V DC at 1 A.
• Regulated Power Supply—The raw DC voltage provided at the POWER IN jack is
routed to a 5 V switching voltage regulator, then to a separate 3.3 V linear regulator.
The regulators provide stable power to the RCM3305/RCM3315 module and the Prototyping Board. The voltage regulators will get warm while in use.
• Power LED—The power LED lights whenever power is connected to the Prototyping
Board.
• Core LED—The core LED lights whenever an RCM3305/RCM3315 module is
plugged in correctly on the Prototyping Board and the RCM3305/RCM3315 module is
not being reset.
• Relay LED—The relay LED lights whenever the Prototyping Board relay is energized.
• Reset Switch—A momentary-contact, normally open switch is connected directly to the
RCM3305/RCM3315’s /RESET_IN pin. Pressing the switch forces a hardware reset of
the system.
• I/O Switches and LEDs—Two momentary-contact, normally open switches are connected to the PG0 and PG1 pins of the RCM3305/RCM3315 module and may be read
as inputs by sample applications.
Four user LEDs (DS3–DS6) are connected to alternate I/O bus pins PA0–PA3 pins of
the RCM3305/RCM3315 module via U8, and may be driven as output indicators. PE7
and PG5 control the registers in U8 as shown in the sample applications.
• Prototyping Area—A generous prototyping area has been provided for the installation
of through-hole components. +3.3 V, +5 V, and Ground buses run along one edge of
this area. Several areas for surface-mount devices are also available. Each SMT pad is
connected to a hole designed to accept a 30 AWG solid wire.
• LCD/Keypad Module—Rabbit’s LCD/keypad module may be plugged in directly to
headers LCD1JA, LCD1JB, and LCD1JC. The signals on headers LCD1JB and
LCD1JC will be available only if the LCD/keypad module is plugged in to header
LCD1JA. Appendix C provides complete information for mounting and using the
LCD/keypad module.
User’s Manual81
• Module Extension Headers—The complete pin set of the RCM3305/RCM3315
module is duplicated at headers J8 and J9. Developers can solder wires directly into the
appropriate holes, or, for more flexible development, 2 × 17 header strips with a 0.1"
pitch can be soldered into place. See Figure B-4 for the header pinouts.
• Digital I/O—Four digital inputs are available on screw-terminal header J6. See
Figure B-4 for the header pinouts.
• RS-232—Two 3-wire serial ports or one 5-wire RS-232 serial port are available on the
Prototyping Board at screw-terminal header J14.
• RS-485—One RS-485 serial port is available on the Prototyping Board at screw-terminal header J14.
• Quadrature Decoder—Four quadrature decoder inputs (PF0–PF3) from the Rabbit
3000 chip are available on screw-terminal header J5. See Figure B-4 for the header
pinouts.
• H-Bridge Motor Driver—Two pairs of H-bridge motor drivers are supported using
screw-terminal headers J3 and J4 on the Prototyping Board for stepper-motor control.
See Figure B-4 for the header pinouts.
• RabbitNet Port—One RS-422 RabbitNet port (shared with the serial flash interface) is
available to allow RabbitNet peripheral cards to be used with the Prototyping Board.
• Serial Flash Interface—One serial flash interface (shared with the RabbitNet port) is
available to allow Rabbit’s SF1000 series serial flash to be used on the Prototyping
Board.
82RabbitCore RCM3305/RCM3315
B.2 Mechanical Dimensions and Layout
Figure B-2 shows the mechanical dimensions and layout for the Prototyping Board.
J8
GND
GND
VBT
/RES
SM0
/IOWR
PG5
PG7
PE1
PE4
PE6
PF7
PF5
PB7
PB5
PB3
PB0
RCM3300
PROTOTYPING
BOARD
ACT
PD7
PD3
PD5
PG3
PG1
PC7
PC5
PC3
PC1
PF0
PF2
PA0
PA2
PA4
PA6
STAT
J9
S1
RESET
NC
+3.3 V
VRAM
SMODE1
/IORD
PG4
PG6
PE0
PE3
PE5
R12
PF4 PF6 PE7
PB6
PB4
PB2
/RES_OUT
LINK
PD6
PD2
PD4
PG2
PG0
PC6
PC4
PC2
PC0
PF1
PF3
PA1
PA3
PA5
PA7
GND
J1
GND
C10
+DC
GND
R1
J2
D1
C2
U1
C11
OUT
C12
JP4
POWER
DS1
J3
L293D
H-DRIVER
J10
00 01 02 03 04 05 06 07
RP2
RP1
C13
U5
+DC
GND
C1
D2
L1
R11
C9
R67
C8
R68
U4
R69
R70
R16
CORE MODULE
GND/EGND
VMA+ MDA1MDA2MDA3MDA4 VMA
JP1
C3
U2
C4
R13
OUT
Battery
R17
R15
+5 V
+3.3 V
CX1
UX1
SO20W
U8
C16
R24
R23
R21
R22
Q1
Q2Q3Q4
JA
R28
R27
R25
R26
S3
S2
JB
GND
HO4
J12
R50
D4
D5D6D7
Q6
R49
R30
R29
CORE
DS2
DS4
DS3
CX2
J13
HO3
HO2
HO1
J14
R31
R32
DS5 DS6
TxE RxE GND TxF RxF 485+ GND 485
C23
C21
UX2
SO20W
C24
U9
C22
JP2
L293D
H-DRIVER
R14
RX13
RX14
RX15
C25
VMB MDB1 MDB2MDB3MDB4 VMB+
J5
J4
PF0_QD
R51
JP3
PF0_CLKD
U3
R52 R53
R55
+5V QD2A QD2B QD1A QD1B GND
R60 R61
R54
R59
R56
R57
R58
R63
R64
R65
R66
C5
BT1
GND
RX16
RX17
RX18
UX4
DX1
UX5
DX2
C18
C17
R33
R34
U10
R35
R36
JP5
R38
C26
SOT23-6
SOT23-6
R37
LCD1JA
LCD
J15
R39
+V
/RES
LED0
LED2
/CS
LED1
LED3
+BKLT
C19
R40
U11
KEYPAD DISPLAY BOARD
/CS
BA0
BA1
LED4
LED6
GND
LED5
R41
U12
BA2
GNDA3A1D0D2D4D6
GND
C20
D8
LCD1JB
GND IN3 IN2 IN1 IN0 +5V
J6
U7
R62
C7
R2
C6
R8
U6
R9
+5 V
GND
+3.3 V
BA3
BD0
BD1
BD2
BD3
BD4
BD5
BD6
A2
A0
D1D3D5
D7
R42
K1
R43
R45
LCD1JC
BD7
R3R4R5
J16
C27
J7
RABBITNET
R7
R6
R10
J11
C14
C15
SERIAL FLASH/
MODEM
R19
R20
R18
5.25
(133)
0.5 A @ 30 V
RELAY RATED
J17
C28
R44
C30C29
R46
NO1 COM1 NC1 NO2 COM2 NC2
Q5
DS7
R47
RELAY
R48
6.75
(171)
Figure B-2. Prototyping Board Dimensions
NOTE: All measurements are in inches followed by millimeters enclosed in parentheses.
User’s Manual83
Table B-1 lists the electrical, mechanical, and environmental specifications for the Prototyping Board.
Table B-1. Prototyping Board Specifications
ParameterSpecification
Board Size5.25" × 6.75" × 1.00" (133 mm × 171 mm × 25 mm)
Operating T emperatu re–20°C to +70°C
Humidity5% to 95%, noncondensing
Input Voltage 8 V to 30 V DC
Maximum Current Draw
(including user-added circuits)
Backup BatteryCR2032, 3 V lithium coin-type
Digital Inputs
Digital Outputs
RelaySPDT relay, 500 mA @ 30 V
Serial P orts
800 mA max. for +3.3 V supply,
1 A total +3.3 V and +5 V combined
4 inputs pulled up, ± 36 V DC,
switching threshold 0.9–2.3 V typical
4 sinking outputs,+30 V DC, 500 mA maximum per channel
8 CMOS-level outputs if stepper motor not installed
• two 3-wire RS-232 or one RS-232 with RTS/CTS
• one RS-485
Other Serial InterfacesRabbitNet RS-422 port or serial flash interface
• stepper motor control
Other Interfaces
• quadrature decoder
• LCD/keyp ad module
Seven LEDs
• one power on indicator
LEDs
• one RCM3305/RCM3315 module indicator
• four user-configurable LEDs
• one relay indicator
Prototyping Area
Throughhole, 0.1" spacing, additional space for SMT
components
• two 2 × 17, 2 mm pitch sockets for RCM3305/RCM3315
module
• one 2 × 5, 2 mm pitch socket for serial flash
Connectors
• six screw-terminal headers for serial ports, digital inputs,
stepper motor control, quadrature decoder, and relay
contacts
• one RJ-45 RabbitNet jack
Standoffs/Spacers7, accept 4-40 x 1/2 screws
84RabbitCore RCM3305/RCM3315
B.3 Power Supply
The RCM3305/RCM3315 requires a regulated 3.15 V to 3.45 V DC power source to operate. Depending on the amount of current required by the application, different regulators
can be used to supply this voltage.
The Prototyping Board has an onboard +5 V switching power regulator from which a
+3.3 V linear regulator draws its supply. Thus both +5 V and +3.3 V are available on the
Prototyping Board.
The Prototyping Board itself is protected against reverse polarity by a diode at D1 as
shown in Figure B-3.
LINEAR POWER
J4
1
2
IN
3
POWER
D1
DL4003
DCIN
SWITCHING POWER REGULATOR
C1
47 µF
U1
LM2575
330 µH
L1
D2
1N5819
+5 V
330 µF
REGULATOR
LM1117
3
10 µF
U4
+3.3 V
2
1
10 µF
Figure B-3. Prototyping Board Power Supply
User’s Manual85
B.4 Using the Prototyping Board
The Prototyping Board is actually both a demonstration board and a prototyping board. As
a demonstration board, it can be used with the sample programs to demonstrate the functionality of the
The Prototyping Board pinouts are shown in Figure B-4.
RCM3305/RCM3315
right out of the box without any modifications.
GND
GND
/RES
SMODE0
/IOWR
STATUS
J5
Quadrature
Decoder
GND
QD1B
QD1A
QD2B
QD2A
Stepper-Motor
Control
Power
J1
GND
J2
J8
n.c.
+3.3 V
VBT
VRAM
SMODE1
/IORD
PG4
PG5
PG6
PG7
PE0
PE1
PE3
PE4
PE5
PE6
PE7
PF7
PF6
PF5
PF4
PB7
PB6
PB5
PB4
PB3
PB2
PB0
/RES_OUT
J9
ACT
LINK
PD7
PD6
PD3
PD2
PD5
PD4
PG3
PG2
PG1
PG0
PC7
PC6
PC5
PC4
PC3
PC2
PC1
PC0
PF0
PF1
PF2
PF3
PA1
PA0
PA3
PA2
PA5
PA4
PA7
PA6
GND
+DC
GND
Digital
Outputs
(sinking)
DS1
J3
J10
OUT00
VMA
OUT01
GND
MDA4
OUT02
J12
HOUT4
OUT03
HOUT3
MDA3
OUT04
HOUT2
MDA2
OUT05
HOUT1
OUT06
MDA1
OUT07
VMA+
J13
VMB+
MDB4
MDB3
MDB2
MDB1
VMB
J4
PB0
PC5
PC4
J14
+5 v
J15
+5 V
J6
LCD_/CS
BA0
Digital
Inputs
IN0
IN1
IN2
IN3
GND
J7
J11
GND
PC1_RxD
VCC
PC0_TxD
PD2_CE
PD4_DCD
BA1
BA2
BA3
BD0
BD1
BD2
BD3
BD4
BD5
BD6
BD7
PF0_CLK_RES
PD3_RNET_/RTS
PD6_/CTRL
PD5_/CTS
J16
J17
NC2
COM2
NO2
RELAY
CONTACTS
NC1
COM1
NO1
DS7
RELAY
LED
DS2 DS3 DS4 DS5 DS6
User
Core
LEDs
LED
TxF
TxE
RxF
RxE
GND
RS-232RS-485
485+
GND
485
Figure B-4. Prototyping Board Pinout
86RabbitCore RCM3305/RCM3315
The Prototyping Board comes with the basic components necessary to demonstrate the
operation of the RCM3305/RCM3315. Four user LEDs (DS3–DS6) are connected to
alternate I/O bus pins P A0–PA3 pins of the RCM3305/RCM3315 module via U8, and may
be driven as output indicators when controlled by PE7 and PG5 as shown in the sample
applications. Two switches (S2 and S3) are connected to PG0 and PG1 to demonstrate the
interface to the Rabbit 3000 microprocessor. Reset switch S1 is the hardware reset for the
RCM3305/RCM3315.
The
Prototyping Board provides the user with RCM3305/RCM3315 connection points
brought out conveniently to labeled points at J8 and J9 on the Prototyping Board. A lthough
locations J8 and J9 are unstuffed, 2 × 17 headers are included in the bag of parts.
RS-232 and RS-485 signals are available on screw-terminal header J14, quadrature decoder
inputs are available on screw-terminal header J5, and digital inputs are available on screwterminal header J6. A 1 × 5 header strip from the bag of parts may be installed at J12 for four
sinking digital outputs
. The clocked Serial Port B signals from the RCM3305/RCM3315
are used for the serial flash, and cannot be accessed via header J13 on the Prototyping
Board
.
If you don’t plan to use the LCD/keypad module, additional signals may be brought out on 1 × 5
and 1 × 8 headers from the bag of parts that you install at J15 and J16. If you don’t plan to use
the stepper-motor control option, additional CMOS outputs are available via a 1 × 8 header
that you install at J10.
There is a through-hole prototyping space available on the Prototyping Board.
the prototyping area are spaced at 0.1" (2.5 mm).
one edges of the
prototyping area. Small to medium circuits can be prototyped using point-
+3.3 V, +5 V, and GND traces run along
to-point wiring with 20 to 30 A WG wire between the prototyping area, the
GND traces,
and the surrounding area where surface-mount components may be installed.
The holes in
+3.3 V, +5 V , and
Small holes are provided around the surface-mounted components that may be installed
around the prototyping area.
B.4.1 Adding Other Components
There are two sets of pads for 6-pin, 16-pin, and 28-pin devices that can be used for surface-mount prototyping devices. There are also pads that can be used for SMT resistors
and capacitors in an 0805 SMT package. Each component has every one of its pin pads
connected to a hole in which a 30 A WG wire can be soldered (standard wire wrap wire can
be soldered in for point-to-point wiring on the Prototyping Board). Because the traces are
very thin, carefully determine which set of holes is connected to which surface-mount pad.
User’s Manual87
B.4.2 Digital I/O
B.4.2.1 Digital Inputs
The Prototyping Board has four digital inputs, IN0–IN3, each of which is protected over a
range of –36 V to +36 V. The inputs are pulled up to +3.3 V as shown in Figure B-5.
JP6
+3.3 V
27 kW
®
22 kW
GND
Figure B-5. Prototyping Board Digital Inputs
The four quadrature decoder inputs on screw-terminal header J5 may be used as inputs
IN4–IN7. To use the PF0 signal from the Rabbit microprocessor, which goes to QD1B,
remember to reconfigure the jumper on header JP3 to jumper pins 1–2.
The actual switching threshold is between 0.9 V and 2.3 V. Anything below this value is a
logic 0, and anything above is a logic 1.
The digital inputs are each fully protected over a range of -36 V to +36 V, and can handle
short spikes of ±40 V.
88RabbitCore RCM3305/RCM3315
B.4.3 CMOS Digital Outputs
If the stepper-motor option is not used, eight CMOS-level digital outputs are available at
J10, and can each handle up to 25 mA.
B.4.4 Sinking Digital Outputs
Four sinking digital outputs sh ared with LEDs DS3–DS6 are available at J12, and can each
handle up to 500 mA. Figure B-6 shows a wiring diagram for a typical sinking output.
Vcc
330 W
1 kW
ADD DIODE
WHEN LOAD
IS INDUCTIVE
Figure B-6. Prototyping Board Sinking Digital Outputs
B.4.5 Relay Outputs
Figure B-7 shows the contact connections for the relay on the Prototyping Board. A diode
across the coil provides a return path for inductive spikes, and snubbers across the relay
contacts protect the relay contacts from inductive spikes.
The relay is driven by pin PA4 of the RCM3305/RCM3315 module via U8, and is controlled by PE7 and PG5 as shown in the sample applications.
User’s Manual89
B.4.6 Serial Communication
The Prototyping Board allows you to access four of the serial ports from the RCM3305/
RCM3315 module. Table B-2 summarizes the configuration options.
Table B-2. Prototyping Board Serial Port Configurations
Serial PortSignal HeaderConfigured via Default UseAlternate Use
CJ14
J7
D
J11
EJ14
FJ14
* RS-485 termination and bias resis tors are configured via header JP5.
JP5
JP3
—
—
*
RS-485
RabbitNet
(PD2 = 1)
SF1000
(PD2 = 0)
RS-232
RS-232
—
Rabbit 3000
quadrature decoder
—
—
Serial Port D is configured in softwa re e ither to allow J7 to be used a s a RabbitNe t port or
to allow J11 to be used as a serial interface for the SF1000 series serial flash.
90RabbitCore RCM3305/RCM3315
B.4.6.1 RS-232
RS-232 serial communication on the Prototyping Board is supported by an RS-232 transceiver installed at U9. This transceiver provides the voltage output, slew rate, and input
voltage immunity required to meet the RS-232 serial communication protocol. Basically,
the chip translates the Rabbit 3000’s signals to RS-232 signal levels. Note that the polarity
is reversed in an RS-232 circ uit so that a +5 V output becomes approximately -10 V and 0
V is output as +10 V. The RS-232 transceiver also provides the proper line loading for
reliable communication.
RS-232 can be used effectively at the RCM3305/RCM3315 module’s maximum baud rate
for distances of up to 15 m.
RS-232 flow control on an RS-232 port is initiated in software using the
serXflowcontrolOn() function call from
LIB\
RS232.LIB, where X is the serial port
(E or F). The locations of the flow control lines are specified using a set of five macros.
SERX_RTS_PORT—Data register for the parallel port that the RTS line is on (e.g., PGDR).
SERX_RTS_SHADOW—Shadow register for the RTS line's parallel port (e.g., PGDRShadow).
SERX_RTS_BIT—The bit number for the RTS line.
SERX_CTS_PORT—Data register for the parallel port that the CTS line is on (e.g., PCDRShadow).
SERX_CTS_BIT—The bit number for the CTS line.
Standard 3-wire RS-232 communication using Serial Ports E and F i s il lustrated in the following sample code.
#define EINBUFSIZE 15 // set size of circular buffers in bytes
#define EOUTBUFSIZE 15
#define FINBUFSIZE 15
#define FOUTBUFSIZE 15
#define MYBAUD 115200 // set baud rate
#endif
main(){
serEopen(_MYBAUD); // open Serial Ports E and F
serFopen(_MYBAUD);
serEwrFlush(); // flush their input and transmit buffers
serErdFlush();
serFwrFlush();
serFrdFlush();
serEclose(_MYBAUD); // close Serial Ports C and D
serFclose(_MYBAUD);
}
User’s Manual91
B.4.6.2 RS-485
The Prototyping Board has one RS-485 serial channel, which is connected to the Rabbit
3000 Serial Port C through an RS-485 transceiver. The half-duplex communication uses
an output from PD7 on the Rabbit 3000 to control the transmit enable on the communication line. Using this scheme a strict master/slave relationship must exist between devices
to insure that no two devices attempt to drive the bus simultaneously.
Serial Port C is configured in software for RS-485 as follows.
The configuration shown above is based on circular buffers. RS-485 configuration may
also be done using functions from the PACKET.LIB library.
The Prototyping Boards with RCM3305/RCM3315 modules installed can be used in an
RS-485 multidrop network spanning up to 1200 m (4000 ft), and there can be as many as
32 attached devices. Connect the 485+ to 485+ and 485– to 485– using single twisted-pair
wires as shown in Figure B-8. Note that a common ground is recommended.
RS485+
RS-485
GND
RS-485
Figure B-8. Multidrop Network
GND
RS485+
RS485+
RS-485
GND
92RabbitCore RCM3305/RCM3315
The Prototyping Board comes with a 220 Ω termination resistor and two 681 Ω bias resistors installed and enabled with jumpers across pins 1–2 and 5–6 on header JP5, as shown
in Figure B-9.
J8
GND
NC
GND
+3.3 V
VBT
VRAM
/RES
SMODE1
SM0
/IORD
/IOWR
PG4
PG5
PG6
PG7
PE0
PE1
PE3
PE4
PE5
PE6
PF7
PF5
PB7
PB6
PB5
PB4
PB3
PB2
PB0
/RES_OUT
RCM3300
PROTOTYPING
BOARD
LINK
ACT
PD6
PD7
PD2
PD3
PD4
PD5
PG2
PG3
PG0
PG1
PC6
PC7
PC4
PC5
PC2
PC3
PC0
PC1
PF1
PF0
PF3
PF2
PA1
PA0
PA3
PA2
PA5
PA4
PA7
PA6
GND
STAT
J9
S1
RESET
R11
R12
PF4 PF6 PE7
J1
GND
+DC
C1
C10
C11
C42
C90
L3
R81
CORE MODULE
JP6
C35
C30
R21
C26
R20
R21
C5
C9
C8
R7
Q1
Q2Q3Q4
C2C3R3
R27
S3
POWER
GND
DS1
R1
J2
J3
D1
C2
U1
J10
00 01 02 03 04 05 06 07
OUT
C12
JP4
RCM33XX
C79
C71
C77
R79
L2
C72
C76
C86
C70
C80
R82
C82
R30
R31
R54
R53
R44
C61
C58
C43
C34
Y2
R23
R18
R22
C29
U4
R19
U8
C16
R23
R22
U1
R6
R5
Y1
R2
C1
J12
R28
R50
Q6
R49
CORE
DS2
R17
R24
C7
C28
C6
C4
D4
RP1
C13
U5
C78
R16
U5
C24
C25
C20
C16
C11
GND
R29
DS3
L293D
H-DRIVER
RP2
C74
C33
C32
C31
C23
C19
R13
C15
C10
R9
R8
J1
RP1
JB
HO4
HO3
D5D6D7
R30
DS4
+DC
GND
D2
L1
C9
R67
C8
R68
U4
R69
R70
SPEED
USR SF LINK ACT
R38
DS3
R37
R50
DS4
R36
DS2
R35
DS1
J2
GND/EGND
L1
JP7
JP8
JP4
JP5
C27
U3
R15
R14
C21
C22
C17
C18
C12
C13
Q1
JA
R25
R26
S2
VMA+ MDA1MDA2MDA3MDA4 VMA
JP1
C3
U2
C4
R13
OUT
R17
U13
R15
R64
R63
R62
R61
R60
C81
R45
CX1
R16
UX1
SO20W
C14
U2
R12
R11
CX2
R10
UX2
SO20W
R1
J13
C21
HO2
R31
DS5 DS6
C22
HO1
C23
C24
J14
R32
TxE RxE GND TxF RxF 485+ GND 485
Factory
+5 V
+3.3 V
U9
JP5
Default
JP2
L293D
H-DRIVER
R14
RX13
RX14
RX15
R33
C25
VMB MDB1 MDB2MDB3MDB4 VMB+
J5
J4
PF0_QD
5
SOT23-6
SOT23-6
R37
JP3
R51
LCD1JA
PF0_CLKD
U3
C5
BT1
GND
RX16
RX17
RX18
UX4
DX1
UX5
DX2
C18
C17
R34
U10
R35
R36
JP5
R38
C26
6
4
2
3
1
R52 R53
R55
R56
U10
LCD1JB
R57
R58
+V
+BKLT
R40
+5V QD2A QD2B QD1A QD1B GND
R60 R61
R54
R59
R63
LCD
/CS
BA0
J15
R39
/RES
LED0
LED2
LED4
LED6
485+
/CS
LED1
LED3
LED5
C19
6
R41
U11
7
KEYPAD DISPLAYBOARD
485
R64
R65
R66
+3.3 V
BA1
BA2
GNDA3A1D0D2D4D6
GND
GND
R42
C20
U12
D8
GND IN3 IN2 IN1 IN0 +5V
J6
U7
R62
C7
R2
C6
R8
U6
R9
+5 V
GND
BA3
BD0
BD1
BD2
BD3
BD4
BD5
BD6
D1D3D5
K1
D7
1
5
bias
termi-
R43
nation
JP5
A2
A0
2
6
bias
R45
LCD1JC
R3R4R5
BD7
J16
+3.3 V
C27
Q5
R6
R10
C14
R36
681 W
R38
C28
220 W
R37
681 W
C30C29
R48
RABBITNET
R7
C15
R18
R44
R46
R47
J7
J11
SERIAL FLASH/
MODEM
R19
R20
0.5 A@ 30 V
RELAYRATED
J17
NO1 COM1 NC1 NO2 COM2 NC2
DS7
RELAY
Figure B-9. RS-485 Termination and Bias Resistors
For best performance, the termination resistors in a multidrop network should be enabled
only on the end nodes of the network, but not on the intervening nodes. Jumpers on boards
whose termination resistors are not enabled may be stored across pins 1–3 and 4–6 of
header JP5.
B.4.7 RabbitNet Ports
The RJ-45 jack labeled RabbitNet is a clocked SPI RS-422 serial I/O expansion port for
use with RabbitNet peripheral boards. The RabbitNet jack does not support Ethernet connections. Header JP3 must have pins 2–3 jumpered when using the RabbitNet port.
The RabbitNet port is enabled in software by setting PD2 = 1. Note that the RabbitNet
port and the J11 interface cannot be used simultaneously.
User’s Manual93
B.4.8 Other Prototyping Board Modules
An optional LCD/keypad module is available that can be mounted on the Prototyping
Board. The signals on headers LCD1JB and LCD1JC will be available only if the LCD/
keypad module is installed. Refer to Appendix C, “LCD/Keypad Module,” for complete
information.
Rabbit’s SF1000 series serial flash may be installed in the socket labeled J11. The J11
interface is enabled in software by setting PD2 = 0. Header JP3 must have pins 2–3 jumpered when using the J11 interface. Note that the RabbitNet port and the J11 interface
cannot be used simultaneously.
B.4.9 Quadrature Decoder
Four quadrature decoder inputs are available on screw-terminal header J5. To use the PF0
input from the Rabbit microprocessor, which goes to the QD1B input, remember to reconfigure the jumper on header JP3 to jumper pins 1–2.
Additional information on the use of the quadrature decoders on Parallel Port F is provided in the Rabbit 3000 Microprocessor User’s Manual.
B.4.10 Stepper-Motor Control
The Prototyping Board can be used to demonstrate the use of the RCM3305/RCM3315 to
control a stepper motor. Stepper motor control typically directs moves in two orthogonal
directions, and so two sets of stepper-motor control circuits are provided for via screwterminal headers J3 and J4.
In order to use the stepper-motor control, install two Texas Instruments L293DN chips at
locations U2 and U3 (shown in Figure B-10). These chips are readily available from your
favorite electronics parts source, and may be purchased through Rabbit’ s Web store as part
number 660-0205.