Digi MCWIFI Users Manual

MiniCore RCM5600W
C-Programmable Wi-Fi Co re Modul e
User’s Manual
019–0174 090128B
MiniCore RCM5600W User’s Manual
©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 n otice.
T r ade mark s
Rabbit, MiniCore, and Dynamic C are registered trademarks of Digi International Inc.
Wi-Fi is a registered trademark of the Wi-Fi Alliance.
Rabbit 5000 and MiniCore are trademarks of Digi International Inc.
The latest revision of this manual is available on the Rabbit Web s ite, www.rabb it.com, for free, unregistered download.
Digi International Inc.
www.rabbit.com
MiniCore RCM5600W

TABLE OF CONTENTS

Chapter 1. Introduction 1
1.1 RCM5600W Features...........................................................................................................................2
1.2 Advantages of the RCM5600W............................................................................................................3
1.3 Development and Evaluation Tools......................................................................................................4
1.3.1 RCM5600W Standard Development Kit......................................................................................4
1.3.2 RCM5600W Deluxe Development Kit.........................................................................................4
1.3.3 Optional Add-Ons.........................................................................................................................5
1.3.4 Software........................................................................................................................................5
1.3.5 Online Documentation..................................................................................................................5
1.4 Certifications.........................................................................................................................................6
1.4.1 FCC Part 15 Class B.....................................................................................................................6
1.4.2 Industry Canada Labeling.............................................................................................................7
1.4.3 Europe...........................................................................................................................................8
Chapter 2. Getting Started 9
2.1 Install Dynamic C.................................................................................................................................9
2.2 Hardware Connections........................................................................................................................10
2.2.1 Step 1 — Prepare the Interface Board for Development............................................................10
2.2.2 Step 2 — Install Module on Interface Board..............................................................................11
2.2.3 Step 3 — Connect Antenna.........................................................................................................12
2.2.4 Step 4 — Connect USB Cable....................................................................................................12
2.3 Run a Sample Program.......................................................................................................................14
2.3.1 Troubleshooting..........................................................................................................................15
2.4 Where Do I Go From Here? ...............................................................................................................16
2.4.1 Technical Support.......................................................................................................................16
Chapter 3. Running Sample Programs 17
3.1 Introduction.........................................................................................................................................17
3.2 Sample Programs................................................................................................................................18
Chapter 4. Hardware Reference 21
4.1 RCM5600W Digital Inputs and Outputs ............................................................................................22
4.1.1 Memory I/O Interface.................................................................................................................28
4.1.2 Other Inputs and Outputs............................................................................................................28
4.2 Serial Communication ........................................................................................................................29
4.2.1 Serial Ports..................................................................................................................................29
4.2.2 Programming Port.......................................................................................................................30
4.3 Wi-Fi...................................................................................................................................................31
4.3.1 Antenna Grounding Requirements..............................................................................................33
4.4 Programming Modes...........................................................................................................................34
4.4.1 Standalone Operation of the RCM5600W..................................................................................35
4.5 Other Hardware...................................................................................................................................36
4.5.1 Clock Doubler.............................................................................................................................36
4.5.2 Spectrum Spreader......................................................................................................................36
User’s Manual
4.6 Memory..............................................................................................................................................37
4.6.1 SRAM.........................................................................................................................................37
4.6.2 Flash Memory.............................................................................................................................37
4.6.3 Encryption RAM Memory .........................................................................................................37
Chapter 5. Software Reference 39
5.1 More About Dynamic C .....................................................................................................................39
5.2 Dynamic C Function Calls................................................................................................................41
5.2.1 Digital I/O...................................................................................................................................41
5.2.2 Serial Communication Drivers...................................................................................................41
5.2.3 Serial Flash Memory Use...........................................................................................................42
5.2.4 User and ID Blocks ....................................................................................................................44
5.2.5 Wi-Fi Drivers..............................................................................................................................44
5.2.6 Interface Board Function Calls...................................................................................................45
5.2.6.1 Board Initialization............................................................................................................ 45
5.3 Upgrading Dynamic C .......................................................................................................................46
5.3.1 Add-On Modules........................................................................................................................46
Chapter 6. Using the Wi-Fi Features 47
6.1 Introduction to Wi-Fi .........................................................................................................................47
6.1.1 Infrastructure Mode....................................................................................................................47
6.1.2 Ad-Hoc Mode.............................................................................................................................48
6.1.3 Additional Information...............................................................................................................48
6.2 Running Wi-Fi Sample Programs......................................................................................................49
6.2.1 Wi-Fi Setup ................................................................................................................................50
6.2.2 What Else You Will Need..........................................................................................................51
6.2.3 Configuration Information..........................................................................................................52
6.2.3.1 Network/Wi-Fi Configuration........................................................................................... 52
6.2.3.2 PC/Laptop/PDA Configuration......................................................................................... 53
6.2.4 Wi-Fi Sample Programs.............................................................................................................55
6.2.4.1 Wi-Fi Operating Region Configuration............................................................................. 55
6.2.4.2 Wi-Fi Operation................................................................................................................. 57
6.2.5 RCM5600W Sample Programs..................................................................................................60
6.3 Dynamic C Wi-Fi Configurations......................................................................................................67
6.3.1 Configuring TCP/IP at Compile Time .......................................................................................67
6.3.2 Configuring TCP/IP at Run Time...............................................................................................71
6.3.3 Other Key Function Calls...........................................................................................................71
6.4 Where Do I Go From Here?...............................................................................................................72
Appendix A. RCM5600W Specifications 73
A.1 Electrical and Mechanical Characteristics ........................................................................................74
A.1.1 mini PCI Express Connector Design Recommendations..........................................................78
A.2 Rabbit 5000 Microprocessor Characteristics ....................................................................................79
Appendix B. Interface Board 81
B.1 Introduction .......................................................................................................................................82
B.1.1 Interface Board Features............................................................................................................83
B.2 Mechanical Dimensions and Layout.................................................................................................84
B.2.1 Headers ......................................................................................................................................85
B.3 Power Supply.....................................................................................................................................86
B.4 Using the Interface Board..................................................................................................................87
B.4.1 Add Additional Boards..............................................................................................................88
B.5 Interface Board Jumper Configurations............................................................................................89
MiniCore RCM5600W
Appendix C. Prototyping Board 91
C.1 Introduction........................................................................................................................................92
C.1.1 Prototyping Board Features........................................................................................................92
C.2 Mechanical Dimensions and Layout..................................................................................................93
C.2.1 Headers.......................................................................................................................................95
C.3 Using the Prototyping Board..............................................................................................................96
C.3.1 Add Additional Boards...............................................................................................................97
Appendix D. Digital I/O Accessory Board 99
D.1 Introduction......................................................................................................................................100
D.1.1 Digital I/O Accessory Board Features.....................................................................................100
D.2 Mechanical Dimensions and Layout................................................................................................101
D.2.1 Headers.....................................................................................................................................102
D.3 Using the Digital I/O Accessory Board...........................................................................................103
D.3.1 Configuration...........................................................................................................................104
D.3.2 Add Additional Boards ............................................................................................................106
Appendix E. Serial Communication Accessory Board 107
E.1 Introduction......................................................................................................................................108
E.1.1 Serial Communication Accessory Board Features...................................................................108
E.2 Mechanical Dimensions and Layout................................................................................................109
E.2.1 Headers............................................................ ...... ...... ................................. ...... ......................110
E.3 Using the Serial Communication Accessory Board.........................................................................111
E.3.1 Configuration......................................................... ...... ................................. ...... ..... .................112
E.3.2 Add Additional Boards.............................................................................................................114
Appendix F. Power Supply 115
F.1 Power Supplies.................................................................................................................................115
F.1.1 Battery Backup .........................................................................................................................116
F.1.2 Battery-Backup Circuit.............................................................................................................117
F.1.3 Reset Generator.........................................................................................................................117
Index 119
Schematics 123
User’s Manual
MiniCore RCM5600W

