background image

BL4S100 User’s Manual

32

3.7  Memory

3.7.1  SRAM

All BL4S100 boards have 512KB of battery-backed data SRAM, and 512KB–1MB of fast 
program execution SRAM.

3.7.2  Flash Memory

BL4S100 boards have 1MB—2MB of serial flash memory.

Writing to arbitrary flash memory addresses at run time is also discouraged. Instead, 
define a “user block” area to store persistent data. The functions 

writeUserBlock()

 

and 

readUserBlock()

 are provided for this.

3.7.3  VBAT RAM Memory

The tamper detection feature of the Rabbit microprocessor can be used to detect any 
attempt to enter the bootstrap mode. When such an attempt is detected, the VBAT RAM 
memory in the Rabbit microprocessor is erased. The serial bootloader on the BL4S100 
boards uses the bootstrap mode to load the SRAM, which erases the VBAT RAM memory 
on any reset, and so it cannot be used for tamper detection.

Downloaded from 

Elcodis.com

 

electronic components distributor

 

Summary of Contents for BL4S100

Page 1: ...BL4S100 C Programmable Single Board Computer with Networking User s Manual 019 0172_C Downloaded from Elcodis com electronic components distributor...

Page 2: ...ake 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 In...

Page 3: ...eshooting 14 2 4 2 Run a ZigBee Sample Program BL4S100 BL4S150 only 15 2 5 Where Do I Go From Here 16 Chapter 3 Subsystems 17 3 1 BL4S100 Pinouts 18 3 1 1 Connectors 18 3 2 Digital I O 19 3 2 1 Digita...

Page 4: ...C Demo 99 5 2 4 Running More Demo Programs With a Direct Connection 100 5 3 Where Do I Go From Here 102 Chapter 6 Using the ZigBee Features 103 6 1 Introduction to the ZigBee Protocol 103 6 2 ZigBee S...

Page 5: ...E 2 Dimensions 133 Appendix F Additional Configuration Instructions 134 F 1 XBee Module Firmware Downloads 134 F 1 1 Dynamic C v 10 44 and Later 134 F 2 Digi XBee USB Configuration 135 F 2 1 Addition...

Page 6: ...rocessor serial flash memory static RAM digital inputs digital outputs A D converter inputs RS 232 serial ports and Ethernet and ZigBee network connectivity 1 2 BL4S100 Features Rabbit 4000 microproce...

Page 7: ...dix A provides detailed specifications Table 1 BL4S100 Models Feature BL4S100 BL4S110 BL4S150 BL4S160 Microprocessor Rabbit 4000 running at 40 00 MHz Program Execution SRAM 512KB 1MB Data SRAM 512KB S...

Page 8: ...onnect your PC USB port to the BL4S100 Universal AC adapter 12 V DC 1 A includes Canada Japan U S Australia N Z U K and European style plugs Demonstration Board with pushbutton switches and LEDs The D...

Page 9: ...n Appendix E GN D J7 20 11 10 D2 Q1 D3 Q2 D4 Q3 RP1 J4 RP2 D5 Q4 D6 Q5 D7 Q6 D8 Q7 D9 Q8 U2 J3 OUT2 OUT1 OUT0 IN3 IN2 IN1 IN0 K GND 5 V K2 K1 GND OUT7 OUT6 OUT5 OUT4 OUT3 BUTTON DS1 DS2 R1 S2 S1 J5 RX...

Page 10: ...munity The BL4S100 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 shieldin...

Page 11: ...f the end user to use proper ESD precautions to prevent ESD damage to the BL4S100 Safety All inputs and outputs to and from the BL4S100 series of single board computers must not be connected to voltag...

Page 12: ...BL4S100 User s Manual 10 2 GETTING STARTED Chapter 2 explains how to connect the programming cable and power supply to the BL4S100 Downloaded from Elcodis com electronic components distributor...

Page 13: ...5 R35 J6 C7 C11 2 JP1 C6 C10 J1 8 7 2 1 D10 D11 C2 C3 C4 R4 U1 R6 R23 R5 C5 R26 R34 R13 R14 R15 R16 R17 R18 R19 R20 R21 R22 R12 R7 R8 R9 R10 R11 D12 U7 D15 U8 D14 D13 20 11 10 C58 L1 J9 C69 C74 R69 R7...

