Rabbit BL4S200 User Manual

BL4S200
C-Programmable Single-Board Computer with Networking
User’s Manual
019–0171_E
BL4S200 User’s Manual
Part Number 019-0171_D • Printed in U.S.A.
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.
RabbitNet 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

TABLE OF CONTENTS

Chapter 1. Introduction 6
1.1 BL4S200 Description ...........................................................................................................................6
1.2 BL4S200 Features.................................................................................................................................6
1.3 Development and Evaluation Tools......................................................................................................8
1.3.1 Tool Kit .........................................................................................................................................8
1.3.2 Software ........................................................................................................................................9
1.3.3 Optional Add-Ons .........................................................................................................................9
1.4 RabbitNet Peripheral Cards ................................................................................................................10
1.5 CE Compliance ...................................................................................................................................11
1.5.1 Design Guidelines .......................................................................................................................12
1.5.2 Interfacing the BL4S200 to Other Devices.................................................................................12
1.6 Wi-Fi Certifications (BL5S220 Model only)......................................................................................13
1.6.1 FCC Part 15 Class B ...................................................................................................................13
1.6.2 Industry Canada Labeling ...........................................................................................................14
1.6.3 Europe .........................................................................................................................................15
Chapter 2. Getting Started 16
2.1 Preparing the BL4S200 for Development ..........................................................................................16
2.2 BL4S200 Connections ........................................................................................................................17
2.2.1 Hardware Reset ...........................................................................................................................18
2.3 Installing Dynamic C ..........................................................................................................................19
2.4 Starting Dynamic C ............................................................................................................................20
2.5 Run a Sample Program .......................................................................................................................20
2.5.1 Troubleshooting ..........................................................................................................................20
2.6 Run a Wi-Fi Sample Program (BL5S220 only)..................................................................................21
2.7 Run a ZigBee Sample Program (BL4S230 only) ...............................................................................22
2.8 Where Do I Go From Here? ...............................................................................................................23
Chapter 3. Subsystems 24
3.1 BL4S200 Pinouts ................................................................................................................................25
3.1.1 Connectors ..................................................................................................................................26
3.2 Digital I/O ...........................................................................................................................................27
3.2.1 Configurable I/O .........................................................................................................................27
3.2.2 High-Current Digital Outputs .....................................................................................................34
3.3 Serial Communication ........................................................................................................................36
3.3.1 RS-232 ........................................................................................................................................36
3.3.2 RS-485 ........................................................................................................................................36
3.3.3 Programming Port .......................................................................................................................38
3.3.4 Ethernet Port ...............................................................................................................................39
3.4 A/D Converter Inputs..........................................................................................................................40
3.4.1 A/D Converter Calibration..........................................................................................................42
3.5 D/A Converter Outputs.......................................................................................................................43
3.5.1 D/A Converter Calibration..........................................................................................................44
3.6 Analog Reference Voltages Circuit ....................................................................................................45
3.7 USB Programming Cable ...................................................................................................................46
3.7.1 Changing Between Program Mode and Run Mode ....................................................................46
BL4S200 User’s Manual 3
3.8 Other Hardware...................................................................................................................................47
3.8.1 Clock Doubler .............................................................................................................................47
3.8.2 Spectrum Spreader ......................................................................................................................48
3.9 Memory...............................................................................................................................................49
3.9.1 SRAM .........................................................................................................................................49
3.9.2 Flash Memory .............................................................................................................................49
3.9.3 VBAT RAM Memory.................................................................................................................49
3.9.4 microSD™ Cards ........................................................................................................................49
Chapter 4. Software 51
4.1 Running Dynamic C ...........................................................................................................................51
4.1.1 Upgrading Dynamic C ................................................................................................................53
4.1.2 Add-On Modules.........................................................................................................................53
4.2 Sample Programs ................................................................................................................................54
4.2.1 Digital I/O ...................................................................................................................................55
4.2.2 Serial Communication.................................................................................................................60
4.2.3 A/D Converter Inputs..................................................................................................................62
4.2.4 D/A Converter Outputs ...............................................................................................................64
4.2.5 Use of microSD™ Cards with BL4S200 Model.........................................................................66
4.2.6 Real-Time Clock .........................................................................................................................66
4.2.7 TCP/IP Sample Programs ...........................................................................................................66
4.3 BL4S200 Libraries..............................................................................................................................67
4.4 BL4S200 Function Calls.....................................................................................................................68
4.4.1 Board Initialization .....................................................................................................................68
4.4.2 Digital I/O ...................................................................................................................................69
4.4.3 High-Current Outputs .................................................................................................................92
4.4.4 Rabbit RIO Interrupt Handlers..................................................................................................104
4.4.5 Serial Communication...............................................................................................................108
4.4.6 A/D Converter Inputs................................................................................................................110
4.4.7 D/A Converter Outputs .............................................................................................................123
4.4.8 SRAM Use ................................................................................................................................131
Chapter 5. Using the Ethernet TCP/IP Features 132
5.1 TCP/IP Connections .........................................................................................................................132
5.2 TCP/IP Sample Programs .................................................................................................................134
5.2.1 How to Set IP Addresses in the Sample Programs ...................................................................134
5.2.2 How to Set Up your Computer for Direct Connect ..................................................................135
5.2.3 Run the
5.2.4 Running More Demo Programs With a Direct Connection......................................................137
5.3 Where Do I Go From Here? .............................................................................................................137
PINGME.C Demo ....................................................................................................136
Chapter 6. Using the Wi-Fi Features 138
6.1 Introduction to Wi-Fi ........................................................................................................................138
6.1.1 Infrastructure Mode...................................................................................................................138
6.1.2 Ad-Hoc Mode ...........................................................................................................................139
6.1.3 Additional Information .............................................................................................................139
6.2 Running Wi-Fi Sample Programs.....................................................................................................140
6.2.1 Wi-Fi Setup...............................................................................................................................141
6.2.2 What Else You Will Need.........................................................................................................142
6.2.3 Configuration Information ........................................................................................................143
6.2.4 Wi-Fi Sample Programs............................................................................................................146
6.2.5 RCM5400W Sample Programs.................................................................................................151
6.3 Dynamic C Wi-Fi Configurations.....................................................................................................154
6.3.1 Configuring TCP/IP at Compile Time ......................................................................................154
6.3.2 Configuring TCP/IP at Run Time .............................................................................................158
6.3.3 Other Key Function Calls .........................................................................................................158
6.4 Where Do I Go From Here? .............................................................................................................159
BL4S200 User’s Manual 4
Chapter 7. Using the ZigBee Features 160
7.1 Introduction to the ZigBee Protocol .................................................................................................160
7.2 ZigBee Sample Programs .................................................................................................................161
7.2.1 Setting Up the Digi XBee USB Coordinator ............................................................................162
7.2.2 Setting up Sample Programs .....................................................................................................164
7.3 Dynamic C Function Calls................................................................................................................167
7.4 Where Do I Go From Here? .............................................................................................................167
Appendix A. Specifications 168
A.1 Electrical and Mechanical Specifications ........................................................................................169
A.1.1 Exclusion Zone.........................................................................................................................173
A.1.2 Headers.....................................................................................................................................173
A.2 Conformal Coating...........................................................................................................................174
A.3 Jumper Configurations.....................................................................................................................175
A.4 Use of Rabbit Microprocessor Parallel Ports ...................................................................................177
Appendix B. Power Supply 178
B.1 Power Supplies.................................................................................................................................178
B.1.1 Power for Analog Circuits........................................................................................................179
B.2 Batteries and External Battery Connections ....................................................................................179
B.2.1 Replacing the Backup Battery..................................................................................................180
B.3 Power to Peripheral Cards................................................................................................................181
Appendix C. Demonstration Board 182
C.1 Connecting Demonstration Board....................................................................................................183
C.2 Demonstration Board Features.........................................................................................................184
C.2.1 Pinout........................................................................................................................................184
C.2.2 Configuration............................................................................................................................184
Appendix D. Rabbit RIO Resource Allocation 186
D.1 Configurable I/O Pin Associations ..................................................................................................187
D.2 High-Current Output Pin Associations ............................................................................................188
D.3 Interpreting Error Codes ..................................................................................................................188
Appendix E. RabbitNet 190
E.1 General RabbitNet Description ........................................................................................................190
E.1.1 RabbitNet Connections.............................................................................................................190
E.1.2 RabbitNet Peripheral Cards ......................................................................................................191
E.2 Physical Implementation ..................................................................................................................192
E.2.1 Control and Routing .................................................................................................................192
E.3 Function Calls...................................................................................................................................193
E.3.1 Status Byte................................................................................................................................203
Appendix F. Additional Configuration Instructions 204
F.1 XBee Module Firmware Downloads................................................................................................204
F.1.1 Dynamic C v. 10.44 and Later..................................................................................................204
F.2 Digi
®
XBee USB Configuration ......................................................................................................205
F.2.1 Additional Reference Information ............................................................................................206
F.2.2 Update Digi
®
XBee USB Firmware.........................................................................................208
Index 209
Schematics 213
BL4S200 User’s Manual 5