1. INTRODUCTION

The RCM5600W MiniCore modu le provides a compact mod ule in a mini PCI Express form factor with integrated Wi-Fi/802.11b/g functionality to allow you t o create a low-co st, low-power, Wi-Fi based control and communications solution for your embedded system.
A Development Kit is available with the essentials that you need to design your own microprocessor-based system, and includes a complete Dynamic C software development system. The Development Kit also contains an Interface Board with a USB connection that will allow you to evaluate the RCM 5600W, and a Prototyping Board to help you to develop your own applica­tions. You will also be able to write and test software for the RCM5600W modules, including Wi-Fi applications.
The RCM5600W has a Rabbit 5000 microprocessor operating at up to 73.73 MHz, flash memory, two clocks (main oscillator and real-time clock), and the circuitry necessary to reset and manage the Rabbit 5000. An edge connector brings out the RCM5600W user interface to a 52-pin mini PCI Express socket on the motherboard the RCM5600W is mounted on.
The RCM5600W receives its +3.3 V power from the motherboard on which it is mounted. The RCM5600W can interface with other CMOS-compatible digital devices through the motherboard.
User’s Manual 1

1.1 RCM5600W Features

Small size: 1.20" × 2.00" × 0.40" (30 mm × 51 mm × 10 mm)
Microprocessor: Rabbit 5000 running
at 73.73 MHz
Up to 35 general-purpose I/O lines each configurable with up to four alternate functions
3.3 V I/O lines
Six CMOS-compatible serial ports — f
our ports are configurable as a clocked serial port
(SPI), and two ports are configurable as SDLC/HDLC serial ports.
Airoha single-chip 802.11b/g transceiver
External I/O bus can be configured for 8 data lines, 8 address lines (shared with parallel
I/O lines), and I/O read/write
1MB SRAM and 1MB serial flash memory
Battery-backable real-time clock
Watchdog supervisor
Currently there is one RCM5600W production model. Table 1 summarizes its main features.
Table 1. RCM5600W Features
Feature RCM5600W
Microprocessor
Rabbit
®
5000 at 73.73 MHz SRAM 1MB Serial Flash Memory
(program)
6 shared high-speed, CMOS-compatible ports:
6 are configurable as asynchronous serial ports;
Serial Ports
Wi-Fi 802.11b/g standard, ISM 2.4 GHz
4 are configurable as clocked serial ports (SPI); 2 are configurable as SDLC/HDLC serial ports; 1 asynchronous serial port is used during programming
1MB
The RCM5600W is programmed through a USB connector on the motherboard using a USB cable supplied with th e De vel o pm e n t Ki t.
NOTE: The RabbitLink cannot be used to program the RCM5600W.
Appendix A provides detailed specifications for the RCM5600W.
2 MiniCore RCM5600W

