®
TCP/IP Development Kit
Integrated C Development System
Getting Started Manual
019–0079
• 040531–G
TCP/IP Development Kit Getting Started Manual
Part Number 019-0079 • 040531–G • Printed in U.S.A.
©2000–2004 Rabbit Semiconductor • All rights reserved.
Rabbit Semiconductor reserves the right to make changes and
improvements to its products without providing notice.
Trademarks
Rabbit 2000 is a registered trademark of Rabbit Semiconductor.
Dynamic C is a registered trademark of Z-World Inc.
Rabbit Semiconductor
2932 Spafford Street
Davis, California 95616-6800
USA
Telephone: (530) 757-8400
Fax: (530) 757-8402
www.rabbitsemiconductor.com
TCP/IP Development Kit
T
ABLE OF
C
ONTENTS
Chapter 1. Overview
1
1.1 Description...........................................................................................................................................1
1.1.1 TCP/IP Development Board Features...........................................................................................1
1.1.2 Key Benefits..................................................................................................................................2
1.1.3 TCP/IP Capabilities.......................................................................................................................2
1.2 Physical and Electrical Specifications ..................................................................................................3
1.3 Development Software .........................................................................................................................4
1.4 How to Use This Manual ......................................................................................................................5
1.4.1 Additional Reference Information ................................................................................................5
1.4.2 Using Online Documentation........................................................................................................5
1.5 CE Compliance .....................................................................................................................................7
1.5.1 Design Guidelines .........................................................................................................................8
1.5.2 Interfacing the TCP/IP Development Board to Other Devices.....................................................8
Chapter 2. Hardware Connections
9
2.1 Development Kit Contents....................................................................................................................9
2.2 Connections ........................................................................................................................................10
2.3 Where Do I Go From Here? ...............................................................................................................12
2.3.1 Technical Support .......................................................................................................................12
Chapter 3. Installing Dynamic C
13
3.1 An Overview of Dynamic C ...............................................................................................................13
3.2 System Requirements .........................................................................................................................14
3.2.1 Hardware Requirements..............................................................................................................14
3.3 Upgrading Dynamic C ........................................................................................................................15
3.3.1 Add-On Modules.........................................................................................................................15
3.4 Installing Dynamic C ..........................................................................................................................16
3.4.1 Program & Documentation File Location...................................................................................16
3.4.2 Installation Type .........................................................................................................................17
3.4.3 Select COM Port .........................................................................................................................18
3.4.4 Desktop Icons..............................................................................................................................18
3.5 Starting Dynamic C ............................................................................................................................19
3.5.1 Communication Error Messages .................................................................................................19
3.6 PONG.C ..............................................................................................................................................20
3.7 Sample Programs ................................................................................................................................21
3.7.1 Running Sample Program DEMOBRD1.C ................................................................................21
3.7.2 Single-Stepping ...........................................................................................................................23
3.7.2.1 Watch Expression............................................................................................................... 23
3.7.2.2 Break Point......................................................................................................................... 23
3.7.2.3 Editing the Program ........................................................................................................... 24
3.7.2.4 Watching Variables Dynamically ...................................................................................... 24
3.7.2.5 Summary of Features ......................................................................................................... 24
3.7.3 Cooperative Multitasking............................................................................................................25
3.7.4 Advantages of Cooperative Multitasking ...................................................................................27
3.8 Spectrum Spreader ..............................................................................................................................28
Getting Started
Chapter 4. Using the TCP/IP Features
29
4.1 TCP/IP Connections ........................................................................................................................... 29
4.2 Primer on IP Addresses ...................................................................................................................... 32
4.3 IP Addresses Explained...................................................................................................................... 33
4.4 How IP Addresses are Used ............................................................................................................... 34
4.5 Dynamically Assigned Internet Addresses ........................................................................................ 35
4.6 Placing Your Device on the Network ................................................................................................ 36
4.7 Running TCP/IP Sample Programs.................................................................................................... 37
4.7.1 How to Set IP Addresses in the Sample Programs..................................................................... 38
4.7.2 How to Set Up your Computer’s IP Address for Direct Connect .............................................. 39
4.8 Run the PINGME.C Demo................................................................................................................. 40
4.9 Running More Sample Programs With Direct Connect..................................................................... 41
4.10 Where Do I Go From Here?............................................................................................................. 41
Chapter 5. Serial Ports and Digital I/O
43
5.1 Serial Communication........................................................................................................................ 44
5.1.1 RS-232........................................................................................................................................ 47
5.1.2 RS-485........................................................................................................................................ 47
5.1.3 Programming Port ...................................................................................................................... 48
5.1.4 Serial Communication Software................................................................................................. 49
5.1.4.1 Sample Serial Communication Programs.......................................................................... 49
5.2 Digital I/O .......................................................................................................................................... 52
5.2.1 Digital Inputs .............................................................................................................................. 52
5.2.2 Digital Outputs ........................................................................................................................... 52
5.2.3 Digital I/O Software ................................................................................................................... 53
5.2.4 Sample Digital I/O Programs ..................................................................................................... 53
Appendix A. TCP/IP Development Board Specifications
55
A.1 Electrical and Mechanical Specifications.......................................................................................... 56
A.2 Jumper Configurations ...................................................................................................................... 58
A.3 Conformal Coating ............................................................................................................................ 60
Appendix B. Power Management
61
B.1 Power Supplies .................................................................................................................................. 61
B.2 Batteries and External Battery Connections...................................................................................... 62
B.2.1 Battery-Backup Circuit .............................................................................................................. 63
B.2.2 Power to VRAM Switch ............................................................................................................ 64
B.2.3 Reset Generator.......................................................................................................................... 64
B.2.4 Installing/Replacing the Backup-Battery Board ........................................................................ 65
B.3 Chip Select Circuit............................................................................................................................. 66
Appendix C. Programming Cable
Notice to Users
Index
Schematics
69
73
75
77
TCP/IP Development Kit
1. O
VERVIEW
The TCP/IP Development Kit provides a hardware platform
based on the Rabbit 2000
®
microprocessor, Dynamic C
®
, and
the tools necessary to develop a robust 10Base-T Ethernet appli-
cation.
1.1 Description
The TCP/IP Development Kit includes a TCP/IP Development Board (with a Rabbit
2000
®
microprocessor, flash memory, SRAM, Ethernet hardware, serial ports, digital I/O),
Dynamic C development software with TCP/IP stack and documentation on CD-ROM
(not a trial version!), a demonstration board, a power supply, and a serial programming
cable.
The TCP/IP Development Board included in the kit allows for immediate evaluation and
development of TCP/IP applications using the Rabbit 2000 microprocessor. Executable
code can be downloaded into flash memory or SRAM (an optional battery backup board
for SRAM and the real-time clock is available). Two communication ports are available—
an RS-232 port and a RS-485 port. Other features of the TCP/IP Development Board
include four high-current outputs, four digital inputs, seven timers, a real-time battery-
backable clock, and a 10Base-T Ethernet interface.
1.1.1 TCP/IP Development Board Features
•
•
•
•
•
•
•
•
•
•
•
18.432 MHz Rabbit 2000 Processor
10Base-T Ethernet interface
4 high-current outputs (200 mA @ 40 V DC)
4 digital input points (0–5 V DC nominal)
RS-232 serial port
RS-485 serial port (may be factory configured to second RS-232)
512K flash memory (2 × 256K)
128K SRAM
7 built-in timers
Time/date real-time clock (requires battery-backup board, available separately)
Watchdog timer
1
User’s Manual