Page 14: ...pter Connect the power supply to header J17 on the BL4S100 as shown in Figure 3 Be sure to match the latch mechanism with the top of the connector to header J17 on the BL4S100 as shown The Micro Fit c...

Page 15: ...n 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 do...

Page 16: ...bit 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 nex...

Page 17: ...nt 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...

Page 18: ...fine you are now ready to go on to explore other BL4S100 features and develop your own applications When you start to develop an application involving the analog inputs run USERBLOCK_ READ_WRITE C in...

Page 19: ...ure 4 shows these Rabbit based subsystems designed into the BL4S100 Figure 4 BL4S100 Subsystems BL4S100 RABBIT 4000 RS 232 Digital Inputs Digital Outputs Programming Port Ethernet A D Converter Fast S...

Page 20: ...e polarized 2 2 Micro Fit connector at J17 is for the power supply connection J4 J3 J5 RNET J15 J16 J14 J17 2 GND K IN0 IN1 IN2 IN3 OUT0 OUT1 OUT2 OUT3 OUT4 OUT5 OUT6 OUT7 GND K1 K2 5 V GND 5 V TXF RT...

Page 21: ...ure 6 BL4S100 Digital Inputs IN0 IN11 Pulled Up to 5 V Factory Default Table 2 summarizes the jumper settings CAUTION Do not simultaneously jumper more than one setting when configuring the pull up or...

Page 22: ...ing 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 digital inputs are each fully protected over a range of 36 V to 36 V and can han...

Page 23: ...sing the setEx tInterrupt function call The interrupt can be set up to occur on a rising edge a fall ing edge or either edge The counter readings can be obtained via the getBegin or getEnd function ca...

Page 24: ...e power supply as short as possible All the digital outputs sink actively They can be used as low side drivers or as an H bridge driver When the BL4S100 is first powered up or reset all the outputs ar...

Page 25: ...in mind when selecting special uses for the digital output pins When using digital output pins for PWM PPM outputs the output pins can only share the same RIO block if they are using the same period...

Page 26: ...may be set up so that the leading and trailing edges of several PWM outputs are aligned as long as the all the PWM outputs are on the same block of a particular Rabbit RIO chip A PPM ouput is similar...

Page 27: ...meet the RS 232 serial communication protocol Basically the chip translates the Rabbit microprocessor s CMOS signals to RS 232 signal levels Note that the polarity is reversed in an RS 232 circuit so...

Page 28: ...g the pins on this connector the convention used here and numbering in reverse to that shown Regardless of the numbering convention followed the pin positions relative to the spring tab position locat...

Page 29: ...ipolar ranges as shown in Table 6 Figure 11 shows a pair of A D converter input circuits The resistors form an approx 10 1 attenuator and the capacitors filter noise pulses from the A D converter inpu...

Page 30: ...in the user block Table 6 A D Converter Input Voltage Ranges Amplifier Gain Voltage Range Single Ended Unipolar Differential Bipolar 1 0 20 V 20 V 2 0 10 V 10 V 4 0 5 V 5 V 5 0 4 V 4 V 8 0 2 5 V 2 5 V...

Page 31: ...rements using a common analog ground then calibrate the A D con verter in the corresponding manner The calibration table in software only holds calibra tion constants based on mode channel and gain Ot...

Page 32: ...ble GND J7 20 11 10 D2 Q1 D3 Q2 D4 Q3 RP1 J4 RP2 D5 Q4 D6 Q5 D7 Q6 D8 Q7 D9 Q8 U2 J3 OUT2 OUT1 OUT0 IN3 IN2 IN1 IN0 K GND 5 V K2 K1 GND OUT7 OUT6 OUT5 OUT4 OUT3 BUTTON DS1 DS2 R1 S2 S1 J5 RX TX 1 W CT...

Page 33: ...Project Options menu 2 Add the line CLOCK_DOUBLED 0 to always disable the clock doubler The clock doubler is enabled by default and usually no entry is needed If you need to specify that the clock do...