1.2 Advantages of the RCM5600W

Fast time to market using a fully engineered, “ready-to-run/ready-to-program” micro­processor core.
Competitive pricing when c ompar ed with the alternative of purchasing and assembling individual components.
Easy C-language program development and debugging
Rabbit Field Utility to download compiled Dynamic C .bin files.
Generous memory size allows large programs with tens of thousands of lines of code,
and substantial data storage.
User’s Manual 3

1.3 Development and Evaluation Tools

1.3.1 RCM5600W Standard Development Kit

The RCM5600W Standard Development Kit contains the hardware essentials you will need to use your RCM5600W module. These items are supplied in the standard version of the Development Kit.
RCM5600W module.
2.4 GHz dipole antenna with mounting bracket and U.FL to RP-SMA connector cable.
Interface Board with standoffs/connectors.
Prototyping Board with standoffs/connectors.
USB cable to program RCM5600W via Interface Board.
Dynamic C CD-ROM, including product documentation on disk.
Getting Started instructions.
Registration card.
USB Cable
Antenna
CAUTION: Provide ESD protection such as smocks and grounding straps on your footwear
while assembling the RCM5600W module, installing it on another board, and while making or removing any connections.
MiniCore RCM5600W
The RCM5600W MiniCore module provides a compact module in a mini PCI Express form factor with integrated Wi-Fi/802.11b/g functionality to allow you to create a low-cost, low-power, Wi-Fi based control and communications solution for your embedded system. These Getting Started instruc­tions included with the Development Kit will help you get your RCM5600W up and running so that you can run the sample programs to explore its capabilities and develop your own applications.
Development Kit Contents
The RCM5600W Standard Development Kit contains the following items
• RCM5600W m odule.
• 2.4 GHz dipole antenna with mounting bracket and RP-SMA connector cable.
• Interface Board with standoffs/connectors.
• Prototyping Board with standoffs/connectors.
• USB cable to program RCM5600W via Interface Board.
®
Dynamic C
CD-ROM, with complete product documentation on disk.
G etting Started instructions.
• R egistration card. Visit our online Rabbit store at www.rabbit.com/store/ for the latest information on peripherals and accessories that are available for the RCM5600W MiniCore modules.
®
Step 1 — Install Dynamic C
Before doing any development, you must install 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 program in the root directory of the Dynamic C CD. Install any Dynamic C modules after you install Dynamic C
Rabbit, Dynamic C, and Digi are registered trademarks of Digi International Inc.
Getting Started
Instructions
RP-SMA Connector
Cable
IDC Header
Strip
.
Antenna
Bracket
Prototyping Board
Standoffs
Interface Board
Figure 1. RCM5600W Standard Development Kit

1.3.2 RCM5600W Deluxe Development Kit

In addition to the items included in the standard Development Kit, the Deluxe Develop­ment Kit contains the following items.
Universal AC adapter, 5 V DC, 2 A (includes Canada/Japan/U.S., Australia/N.Z., U.K., and European style plugs). Development Kits sold in North America may contain an AC adapter with only a North American style plug.
Digital I/O and Serial Communication accessory boards for use with certain sample programs.
DB9 to 10-pin header serial cable.
Rabbit 5000 Processor Easy Reference poster.
4 MiniCore RCM5600W

1.3.3 Optional Add-Ons