1. INTRODUCTION

The BL4S200 series of high-performance, C-programmable single­board computers offers built-in digital and analog I/O combined with Ethernet, Wi-Fi, or ZigBee network connectivity in a com­pact form factor. The BL4S200 single-board computers are ideal for both discrete manufacturing and process-control applications.
®
A Rabbit data processing. A removable flash memory option supports a full directory file structures to maximize remote access control and programmability. The I/O can be expanded with RabbitNet peripheral cards.

1.1 BL4S200 Description

Throughout this manual, the term BL4S200 refers to the complete series of BL4S200 single­board computers unless other production models are referred to specifically.
4000 or Rabbit® 5000 microprocessor provides fast
The BL4S200 is an advanced single-board computer that incorporates the powerful Rabbit 4000 or Rabbit 5000 microprocessor, flash memory options, static RAM, digital I/O ports, A/D converter inputs, D/A converter outputs, RS-232/RS-485 serial ports, and Ethernet, Wi-Fi, or ZigBee network connectivity.

1.2 BL4S200 Features

Rabbit® 4000 or Rabbit® 5000 microprocessor operating at up to 73.73 MHz.
Industry-standard Micro-Fit® polarized positive-locking connectors.
512KB SRAM and 512KB/1MB flash memory options.
40 digital I/O: 32 protected digital I/O individually software-configurable as inputs or
sinking outputs, and 8 high-current digital outputs software-configurable as sinking or sourcing.
Advanced input capabilities including event counting, event capture, and quadrature
decoders that may be set up on most I/O pins.
Independent PWM and PPM capability on most I/O pins and all high-current outputs.
10 analog channels: eight 11-bit A/D converter inputs, two 12-bit D/A converter 0–10 V
or ±10 V buffered outputs.
BL4S200 User’s Manual 6
Ethernet, Wi-Fi, or ZigBee network connectivity.
Up to 5 serial ports:
Up to three serial ports (one 5-wire RS-232 or two 3-wire RS-232, one RS-485).
Two RabbitNet™ expansion ports multiplexed from one serial port.
One serial port dedicated to programming/debugging.
Battery-backed real-time clock.
Watchdog supervisor.
Four BL4S200 models are available. Their standard features are summarized in Table 1.
Table 1. BL4S200 Models
Feature
Microprocessor
Program Execution SRAM
Data SRAM 512KB 512KB 512KB 512KB
Flash Memory (program)
Flash Memory (data storage)
Network Interface
RabbitCore Module Used RCM4310 RCM4010 RCM5400W RCM4510W (ZB)
BL4S200 BL4S210 BL5S220 BL4S230
®
Rabbit
512KB 512KB
1MB
(serial flash)
supports
microSD™
Card
128MB–1GB
10/100Base-T,
3 LEDs
4000 running
at 58.98 MHz
512KB
(parallel flash)
10Base-T,
2 LEDs
Rabbit® 5000 running
at 73.73 MHz
512KB
(parallel flash)
1MB
(serial flash)
Wi-Fi (802.11b/g)
Rabbit® 4000 running
at 29.49 MHz
512KB
(parallel flash)
ZigBee 2007
(802.15.4)
Note that the BL5S220 model is named as such to reflect that it uses a Rabbit 5000 micro­processor.
BL4S200 single-board computers consist of a main board with a RabbitCore module. Refer to the RabbitCore module manuals, available on the Web s ite , for more information on the RabbitCore modules, including their schematics.
BL4S200 single-board computers are programmed over a standard PC USB port through a programming cable supplied with the Tool Kit. The BL4S200 and BL5S220 models may also be programmed remotely using the Remote Program Update library with Dynamic C v. 10.54 or later. See Application Note AN421, Remote Program Update, for more information.
NOTE: BL4S200 Series single-board computers cannot be programmed via the RabbitLink.
Appendix A provides detailed specifications.
Visit the We b sit e for up-to-date information about additional add-ons and features as they become available. The Web site also has the latest revision of this user’s manual.
BL4S200 User’s Manual 7