Page 34: ...data The functions writeUserBlock and readUserBlock are provided for this 3 7 3 VBAT RAM Memory The tamper detection feature of the Rabbit microprocessor can be used to detect any attempt to enter th...

Page 35: ...es you may select Store Program in RAM on the Compiler tab so that download speed is as fast as possible Note that programs stored in RAM will be lost when the BL4S100 is reset so this option should b...

Page 36: ...kpoints Set breakpoints that can disable interrupts Single stepping Step into or over functions at a source or machine code level C OS II aware Code disassembly The disassembly window displays address...

Page 37: ...simply copy over an entire file since you may overwrite an update of course you may copy over any programs you have written Once you are sure the new patch or update works entirely to your satisfacti...

Page 38: ...st be in Program mode see Section 3 5 USB Programming Cable and must be connected to a PC using the programming cable as described in Section 2 1 BL4S100 Connections See Appendix C for information on...

Page 39: ...D11 C2 C3 C4 R4 U1 R6 R23 R5 C5 R26 R34 R13 R14 R15 R16 R17 R18 R19 R20 R21 R22 R12 R7 R8 R9 R10 R11 D12 U7 D15 U8 D14 D13 20 11 10 C58 L1 J9 C69 C74 R69 R72 R73 R74 U18 J10 2 1 J11 2 1 AIN0 AIN1 AIN2...

Page 40: ...D12 U7 D15 U8 D14 D13 20 11 10 C58 L1 J9 C69 C74 R69 R72 R73 R74 U18 J10 2 1 J11 2 1 AIN0 AIN1 AIN2 AIN3 R87 R89 R90 R93 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND IN11 IN10 IN9 IN8 IN7 IN6 IN5 IN4...

Page 41: ...illoscope ground to GND on header J4 Once you compile and run the sample program change the duty cycle and offsets for a given PPM channel via the Dynamic C STDIO window and watch the change in wave f...

Page 42: ...single pulses in an interrupt service request for display PWM C Demonstrates the use of the eight PWM channels on digital output pins OUT0 OUT7 The PWM signals are set for a frequency of 200 Hz with...

Page 43: ...C58 L1 J9 C69 C74 R69 R72 R73 R74 U18 J10 2 1 J11 2 1 AIN0 AIN1 AIN2 AIN3 R87 R89 R90 R93 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND IN11 IN10 IN9 IN8 IN7 IN6 IN5 IN4 GND RST PWR AGND C65 C64 C68 R6...

Page 44: ...The high speed Quadrature Decoder counts the number of rollovers that occur one per 1000 counts The low speed Quadrature Decoder displays the current count in the register Once the connections are ma...

Page 45: ...S 232 serial communication using the Dynamic C STDIO window Follow these instructions before running this sample program Before you compile and run this sample program connect Tx 1 W to Rx then connec...

Page 46: ...of both the BL4S100 and the terminal emulation program COMPUTER3WIRE C This sample program demonstrates basic initialization for a sim ple three wire RS 232 connection Characters typed in either the...

Page 47: ...Before you compile and run this sample program jumper pins 1 2 and 5 6 on headers J10 and J11 Then connect a current meter in series with the power supply connected to one of pins AIN0 AIN3 and AGND...

Page 48: ...n the sample program and follow the instructions in the Dynamic C STDIO window as you vary the output from the power supply ADC_RD_SE_UNIPOLAR C Demonstrates how to read and display the voltage of all...

Page 49: ...e BL4S1xx LIB library are described in Section 4 4 BL4S100 Function Calls TCPIP libraries specific to using TCP IP functions on the BL4S100 Further informa tion about TCP IP is provided in Chapter 5 U...

Page 50: ...Init void FUNCTION DESCRIPTION Call this function at the beginning of your program This function initializes Parallel Ports A E the Rabbit RIO chip and the A D converter The ports are initialized acco...

Page 51: ...ue SEE ALSO brdInit digIn digInBank digIn int digIn int channel FUNCTION DESCRIPTION Reads the state of a digital input channel PARAMETERS channel digital input channel 0 11 pins IN0 IN11 RETURN VALUE...