Rabbit has a power supply and an Antenna Add-On Kit available for the RCM5600W.
Separate power supply (Part No. 101-1273) The universal AC adapter is available for customers who purchased the Standard
Development Kit. This universal AC adapter may be used if your RCM5600W does not work when you power it through the USB cable, and you do not have your own +5 V DC power supply.
Antenna Add-On Kit (Part No. 101-1295)
X 2.4 GHz dipole antenna X U.FL to RP-SMA connector cable
RCM5600W modules purchased individually or in production quantities do not come with an antenna or a connector cable. The Antenna Add-On Kit provides a convenient source of these items.
Visit our Web site at www.rabbit.com or contact your Rabbit sales representative or authorized distributor for further information.

1.3.4 Software

The RCM5600W is programmed using version 10.50 or later of Dynamic C. A compatible version is included on the Development Kit CD-ROM. This version of Dynamic C includes the popular µC/OS-II real-time 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 addi­tion to the Web-based technical support included at no extra charge, a one-year telephone­based technical support subscription is also available for purchase. Visit our Web site at
www.rabbit.com for further information and complete documentation, or contact your
Rabbit sales representative or authorized distributor

1.3.5 Online Documentation

The online documentation is installed along with Dynamic C, and an icon for the docu­mentation menu can be 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 Manual 5

1.4 Certifications

The systems integrator and the end-user are ultimately responsible for the channel range and power limits complying with the regulator y requirements of the co untry where the end device will be used. Dynamic C function calls and sample programs illustrate how this is achieved by selecting the country or region, which sets the channel range and power limits automatically. See Section 6.2.4.1 for additional information and sample programs dem­onstrating how to configure an end device to meet the regulatory channel range and power limit requirements.
Only RCM5600W modules bearing the FCC certification are certified for use in Wi-Fi enabled end devices, and any applications must have been compiled using Dynamic C v. 10.50 or later. The certification is valid only for RCM5600W modules equipped with the dipole antenna that is included with the modules, or a detachable antenna with a 60 cm coaxial cable (Digi International part number 29000105). Follow the antenna grounding recommendations provided in Section 4.3.1. Changes or modifications to this equipment not expressly approved by Digi International may void the user's authority to operate this equipment.
In the event that these conditions cannot be met, then the FCC certification is no longer considered valid and the FCC ID can not be used on the final product. In these circum­stances, the systems integrator or end-user will be responsible for re-evaluating the end device (including the transmitter) and obtaining a separate FCC certification.
NOTE: Any regulatory certification is voided if the RF shield on the RCM5600W
module is removed.

1.4.1 FCC Part 15 Class B

The RCM5600W MiniCore module has been tested and found to comply with the limits for Class B digital devices pursuant to Part 15 Subpart B, of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential environment. This equipment generates, uses, and can radiate radio frequency energy, and if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interfer­ence to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try and correct the interference by one or more of the following measures:
Reorient or relocate the receiving antenna.
Increase the separation between the equipment and the receiver.
Connect the equipment into an outlet on a circuit different from that to which the
receiver is connected.
Consult the dealer or an experienced radio/TV technician for help.
6 MiniCore RCM5600W
Labeling Requirements (FCC 15.19)
FCC ID: MCQ-MCWIFI
This device complies with Part 15 of FCC rules. Operation is subject to the following two conditions:
(1) this device may not cause harmful interference, and (2) this device must accept any interference received, including
interference that may cause undesired operation.
If the FCC identification number is not visible when the module is i nstalled inside another device, then the outside of the device into which the module is installed must also display a label referring to the enclosed module or the device must be capable of displaying the FCC identification number electronically. This exterior label can use wording such as the following: “Contains Transmitter Module FCC ID: MCQ-MCWIFI” or “Contains FCC ID: MCQ-MCWIFI.” Any similar wording that expresses the same meaning may be used.
The following caption must be included with documentation for any device incorporating the RCM5600W MiniCore module.
Caution — Exposure to Radio-Frequency Radiation.
To comply with FCC RF exposure compliance requirements, for mobile configurations, a separation distance of at least 20 cm must be maintained between the antenna of this device and all persons.
This device must not be co-located or operating in conjunction with any other antenna or transmitter.

1.4.2 Industry Canada Labeling

IC: 1846A-MCWIFI RCM5600W DIGI INTL
This Class B digital apparatus complies with Canadian standard ICES-003.
Cet appareil numérique de la classe B est conforme à la norme NMB-003 du Canada.
User’s Manual 7

1.4.3 Europe

The marking shall include as a minimum:
the name of the manufacturer or his trademark;
the type designation;
equipment classification, (see below).
Receiver
Class
1
2
3
Highly reliable SRD communication media, e.g., serving human life inherent systems (may result in a physical risk to a person).
Medium reliable SRD communication media, e.g., causing inconvenience to persons that cannot be overcome by other means.
Standard reliable SRD communication media,e.g., inconvenience to persons that can simply be overcome by other means.
Risk Assessment of Receiver Performance
NOTE: Manufacturers are recommended to declare the classification of their devices in
accordance with Table 2 and EN 300 440-2 [5] clause 4.2, as relevant. In particular, where an SRD that may have inherent safe ty of human life implications, manufacturers and users should pay particular attention to the potential for interference from other systems operating in the same or adjacent bands.
Regulatory Mark ing
The equipment shall be marked, where applicable, in accordance with CEPT/ERC Recom­mendation 70-03 or Directive 1999/5/EC, whichever is applicable. Where this is not appli­cable, the equipment shall be marked in accordance with the National Regulatory requirements.
8 MiniCore RCM5600W

