RabbitCore RCM3309/RCM3319
C-Programmable Core Module
with Serial Flash Mass Storage and Ethernet
User’s Manual
019–0166 •
080528–C
RabbitCore RCM3309/RCM3319 User’s Manual
Part Number 019-0166 • 080528–C • Printed in U.S.A.
©2008 Digi International Inc. • All rights reserved.
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 notice.
Trademarks
Rabbit, RabbitCore, and Dynamic C are registered trademarks of Digi International Inc.
The latest revision of this manual is available on the Rabbit Web site,
www.rabbit.com,
for free, unregistered download.
Rabbit Semiconductor Inc.
www.rabbit.com
RabbitCore RCM3309/RCM3319
T
ABLE OF
C
ONTENTS
Chapter 1. Introduction
1
1.1 RCM3309/RCM3319 Features .............................................................................................................2
1.2 Comparing the RCM3309/RCM3319 and RCM3305/RCM3315 ........................................................4
1.3 Advantages of the RCM3309 and RCM3319.......................................................................................5
1.4 Development and Evaluation Tools......................................................................................................6
1.4.1 RCM3309/RCM3319 Development Kit .......................................................................................6
1.4.2 Software ........................................................................................................................................7
1.4.3 Connectivity Interface Kits ...........................................................................................................7
1.4.4 Online Documentation ..................................................................................................................7
Chapter 2. Getting Started
9
2.1 Install Dynamic C .................................................................................................................................9
2.2 Hardware Connections........................................................................................................................10
2.2.1 Step 1 — Attach Module to Prototyping Board..........................................................................10
2.2.2 Step 2 — Connect Programming Cable ......................................................................................11
2.2.3 Step 3 — Connect Power ............................................................................................................12
2.3 Starting Dynamic C ............................................................................................................................13
2.4 Run a Sample Program .......................................................................................................................13
2.4.1 Troubleshooting ..........................................................................................................................13
2.5 Where Do I Go From Here? ...............................................................................................................14
2.5.1 Technical Support .......................................................................................................................14
Chapter 3. Running Sample Programs
15
3.1 Introduction.........................................................................................................................................15
3.2 Sample Programs ................................................................................................................................16
3.2.1 Use of Serial Flash ......................................................................................................................17
3.2.1.1 Onboard Serial Flash.......................................................................................................... 17
3.2.1.2 SF1000 Serial Flash Card................................................................................................... 17
3.2.2 Serial Communication.................................................................................................................17
3.2.3 Real-Time Clock .........................................................................................................................19
3.2.4 RabbitNet ....................................................................................................................................19
3.2.5 Other Sample Programs ..............................................................................................................19
Chapter 4. Hardware Reference
21
4.1 RCM3309/RCM3319 Digital Inputs and Outputs ..............................................................................22
4.1.1 Memory I/O Interface .................................................................................................................27
4.1.2 LEDs ...........................................................................................................................................27
4.1.3 Other Inputs and Outputs ............................................................................................................27
4.2 Serial Communication ........................................................................................................................28
4.2.1 Serial Ports ..................................................................................................................................28
4.2.2 Ethernet Port ...............................................................................................................................29
4.2.3 Serial Programming Port.............................................................................................................30
4.3 Programming Cable ............................................................................................................................31
4.3.1 Changing Between Program Mode and Run Mode ....................................................................31
4.3.2 Standalone Operation of the RCM3309/RCM3319....................................................................32
User’s Manual
4.4 Other Hardware .................................................................................................................................. 33
4.4.1 Clock Doubler ............................................................................................................................ 33
4.4.2 Spectrum Spreader...................................................................................................................... 33
4.5 Memory .............................................................................................................................................. 34
4.5.1 SRAM......................................................................................................................................... 34
4.5.2 Flash EPROM............................................................................................................................. 34
4.5.3 Serial Flash ................................................................................................................................. 34
4.5.4 Dynamic C BIOS Source Files................................................................................................... 34
Chapter 5. Software Reference
35
5.1 More About Dynamic C ..................................................................................................................... 35
5.1.1 Developing Programs Remotely with Dynamic C ..................................................................... 37
5.2 Dynamic C Functions........................................................................................................................ 38
5.2.1 Digital I/O................................................................................................................................... 38
5.2.2 SRAM Use.................................................................................................................................. 38
5.2.3 Serial Communication Drivers ................................................................................................... 39
5.2.4 TCP/IP Drivers ........................................................................................................................... 39
5.2.5 Serial Flash Drivers .................................................................................................................... 39
5.2.6 Prototyping Board Function Calls .............................................................................................. 40
5.2.6.1 Board Initialization ............................................................................................................ 40
5.2.6.2 Digital I/O.......................................................................................................................... 41
5.2.6.3 Switches, LEDs, and Relay ............................................................................................... 43
5.2.6.4 Serial Communication ....................................................................................................... 46
5.2.6.5 RabbitNet Port ................................................................................................................... 47
5.3 Upgrading Dynamic C ....................................................................................................................... 49
5.3.1 Extras.......................................................................................................................................... 49
Chapter 6. Using the TCP/IP Features
51
6.1 TCP/IP Connections ........................................................................................................................... 51
6.2 TCP/IP Primer on IP Addresses ......................................................................................................... 53
6.2.1 IP Addresses Explained.............................................................................................................. 55
6.2.2 How IP Addresses are Used ....................................................................................................... 56
6.2.3 Dynamically Assigned Internet Addresses................................................................................. 57
6.3 Placing Your Device on the Network ................................................................................................ 58
6.4 Running TCP/IP Sample Programs.................................................................................................... 59
6.4.1 How to Set IP Addresses in the Sample Programs..................................................................... 60
6.4.2 How to Set Up your Computer for Direct Connect.................................................................... 61
6.5 Run the PINGME.C Sample Program................................................................................................ 62
6.6 Running Additional Sample Programs With Direct Connect ............................................................ 62
6.6.1 RabbitWeb Sample Programs..................................................................................................... 63
6.6.2 Remote Application Update ....................................................................................................... 63
6.6.3 Dynamic C FAT File System, RabbitWeb, and SSL Libraries.................................................. 63
6.7 Where Do I Go From Here? ............................................................................................................... 65
Appendix A. RCM3309/RCM3319 Specifications
67
A.1 Electrical and Mechanical Characteristics ........................................................................................ 68
A.1.1 Headers ...................................................................................................................................... 72
A.2 Bus Loading ...................................................................................................................................... 73
A.3 Rabbit 3000 DC Characteristics ........................................................................................................ 76
A.4 I/O Buffer Sourcing and Sinking Limit............................................................................................. 77
A.5 Jumper Configurations ...................................................................................................................... 78
A.6 Conformal Coating ............................................................................................................................ 80
Appendix B. Prototyping Board
81
B.1 Introduction ....................................................................................................................................... 82
B.1.1 Prototyping Board Features ....................................................................................................... 83
B.2 Mechanical Dimensions and Layout ................................................................................................. 85
RabbitCore RCM3309/RCM3319
B.3 Power Supply .....................................................................................................................................87
B.4 Using the Prototyping Board..............................................................................................................88
B.4.1 Adding Other Components.........................................................................................................89
B.4.2 Digital I/O...................................................................................................................................90
B.4.2.1 Digital Inputs ..................................................................................................................... 90
B.4.3 CMOS Digital Outputs ...............................................................................................................91
B.4.4 Sinking Digital Outputs..............................................................................................................91
B.4.5 Relay Outputs .............................................................................................................................91
B.4.6 Serial Communication ................................................................................................................92
B.4.6.1 RS-232 ............................................................................................................................... 93
B.4.6.2 RS-485 ............................................................................................................................... 94
B.4.7 RabbitNet Ports ..........................................................................................................................95
B.4.8 Other Prototyping Board Modules .............................................................................................96
B.4.9 Quadrature Decoder ...................................................................................................................96
B.4.10 Stepper-Motor Control .............................................................................................................96
B.5 Prototyping Board Jumper Configurations ........................................................................................98
B.6 Use of Rabbit 3000 Parallel Ports ....................................................................................................100
Appendix C. LCD/Keypad Module
103
C.1 Specifications ...................................................................................................................................103
C.2 Contrast Adjustments for All Boards ...............................................................................................105
C.3 Keypad Labeling ..............................................................................................................................106
C.4 Header Pinouts .................................................................................................................................107
C.4.1 I/O Address Assignments.........................................................................................................107
C.5 Mounting LCD/Keypad Module on the Prototyping Board ............................................................108
C.6 Bezel-Mount Installation..................................................................................................................109
C.6.1 Connect the LCD/Keypad Module to Your Prototyping Board...............................................111
C.7 Sample Programs .............................................................................................................................112
C.8 LCD/Keypad Module Function Calls ..............................................................................................113
C.8.1 LCD/Keypad Module Initialization..........................................................................................113
C.8.2 LEDs.........................................................................................................................................114
C.8.3 LCD Display.............................................................................................................................115
C.8.4 Keypad......................................................................................................................................151
Appendix D. Power Supply
159
D.1 Power Supplies.................................................................................................................................159
D.1.1 Battery Backup.........................................................................................................................159
D.1.2 Battery-Backup Circuit ............................................................................................................160
D.1.3 Reset Generator .......................................................................................................................161
Appendix 0. RabbitNet
163
E.1 General RabbitNet Description ........................................................................................................163
E.1.1 RabbitNet Connections.............................................................................................................163
E.1.2 RabbitNet Peripheral Cards ......................................................................................................164
E.2 Physical Implementation ..................................................................................................................165
E.2.1 Control and Routing .................................................................................................................165
E.3 Function Calls...................................................................................................................................166
E.3.1 Status Byte................................................................................................................................178
Index
Schematics
179
183
User’s Manual