Page 52: ...els PARAMETER bank digital input bank pins 0 IN0 IN7 1 IN8 IN11 RETURN VALUE Data read from the bank of digital inputs EINVAL invalid parameter value SEE ALSO brdInit digIn setDigIn Data Bits Bank 0 B...

Page 53: ...edges handle handle for the ISR handler to service this interrupt RETURN VALUE 0 success EINVAL invalid parameter value EPERM pin type does not permit this function EACCES resource needed by this fun...

Page 54: ...own as quadrature or Q 0 11 pins IN0 IN11 channel_index channel to use as index input 1 if not used 0 11 pins IN0 IN11 NOTE The Quadrature Decoder count may still be reset by existing or new synch sig...

Page 55: ...th count stopping on any match event edge edge setting macro for the up count event BL_EDGE_RISE up count on rising edge BL_EDGE_FALL up count on falling edge BL_EDGE_BOTH up count on either edge opti...

Page 56: ...ositive number Mode Conflict the positive number is a bitmap that corresponds to the pins on a particular block of a RIO chip that have not been configured to support this function call Appendix D pro...

Page 57: ...input 0 11 pins IN0 IN11 mode mode macro for the counter timer BL_CNT_RUN continuous count mode BL_CNT_BEGIN_END start count on begin event continue to count until end event detected BL_CNT_TIL_END co...

Page 58: ...E use prescaled clock BL_SAVE_LIMIT save current limit register value other wise limit set to 0xFFFF RETURN VALUE 0 success EINVAL invalid parameter value EPERM pin type does not permit this function...

Page 59: ...value SEE ALSO brdInit setCounter setDecoder setCapture resetCounter getBegin int getBegin int channel word begin FUNCTION DESCRIPTION Reads the current value of the begin register within the counter...

Page 60: ...id parameter value EPERM pin type does not permit this function SEE ALSO brdInit setCapture resetCounter getBegin resetCounter int resetCounter int channel FUNCTION DESCRIPTION Resets the current coun...

Page 61: ...xt counter overflow or by resetting the counter via the resetCounter function call PARAMETERS channel digital input channel that uses the desired counter block 0 11 pins IN0 IN11 limit new value for t...

Page 62: ...l that is on the block that will have its synch set 0 11 pins IN0 IN11 source source of the synch signal 1 to use the RIO chip s Global Synch signal or input capable channel to use as an external sync...

Page 63: ...external each block has its own independent edge detection circuit These circuits will synch to the edge within plus or minus one count of the block s current clock source main or prescale This means...

Page 64: ...gOut function should be used to control the output state after configuration as it is more effi cient This function is non reentrant PARAMETERS channel digital output channel 0 7 OUT0 OUT7 state set o...

Page 65: ...red by the setDigOut function call PARAMETERS channel digital output channel 0 7 OUT0 OUT7 state set output to one of the following states 0 connects the load to GND 1 puts the output in a high impeda...

Page 66: ...call PARAMETERS bank digital output bank pins 0 OUT0 OUT7 data data value to be written to the specified digital output bank the data format and bitwise value are as follows Bitwise value 0 connects t...

Page 67: ...cy in Hz should be from 2 Hz to 50 kHz use 1 to preserve the existing frequency on the RIO block duty PWM duty cycle should be from 0 to 100 use 1 and bind parameter to use bound edge to set the duty...

Page 68: ...e positive number is a bitmap that corresponds to the pins on a particular block of a RIO chip that have not been configured to support this function call Appendix D provides the details of the pin an...

Page 69: ...r to use bound edge to set the duty cycle NOTE PPM will not wrap around the PPM period If offset is set to 25 the 75 to 100 duty cycle will have the same effect as offset 25 duty 75 The same waveform...

Page 70: ...itive number is a bitmap that corresponds to the pins on a particular block of a RIO chip that have not been configured to support this function call Appendix D provides the details of the pin and blo...

Page 71: ...and setDuty to reset the duty cycle and offset to the desired value PARAMETERS channel all digital output channels on the same RIO chip and block as this channel 0 7 OUT0 OUT7 will have their frequen...

Page 72: ...WM PPM PARAMETERS channel digital output channel that is getting its duty cycle set 0 7 OUT0 OUT7 duty duty cycle of the PWM PPM output should be from 0 to 100 RETURN VALUE 0 success EINVAL invalid pa...