2. GETTING S TARTED

This chapter describes the RC M560 0W hardw are i n m ore detai l, a nd explains how to set up and use the accompanying Interface Board.
NOTE: This chapter (and this manual) assume that you have the RCM5600W Develop-
ment Kit. If you purchased an RCM5600W module by it self , you will hav e to adapt the information in this chapter and elsewhere to your test and development setup.

2.1 Install Dynamic C

To develop and de bu g pro gr am s for the RC M560 0W mod ul es (and for al l oth e r Rabb i t hardware), you must install and use Dynamic C.
If you have not yet installed Dynamic C version 10.50 (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 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.
Once your installation is complete, you will have up to three new icons on your PC desk­top. One icon is for Dynamic C, another 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 any of the optional Dynamic C modules, install them after installing Dynamic C. The modules may be installed in any order. You must install the modules in the same folder where Dynamic C was installed.
User’s Manual 9

2.2 Hardware Connections

There are four4 steps to connecting the Interface Board for use with Dynamic C and the sample programs:
1. Insert standoffs/connectors on the Interface Board.
2. Install the RCM5600W module on the Interface Board.
3. Connect antenna.
4. Connect the USB cable between the Interface Board and the workstation PC.
CAUTION: Provide ESD protection such as smocks and grounding straps on your
footwear.while assembling the RCM5600W module, installing it on another board, and while making or removing any connections.
Remember to use ESD protection re gardl ess of whet her you are working wit h the RCM5600W module on the Interface Board or in your own OEM application.

2.2.1 Step 1 — Prepare the Interface Board for Development

Insert a short plastic standoff supplied from the Development Kit in one of the corner holes from the bottom of the Interface Board, then secure it with a long plastic standoff from above as shown in Figure 2. Repeat this step so that plastic standoffs/connectors are in place at three positions and the antenna bracket is at the fourth position.
Figure 2. Insert Standoffs/Connectors
10 MiniCore RCM5600W
2.2.2 Step 2 — Install Module on Interface Board
Position the RCM5600W module with the edge connectors facing the mini PCI Express
socket J1A at an angle as shown in Figure 3 below. Insert the edge connectors into the mini PCI Express socket J1A, then press down on the opposite edge of the RCM5600W module to snap it into place in holder J1B.
RCM5600W
RCM5600W
J1A
J1B
Interface
Board
Figure 3. Install the RCM5600W Module on the Interface Board
Should you need to remove the RCM5600W module, use two fingernails to hold back the spring clip at J1B from the two RCM5600W corners, lift up the edge of the RCM5600W above J1B, then pull the RCM5600W away to remove the edge connec­tors from the mini PCI Express socket.
J1B
J1A
J1B
CAUTION: Remove power before at tempti ng to i nsert or re move the RCM5600W
in the mini PCI Express socket.
User’s Manual 11

2.2.3 Step 3 — Connect Antenna

Install the antenna U.FL to RP-SMA connector cable in the bracket using two lockwashers and the nut as shown in the insert in Figure 4. Connect the wire to connector P1 on the RCM5600W, then attach the antenna to the antenna RP-SMA connector.
RESET
Connect
wire to P1
J5
6
4
8
2
JP1
Power LED
7
5
3
1
JP2
Figure 4. Connect Antenna and USB Cable
Alternate Antenna Connector Cable Installation
If you prefer, you may solder the RP-SMA antenna connector directly to the Interface Board at P1 as shown in the diagram at right. Before doing so, make sure that you use a long plastic standoff instead of the an­tenna bracket. Then connect the wire to connector P1 on the RCM5600W , and attach the antenna to the ant enna RP-SMA connector.
CAUTION: Do not remove the RF shield
since any attempt to remove the shield will damage the RF circuits underneath it.
Any regulatory certification is voided if the RF shield on the RCM5600W module is removed.
nut
lockwashers
P1
To
PC USB port

2.2.4 Step 4 — Connect USB Cable

The USB cable connects the RCM5600W to the PC running Dynamic C to download pro­grams and to monitor the RCM5600W module during debugging. It also supplies power to the Interface Board and the RCM5600W via the USB interface.
Connect the USB cable between USB connector J5 on the Interface Board and your PC as shown in Figure 4. Note that the USB cable connectors are different at either end, so there is only one way to connect them between the PC and the Interface Board.
12 MiniCore RCM5600W
Your PC should recognize the new USB hardware, and the LEDs next to the USB connec­tor on the Interface Board will flash — if you get an error message, you will have to install USB driver s. Drivers for Windows XP are available in the Dynamic C
USB Programming Cable\WinXP_2K
folder — double-click DPInst.exe to install
Drivers\Rabbit
the USB drivers. Drivers for other operating systems are available online at
www.ftdichip.com/Drivers/VCP.htm.
The green power LED on the Interface Board should light up when you connect the USB cable. The RCM5600W and the Interface Board are now ready to be used.
NOTE: A RESET button is provided on the Interface Board above the Ethernet jack to
allow a hardware reset without disconnecting power.
NOTE: Pins 1–2 on header JP1 on the Interface Board must be jumpered to download
and debug application s and sample programs wi th Dynamic C r unning. Pin s 1–2 shoul d be left unjumpered to run an program already loaded in flash memory.
CAUTION: Do not jumper pins 1–3 on header JP1 on the Interface Board.
Alternate Power Supply Connections — Deluxe Development Kit
The deluxe Development Kit contains a separate AC adapter that may be used to supply power to the Interface Board and the RCM5600W when the USB cable is not connected or when more power is needed than the USB cable is able to supply. The AC adapter may also be used to supply power when the USB cable is connected, in which case the power supply through the USB cable will be disconnected automatically.
Remove slot cover,
1
insert tab into slot
Assemble
AC Adapter
Snap plug into place
RESET
2
AC Adapter
J6
+
Figure 5. Alternate Power Supply Connections—Deluxe Development Kit
User’s Manual 13
First, prepare the AC adapter for the country where it will be used by selecting the plug. The deluxe 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 5, then press down on the spring-loaded clip below the plug assembly to allow the plug assembly to click into plac e. Release the c lip to secure the plug assembly in the AC adapter.
Connect the AC adapter to DC input jack J6 on the Interface Board as shown in Figure 5. Plug in the AC adapter. The green power LED on the Interface Board should light up. The RCM5600W and the Interface Board are now ready to be used.
Note that the center pin of J6 is positive.

2.3 Run a Sample Program

If you already have Dynamic C installed, you are now ready to test your programming connections by running a sample program. Start Dynamic C by double-clicking on the Dynamic C icon on your desktop or in your in the Dynamic C
Converter
is selected to support the USB cable. Choose Store Program in RAM on the
Options > Project Options menu and verify that Use USB to Serial
“Compiler” tab for faster compiling when running sample programs. Click You may have to select the COM port assigned to the USB USB cable on your PC. In
Dynamic C, select munications” tab, then click
Options > Project Options, then select this COM port on the “Com-
OK. You may type the COM port number followed by Enter
on your computer keyboard if the COM port number is outside the range on the dropdown menu.
Start menu. Select the “Communications” tab
OK.
Now find the WIFISCAN.C sample program in the Dynamic C Samples\WiFi folder, open it with the File menu, then compile and run the sample program by pressing F9.
The Dynamic C STDIO window will display Starting scan...., and will display a list
of access points/ad-hoc hosts similar to the one shown here.
The following fields are shown in the Dynamic C
STDIO window.
Channel—the channel the access point is on (1–11).
Signal—the signal strength of the access point.
MAC—the hardware (MAC) address of access point.
Access Point SSID—the SSID the access point is using.
14 MiniCore RCM5600W

2.3.1 Troubleshooting

It may be possible that your PC or laptop is unable to deliver enough current through the USB connection if you are not using a separate power supply. The RCM5600W will not operate in this case, and the solution is to use a separate 5 V power supply as described in the Alternate Power Supply Connections section. Contact Technical Support (see Section 2.4.1) or visit our Web site if you would like to get the universal AC adapter from the Deluxe Development Kit.
If you receive the message
Could Not Open Serial Port, check that the COM port
assigned to the USB cable was identified and set up in Dynamic C as described above. This same error occurs when Windows has already allocated the COM port to another process.
If you receive the message No Rabbit Processor Detected, the USB cable may be connected to the wrong COM port, or the connection may be faulty. First, check both ends of the USB cable to ensure that it is firmly plugged into the PC and the USB connec­tor in the Interface Board. Ensure that the module is firmly and correctly installed in its connector on the Interface Board.
If Dynamic C appears to compile the BIOS successfully, but you then receive a communi­cation error message when you compile and load a 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
Options > Project Opti ons menu. Select a slower Max download baud rate. Click OK
Serial Options dialog on the “Communications” tab in the Dynamic C
to save.
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 on the “Communications” tab in the Dynamic C
Options > Project Options menu. Choose a lower debug baud rate. Click OK to save.
Press <Ctrl-Y> to force Dyn a m i c C to recom p il e t h e BIOS. You should receive a BIOS
successfully compiled
User’s Manual 15
message once this step is completed successfully.

2.4 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
you to modify them for your own use. The RCM5600W User’s Manual also provi
complete hardware reference information for the RCM5600W, the Interface Board, the Proto­typing Board, and the accessory boards in the Deluxe Development Kit.
For advanced development topics, refer to the Dynamic C User’s Manual, also in the online documentation set.

2.4.1 Technical Support

NOTE: If you purchased your RCM5600W through a distributor or through a Rabbi t p art -
ner, cont act the distributor or partner firs t for technical support.
If there are any problems at this point:
is provided to allow
des
Use the Dynamic C
Help menu to get further assistance with Dynamic C.
Check the Rabbit Technical Bulletin Board and forums at www.rabbit.com/support/bb/ and at www.rabbit.com/forums/.
Use the Technical Support e-mail form at www.rabbit.com/support/.
16 MiniCore RCM5600W

3. RUNNING SAMPLE PROGRAMS

To develop and debug programs for the RCM5600W (and for all other Rabbit hardware), you must install and use Dynamic C. This chapter provides a tour of its m ajor feat ures w ith res pect to the RCM5600W.

3.1 Introduction

To help familiarize you with the RCM5600W modules, Dynamic C includes several sample programs. Loading, executing and studying these programs will give you a solid hands-on overview of the RCM5600W’s capabilities, as well as a quick start with Dynamic C as an application development tool.
NOTE: The sample programs assume t hat you hav e at least an elementary grasp of ANSI
C. If you do not, see the introduct ory page s of the Dynamic C User’s Manual for a sug- gested reading list.
In order to run the sample programs discussed in this chapter and elsewhere in this manual,
1. Your RCM5600W must be installed on the Interface Board as described in Chapter 2, “Getting Started.”
2. Dynamic C must be installed and running on your PC.
3. The USB cable must connect the Interface Board to your PC.
4. Power must be applied to the RCM5600W through the Interface Board.
Refer to Chapter 2, “Getting Started,” if you need further information on these steps. To run a sample program, open it with the
and run it by selecting Run in the Run menu (or press F9). The RCM5600W must be in Program Mode (see Figure 11) and must be connected to a PC using the USB cable.
Complete information on Dynamic C is provided in the Dynamic C User’s Manual.
File menu (if it is not still open), then compile
User’s Manual 17

3.2 Sample Programs

Of the many sample programs included with Dynamic C, several are specific to the RCM5600W. These programs will be found in the SAMPLES\RCM5600W folder. Sample programs in the SAMPLES folder one level up are generic samples that can be run on any Rabbit-based product.
Before you compile and run the fol­lowing sample programs, make sure that pins 1–2, 5–6, and 7–8 on header JP1 of the Interface Board are jumpered. The pins on header JP2 must also be jumpered. Each sample program has comments that describe the purpose and function of the program. Follow the instructions at the beginning of the sample program.
CAUTION: Do not jumper pins
1–3 on header JP1 on the Inter­face Board.
JP1
6
4
8
2
JP2
7
5
3
1
FLASHLED.C—demonstrates the use of costatements to flash LED DS1 on the Inter-
face Board. PD0 on the RCM5600W is used to drive the LED.
TOGGLESWITCH.C—monitors switch S1 and LED DS1 on the Interface Board. LED
DS1 on the Interface Board is turned on and off when you press switch S1. PD0 on the RCM5600W is used to drive the LED, and PD1 detects the activity on switch S1.
18 MiniCore RCM5600W
The Digital I/O accessory board may also be used to run the TOGGLESWITCH.C and the
SERIALTOSERIAL.C sample programs. This accessory board is included only with the
Deluxe Development Kit. To install the Digital I/O accessory board, insert the strip of header pins included with the
accessory board into the socket at J12 on the bottom side of the Digital I/O accessory board. Then line up the Digital I/O accessory board with the Interface Board standoffs/ connectors and install the Digital I/O accessory board pins into socket J2 on the Interface Board. Secure the Digital I/O accessory board with the long plastic standoffs/connectors from above as shown in Figure 6—note that one plastic standoff/connector needs to be inserted “upside down” to secure the Digital I/O accessory board to the antenna bracket.
6
4
8
Install header connector strip in bottom socket
7
5
3
2
4
6
8
JP5
JP7
2
JP8
1
1
3
5 7
Figure 6. Install Digital I/O Accessory Board
Pins 1–2, 3–4, 5–6, and 7–8 on headers JP5 and JP8 on the Digital I/O accessory board must be jumpered. Pins 2–4 and 3–5 on header JP7 on the Digital I/O accessory board must also be jumpered.
Uncomment the following line in the sample programs when you are using the Digital I/O accessory board.
#define DIGITAL_IO_ACCESSORY
TOGGLESWITCH.C—monitors switches S1, S2, S3, and S4 on the Digital I/O acces-
sory board and lights LEDs DS1–DS4 when the corresponding pushbutton switch is pressed. LEDs DS1–DS2 on the Digital I/O accessory board are controlled by PA4– PA7, and switches S1–S4 are controlled by PB4–PB7 respectively.
User’s Manual 19
The SERIALTOSERIAL.C sample program is in the SAMPLES\RCM5600W\SERIAL folder.
SERIALTOSERIAL.C—monitors switches S1, S2, S3, and S4 on the Digital I/O acces-
sory board and lights LEDs DS1–DS4 when the corresponding pushbutton switch is pressed. LEDs DS1–DS2 on the Digital I/O accessory bo ard are controlled by PA4–P A 7, and switches S1–S4 are controlled by PB4–PB7 respectively . The sample program sends messages from Serial Port B to Serial Port C to indicate that a switch was pressed. Messages received by Serial Port C are displayed in Dynamic C’s
STDIO window.
Before you compile and run this sample program, you will need to
J2
connect J2 pin 19 (PC0/TxD) to J2 pin 22 (PC3/RxC) or the correspond-
P2
ing holes on P2. If you are using the Serial Communi-
cation accessory board, you should connect pin 3 (TXD) on header J3 to pin 5 (RXC) on header J4 instead.
20 MiniCore RCM5600W

4. HARDWARE REFERENCE

Chapter 4 describes the hardware components and principal hardware subsystems of the RCM5600W. Appendix A, “RCM5600W Specifica­tions,” provides complete physical and electrical specifications.
Figure 7 shows the Rabbit-based subsystems designed into the RCM5600W.
Wi-Fi
Serial
Flash
Real-Time
Clock
RABBIT
5000
SRAM
RCM5600W
MiniCore Module
Figure 7. RCM5600W Subsystems
Main
Clock
®
+3.3 V
CMOS-level
signals
Customer-specific
applications
User’s Manual 21

4.1 RCM5600W Digital Inputs and Outputs

Figure 8 shows the RCM5600W pinouts for the edge connector.
Bottom
2
+3.3 V n.c. n.c. ACT PE1 PE3 PE6 /RESET_IN
PD1 PD3 PC1 PC3 PC5/RxB /RESET PB3 PB5 PB7 PA1 PA3 PA5 PA7 VBAT_EXT PB1/CLKA PC6/TxA PC7/RxA +3.3 V
52
Top
1
GND
n.c.
n.c. LNK PE0 PE2 PE5 PE7
PD0 PD2 PC0 PC2
PC4/TxB
PB0/SCLK
PB2 PB4 PB6
PA0 PA2 PA4 PA6
/IORD
/IOWR
STATUS
SMODE
GND
51
n.c. = not connected
Figure 8. RCM5600W Pinouts
The edge connectors are designed to interface with a 52-pin mini PCI Express socket.
22 MiniCore RCM5600W
Figure 9 shows the use of the Rabbit 5000 microprocessor ports in the RCM5600W mod­ules.
PC0, PC2, PC4
PC1, PC3, PC5
PA0PA7
Port A
Port C
(Serial Ports B, C & D)
PB0PB7
Port B
R
ABBIT
®
PD0PD3
Port D
Port E
PE0PE3 PE5PE7
5000
PB1, PC6, STATUS
PC7, /RESET_IN,
SMODE0, SMODE1
Serial Ports E & F
Programming
Port
(Serial Port A)
Wi-Fi
RAM
Real-Time Clock
Watchdog
11 Timers
Slave Port
Clock Doubler
Backup Battery
Support
Figure 9. Use of Rabbit 5000 Ports
Misc. I/O
Memory & I/O
Interface
/RESET_IN
/RESET /IORD /IOWR
The ports on the Rabbit 5000 microprocessor used in the RCM5600W are configurable, and so the factory defaults can be reconfigured. Table 2 lists the Rabbit 5000 factory defaults and the alternate configurations.
User’s Manual 23
Table 2. RCM5600W Pinout Configurations
Pin Pin Name Default Use Alternate Use Notes
1GND 2 +3.3 V
3–6
n.c.
*
7LNK 8ACT
9 PE0 Input/Output
10 PE1 Input/Output
11 PE2 Input/Output
I/O Strobe I0 A20 Timer C0 TCLKF INT0 QRD1B
I/O Strobe I1 A21 Timer C1 RXD/RCLKF INT1 QRD1A Input Capture
I/O Strobe I2 A22 Timer C2 TXF DREQ0 QRD2B
I/O Strobe I3 A23 Timer C3
12 PE3 Input/Output
RXC/RXF/SCLKD DREQ1 QRD2A Input Capture
I/O Strobe I5 INT1
13 PE5 Input/Output
PWM1 RXB/RCLKE Input Capture
24 MiniCore RCM5600W
Loading...
+ 100 hidden pages