1.3 Development and Evaluation Tools

Rabbit, Dynamic C, and Digi are registered trademarks of Digi International Inc. SD is a trademark of the SD Card Association.
BL4S200
The BL4S200 is a fully loaded series of single-board computers that feature built-in Ethernet, Wi-Fi, or ZigBee network connectivity, configurable I/O, high-current outputs, RS-232 and RS-485 serial I/O, and an A/D converter. These Getting Started instructions included with the Tool Kit will help you get your BL4S200 up and running so that you can run the sample programs to explore its capabilities and develop your own applications.
Tool Kit Contents
t
Getting Started instructions.
t
Dynamic C CD-ROM, with complete product documentation on disk.
t
USB programming cable, used to connect your PC USB port to the BL4S200.
t
Universal AC adapter, 12 V DC, 1 A (includes Canada/Japan/U.S., Australia/N.Z., U.K., and European style plugs).
t
Digi® XBee USB (used as ZigBee coordinator for BL4S230 model).
t
Stand-offs to serve as legs for the BL4S200 board during development.
t
Demonstration Board with pushbutton switches and LEDs. The Demonstration Board can be hooked up to the BL4S200 to demonstrate the I/O and capabilities of the BL4S200.
t
Cable assemblies with Micro-Fit® connectors.
t
Screwdriver.
t
Rabbit 4000 Processor Easy Reference and Rabbit 5000 Processor Easy Reference posters.
t
Registration card.
Installing 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 set up.exe pro- gram in the root directory of the Dynamic C CD. Install any Dynamic C modules after you install Dynamic C
.

1.3.1 Tool Kit

A Tool Kit contains the hardware essentials you will need to use your own BL4S200 single­board computer. These items are supplied in the Tool Kit.
Getting Started instructions.
Dynamic C CD-ROM, with complete product documentation on disk.
USB programming cable, used to connect your PC USB port to the BL4S200.
Universal AC adapter, 12 V DC, 1 A (includes Canada/Japan/U.S., Australia/N.Z.,
U.K., and European style plugs).
Stand-offs to serve as legs for the BL4S200 board during development.
Demonstration Board with pushbutton switches and LEDs. The Demonstration Board
can be hooked up to the BL4S200 to demonstrate the I/O and capabilities of the BL4S200.
CAT 5/6 Ethernet crossover cable.
Cable assemblies with Micro-Fit® connectors.
Rabbit 4000 Processor Easy Reference and Rabbit 5000 Processor Easy Reference
posters.
Screwdriver.
Registration card.
Figure 1. BL4S200 Tool Kit
BL4S200 User’s Manual 8

1.3.2 Software

The BL4S200 is programmed using version 10.42 or later of Rabbit’s Dynamic C. A com-
patible version is included on the Tool 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 the Rabbit Embedded Security Pack featuring the Secure Sockets Layer (SSL) and a specific Advanced Encryption Standard (AES) library.
In addition 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 con­tact your Rabbit sales representative or authorized distributor

1.3.3 Optional Add-Ons

Rabbit has available a Mesh Network Add-On Kit and additional tools and parts to help you to make your own wiring assemblies with the friction-lock connectors.
Mesh Network Add-On Kit (Part No. 101-1272)
Digi
XBee Series 2 RF module
RF Interface module
®
XBee USB (used as ZigBee coordinator)
The XBee Series 2 RF module is installed on the RF Interface module, which can be connected via an RS-232 serial connection to a Windows PC for setup. The Mesh Network Add-On Kit enables you to explore the wireless capabilities of the BL4S230 model that offers a ZigBee network interface.
Connector Cable Assemblies (Part No. 151-0153)—Two 2 × 5 friction-lock connectors
(3 mm pitch) assembled with wiring harness.
Crimp tool (Part No. 998-0013) to secure wire in crimp terminals.
Visit our Web site at www.rabbit.com or contact your Rabbit sales representative or autho­rized distributor for further information.
BL4S200 User’s Manual 9

1.4 RabbitNet Peripheral Cards

RabbitNet™ is an SPI serial protocol that uses a robust RS-422 differential signalling interface (twisted-pair differential signaling) to run at a fast 1 Megabit per second serial rate. BL4S200 single-board computers have two RabbitNet ports, each of which can sup­port one peripheral card. Distances between a master processor unit and peripheral cards can be up to 10 m or 33 ft.
The following low-cost peripheral cards are currently available.
Digital I/O
A/D converter
D/A converter
Relay card
Display/Keypad interface
Appendix E provides additional information on RabbitNet peripheral cards and the Rab­bitNet protocol. Visit our We b sit e for up-to-date information about additional add-ons and features as they become available.
BL4S200 User’s Manual 10

1.5 CE Compliance