Page 73: ...will start at the offset and will wrap around to the position of what was the trailing edge PARAMETERS channel digital output channel that is getting its offset set 0 7 OUT0 OUT79 offset PPM offset sh...

Page 74: ...ess EINVAL invalid parameter value EPERM channel function does not permit this operation SEE ALSO brdInit setPWM setPPM pulseEnable pulseEnable int pulseEnable int channel FUNCTION DESCRIPTION Enables...

Page 75: ...hannel that is on the block that will have its synch set 0 7 OUT0 OUT7 source source of the synch signal 1 to use the RIO chip s Global Synch signal or input capable channel to use as an external sync...

Page 76: ...IL_ONLY will filter only the Trail match register BL_LEAD_ONLY will filter only the Lead match register Note that counters will only use the Trail match register RETURN VALUE Bit flags showing match u...

Page 77: ...METERS channel digital input channel to bind to ISR 0 11 IN0 IN11 ier bit mask of interrupt s this handler services BL_IER_DQE decrement quadrature end BL_IER_IIB increment inphase begin BL_IER_ROLL_D...

Page 78: ...l to bind to ISR 0 7 OUT0 OUT7 ier bit mask of interrupt s this handler services BL_IER_DQE decrement quadrature end BL_IER_IIB increment inphase begin BL_IER_ROLL_D counter rollover on decrement BL_I...

Page 79: ...ing the ISR can be done by calling enableISR with a zero for the enable parameter PARAMETERS isr_handle index to the desired ISR ier bit mask of interrupts this handler services bit positions match RI...

Page 80: ...isables the ISR RETURN VALUE 0 success EINVAL invalid parameter given SEE ALSO addISRIn addISROut setIER tickISR tickISR void tickISR void FUNCTION DESCRIPTION Polls the RIO chip s for ISR events if i...

Page 81: ...onblocking functions which must be called repeatedly until they are finished For more information see the Dynamic C User s Manual and Technical Note 213 Rabbit Serial Port Software Use the following f...

Page 82: ...le ended unipolar 0 20 V Differential bipolar 20 V 4 20 mA operation NOTE When a pin in a differential pair is reconfigured as a nondifferential pin the remaining paired pin is also reconfigured PARAM...

Page 83: ...he maximum voltage range are recommended when calibrating a channel PARAMETERS channel analog input channel number 0 to 7 corresponding to AIN0 AIN7 opmode the mode of operation for the specified chan...

Page 84: ...to the second A D converter value RETURN VALUE 0 success EINVAL invalid parameter ERR_ANA_CALIB error writing calibration constants SEE ALSO brdInit anaInConfig anaIn anaInmAmps anaInDiff anaInVolts...

Page 85: ...Differential 4 20 mA 0 AIN0 AIN0 AIN1 AIN0 1 AIN1 AIN1 2 AIN2 AIN2 AIN3 AIN2 3 AIN3 AIN3 4 AIN4 AIN4 AIN5 5 AIN5 6 AIN6 AIN6 AIN7 7 AIN7 Gain Code Macro Value Range Voltage Range Single Ended Unipolar...

Page 86: ...n error condition A D converter operation errors will not create run time error BL_TIMEOUT BL_OVERFLOW BL_WRONG_MODE System errors can create run time error unless disabled ERR_ANA_CALIB fault detecte...

Page 87: ...nged from the previous cycle the user block will be read to get the calibration constants for the new gain value PARAMETERS channel analog input channel number 0 to 7 corresponding to AIN0 AIN7 gainco...

Page 88: ...is not calibrated for this channel gain BL_OVERFLOW A D converter overflow BL_TIMEOUT A D converter timeout BL_WRONG_MODE A D converter is in wrong mode run anaInConfig System errors can create run t...

Page 89: ...hannel has changed from the previous cycle the user block will be read to get the calibration constants for the new gain value PARAMETERS channel the analog input channel number 0 2 4 6 as shown below...

Page 90: ...is not calibrated for this channel gain BL_OVERFLOW A D converter overflow BL_TIMEOUT A D converter timeout BL_WRONG_MODE A D converter is in wrong mode run anaInConfig System errors can create run ti...

