RabbitCore RCM4200
C-Programmable Analog Core Module
with Serial Flash and Ethernet
User’s Manual
019–0159
• 090508–E
RabbitCore RCM4200 User’s Manual
Part Number 019-0159 • 090508–E • Printed in U.S.A.
©2006–2009 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 4000 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.
Digi International Inc.
www.rabbit.com
RabbitCore RCM4200
T
ABLE OF
C
ONTENTS
Chapter 1. Introduction
1
1.1 RCM4200 Features ...............................................................................................................................2
1.2 Advantages of the RCM4200 ...............................................................................................................4
1.3 Development and Evaluation Tools......................................................................................................5
1.3.1 RCM4200 Development Kit .........................................................................................................5
1.3.2 Software ........................................................................................................................................6
1.3.3 Online Documentation ..................................................................................................................6
Chapter 2. Getting Started
7
2.1 Install Dynamic C .................................................................................................................................7
2.2 Hardware Connections..........................................................................................................................8
2.2.1 Step 1 — Prepare the Prototyping Board for Development..........................................................8
2.2.2 Step 2 — Attach Module to Prototyping Board............................................................................9
2.2.3 Step 3 — Connect Programming Cable ......................................................................................10
2.2.4 Step 4 — Connect Power ............................................................................................................11
2.3 Run a Sample Program .......................................................................................................................12
2.3.1 Troubleshooting ..........................................................................................................................12
2.4 Where Do I Go From Here? ...............................................................................................................13
2.4.1 Technical Support .......................................................................................................................13
Chapter 3. Running Sample Programs
15
3.1 Introduction.........................................................................................................................................15
3.2 Sample Programs ................................................................................................................................16
3.2.1 Use of Serial Flash ......................................................................................................................18
3.2.2 Serial Communication.................................................................................................................19
3.2.3 A/D Converter Inputs (RCM4200 only) .....................................................................................22
3.2.3.1 Downloading and Uploading Calibration Constants.......................................................... 23
3.2.4 Real-Time Clock .........................................................................................................................25
Chapter 4. Hardware Reference
27
4.1 RCM4200 Digital Inputs and Outputs ................................................................................................28
4.1.1 Memory I/O Interface .................................................................................................................34
4.1.2 Other Inputs and Outputs ............................................................................................................34
4.2 Serial Communication ........................................................................................................................35
4.2.1 Serial Ports ..................................................................................................................................35
4.2.1.1 Using the Serial Ports......................................................................................................... 36
4.2.2 Ethernet Port ...............................................................................................................................37
4.2.3 Programming Port .......................................................................................................................38
4.3 Programming Cable ............................................................................................................................39
4.3.1 Changing Between Program Mode and Run Mode ....................................................................39
4.3.2 Standalone Operation of the RCM4200......................................................................................40
User’s Manual
4.4 A/D Converter (RCM4200 only) ....................................................................................................... 41
4.4.1 A/D Converter Power Supply..................................................................................................... 43
4.5 Other Hardware .................................................................................................................................. 44
4.5.1 Clock Doubler ............................................................................................................................ 44
4.5.2 Spectrum Spreader...................................................................................................................... 44
4.6 Memory .............................................................................................................................................. 45
4.6.1 SRAM......................................................................................................................................... 45
4.6.2 Flash EPROM............................................................................................................................. 45
4.6.3 Serial Flash ................................................................................................................................. 45
Chapter 5. Software Reference
47
5.1 More About Dynamic C ..................................................................................................................... 47
5.2 Dynamic C Function Calls ................................................................................................................ 49
5.2.1 Digital I/O................................................................................................................................... 49
5.2.2 Serial Communication Drivers ................................................................................................... 49
5.2.3 User Block .................................................................................................................................. 49
5.2.4 SRAM Use.................................................................................................................................. 50
5.2.5 RCM4200 Cloning ..................................................................................................................... 50
5.2.6 Serial Flash Drivers .................................................................................................................... 51
5.2.7 Prototyping Board Function Calls .............................................................................................. 52
5.2.7.1 Board Initialization ............................................................................................................ 52
5.2.7.2 Alerts.................................................................................................................................. 53
5.2.8 Analog Inputs (RCM4200 only)................................................................................................. 54
5.3 Upgrading Dynamic C ....................................................................................................................... 71
5.3.1 Add-On Modules ........................................................................................................................ 71
Chapter 6. Using the TCP/IP Features
73
6.1 TCP/IP Connections ........................................................................................................................... 73
6.2 TCP/IP Primer on IP Addresses ......................................................................................................... 75
6.2.1 IP Addresses Explained.............................................................................................................. 77
6.2.2 How IP Addresses are Used ....................................................................................................... 78
6.2.3 Dynamically Assigned Internet Addresses................................................................................. 79
6.3 Placing Your Device on the Network ................................................................................................ 80
6.4 Running TCP/IP Sample Programs.................................................................................................... 81
6.4.1 How to Set IP Addresses in the Sample Programs..................................................................... 82
6.4.2 How to Set Up your Computer for Direct Connect.................................................................... 83
6.5 Run the PINGME.C Sample Program................................................................................................ 84
6.6 Running Additional Sample Programs With Direct Connect ............................................................ 84
6.7 Where Do I Go From Here? ............................................................................................................... 85
Appendix A. RCM4200 Specifications
87
A.1 Electrical and Mechanical Characteristics ........................................................................................ 88
A.1.1 A/D Converter ........................................................................................................................... 92
A.1.2 Headers ...................................................................................................................................... 93
A.2 Rabbit 4000 DC Characteristics ........................................................................................................ 94
A.3 I/O Buffer Sourcing and Sinking Limit............................................................................................. 95
A.4 Bus Loading ...................................................................................................................................... 95
A.5 Conformal Coating ............................................................................................................................ 98
A.6 Jumper Configurations ...................................................................................................................... 99
Appendix B. Prototyping Board
101
B.1 Introduction ..................................................................................................................................... 102
B.1.1 Prototyping Board Features ..................................................................................................... 103
B.2 Mechanical Dimensions and Layout ............................................................................................... 105
B.3 Power Supply................................................................................................................................... 106
RabbitCore RCM4200
B.4 Using the Prototyping Board............................................................................................................107
B.4.1 Adding Other Components.......................................................................................................109
B.4.2 Measuring Current Draw..........................................................................................................109
B.4.3 Analog Features (RCM4200 only) ...........................................................................................110
B.4.3.1 A/D Converter Inputs ...................................................................................................... 110
B.4.3.2 Thermistor Input .............................................................................................................. 112
B.4.3.3 A/D Converter Calibration .............................................................................................. 112
B.4.4 Serial Communication ..............................................................................................................113
B.4.4.1 RS-232 ............................................................................................................................. 114
B.5 Prototyping Board Jumper Configurations ......................................................................................115
Appendix C. Power Supply
119
C.1 Power Supplies.................................................................................................................................119
C.1.1 Battery Backup .........................................................................................................................119
C.1.2 Battery-Backup Circuit.............................................................................................................120
C.1.3 Reset Generator ........................................................................................................................121
Index
Schematics
123
127
User’s Manual