Equipment is generally divided into two classes.
CLASS A CLASS B
Digital equipment meant for light industrial use Digital equipment meant for home use
Less restrictive emissions requirement: less than 40 dB µV/m at 10 m (40 dB relative to 1 µV/m) or 300 µV/m
More restrictive emissions requirement: 30 dB µV/m at 10 m or 100 µV/m
These limits apply over the range of 30–230 MHz. The limits are 7 dB higher for frequen­cies above 230 MHz. Although the test range goes to 1 GHz, the emissions from Rabbit­based systems at frequencies above 300 MHz are generally well below background noise levels.
The BL4S200 single-board computer has been tested and was found to be in conformity with the following applicable immunity and emission standards. The BL4S210, BL5S220, and BL4S230 single-board computers are also CE qualified as they are sub-versions of the BL4S200 single-board computer. Boards that are CE-compliant have the CE mark.
Immunity
The BL4S200 series of single-board computers meets the following EN55024/1998 immunity standards.
EN61000-4-3 (Radiated Immunity)
EN61000-4-4 (EFT)
EN61000-4-6 (Conducted Immunity)
Additional shielding or filtering may be required for a heavy industrial environment.
Emissions
The BL4S200 series of single-board computers meets the following emission standards.
EN55022:1998 Class B
FCC Part 15 Class B
Your results may vary, depending on your application, so additional shielding or filtering may be needed to maintain the Class B emission qualification.
BL4S200 User’s Manual 11

1.5.1 Design Guidelines

Note the following requirements for incorporating the BL4S200 series of single-board computers into your application to comply with CE requirements.
General
The power supply provided with the Tool Kit is for development purposes only. It is the
customer’s responsibility to provide a CE-compliant power supply for the end-product application.
When connecting the BL4S200 single-board computer to outdoor cables, the customer
is responsible for providing CE-approved surge/lighting protection.
Rabbit recommends placing digital I/O or analog cables that are 3 m or longer in a
metal conduit to assist in maintaining CE compliance and to conform to good cable design practices.
When installing or servicing the BL4S200, it is the responsibility of the end-user to use
proper ESD precautions to prevent ESD damage to the BL4S200.
Safety
All inputs and outputs to and from the BL4S200 series of single-board computers must
not be connected to voltages exceeding SELV levels (42.4 V AC peak, or 60 V DC).
The lithium backup battery circuit on the BL4S200 single-board computer has been
designed to protect the battery from hazardous conditions such as reverse charging and excessive current flows. Do not disable the safety features of the design.

1.5.2 Interfacing the BL4S200 to Other Devices

Since the BL4S200 series of single-board computers is designed to be connected to other devices, good EMC practices should be followed to ensure compliance. CE compliance is ultimately the responsibility of the integrator. Additional information, tips, and technical assistance are available from your authorized Rabbit distributor, and are also available on our Web site at www.rabbit.com.
BL4S200 User’s Manual 12

1.6 Wi-Fi Certifications (BL5S220 Model only)

The systems integrator and the end-user are ultimately responsible for the channel range and power limits complying with the regulatory requirements of the country 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 RCM5400W modules bearing the FCC certification are certified for use in Wi-Fi enabled end devices associated with the BL5S220 model, and any applications must have been compiled using Dynamic C v. 10.40 or later. The certification is valid only for RCM5400W 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). 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 RCM5400W
module is removed.

1.6.1 FCC Part 15 Class B

The RCM5400W RabbitCore 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.
BL4S200 User’s Manual 13
Labeling Requirements (FCC 15.19)
FCC ID: VCB-E59C4472
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 installed 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: VCB-E59C4472” or “Contains FCC ID: VCB-E59C4472.” Any similar wording that expresses the same meaning may be used.
The following caption must be included with documentation for any device incorporating the RCM5400W RabbitCore 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.6.2 Industry Canada Labeling

7143A-E59C4472
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.
BL4S200 User’s Manual 14

1.6.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 safety 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 Marking
The equipment shall be marked, where applicable, in accordance with CEPT/ERC Rec­ommendation 70-03 or Directive 1999/5/EC, whichever is applicable. Where this is not applicable, the equipment shall be marked in accordance with the National Regulatory requirements.
BL4S200 User’s Manual 15

2. GETTING STARTED

RESET
S1
S2
R
1
CORE +3.3 V
DS1
DS2
J9
J10
J11
J12
J8
J7
J6
J5
J4
J3
J2
J1
RCM1
R7
R8
R9
R10
C63
JP4
JP5
JP6
JP3
C62
C47
JP7
RS485
JP9
JP8
KB
+5 V
GND+3.3 v
KA
+5 V
GND+3.3 V
C52
C55
C57
C61
C56
C60
C50
C51
C49
C59
C54
C48 C53
C58
U7
C38
C39
C
40
C21
C27
C33
C17 C19 C25
C
14
R4
R2
C12
C13 U5
U6
C16
C41
C42
C
43
C23
C29
C35
C22
C28
C34
U8
C44
C45
C46
C24
C30
C36
R117
RP1
U4
C37
RP2
R5
R121
L2 L3
BT1
C31
C32
U3
C15
C10
U2
C11
C9
C8
U1
R116
R3
R118
C18 C20
C26
JP1
JP2
D2
D3
L1
D4
C1
C2
C3
C4
C6
TERMTE
R
M
K
C
+5 V
GN
D
+3.3 V
KD
+5 V
G
ND
+3.3 V
CAUTION! HOT!
CAUTION! HOT!
D6 D5 D8 D7
D9
C5
C7
D10
DS4
DS3
R6
BOARD
+3.3 V
POWER
IN
RNET PWR
4
1
7
14
8
R13
R12
R11
6
10
5
6
10
5
6
10
5
2
4
3
6
10
5
D1
6
10
5
6
10
5
610
5
Battery
D56
D57
D58
D59
D60
RabbitCore
Module
J1
R1
R2
R19
R3
R4
C3
L1
C1
C2
Y1
4
1
3
R16
R17
C4
C8
C5
C6
C7
R20
U2
R21
R22
R23
C13
C12
L2
C10
JP15
C21
U7
R38
J2
R37
R36
C22
DS1
LINK
SPEED
FD
X
DS3
DS2
R39
R40
R41
R35
C23
R34
U6
R33
R31
R32
D1
R66
C14
C11
C9
R7
R6
DS4
R42
J3
U18
R65
R67
R64
R29
R68
R69
R30
R24
C15 C16 R28 R27 R26
R25
C20
U5
JP12
JP13
JP14
R71
R70
R5
JP1
JP2
R72
JP3
JP4
JP5
JP6
JP7
JP8
JP9
JP10
JP11
U3
R8
R9
Q2
Q3
C91
C93
U1
R10
R11
R13
R12
R14
R15
C17
C18
C19
C92
C90
Chapter 2 explains how to connect the programming cable and power supply to the BL4S200.