Page 91: ...E A current value corresponding to the current on the analog input channel or a value of BL_ERRCODESTART or less to indicate an error condition A D converter operation errors will not create run time...

Page 92: ...rential bipolar 20 V mAMP_mode 4 20 mA gaincode the gain code of 0 to 7 use the gain code macro mAMP_GAINCODE for 4 20 mA operation pcal_data calibration structure pointer to gain and offset values ch...

Page 93: ...ued RETURN VALUE 0 success 1 invalid address or range 2 no valid user block found block version 3 or later 3 flash read error EINVAL invalid parameter SEE ALSO anaInCalib _anaInAddr Downloaded from El...

Page 94: ...ator have been enabled See anaInConfig for additional setup information After the last data bit is transferred the conversion begins immediately An exception error will occur if Direct Mode bit D7 is...

Page 95: ...of range System errors can create run time error unless disabled ERR_ANA_INVAL invalid parameter value SEE ALSO anaInConfig anaIn brdInit channel_code Differential Input Lines channel_code Single End...

Page 96: ...This assures the integrity of the data in case a reset or a power failure occurs during the update process At power on the application program uses the active copy of the variable pointed to by its a...

Page 97: ...cable The CAT 5 6 Ethernet cables and Ethernet hub are available from Rabbit in a TCP IP tool kit More information is available at www rabbit com 1 Connect the AC adapter and the programming cable as...

Page 98: ...ressing the RESET button located next to the Ethernet jack When working with the BL4S100 the green LNK light is on when a program is running and the board is properly connected either to an Ethernet h...

Page 99: ...MY_NAMESERVER macros in each program 2 You can leave TCPCONFIG at the usual default of 1 which will set the IP configurations to 10 10 6 100 the netmask to 255 255 255 0 and the nameserver and gateway...

Page 100: ...r the Ethernet interface you intend to use e g TCP IP Xircom Credit Card Network Adapter and click on the Properties button Depending on which version of Windows your PC is running you may have to sel...

Page 101: ...es not light you may not have a crossover cable or if you are using a hub perhaps the power is off on the hub The next step is to ping the board from your PC This can be done by bringing up the MS DOS...

Page 102: ...7 2 1 D10 D11 C2 C3 C4 R4 U1 R6 R23 R5 C5 R26 R34 R13 R14 R15 R16 R17 R18 R19 R20 R21 R22 R12 R7 R8 R9 R10 R11 D12 U7 D15 U8 D14 D13 20 11 10 C58 L1 J9 C69 C74 R69 R72 R73 R74 U18 J10 2 1 J11 2 1 AIN0...

Page 103: ...der J3 J15 and J16 SMTP C Uses the SMTP library to send an e mail when a pushbutton switch on the Demonstration Board is pressed TELNET C Allows you to communicate with the BL4S100 using the Telnet pr...

Page 104: ...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 questionSubmit shtml If the sample programs ran fine you are...

Page 105: ...twork of devices using the ZigBee proto col works via a self organizing mesh network that can be used for industrial control embedded sensors data collection home security and building automation The...

Page 106: ...BL4S200 Tool Kit See section F 2 Digi XBee USB Configuration for more information on the Digi XBee USB device To run a sample program open it with the File menu if it is not still open then compile an...

Page 107: ...11 D12 U7 D15 U8 D14 D13 20 11 10 C58 L1 J9 C69 C74 R69 R72 R73 R74 U18 J10 2 1 J11 2 1 AIN0 AIN1 AIN2 AIN3 R87 R89 R90 R93 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND IN11 IN10 IN9 IN8 IN7 IN6 IN5 I...

Page 108: ...nager Ports on your PC if you need help in identifying the USB COM port 6 Any ZigBee devices discovered will be displayed in the Devices Discovered window to the right If the utility times out and no...

Page 109: ...r the BL4S100 Bl4S150 to be a router Set XBEE_ROLE to NODE_TYPE_COORD NODE_TYPE_ROUTER or NODE_TYPE_ENDDEV to match your XBee s firmware define XBEE_ROLE NODE_TYPE_ROUTER NOTE Remember that the firmwa...

