RabbitCore RCM3200
C-Programmable Module with Ethernet
User’s Manual
019–0118 •
080528–N
RabbitCore RCM3200 User’s Manual
Part Number 019-0118 • 080528–N • Printed in U.S.A.
©2002–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.
Rabbit 3000 is a trademark 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 RCM3200
T
ABLE OF
C
ONTENTS
Chapter 1. Introduction
1
1.1 RCM3200 Features ...............................................................................................................................2
1.2 Comparing the RCM3209/RCM3229 and RCM3200/RCM3220 ........................................................4
1.3 Advantages of the RCM3200 ...............................................................................................................5
1.4 Development and Evaluation Tools......................................................................................................6
1.4.1 RCM3200 Development Kit .........................................................................................................6
1.4.2 Software ........................................................................................................................................7
1.4.3 Connectivity Interface Kits ...........................................................................................................7
1.4.4 Online Documentation ..................................................................................................................7
Chapter 2. Hardware Setup
9
2.1 Install Dynamic C .................................................................................................................................9
2.2 Hardware Connections........................................................................................................................10
2.2.1 Step 1 — Attach Module to Prototyping Board..........................................................................11
2.2.2 Step 2 — Connect Programming Cable ......................................................................................12
2.2.2.1 RCM3209 and RCM3229 .................................................................................................. 12
2.2.2.2 RCM3200 and RCM3220 .................................................................................................. 13
2.2.3 Step 3 — Connect Power ............................................................................................................14
2.2.3.1 Overseas Development Kits ............................................................................................... 15
2.3 Starting Dynamic C ............................................................................................................................16
2.4 Run a Sample Program .......................................................................................................................16
2.4.1 Troubleshooting ..........................................................................................................................16
2.5 Where Do I Go From Here? ...............................................................................................................17
2.5.1 Technical Support .......................................................................................................................17
Chapter 3. Running Sample Programs
19
3.1 Introduction.........................................................................................................................................19
3.2 Sample Programs ................................................................................................................................20
3.2.1 Serial Communication.................................................................................................................21
3.2.2 Other Sample Programs ..............................................................................................................22
Chapter 4. Hardware Reference
23
4.1 RCM3200 Digital Inputs and Outputs ................................................................................................24
4.1.1 Memory I/O Interface .................................................................................................................29
4.1.2 Other Inputs and Outputs ............................................................................................................29
4.1.3 5 V Tolerant Inputs .....................................................................................................................29
4.2 Serial Communication ........................................................................................................................30
4.2.1 Serial Ports ..................................................................................................................................30
4.2.2 Ethernet Port (RCM3200 only)...................................................................................................31
4.2.3 Serial Programming Port.............................................................................................................32
4.3 Serial Programming Cable..................................................................................................................33
4.3.1 Changing Between Program Mode and Run Mode ....................................................................33
4.3.2 Standalone Operation of the RCM3200......................................................................................34
4.4 Other Hardware...................................................................................................................................35
4.4.1 Clock Doubler .............................................................................................................................35
4.4.2 Spectrum Spreader ......................................................................................................................35
User’s Manual
4.5 Memory .............................................................................................................................................. 36
4.5.1 SRAM......................................................................................................................................... 36
4.5.2 Flash EPROM............................................................................................................................. 36
4.5.3 Dynamic C BIOS Source Files................................................................................................... 36
Chapter 5. Software Reference
37
5.1 More About Dynamic C ..................................................................................................................... 37
5.2 Dynamic C Function Calls ................................................................................................................. 39
5.2.1 Digital I/O................................................................................................................................... 39
5.2.2 SRAM Use.................................................................................................................................. 39
5.2.3 Serial Communication Drivers ................................................................................................... 40
5.2.4 TCP/IP Drivers ........................................................................................................................... 40
5.2.5 Prototyping Board Function Calls .............................................................................................. 40
5.2.5.1 Board Initialization ............................................................................................................ 41
5.3 Upgrading Dynamic C ....................................................................................................................... 42
5.3.1 Extras.......................................................................................................................................... 42
Chapter 6. Using the TCP/IP Features
43
6.1 TCP/IP Connections ........................................................................................................................... 43
6.2 TCP/IP Primer on IP Addresses ......................................................................................................... 45
6.2.1 IP Addresses Explained.............................................................................................................. 47
6.2.2 How IP Addresses are Used ....................................................................................................... 48
6.2.3 Dynamically Assigned Internet Addresses................................................................................. 49
6.3 Placing Your Device on the Network ................................................................................................ 50
6.4 Running TCP/IP Sample Programs.................................................................................................... 51
6.4.1 How to Set IP Addresses in the Sample Programs..................................................................... 52
6.4.2 How to Set Up your Computer’s IP Address for Direct Connect .............................................. 53
6.4.3 Dynamic C Compiler Settings.................................................................................................... 53
6.5 Run the PINGME.C Sample Program................................................................................................ 54
6.6 Running More Sample Programs With Direct Connect..................................................................... 54
6.7 Where Do I Go From Here? ............................................................................................................... 55
Appendix A. RCM3200 Specifications
57
A.1 Electrical and Mechanical Characteristics ........................................................................................ 58
A.1.1 Headers ...................................................................................................................................... 61
A.1.2 Physical Mounting..................................................................................................................... 62
A.2 Bus Loading ...................................................................................................................................... 63
A.3 Rabbit 3000 DC Characteristics ........................................................................................................ 66
A.4 I/O Buffer Sourcing and Sinking Limit............................................................................................. 67
A.5 Conformal Coating ............................................................................................................................ 68
A.6 Jumper Configurations ...................................................................................................................... 69
Appendix B. Prototyping Board
71
B.1 Introduction ....................................................................................................................................... 72
B.1.1 Prototyping Board Features ....................................................................................................... 73
B.2 Mechanical Dimensions and Layout ................................................................................................. 75
B.3 Power Supply..................................................................................................................................... 76
B.4 Using the Prototyping Board ............................................................................................................. 77
B.4.1 Adding Other Components ........................................................................................................ 78
B.4.2 Measuring Current Draw ........................................................................................................... 78
B.4.3 Other Prototyping Board Modules and Options ........................................................................ 79
B.5 Use of Rabbit 3000 Parallel Ports...................................................................................................... 80
Appendix C. LCD/Keypad Module
83
C.1 Specifications..................................................................................................................................... 83
C.2 Contrast Adjustments for All Boards ................................................................................................ 85
RabbitCore RCM3200
C.3 Keypad Labeling ................................................................................................................................86
C.4 Header Pinouts ...................................................................................................................................87
C.4.1 I/O Address Assignments...........................................................................................................87
C.5 Mounting LCD/Keypad Module on the Prototyping Board ..............................................................88
C.6 Bezel-Mount Installation....................................................................................................................89
C.6.1 Connect the LCD/Keypad Module to Your Prototyping Board.................................................91
C.7 LCD/Keypad Module Function Calls ................................................................................................92
C.7.1 LCD/Keypad Module Initialization............................................................................................92
C.7.2 LEDs...........................................................................................................................................92
C.7.3 LCD Display...............................................................................................................................93
C.7.4 Keypad......................................................................................................................................108
C.8 Sample Programs .............................................................................................................................111
Appendix D. Power Supply
113
D.1 Power Supplies.................................................................................................................................113
D.1.1 Battery Backup.........................................................................................................................113
D.1.2 Battery-Backup Circuit ............................................................................................................114
D.1.3 Reset Generator ........................................................................................................................115
D.2 Optional +5 V Output ......................................................................................................................115
Appendix E. Motor Control Option
117
E.1 Overview ..........................................................................................................................................117
E.2 Header J6 ..........................................................................................................................................118
E.3 Using Parallel Port F ........................................................................................................................119
E.3.1 Parallel Port F Registers ...........................................................................................................119
E.4 PWM Outputs...................................................................................................................................122
E.5 PWM Registers.................................................................................................................................123
E.6 Quadrature Decoder .........................................................................................................................124
Index
Schematics
127
131
User’s Manual