2.1 Preparing the BL4S200 for Development

Position the BL4S200 as shown below in Figure 2. Attach the four stand-offs supplied with the Tool Kit in the holes at the corners as shown.
Figure 2. Attach Stand-Offs to BL4S200 Board
The stand-offs facilitate handling the BL4S200 during development, and protect the bot­tom of the printed circuit board against scratches or short circuits while you are working with the BL4S200.
NOTE: If you ever need to remove the RabbitCore module, take care to keep the BL4S200
main boards and their corresponding RabbitCore modules paired since the RabbitCore modules store calibration constants specific to the BL4S200 main board to which they are plugged in. If you use a RabbitCore module from a different model in the BL4S200 series, your specific BL4S200 model may no longer operate as designed.
BL4S200 User’s Manual 16

2.2 BL4S200 Connections

RESET
S1
S2
R1
CORE +3.3 V
DS1
DS2
J9
J10
J11
J12
J8
J7
J6
J5
J4
J3
J2
J1
RCM1
R7
R8
R9
R10
C63
JP4
JP5
JP6
JP3
C62
C47
JP7
RS485
JP9
JP8
KB
+5 V
GND
+3.3 v
KA
+5 V
GND
+3.3 V
C52 C55
C57 C61
C56 C60
C50
C51
C49 C59 C54
C48 C53 C58
U7
C38
C39
C40
C21 C27 C33
C17 C19 C25
C14
R4
R2
C12
C13 U5
U6
C16
C41
C42
C43
C23 C29
C35
C22 C28 C34
U8
C44
C45
C46
C24 C30 C36
R117
RP1
U4
C37
RP2
R5
R121
L2 L3
BT1
C31
C32
U3
C15
C10
U2
C11
C9
C8
U1
R116 R3
R118
C18 C20 C26
JP1
JP2
D2
D3
L1
D4
C1 C2 C3
C4
C6
TERM
TERM
KC
+5 V
GND
+3.3 V
KD
+5 V
GND
+3.3 V
CAUTION! HOT!
CAUTION! HOT!
D6 D5 D8 D7
D9
C5
C7
D10
DS4
DS3
R6
BOARD
+3.3 V
POWER
IN
RNET PWR
4
1
7
14
8
R13
R12
R11
6
10
5
6
10
5
6
10
5
2
4
3
6
10
5
D1
6
10
5
6
10
5
610
5
Battery
D56
D57
D58
D59
D60
J1
R1 R2
R19
R3
R4
C3
L1
C1
C2
Y1
4
1
3
R16
R17
C4
C8
C5
C6
C7
R20
U2
R21
R22
R23
C13
C12
L2
C10
JP15
C21
U7
R38
J2
R37
R36
C22
DS1
LINK
SPEED
FDX
DS3
DS2
R39
R40
R41
R35
C23
R34
U6
R33
R31
R32
D1
R66
C14
C11
C9
R7
R6
DS4
R42
J3
U18
R65
R67
R64
R29
R68
R69
R30
R24
C15 C16 R28 R27 R26
R25
C20
U5
JP12
JP13
JP14
R71
R70
R5
JP1
JP2
R72
JP3
JP4 JP5
JP6
JP7
JP8
JP9
JP10
JP11
U3
R8
R9
Q2
Q3
C91 C93
U1
R10
R11
R13
R12
R14
R15
C17
C18
C19
C92 C90
Colored
edge
To
PC USB port
PROG
DIAG
Programming
Cable
PROG
J1
1. Connect the programming cable to download programs from your PC and to program and debug the BL4S200.
Connect the 10-pin PROG connector of the programming cable to header J1 on the BL4S200’s RabbitCore module (the programming header is labeled J2 on the BL5S220 and BL4S230 models). Ensure that the colored edge lines up with pin 1 as shown. (Do not use the DIAG connector, which is used for monitoring only.) Connect the other end of the programming cable to an available USB port on your PC or workstation.
Connect the other end of the programming cable to an available USB port on your PC or workstation.
Your PC should recognize the new USB hardware, and the LEDs in the shrink-wrapped area of the USB programming cable will flash — if you get an error message, you will have to install USB drivers. Drivers for Windows XP are available in the Dynamic C
Drivers\Rabbit USB Programming Cable\WinXP_2K folder — double-click DPInst.exe to install the USB drivers. Drivers for other operating systems are available
online at www.ftdichip.com/Drivers/VCP.htm.
BL4S200 User’s Manual 17
Figure 3. Programming Cable Connections
NOTE: Never disconnect the programming cable by pulling on the ribbon cable.
Carefully pull on the connector to remove it from the header.
2. Connect the power supply to header J5 on the BL4S200 as shown in Figure 4. Be sure to match the latch mechanism with the top of the connector to header J5 on the BL4S200 as shown. The Micro-Fit® connector will only fit one way.
Figure 4. Power Supply Connections
3. Apply power.
Once all the other connections have been made, you may connect power to the BL4S200.
First, prepare the AC adapter for the country where it will be used by selecting the plug. The Tool 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 4, then press down on the spring-loaded clip below the plug assembly to allow the plug assembly to click into place. Release the clip to secure the plug assembly in the AC adapter.
Plug in the AC adapter. The red LED next to the power connector at J5 should light up. The BL4S200 is now ready to be used.
CAUTION: Unplug the power supply while you make or otherwise work with the connections
to the headers. This will protect your BL4S200 from inadvertent shorts or power spikes.

2.2.1 Hardware Reset

A hardware reset is done by unplugging the power supply, then plugging it back in, or by pressing the RESET button located just below the RabbitCore module.
BL4S200 User’s Manual 18

2.3 Installing Dynamic C

If you have not yet installed Dynamic C version 10.42 (or a later version), do so now by inserting the Dynamic C CD from the BL4S200 Tool 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.
NOTE: If you have an earlier version of Dynamic C already installed, the default instal-
lation of the later version will be in a different folder, and a separate icon will appear on your desktop.
The online documentation is installed along with Dynamic C, and an icon for the docu­mentation menu is placed on the workstation’s desktop. Double-click this icon to reach the menu. If the icon is missing, create a new desktop icon that points to default.htm in the
docs folder, found in the Dynamic C installation folder. The latest versions of all docu-
ments are always available for free, unregistered download from our Web sites as well.
The Dynamic C User’s Manual provides detailed instructions for the installation of Dynamic C and any future upgrades.
Once your installation is complete, you will have up to three icons on your PC desktop. One icon is for Dynamic C, one 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 directory where Dynamic C was installed.
BL4S200 User’s Manual 19

2.4 Starting Dynamic C

Once the BL4S200 is connected to your PC and to a power source, start Dynamic C by double-clicking on the Dynamic C icon on your desktop or in your Start menu. Select
Store Program in Flash on the “Compiler” tab in the Dynamic C Options > Project Options Serial Converter
menu. Then click on the “Communications” tab and verify that Use USB to
is selected to support the USB programming cable. Click OK.
You may have to select the COM port assigned to the USB programming cable on your PC. In Dynamic C, select Options > Project Options, then select this COM port on the “Communications” tab, then click 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.

2.5 Run a Sample Program

You are now ready to test your set-up by running a sample program.
Use the File menu to open the sample program PONG.C, which is in the Dynamic C
SAMPLES folder. Press function key F9 to compile and run the program. The STDIO
window will open on your PC and will display a small square bouncing around in a box.
This program shows that the CPU is working. The sample program described in Section 5.2.3, “Run the PINGME.C Demo,” tests the TCP/IP portion of the board.

2.5.1 Troubleshooting

If you receive the message No Rabbit Processor Detected, the programming cable may be connected to the wrong COM port, a connection may be faulty, or the target sys­tem may not be powered up. First, check to see that the red power LED next to header J5 is lit. If the LED is lit, check both ends of the programming cable to ensure that it is firmly plugged into the PC and the programming header on the BL4S200 with the marked (col­ored) edge of the programming cable towards pin 1 of the programming header. Ensure that the module is firmly and correctly installed in its connectors on the BL4S200 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 Options 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
Options > Project Options menu. Choose a lower debug baud rate. Click OK to save.
Serial Options dialog on the “Communications” tab in the Dynamic C
Press <Ctrl-Y> to force Dynamic C to recompile the BIOS. You should receive a Bios
compiled successfully
BL4S200 User’s Manual 20
message once this step is completed successfully.

2.6 Run a Wi-Fi Sample Program (BL5S220 only)

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 as 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.
BL4S200 User’s Manual 21

2.7 Run a ZigBee Sample Program (BL4S230 only)

Waiting to join network... done Cmd - Description ===================== ATCH - Read the current channel. Will be zero if we are not associated with a network. ATID - Set or read the current PAN ID. If you set the ID you must write it to non-volitile memory ("WR") and then reset the network software ("NR"). ATOP - Read the operating PAN ID. ATMY - Read the current network address. Will be 0xFFFE if we are not associated with a network. ATSH - Read the upper four bytes of the radio IEEE address. ATSL - Read the lower four bytes of the radio IEEE address. ATNI - Set or read the Node Identifier. ATBH - Set or read the maximum number of Broadcast Hops. ATNT - Set or read the Node Discovery timeout value (in 0.1s). ATSC - Set or read the list of channels to scan. This value is a bit-field list. ATSD - Set or read the channel scan duration value. ATNJ - Set or read the Node Joining Time value. ATAI - Read the Association Indicator. A zero value means we are associated with a network. ATPL - Set or read the transmission power level. ATVR - Read the radio software version number. ATHV - Read the radio hardware version number.
MENU - Display this menu (not an AT command.)
Valid command formats (AT prefix is optional, CC is command):
[AT]CC 0xXXXXXX (where XXXXXX is an even number of hexidecimal characters) [AT]CC YYYY (where YYYY is an integer, up to 32 bits) [AT]NI "Node ID String" (where quotes contain string data)
Enter AT Command:
This section explains how to run a sample program in which the BL4S230 is used in its default setup as a router and the Digi® XBee USB is used as the ZigBee coordinator.
®
1. Connect the Digi on your PC or workstation. Your PC should recognize the new USB hardware.
XBee USB acting as a ZigBee coordinator to an available USB port
2. Find the file
AT_INTERACTIVE.C, which is in the Dynamic C SAMPLES\XBee folder.
To run the program, open it with the File menu, then compile and run it by pressing F9. The Dynamic C STDIO window will open to display a list of AT commands. Type
MENU to redisplay the menu of commands.
Appendix F provides additional configuration information if you experience conflicts while doing development simultaneously with more than one ZigBee coordinator, or if you wish to upload new firmware.
BL4S200 User’s Manual 22

2.8 Where Do I Go From Here?

NOTE: If you purchased your BL4S200 through a distributor or Rabbit partner, contact
the distributor or partner first for technical support.
If there are any problems at this point:
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/.
If the sample program ran fine, you are now ready to go on to explore other BL4S200 features and develop your own applications.
When you start to develop your application, run USERBLOCK_READ_WRITE.C in the
SAMPLES\UserBlock folder to save the factory calibration constants before you run any
other sample programs in case you inadvertently write over them while running another sample program.
Chapter 3, “Subsystems,” provides a description of the BL4S200’s features, Chapter 4, “Software,” describes the Dynamic C software libraries and introduces some sample programs, and Chapter 5, “Using the Ethernet TCP/IP Features,” explains the TCP/IP fea­tures.
BL4S200 User’s Manual 23

3. SUBSYSTEMS

SRAM
microSD
Card
Program
Flash
SRAM
Network
32 kHz
osc
58.98 MHz osc
optional
RabbitCore Module
Battery-Backup
Circuit
RABBIT 4000/5000
D/A
Converter
A/D
Converter
RabbitNet
RS-485
RS-232
Data
Register
High-Current
Outputs
Data
Register
Congurable
I/O
RABBIT
RIO
x3
Chapter 3 describes the principal subsystems for the BL4S200.
•Digital I/O
• Serial Communication
• A/D Converter Inputs
• D/A Converter Outputs
• Analog Reference Voltages Circuit
• Memory
Figure 5 shows these Rabbit-based subsystems designed into the BL4S200.
BL4S200 User’s Manual 24
Figure 5. BL4S200 Subsystems

3.1 BL4S200 Pinouts

J9
J10
J11
J12
J8
J7
J6
J4
J3
J2
J1
J11
Battery
1
4
5 263
+5 V
GND
GND
+5 V
+RAW
+RAW
RabbitNet
2
RabbitNet
1
4
11
12
5136
AGND
AOUT0
AIN0
AIN2
AGND
AIN5
AIN7
AOUT1
AGND
AIN1
AIN3
AIN4
AIN6
AGND
1
8
9 2103
7
14
Analog
I/O
2
7
8 394
n.c.
485+
GND
PD3_RXF *
PD7_RXE *
GND
485
GND
PD2_TXF *
PD6_TXE *
6 1
5
10
RS-485 RS-232
2
7
8 394
6 1
5
10
GND
DIO1
DIO3
DIO5
DIO7
+KA
DIO0
DIO2
DIO4
DIO6
General­Purpose
I/O
2
7
8 394
+KB
DIO8
DIO10
DIO12
DIO14
GND
DIO9
DIO11
DIO13
DIO15
6 1
5
10
General­Purpose
I/O
J5
+K2
HOUT6
n.c.
+K2
HOUT4
GND
HOUT7
n.c.
GND
HOUT5
2
7
8 394
6
1
5
10
High­Current Outputs
+K1
HOUT2
n.c.
+K1
HOUT0
GND
HOUT3
n.c.
GND
HOUT1
2
7
8 394
6
1
5
10
High­Current
Outputs
+KD
DIO24
DIO26
DIO28
DIO30
GND
DIO25
DIO27
DIO29
DIO31
2
7
8 394
6
1
5
10
General­Purpose
I/O
+KC
DIO16
DIO18
DIO20
DIO22
GND
DIO17
DIO19
DIO21
DIO23
2
7
8 394
6 1
5
10
General­Purpose
I/O
1
3
4 2
n.c.
GND
n.c.
+RAW
2
7
8 394
n.c.
485+
GND
PC5_RXB
GND
485
GND
PC4_TXB
6 1
5
10
Serial Ports E and F are not available on BL4S210
*
BL4S210
RabbitNet
Power
Supply
Power
Supply
J1
R1
R2
R19
R3
R4 C3
L1
C1
C2
Y1
4
1
3
R16
R17
C4
C8
C5
C6
C7
R20
U2
R21
R22
R23
C13
C12
L2
C10
JP15
C21
U7
R38
J2
R37
R36
C22
DS1
LINK
SPEED
FDX
DS3
DS2
R39
R40
R41
R35
C23
R34
U6
R33
R31
R32
D1
R66
C14
C11
C9
R7
R6
DS4
R42
J3
U18
R65
R67
R64
R29
R68 R69
R30
R24
C15 C16 R28 R27 R26
R25
C20
U5
JP12
JP13
JP14
R71
R70
R5 JP1
JP2
R72
JP3
JP4
JP5
JP6
JP7
JP8
JP9
JP10
JP11
U3
R8
R9
Q2
Q3
C91
C93
U1
R10 R11 R13 R12 R14 R15 C17 C18 C19
C92
C90
The BL4S200 pinouts are shown in Figure 6.
Figure 6. BL4S200 Pinouts
BL4S200 User’s Manual 25

3.1.1 Connectors

Standard BL4S200 models are equipped with seven polarized 2 × 5 Micro-Fit® connectors (J1–J4 and J9–J11), one polarized 2 × 7 Micro-Fit® connector (J12), and one polarized 2 × 3 connector at J7 to supply power (DCIN and +5 V) to up to two RabbitNet periph-
®
eral expansion boards. The polarized 2 × 2 Micro-Fit
connector at J5 is for the main
power supply connections.
The RJ-45 jacks at J6 and J8 labeled RabbitNet are serial I/O expansion ports for use with RabbitNet peripheral expansion boards. The RabbitNet jacks do not support Ethernet con­nections. Be careful to make your Ethernet connection to the Ethernet jack on the Rab­bitCore module (note that the wireless BL5S220 and BL4S230 models do not have an Ethernet port).
Table 2 lists Molex connector part numbers for the crimp terminals, and housings needed to assemble male Micro-Fit
®
connector assemblies for use with their female counterparts on
the BL4S200.
Table 2. Male Micro-Fit® Connector Parts
Micro-Fit®
Connector
3 mm 2 × 2 J5 0430250400
3 mm 2 × 3 J7 0430250600
3 mm 2 × 5 J1–J4, J9–J11 0430251000
3 mm 2 × 7 J12 0430251400
Used with
BL4S200
connectors
Molex Housing
Part Number
Molex
Crimp Terminals
0430300001 (bronze contacts)
0430300007 (tin/brass contacts)
BL4S200 User’s Manual 26

3.2 Digital I/O

100 kW
27 kW
+5 V
+Kx
SINKING OUTPUT
27 kW
470 W
DIGITAL
INPUT
DIO0DIO31
Factory Default setting
+Kx
GND
+3.3 V
Sinking Output
setting
+5 V
+Kx
Rabbit® RIO

3.2.1 Configurable I/O

3.2.1.1 Digital Inputs
The BL4S200 has 32 configurable I/O, DIO0–DIO31, each of which may be configured individually in software as either digital inputs or as sinking digital outputs. By default, a configurable I/O channel is a digital input, but may be set as a sinking digital output by using the setDigOut() function call. The inputs are factory-configured to be pulled up to +5 V, but they can also be pulled up to +K or DCIN, or pulled down to 0 V in banks by changing a jumper as shown in Figure 7.
CAUTION: Do not simultaneously jumper more than one setting on a particular jumper header (JP9, JP8, JP1, and JP2) when configuring a bank of configurable I/O.
BL4S200 User’s Manual 27
Figure 7. BL4S200 Configurable I/O DIO0–DIO31
Table 3 lists the banks of configurable I/O and summarizes the jumper settings.
+40 V
+36 V
+3.3 V
5 V
Normal Switching
Levels
Spikes
Digital Input Voltage
Spikes
Spikes
Table 3. Banks of BL4S200 Digital Inputs
Digital Inputs
Configuration
Header
Pins Jumpered Pulled Up/Pulled Down
DIO0–DIO7 JP9 1–2 Inputs pulled up to +Kx
DIO8–DIO15 JP8 3–4 Inputs pulled up to +5 V
DIO16–DIO23 JP1 5–6 Inputs pulled down to GND
DIO24–DIO31 JP2 7–8 Inputs pulled up to + 3.3 V
The actual switching threshold is approximately
1.40 V. Anything below this value is a logic 0, and anything above 1.90 V is a logic 1. The con­figurable I/O are each fully protected over a range of 0 V to +36 V, and can handle short spikes from -5 V to +40 V.
NOTE: If the inputs are pulled up to +Kx, the
voltage range over which the digital inputs are protected changes to 5 V - Kx to +36 V.
Figure 8. BL4S200 Digital Input
Protected Range
CAUTION: Do not allow the voltage on a configurable I/O pin to exceed +Kx to avoid damaging the input.
BL4S200 User’s Manual 28
3.2.1.2 Sinking Digital Outputs
Sinking Output
setting
+5 V
+Kx
DIO0DIO31
LOAD
(200 mA
max.)
+Kx
GND
When you configure a configurable I/O pin as a sinking output, be sure to con­nect an external voltage source up to 36 V DC across the corresponding +Kx and GND on connector J1, J2, J9, or J10, and set the pullup jumper on the corresponding JP1/JP2/JP8/JP9 header to +Kx.
Table 4 lists the banks of configurable I/O and the corresponding +Kx.
Figure 9. Load and +K Power Supply
Connections for Sinking Digital Output
Table 4. BL4S200 Sinking Outputs
Digital Inputs +Kx
DIO0–DIO7 KA on J10 JP9 1–2 I/O pulled up to +Kx
DIO8–DIO15 KB on J9 JP8 3–4
DIO16–DIO23 KC on J1 JP1 5–6
DIO24–DIO31 KD on J2 JP2 7–8
Configuration
Header
Pins
Jumpered
Pulled Up/Pulled Down
Do not use these options for a
sinking output.
CAUTION: Do not simultaneously jumper more than one setting on a particular jumper header (JP9, JP8, JP1, and JP2) when configuring a bank of configurable I/O.
CAUTION: Do not allow the voltage on a configurable I/O pin to exceed +Kx to avoid damaging the input.
BL4S200 User’s Manual 29
3.2.1.3 Configurable I/O Special Uses
Individual configurable I/O pins may be used for interrupts, input capture, as quadrature decoders, or as PWM outputs. The use of these channels for PWM, interrupts, input cap­ture, and as quadrature decoders is described in the Rabbit RIO User’s Manual.
Blocks of configurable I/O pins are associated with counters/timers on the three Rabbit RIO chips that support them. Table 5 provides complete details for these associations.
Table 5. Counter/Timer Associations for BL4S200 Configurable I/O Pins
Configurable I/O
Pin(s)
DIO0–DIO3
DIO4–DIO7
DIO8–DIO11
DIO12–DIO15
DIO16–DIO17 0 (I/O) 2 (U9)
DIO18–DIO19 1 (I/O) 2 (U9)
DIO20–DIO21 2 (I/O) 2 (U9)
DIO22–DIO23 3 (I/O) 2 (U9)
DIO24–DIO25 4 (I/O) 2 (U9)
DIO26–DIO27 5 (I/O) 2 (U9)
DIO28
Counter/Timer
Blocks
4 (outputs)
5 (inputs)
0 (outputs)
1 (inputs)
2 (outputs)
3 (inputs)
4 (outputs)
5 (inputs)
6 (output)
7 (input)
RIO Chip Index
0 (U8)
1 (U7)
1 (U7)
1 (U7)
0 (U8)
DIO29
DIO30 6 (input only) 2 (U9)
DIO31 7 (input only) 2 (U9)
6 (output)
7 (input)
1 (U7)
Configurable I/O pins DIO30 and DIO31 fully support all input-associated special uses such as interrupts and input captures, but otherwise they are limited to function only as regular digital I/O pins because their outputs are latch-driven since sufficient Rabbit RIO resources are not available to support their use for specialized outputs.
Appendix D provides further details on the blocks and pins associated with each Rabbit RIO chip to facilitate configuring each block consistently and to identify misconfigured pins when a software function call returns a Mode Conflict error code.
BL4S200 User’s Manual 30
Loading...
+ 183 hidden pages