Page 110: ...dentifier define NODEID_STR RabbitXBee The XBee sample programs in the Dynamic C SAMPLES XBee folder illustrate the use of the XBee function calls AT_INTERACTIVE C This sample program shows how to set...

Page 111: ...ENT C running on an RCM4510W RabbitCore module or on a single board computer with an XBee RF module Connect the BL4S100 BL4S150 to the Demonstration Board as explained in Section 6 2 1 Then compile an...

Page 112: ...browser to bring up the Web page served by the sample program http 10 10 6 100 The Web browser will display the network and the individual boards on the network You can use the Web browser to control...

Page 113: ...namic 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 ma...

Page 114: ...BL4S100 User s Manual 112 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the BL4S100 Downloaded from Elcodis com electronic components distributor...

Page 115: ...104 R105 R106 R107 R108 R109 R110 R111 R112 R113 ADC PROGRAMMER GND 2 J12 J15 R115 RP5 RP3 R94 R91 D19 D20 D21 D22 D23 D24 D25 D26 RP4 J13 2 RP6 1 S3 J16 S4 C114 2 7 8 J14 R117 D27 DS3 DS4 J17 2 PWR I...

Page 116: ...are selectable ranges unipolar differential bipolar 1 2 2 5 5 10 20 V DC 4 channels can be hardware configured for 4 20 mA 1 M input impedance up to 4 100 samples s Serial Ports 3 serial ports two RS...

Page 117: ...BL4S100 Figure A 2 shows this exclusion zone Figure A 2 BL4S100 Exclusion Zone A 1 2 Headers The BL4S100 has a 3 mm Micro Fit connectors at J17 for power supply connections There are four 1 9 screw te...

Page 118: ...Connected Factory Default JP1 Serial Communication Configuration Options not stuffed None J1 is configured for RS 232 1 2 J1 is configured for RabbitNet 2 3 J1 configured for 1 Wire serial J6 Serial...

Page 119: ...AIN2 4 20 mA option 5 6 AIN3 4 20 mA option J11 A D Converter Voltage Current Measurement Options None Voltage Option 1 2 AIN0 4 20 mA option 5 6 AIN1 4 20 mA option J13 Digital Inputs IN0 IN11 Pull...

Page 120: ...D Pulled up PC2 Output TXC A D converter Serial Port C Inactive high PC3 Input RXC A D converter Pulled up PC4 Output TXB serial flash Serial Port B Inactive high PC5 Input RXB serial flash Pulled up...

Page 121: ...ff PE6 Output XBee RTS Low PE7 Output Ethernet ACT Inactive high LED off BUFEN Output CS A D converter Inactive high CLK Output CLK to Rabbit RIO CPU clock Table A 3 Use of Rabbit Microprocessor Paral...

Page 122: ...ve regulated 1 8 V and 3 3 V power supplies The digital ground and the analog ground share a single split ground plane on the board with the analog ground connected at a single point to the digital gr...

Page 123: ...ed up normally B 2 1 Replacing the Backup Battery The battery is user replaceable and is fitted in a battery holder To replace the battery lift up on the spring clip and slide out the old battery Use...

Page 124: ...S100 User s Manual 122 APPENDIX C DEMONSTRATION BOARD Appendix C explains how to use the Demonstration Board with the BL4S100 sample programs Downloaded from Elcodis com electronic components distribu...

Page 125: ...0 D11 C2 C3 C4 R4 U1 R6 R23 R5 C5 R26 R34 R13 R14 R15 R16 R17 R18 R19 R20 R21 R22 R12 R7 R8 R9 R10 R11 D12 U7 D15 U8 D14 D13 20 11 10 C58 L1 J9 C69 C74 R69 R72 R73 R74 U18 J10 2 1 J11 2 1 AIN0 AIN1 AI...

Page 126: ...the outputs on screw terminal header J3 Figure C 2 Demonstration Board Pinout C 2 2 Configuration The pushbutton switches may be configured active high or active low via jumper settings on header JP15...

Page 127: ...The power supply voltage input at V on screw terminal header J3 is available as V_ALT on screw terminal header J1 There is a potentiometer immediately above the V_ALT location to allow you to vary th...

