Rabbit Coyote BL2500 User Manual - Able

Manual is about: C-Programmable, with Ethernet

Summary of Coyote BL2500

  • Page 1

    Coyote (bl2500) c-programmable single-board computer with ethernet user’s manual 019–0120_m.

  • Page 2

    Coyote (bl2500) digi international inc. Www.Rabbit.Com bl2500 user’s manual part number 019-0120 • printed in u.S.A. ©2002–2010 digi international inc. • all rights reserved. Digi international reserves the right to make changes and improvements to its products without providing notice. Trademarks r...

  • Page 3: Able

    User’s manual t able of c ontents chapter 1. Introduction 1 1.1 features .................................................................................................................................................1 1.1.1 oem versions.................................................................

  • Page 4

    Coyote (bl2500) chapter 4. Software 37 4.1 running dynamic c........................................................................................................................... 37 4.1.1 upgrading dynamic c...........................................................................................

  • Page 5

    User’s manual appendix d. Rabbitnet 85 d.1 general rabbitnet description..........................................................................................................85 d.1.1 rabbitnet connections ..............................................................................................

  • Page 6

    Coyote (bl2500).

  • Page 7: 1.  I

    User’s manual 1 1. I ntroduction the coyote single-board computer gives oem designers extremely low-cost embedded control for high-volume applica- tions. Two standard models—one with ethernet, one without— feature the rabbit ® 3000 microprocessor running at 29.4 mhz, with standard 256k flash and 128...

  • Page 8

    2 coyote (bl2500) two bl2500 models are available. Their standard features are summarized in table 1. The bl2500 consists of a main board with a rabbitcore module. Refer to the rabbitcore module manuals, available on rabbit’s web site , for more information on the rabbitcore modules, including their...

  • Page 9

    User’s manual 3 1.2 development and evaluation tools 1.2.1 development kit a development kit contains the hardware essentials you will need to use your bl2500/oem2500. The items in the development kit and their use are as follows. • bl2500 single-board computer. • getting started instructions. • dyn...

  • Page 10

    4 coyote (bl2500) 1.2.2 software the coyote is programmed using version 7.33 or later of rabbit’s dynamic c. A compatible version is included on the development kit cd-rom. Web-based technical support is included at no extra charge. Dynamic c v. 9.60 includes the popular µc/os-ii real-time operating...

  • Page 11

    User’s manual 5 1.2.4 din rail mounting the coyote may be mounted in 100 mm din rail trays as shown in figure 2. Figure 2. Mounting coyote in din rail trays din rail trays are typically mounted on din rails with “feet.” table 2 lists phoenix contact part numbers for the din rail trays, rails, and fe...

  • Page 12

    6 coyote (bl2500) 1.3 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. The coyote has two rabbitnet ports, each of which can support one...

  • Page 13

    User’s manual 7 1.4 ce compliance equipment is generally divided into two classes. 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...

  • Page 14

    8 coyote (bl2500) 1.4.1 design guidelines note the following requirements for incorporating the bl2500 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 r...

  • Page 15: 2.  G

    User’s manual 9 2. G etting s tarted chapter 2 explains how to connect the programming cable and power supply to the bl2500. 2.1 preparing the bl2500 for development position the bl2500 as shown below in figure 3. Attach the four nylon 4-40 × ¼ machine screws and nuts supplied with the development k...

  • Page 16

    10 coyote (bl2500) 2.2 bl2500 connections 1. Connect the programming cable to download programs from your pc and to program and debug the bl2500. Note: use only the programming cable that has a red shrink wrap around the rs-232 level converter (part no. 20-101-0513). If you are using a bl2500 with t...

  • Page 17

    User’s manual 11 2. When all other connections have been made, you can connect power to the bl2500. Connect the ac adapter to header j2 on the bl2500 as shown in figure 5. Match the friction lock tab on the friction-lock connector to the back of header j2 on the bl2500 as shown. The friction-lock co...

  • Page 18

    12 coyote (bl2500) 3. Apply power. Plug in the ac adapter. Caution: unplug the power supply while you make or otherwise work with the connections to the headers. This will protect your bl2500 from inadvertent shorts or power spikes. 2.2.1 hardware reset a hardware reset is done by unplugging the ac ...

  • Page 19

    User’s manual 13 2.3 installing dynamic c if you have not yet installed dynamic c version 7.33 (or a later version), do so now by inserting the dynamic c cd from the bl2500/oem2500 development kit in your pc’s cd-rom drive. The cd will auto-install unless you have disabled auto-install on your pc. I...

  • Page 20

    14 coyote (bl2500) 2.4 starting dynamic c once the bl2500 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 . Dynamic c defaults to using the serial port on your pc that you specified during installa- tion. I...

  • Page 21

    User’s manual 15 2.5 pong.C you are now ready to test your set-up by running a sample program. Find the file pong.C , which is in the dynamic c samples folder. To run the program, open it with the file menu (if it is not still open), compile it using the compile menu, and then run it by selecting ru...

  • Page 22

    16 coyote (bl2500) 2.7 using the coyote in high-vibration environments if you plan to use your coyote in a high-vibration environment, the rabbitcore module may be secured more solidly to a swage on the coyote main board using a 2-56 × ¼" machine screw as shown in figure 7. Figure 7. Secure rabbitco...

  • Page 23: 3.  S

    User’s manual 17 3. S ubsystems chapter 3 describes the principal subsystems for the coyote. • digital i/o • analog features • serial communication • memory figure 8 shows these rabbit-based subsystems designed into the coyote. Figure 8. Coyote subsystems the memory and microprocessor are located on...

  • Page 24

    18 coyote (bl2500) 3.1 coyote pinouts the coyote pinouts are shown in figure 9. Figure 9. Coyote pinouts caution battery y1 jp1 jp2 jp3 jp4 act lnk j4 gnd c3 r4 r5 c4 c7 c6 c10 c12 c16 u2 c9 c1 1 c15 c20 j3 c41 c44 ds2 ds1 y3 c42 c38 y2 u9 q1 d1 c33 r29 r28 c22 r32 c24 r33 u5 r14 r18 r19 c13 r1 1 r1...

  • Page 25

    User’s manual 19 3.1.1 headers standard coyote models are equipped with five 1 × 10 friction-lock connector terminals (j1, j3, j9, j11, and j12) where pin 9 is removed to polarize the connector terminals, a 2 × 5 rs-232 signal header, a 2 × 5 programming header, and an rj-45 ethernet jack on the rab...

  • Page 26

    20 coyote (bl2500) 3.2 indicators 3.2.1 leds the coyote’s rabbitcore module has two leds next to the rj-45 ethernet jack, one to indicate an ethernet link ( lnk ) and one to indicate ethernet activity ( act ). User-programmable leds driven by the rabbit 3000 • ds1—pb6 (yellow), • ds2—pb7 (red), • ds...

  • Page 27

    User’s manual 21 3.3 digital i/o 3.3.1 digital inputs the coyote has 16 digital inputs, in00–in15. In00–in13 and in15 are each protected over a range of –36 v to +36 v, and in14 is protected over a range of –36 v to +5 v. The inputs are factory-configured to be pulled up to +3.3 v; in00–in07 can als...

  • Page 28

    22 coyote (bl2500) 3.3.2 digital outputs the coyote has eight digital outputs, out0–out7, each of which can sink up to 200 ma. Figure 12 shows a wiring diagram for using the digital outputs in a sinking configuration. Figure 12. Coyote digital outputs +k is an externally supplied voltage of 3.3–40 v...

  • Page 29

    User’s manual 23 3.4 analog features 3.4.1 a/d converter the a/d converter, shown in figure 13, compares the da0 voltage to ad0, the voltage presented to the a/d converter. Da0 therefore cannot be used for the d/a converter when the a/d converter is being used. Figure 13. Schematic diagram of a/d co...

  • Page 30

    24 coyote (bl2500) pb2 can be imagined to be a “da0 voltage is too low” indicator. If da0 is smaller than the analog voltage presented at ad0, then pb2 will be true (high). If this happens, the pro- gram will need to raise the da0 voltage. The a/d converter has no reference voltage. There is a relat...

  • Page 31

    User’s manual 25 pulse-width modulation (pwm) is used for the d/a conversion. The digital signal, which is either 0 v or 3.3 v, will be a train of pulses. This means that if the signal is taken to be usually at 0 v (or ground), the pulses will be some 3.3 v pulses of varying width. The voltage will ...

  • Page 32

    26 coyote (bl2500) based on the standard capacitor discharge formula, this means that the maximum voltage change will be this is a ripple of approximately 6 mv peak-to-peak. Table 4 lists typical uncalibrated da0 or da1 voltages measured for various duty cycle values with a load larger than 1 m . T...

  • Page 33

    User’s manual 27 3.5 serial communication the coyote has two rs-232 serial ports, which can be configured as one rs-232 serial channel (with rts/cts) or as two rs-232 (3-wire) channels. The coyote also has one rs- 485 serial channel, one clocked cmos serial channel, and two spi serial ports with rs-...

  • Page 34

    28 coyote (bl2500) 3.5.1 rs-232 the coyote rs-232 serial communication is supported by an rs-232 transceiver. This transceiver provides the voltage output, slew rate, and input voltage immunity required to meet the rs-232 serial communication protocol. Basically, the chip translates the rabbit 3000’...

  • Page 35

    User’s manual 29 3.5.2 rs-485 the coyote has one rs-485 serial channel, which is connected to the rabbit 3000 serial port d through an rs-485 transceiver. The half-duplex communication uses pa4 to con- trol the transmit enable on the communication line. Using this scheme a strict master/slave relati...

  • Page 36

    30 coyote (bl2500) the coyote comes with a 220  termination resistor and two 681  bias resistors installed and enabled. The load these bias and termination resistors present to the rs-485 transceiver limits the number of coyotes in a multidrop network to one master and nine slaves, unless the bias...

  • Page 37

    User’s manual 31 3.5.3 programming port the coyote’s serial programming port is accessed via the 10-pin programming header on the rabbitcore module or over an ethernet connection via the rabbitlink eg2110. The programming port uses the rabbit 3000’s serial port a for communication. Dynamic c uses th...

  • Page 38

    32 coyote (bl2500) 3.5.5 ethernet port figure 17 shows the pinout for the rj-45 ethernet port (header j4 on the rabbitcore mod- ule). Note that some ethernet connectors are numbered in reverse to the order used here. Figure 17. Rj-45 ethernet port pinout two leds are placed next to the rj-45 etherne...

  • Page 39

    User’s manual 33 3.6 serial programming cable the programming cable is used to connect the serial programming port of the coyote to a pc serial com port. The programming cable converts the rs-232 voltage levels used by the pc serial port to the cmos voltage levels used by the rabbit 3000. When the p...

  • Page 40

    34 coyote (bl2500) 3.7 other hardware 3.7.1 clock doubler the coyote takes advantage of the rabbit 3000 microprocessor’s internal clock doubler. A built-in clock doubler allows half-frequency crystals to be used to reduce radiated emissions. The 29.4 mhz frequency specified for the coyote is generat...

  • Page 41

    User’s manual 35 3.7.2 spectrum spreader the rabbit 3000 features a spectrum spreader, which helps to mitigate emi problems. By default, the spectrum spreader is on automatically, but it may also be turned off or set to a stronger setting. The means for doing so is through a simple configuration mac...

  • Page 42

    36 coyote (bl2500) 3.8 memory 3.8.1 sram the coyote’s rabbitcore module is designed to accept 128k to 512k of sram packaged in an soic case. The standard coyote’s rabbitcore modules come with 128k of sram. 3.8.2 flash memory the coyote is also designed to accept 128k to 512k of flash memory. The sta...

  • Page 43: 4.  S

    User’s manual 37 4. S oftware dynamic c is an integrated development system for writing embedded software. It runs on an ibm-compatible pc and is designed for use with single-board computers and other devices based on the rabbit ® microprocessor. Chapter 4 provides the libraries, function calls, and...

  • Page 44

    38 coyote (bl2500) dynamic c has a number of standard features: • full-feature source and/or assembly-level debugger, no in-circuit emulator required. • royalty-free tcp/ip stack with source code and most common protocols. • hundreds of functions in source-code libraries and sample programs:  excep...

  • Page 45

    User’s manual 39 4.1.1 upgrading dynamic c 4.1.1.1 patches and bug fixes dynamic c patches that focus on bug fixes are available from time to time. Check the web site at www.Rabbit.Com/support/ for the latest patches, workarounds, and bug fixes. The default installation of a patch or bug fix is to i...

  • Page 46

    40 coyote (bl2500) 4.1.2 accessing and downloading dynamic c libraries the libraries needed to run the coyote are available on the cd included with the develop- ment kit, or they may be downloaded from http://www.Rabbit.Com/support/downloads/ on rabbit’s web site. You may need to download upgraded o...

  • Page 47

    User’s manual 41 4.2 sample programs sample programs are provided in the dynamic c samples folder. The sample program pong.C demonstrates the output to the stdio window. The various directories in the samples folder contain specific sample programs that illustrate the use of the correspond- ing dyna...

  • Page 48

    42 coyote (bl2500) • simple3wire.C —demonstrates basic initialization for a simple rs-232 3-wire loop- back displayed in the stdio window. • switchchar.C —this program transmits and then receives an ascii string on serial ports e and f when a switch is pressed. It also displays the serial data recei...

  • Page 49

    User’s manual 43 4.2.6 using system information from the rabbitcore module calibration constants for the a/d converter are stored in the simulated eeprom area of the flash memory. You may find it useful to retrieve the calibration constants and save them for future use, for example, if you should ne...

  • Page 50

    44 coyote (bl2500) 4.3 coyote libraries with dynamic c running, click file > open , and select lib . The following list of dynamic c libraries and library directories will be displayed. Two library directories provide libraries of function calls that are used to develop applications for the coyote. ...

  • Page 51

    User’s manual 45 4.4 coyote function calls 4.4.1 board initialization call this function at the beginning of your program. This function initializes parallel ports a through g for use with the coyote. The ports are initialized according to table a-3. Summary of initialization 1. Rs-485 is not initia...

  • Page 52

    46 coyote (bl2500) 4.4.2 digital i/o sets the state of digital outputs out0–out7, whereout0–out7 are sinking outputs. A run-time error will occur for the following conditions: 1. Channel or value is out of range. 2. Brdinit was not called first. Parameters channel is the digital output channels (0–7...

  • Page 53

    User’s manual 47 reads the state of an input channel (in00–in15). A run-time error will occur for the following conditions: 1. Channel out of range. 2. Brdinit was not executed before executing digin . Parameter channel is the input channel number (0–15) return value the logic state of the input (0 ...

  • Page 54

    48 coyote (bl2500) 4.4.3 leds led on/off control. Parameters led is the led to control 0 = led ds1 1 = led ds2 2 = led ds3 3 = led ds4 value is used to control whether the led is on or off 0 = off 1 = on return value none. Void ledout(int led, int value);.

  • Page 55

    User’s manual 49 4.4.4 serial communication library files included with dynamic c provide a full range of serial communications sup- port. The rs232.Lib library provides a set of circular-buffer-based serial functions. The packet.Lib library provides packet-based serial functions where packets can b...

  • Page 56

    50 coyote (bl2500) 4.4.5 analog inputs uses d/a converter channel da0 to search through the full voltage range for a match to the input voltage on channel ad0. This is done using a 10-step successive-approximation binary search, which nominally takes 86 ms. Call pwmoutconfig() and pwm_init() before ...

  • Page 57

    User’s manual 51 reads the voltage of a single-ended analog input channel using d/a channel da0 for comparison to find a match to the input voltage on channel ad0. This is done using a 10-step successive-approximation binary search, which nominally takes 86 ms. Call pwmoutconfig() and pwm_init() bef...

  • Page 58

    52 coyote (bl2500) reads the calibration constants, gain, and offset for an input based on its designated channel code position into global table _adccalibs . Use the sample program userblock_info.C in samples\userblock to get the addresses reserved for the calibration data constants and the address...

  • Page 59

    User’s manual 53 4.4.6 analog outputs this function from the r3000.Lib library in lib\rabbit3000 sets the base frequency for the pwm pulses and enables the pwm driver on all four channels. The base frequency is the frequency without pulse spreading. Pulse spreading will increase the frequency by a f...

  • Page 60

    54 coyote (bl2500) sets a voltage (0 to v dd ) on an analog output channel given a data point on the 1024 clock count cycle. Call pwmoutconfig() and pwm_init() before using this function. (an exception error will occur if these functions were not been called previously.) parameters channel is the pw...

  • Page 61

    User’s manual 55 calibrates the response of the d/a converter channel as a linear function using the two conversion points provided. Values are calculated and placed into global table _daccalibs for analog inputs to be stored later into simulated eeprom using the function anaouteewr(). Each channel ...

  • Page 62

    56 coyote (bl2500) writes the calibration constants, gain, and offset for an output based on its designated channel code position into global table _adccalibs . Use the sample program userblock_info.C in samples\userblock to get the addresses reserved for the calibration data constants and the addre...

  • Page 63

    User’s manual 57 4.4.7 rabbitnet port the function calls described in this section are used to configure the bl2500 for use with rabbitnet peripheral cards. The user’s manual for the specific peripheral card you are using contains additional function calls related to the rabbitnet protocol and the i...

  • Page 64

    58 coyote (bl2500) this is a macro that enables or asserts the bl2500 rabbitnet port select prior to data transfer. Parameters portnum = 0 return value none this is a macro that disables or deasserts the bl2500 rabbitnet port select to invalidate data transfer. Parameters portnum = 0 return value no...

  • Page 65: 5.  U

    User’s manual 59 5. U sing the tcp/ip f eatures chapter 5 discusses using the tcp/ip features on the coyote boards. 5.1 tcp/ip connections before proceeding you will need to have the following items. • if you don’t have an ethernet connection, you will need to install a 10base-t ethernet card (avail...

  • Page 66

    60 coyote (bl2500) 3. Apply power plug in the ac adapter. The coyote is now ready to be used. Note: a hardware reset is accomplished by unplugging the ac adapter, then plug- ging it back in, or by momentarily grounding the reset pins on the back of the coyote. When the prog connector of the programm...

  • Page 67

    User’s manual 61 5.2 tcp/ip sample programs we have provided a number of sample programs demonstrating various uses of tcp/ip for networking embedded systems. These programs require that you connect your pc and the coyote together on the same network. This network can be a local private network (pre...

  • Page 68

    62 coyote (bl2500) 5.2.2 how to set up your computer’s ip address for a direct connection when your computer is connected directly to the coyote via an ethernet connection, you need to assign an ip address to your computer. To assign the pc the address 10.10.6.101 with the netmask 255.255.255.0 , do...

  • Page 69

    User’s manual 63 5.2.3 run the pingme.C demo connect the crossover cable from your computer’s ethernet port to the coyote’s rj-45 ethernet connector. Open this sample program from the samples\tcpip\icmp folder, compile the program, and start it running under dynamic c. When the program starts run- n...

  • Page 70

    64 coyote (bl2500) 5.2.4 running more demo programs with a direct connection the sample programs discussed in this section use the demonstration board from the bl2500/oem2500 development kit to illustrate their operation. Appendix c, “demon- stration board connections,” contains diagrams of typical ...

  • Page 71: Ppendix

    User’s manual 65 a ppendix a. S pecifications appendix a provides the specifications for the coyote..

  • Page 72

    66 coyote (bl2500) a.1 electrical and mechanical specifications figure a-1 shows the mechanical dimensions for the coyote. Figure a-1. Coyote dimensions note: all measurements are in inches followed by millimeters enclosed in parentheses. Gnd j4 j5 gnd j6 ja r2 u1 r5 r8 c3 c4 r1 1 r14 r16 r3 r1 r15 ...

  • Page 73

    User’s manual 67 table a-1 lists the electrical, mechanical, and environmental specifications for the coyote. Table a-1. Coyote specifications feature bl2500 bl2510 microprocessor rabbit 3000 ® at 29.4 mhz ethernet port 10/100-compatible with 10base-t interface — flash memory 256k standard, 512k (2 ...

  • Page 74

    68 coyote (bl2500) a.1.1 exclusion zone it is recommended that you allow for an “exclusion zone” of 0.25" (6 mm) around the coyote in all directions when the coyote is incorporated into an assembly that includes other components. An “exclusion zone” of 0.12" (3 mm) is recommended below the coyote. F...

  • Page 75

    User’s manual 69 a.1.2 physical mounting figure a-3 shows position information to assist with interfacing other boards with the coyote. Figure a-3. User board footprint for coyote d7 q7 caution battery y1 jp1 jp2 jp3 jp4 act lnk j4 gnd c3 r4 r5 c4 c7 c6 c10 c12 c16 u2 c9 c1 1 c15 c20 j3 c41 c44 ds2 ...

  • Page 76

    70 coyote (bl2500) a.2 conformal coating the areas around the crystal oscillator and the battery backup circuit on the coyote’s rab- bitcore module have had the dow corning silicone-based 1-2620 conformal coating applied. The conformally coated areas are shown in figure a-4. The conformal coating pr...

  • Page 77

    User’s manual 71 a.3 jumper configurations figure a-5 shows the header and jumper locations used to configure the various coyote options. Figure a-5. Location of coyote configurable positions (rabbitcore module is not shown) table a-2 lists the configuration options. 0  surface mount resistors are ...

  • Page 78

    72 coyote (bl2500) a.4 use of rabbit 3000 parallel ports figure a-6 shows the rabbit 3000 parallel ports. Figure a-6. Coyote rabbit-based subsystems table a-3 lists the rabbit 3000 parallel ports and their use in the coyote. Table a-3. Use of rabbit 3000 parallel ports port i/o signal initial state ...

  • Page 79

    User’s manual 73 pb4 output out6 low pb5 output out7 low pb6 output led ds1 high (disabled) pb7 output led ds2 high (disabled) pc0 output txd rs-485 serial port d inactive high pc1 input rxd rs-485 inactive high pc2 output configurable low pc3 input in14 pulled up to 3.3 v pc4 output txb spi serial ...

  • Page 80

    74 coyote (bl2500) pf3 input in09 pulled up to 3.3 v pf4 input in10 pulled up to 3.3 v pf5 input in11 pulled up to 3.3 v pf6 output da0 high pf7 output da1 high pg0 input in04 pulled up to 3.3 v pg1 input in05 pulled up to 3.3 v pg2 output txf rs-232 serial port f high pg3 input rxf rs-232 high pg4 ...

  • Page 81: Ppendix

    User’s manual 75 a ppendix b. P ower s upply appendix b describes the power circuitry provided on the coyote. B.1 power supplies power is supplied to the coyote via the friction-lock connector terminal at j2. The coyote has an onboard +5 v switching power regulator from which a +3.3 v linear regulat...

  • Page 82

    76 coyote (bl2500) b.2 batteries and external battery connections the sram and the real-time clock have battery backup. Power to the sram and the real- time clock (vram) on the coyote’s rabbitcore module is provided by two different sources, depending on whether the main part of the coyote is powere...

  • Page 83

    User’s manual 77 b.2.1 power to vram switch the vram switch on the coyote’s rabbitcore module, shown in figure b-2, allows the battery backup to provide power when the external power goes off. The switch provides an isolation between vcc and the battery when vcc goes low. This prevents the vcc line ...

  • Page 84

    78 coyote (bl2500) b.4 power to peripheral cards dcin and vcc are available on friction-lock connector terminals j7 and j8 to power peripheral cards that may be used with the coyote. Figure b-3. Pinout friction-lock connector terminals j7 and j8 keep in mind that the coyote draws 377 ma from the vcc...

  • Page 85: Ppendix

    User’s manual 79 a ppendix c. D emonstration b oard c onnections appendix c shows how to connect the demonstration board to the coyote. C.1 assemble wire harness before you can connect the demonstration board to the coyote to run the sample pro- grams based on the demonstration board, you will need ...

  • Page 86

    80 coyote (bl2500) follow these steps to build your wire harness. 1. Prepare a few lengths of wire about 30 cm (12") long. The wires should have different colors of insulation to facilitate identifying the connections. 2. Trim about 2–3 mm (0.1") of insulation from your wire. 3. Position the wire in...

  • Page 87

    User’s manual 81 c.2 connecting demonstration board before running sample programs based on the demonstration board, you will have to con- nect the demonstration board from the bl2500/oem2500 development kit to the coyote board. Proceed as follows. 1. Use one of the wiring harnesses you have built t...

  • Page 88

    82 coyote (bl2500) figure c-4. Connections between coyote and demonstration board for digout.C sample program gnd j4 j5 gnd j6 ja r2 u1 r5 r8 c3 c4 r11 r14 r16 r3 r1 r15 r13 r12 r9 r10 c5 r6 r7 r4 c2 j1 c1 d1 j2 j7 j8 c8 d3 j10 j11 j12 gnd rs485 termination resistors r21 r20 r19 r79 c12 r78 r81 r80 ...

  • Page 89

    User’s manual 83 figure c-5. Connections between coyote and demonstration board for tcp/ip smpt.C sample program gnd j4 j5 gnd j6 ja r2 u1 r5 r8 c3 c4 r11 r14 r16 r3 r1 r15 r13 r12 r9 r10 c5 r6 r7 r4 c2 j1 c1 d1 j2 j7 j8 c8 d3 j10 j11 j12 gnd rs485 termination resistors r21 r20 r19 r79 c12 r78 r81 r...

  • Page 90

    84 coyote (bl2500).

  • Page 91: Ppendix

    User’s manual 85 a ppendix d. R abbit n et d.1 general rabbitnet description rabbitnet is a high-speed synchronous protocol developed by rabbit to connect periph- eral cards to a master and to allow them to communicate with each other. D.1.1 rabbitnet connections all rabbitnet connections are made p...

  • Page 92

    86 coyote (bl2500) use a straight-through ethernet cable to connect the master to slave peripheral cards, unless you are using a device such as the op7200 that could be used either as a master or a slave. In this case you would use a crossover cable to connect an op7200 that is being used as a slave...

  • Page 93

    User’s manual 87 d.2 physical implementation there are four signaling functions associated with a rabbitnet connection. From the mas- ter’s point of view, the transmit function carries information and commands to the periph- eral card. The receive function is used to read back information sent to th...

  • Page 94

    88 coyote (bl2500) d.3 function calls the function calls described in this section are used with all rabbitnet peripheral cards, and are available in the rnet.Lib library in the dynamic c rabbitnet folder. Resets, initializes, or disables a specified rabbitnet port on the master single-board compute...

  • Page 95

    User’s manual 89 locates the first active device that matches the search criteria. Parameter srch is the search criteria structure rn_search: unsigned int flags; // status flags see match macros below unsigned int ports; // port bitmask char productid; // product id char productrev; // product rev c...

  • Page 96

    90 coyote (bl2500) writes a string to the specified device and register. Waits for results. This function will check device infor- mation to determine that the peripheral card is connected to a master. Parameters handle is an address index to device information. Use rn_device() or rn_find() to estab...

  • Page 97

    User’s manual 91 sends a reset sequence to the specified peripheral card. The reset takes approximately 25 ms before the peripheral card will once again execute the application. Allow 1.5 seconds after the reset has completed before accessing the peripheral card. This function will check peripheral ...

  • Page 98

    92 coyote (bl2500) enables the hardware and/or software watchdog timers on a peripheral card. The software on the periph- eral card will keep the hardware watchdog timer updated, but will hard reset if the time expires. The hardware watchdog cannot be disabled except by a hard reset on the periphera...

  • Page 99

    User’s manual 93 reads the status of which reset occurred and whether any watchdogs are enabled. Parameters handle is an address index to device information. Use rn_device() or rn_find() to establish the handle. Retdata is a pointer to the return address of the communication byte. A set bit indicate...

  • Page 100

    94 coyote (bl2500) d.3.1 status byte unless otherwise specified, functions returning a status byte will have the following format for each designated bit. 7 6 5 4 3 2 1 0 × × 00 = reserved 01 = ready 10 = busy 11 = device not connected × 0 = device 1 = router × 0 = no error 1 = communication error *...

  • Page 101: Ndex

    User’s manual 95 i ndex a a/d converter calibration constants board serial number ....... 43 function calls anain .............................. 50 anaincalib ..................... 51 anaineerd .................... 52 anaineewr .................... 52 anainvolts ..................... 51 cof_anain .....

  • Page 102

    96 coyote (bl2500) models .....................................2 bl2500 ................................2 bl2510 ................................2 oem versions ......................2 p peripheral cards .......................6 connection to master ....85, 86 power from bl2500 ..........78 physical ...

  • Page 103

    User’s manual 97 function calls readuserblock ............... 36 writeuserblock ............. 36 sample programs userblock_info.C 52, 55, 56.

  • Page 104

    98 coyote (bl2500).

  • Page 105: Chematics

    User’s manual 99 s chematics 090-0158 coyote (bl2500) schematic www.Rabbit.Com/documentation/schemat/090-0158.Pdf 090-0042 demonstration board schematic www.Rabbit.Com/documentation/schemat/090-0042.Pdf 090-0128 programming cable schematic www.Rabbit.Com/documentation/schemat/090-0128.Pdf you may us...

  • Page 107: Mouser Electronics

    Mouser electronics authorized distributor click to view pricing, inventory, delivery & lifecycle information: rabbit semiconductor : 101-0577.