Page 128: ...the BL4S100 boards The main shared resource within the RIO chips are the counter timer blocks the RIO chip has eight counter timer blocks A given block is defined by the block number The tables in thi...

Page 129: ...le D 1 Digital I O Pin Associations I O Pin Block Pin IN0 0 0 IN1 1 IN2 2 IN3 1 0 IN4 1 IN5 2 IN6 2 0 IN7 1 OUT0 2 OUT1 3 IN8 3 0 IN9 1 OUT2 2 OUT3 3 OUT4 4 2 OUT5 3 OUT6 5 2 OUT7 3 IN10 6 0 IN11 7 0...

Page 130: ...d pin 2 of the block used by IN2 have the conflicts they are using the coun ter timer in a way that conflicts with setting IN2 as a counter input Looking at Table D 1 you find IN2 is using block 0 on...

Page 131: ...r marked function without possible conflicts I O can generally share the timer but will be affected by settings of the limit value value at which the timer rolls over or resetting of the counter eithe...

Page 132: ...c enclosure consists of a base and a cover The base alone is a convenient surface on which to mount the BL4S100 and also provides a means to mount the BL4S100 on any flat surface The base and cover ar...

Page 133: ...R90 R93 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND IN11 IN10 IN9 IN8 IN7 IN6 IN5 IN4 GND RST PWR A G N D C65 C64 C68 R63 R65 L2 BT1 C86 C87 R86 U20 C96 C 91 C 92 C95 C97 C1 01 C1 02 C1 03 C1 04 C1...

Page 134: ...T1 C86 C87 R86 U20 C96 C 91 C 92 C95 C97 C1 01 C1 02 C1 03 C1 04 C1 05 C1 06 C1 07 C1 08 R9 8 R9 9 R1 00 R1 01 R1 02 R1 03 R1 04 R1 05 R1 06 R1 07 R1 08 R1 09 R1 10 R1 11 R1 12 R1 13 ADC PROGRAMMER GN...

Page 135: ...y assembled the total height of the plastic enclosure will be 1 5 38 mm NOTE All measurements are in inches followed by millimeters enclosed in parentheses All dimensions have a manufacturing toleranc...

Page 136: ...bit has tested the firmware associated with a particular version of Dynamic C for correct operation and only this version is included on the Dynamic C CD ROM do not use any other firmware versions wit...

Page 137: ...r Section 6 2 2 explains how to set up the BL4S100 BL4S150 configuration patterns for the sample programs via macros in the Dynamic C LIB Rabbit4000 XBee XBEE_API LIB library folder Channel mask defau...

Page 138: ...the Modem Configuration tab click the Read button X CTU will now display the networking and I O parameters for the Digi XBee USB being used as the ZigBee coordinator Modem XBEE XB24 ZB Function Set ZI...

Page 139: ...t compatible with the XBee Series 2 module used with the BL4S100 BL4S150 but the general documentation about ZigBee and the use of AT commands for the XBee and the XBee PRO RF modules is relevant Down...

Page 140: ...select a serial port without the Digi XBee USB connected the X CTU response to Test Query will be communi cation with modem OK but the modem type will be unknown and the firmware version will be blan...

Page 141: ...58 getMatch 74 globalSync 61 pulseDisable 72 pulseEnable 72 resetCounter 21 58 setCapture 21 55 setCounter 21 53 setDecoder 21 52 setDigIn 49 setDigOut 62 setDuty 70 setExtInterrupt 21 51 setFreq 69...

Page 142: ...o sure base 131 attaching top 132 power management 120 power supply 120 battery backup 121 connections 11 switching voltage regulator 120 Program Mode 30 programming programming cable 6 programming po...

Page 143: ...113 electrical 114 exclusion zone 115 headers 115 temperature 114 plastic enclosure dimensions 133 spectrum spreader settings 31 subsystems 17 T tamper detection 32 TCP IP connections 95 96 10Base T...

Page 144: ...52 USB Programming Cable Schematic www rabbit com documentation schemat 090 0252 pdf 090 0272 Rabbit Demonstration Board www rabbit com documentation schemat 090 0272 pdf You may use the URL informati...

Reviews: