background image

48

Wolf (BL2600)

Reads the state of a digital input channel. If a configurable I/O channel (DIO00–DIO15) that was config-
ured as a digital output is read by 

digIn

, then the value read will be the state of the output channel.

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 for DIO00–DIO15, 16–31 for IN16–IN31).

RETURN VALUE

The logic state of the specified channel (0 = low or 1 = high).

SEE ALSO

brdInit, digOut, digOutConfig, digInBank

Reads the state of a bank of 8 digital input channels. If a configurable I/O channel (DIO00–DIO15) that 
was configured as a digital output is read by 

digInBank

, then the value returned will be the state of the 

output channel.

A run-time error will occur for the following conditions:

1.

bank

 out of range.

2.

brdInit

 was not executed before executing 

digInBank

.

PARAMETER

bank

 is the bank of digital input channels to read.

0 = DIO00–DIO07 (bank 0)
1 = DIO08–DIO15 (bank 1)
2 = IN16–IN23 (bank 2)
3 = IN24–IN31 (bank 3)

RETURN VALUE

The logic state of each channel in the specified bank (0 = low or 1 = high). The data is returned as a byte, 
with each bit representing the state of a particular channel in the bank ordered from the most significant 
bit to the least significant bit.

SEE ALSO

brdInit, digOut, digOutConfig, digInBank

int digIn(int channel);

char digInBank(int bank);

Содержание Wolf BL2600

Страница 1: ...Wolf BL2600 C Programmable Single Board Computer with Ethernet User s Manual 019 0142 040731 B ...

Страница 2: ...Part Number 019 0142 040731 B Printed in U S A 2004 Z World Inc All rights reserved Z World reserves the right to make changes and improvements to its products without providing notice Trademarks Rabbit and Rabbit 3000 are registered trademarks of Rabbit Semiconductor RabbitNet is a trademark of Z World Inc Dynamic C is a registered trademark of Z World Inc ...

Страница 3: ... I O 14 3 2 1 Digital Inputs 14 3 2 2 PWM Outputs 15 3 2 3 High Current Digital Outputs 16 3 2 4 Configurable I O 18 3 3 Serial Communication 20 3 3 1 RS 232 20 3 3 2 RS 485 20 3 3 3 Programming Port 22 3 3 4 Ethernet Port 23 3 4 A D Converter Inputs 24 3 4 1 A D Converter Calibration 25 3 5 D A Converter Outputs 26 3 5 1 D A Converter Calibration 27 3 6 Analog Reference Voltage Circuit 28 3 7 Pro...

Страница 4: ... 2 How to Set Up your Computer s IP Address for a Direct Connection 66 5 2 3 Run the PINGME C Demo 67 5 2 4 Running More Demo Programs With a Direct Connection 68 5 3 Where Do I Go From Here 68 Appendix A Specifications 69 A 1 Electrical and Mechanical Specifications 70 A 1 1 Exclusion Zone 72 A 1 2 Headers 73 A 2 Conformal Coating 74 A 3 Jumper Configurations 75 A 4 Use of Rabbit 3000 Parallel Po...

Страница 5: ...d computer that incorporates the powerful Rabbit 3000 microprocessor flash memory serial flash static RAM digital I O ports A D con verter inputs D A converter outputs RS 232 RS 485 serial ports and a 10 100Base T Ethernet port 1 2 BL2600 Features Rabbit 3000 microprocessor operating at 44 2 MHz 512K static RAM and 512K flash memory standard 36 digital I O 16 protected digital inputs 4 high curren...

Страница 6: ... provides detailed specifications 1 2 1 Connector Options In addition to the standard polarized friction lock connectors supplied on BL2600 boards dual entry 0 1 IDC sockets can be used to connect to the BL2600 either from the top or the bottom Table 1 BL2600 Models Feature BL2600 BL2610 Microprocessor Rabbit 3000 running at 44 2 MHz Rabbit 3000 running at 29 4 MHz Program Execution SRAM 512K 256K...

Страница 7: ...ation Board can be hooked up to the BL2600 to demonstrate the I O and the TCP IP capabilities of the BL2600 Wire assembly to connect Demonstration Board to BL2600 Connector pins and parts to build your own wire assemblies 0 1 crimp terminals 0 156 crimp terminals 1 4 1 10 and 1 13 friction lock connectors Rabbit 3000 Processor Easy Reference poster Registration card Figure 1 BL2600 Tool Kit Dingo ...

Страница 8: ...purchase Visit our Web site at www zworld com or contact your Z World sales repre sentative or authorized distributor for further information 1 3 3 Additional Tools Z World also has available additional programming tools and parts to help you to make your own wiring assemblies with the friction lock connectors An RS 232 USB converter cable Z World Part No 540 0070 is available for use with the pro...

Страница 9: ... 1 R 9 U16 R8 J 1 0 R7 GND EGND RP5 RP6 U2 C 4 R 5 C 5 R6 C 6 U4 JA RCM1 RCM3000 ETHERNET CORE MODULE U 3 RP17 RP18 34 33 16 15 1 2 1 2 15 16 33 34 C1 U1 R P 3 R P 4 G N D K D C IN 5 V J P 3 J P 4 A N D J P 4 JP1 AND JP2 G N D K D C IN 5 V J4 RABBITNET 1 J6 RABBITNET 0 J7 C14 C17 C 1 5 C78 J9 C9 U9 RP16 C8 U8 R 4 R 3 RP15 RP14 RP12 R P 1 3 R P 1 1 R 1 R 2 C 7 U6 U7 U5 R P 8 R P 7 R P 9 R P 1 0 C2 ...

Страница 10: ...3 R16 C10 R10 U11 J8 R14 R13 C11 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND C12 R12 R11 U10 BT1 C26 C27 D1 U15 C25 J12 J13 C22 R55 R42 C23 C24 R41 R40 R35 R36 R37 U14 R26 R28 R30 R19 R29 R32 R31 R56 R57 L1 R27 R25 R23 R24 C20 C21 R18 C16 1 2 25 26 RXE J14 Q19 D3 Q17 D2 Q18 RXC D4 Q20 C34 RXF 485 C35 C36 C37 JP7 485 TERM RESISTOR C30 R58 R59 R60 U18 C32 C33 RCM2 U17 C31 R9 U16 R8 J10 R7 GND EGND ...

Страница 11: ... R19 R29 R32 R31 R56 R57 L1 R27 R25 R23 R24 C20 C21 R18 C16 1 2 25 26 RXE J14 Q19 D3 Q17 D2 Q18 RXC D4 Q20 C34 RXF 485 C35 C36 C37 JP7 485 TERM RESISTOR C30 R58 R59 R60 U18 C32 C33 RCM2 U17 C31 R9 U16 R8 J10 R7 GND EGND RP5 RP6 U2 C4 R5 C5 R6 C6 U4 JA RCM1 RCM3000 ETHERNET CORE MODULE U3 RP17 RP18 34 33 16 15 1 2 1 2 15 16 33 34 C1 U1 RP3 RP4 GND K DCIN 5V JP3 JP4 AND JP4 JP1 AND JP2 GND K DCIN 5V...

Страница 12: ...ocs folder found in the Dynamic C installation folder The latest versions of all documents are always available for free unregistered download from our Web sites as well The Dynamic C User s Manual provides detailed instructions for the installation of Dynamic C and any future upgrades NOTE If you have an earlier version of Dynamic C already installed the default instal lation of the later version...

Страница 13: ...ardware select a different COM port within Dynamic C From the Options menu select Communications Select another COM port from the list then click OK Press Ctrl Y to force Dynamic C to recompile the BIOS If Dynamic C still reports it is unable to locate the target system repeat the above steps until you locate the active COM port You should receive a Bios compiled successfully message once this ste...

Страница 14: ...re are any problems at this point Check the Z World Technical Bulletin Board at www zworld com support bb Use the Technical Support e mail form at www zworld com support If the sample program ran fine you are now ready to go on to explore other BL2600 fea tures and develop your own applications Chapter 3 Subsystems provides a description of the BL2600 s features Chapter 4 Software describes the Dy...

Страница 15: ...Voltage Circuit Memory Figure 5 shows these Rabbit based subsystems designed into the BL2600 Figure 5 BL2600 Subsystems SRAM 32 kHz osc RabbitCore Module RABBIT 3000 Battery Backup Circuit Ethernet Program Flash Serial Flash 22 1 MHz osc RS 232 RS 485 Data Register Data Register A D Converter D A Converter High Current Outputs RabbitNet Digital Inputs Configurable I O Data Register ...

Страница 16: ...HK2 GND HOUT3 TXC TXF TXE 485 GND GND RXC RXF RXE 485 J17 J12 J5 J1 J2 U1 U6 R28 R38 R41 C5 C3 C9 C8 C12 C17 C23 C30 C18 C29 C35 C33 R29 R37 R39 R40 R42 Y3 C42 R35 R31 R27 R25 DS1 R67 R70 J4 C79 Y4 C83 C86 GND R75 R74 R71 DS3 DS2 R63 R64 C71 C72 C68 C64 C67 L2 U8 R49 R48 C62 R51 C61 R44 R47 C59 C49 C57 L1 R69 R72 R73 C75 C74 R58 C53 C47 C48 C45 C44 C43 JP5 C31 JP3 JP4 C28 C27 C37 C36 C32 R24 R22 C...

Страница 17: ...35 R31 R27 R25 DS1 R67 R70 J4 C79 Y4 C83 C86 GND R75 R74 R71 DS3 DS2 R63 R64 C71 C72 C68 C64 C67 L2 U8 R49 R48 C62 R51 C61 R44 R47 C59 C49 C57 L1 R69 R72 R73 C75 C74 R58 C53 C47 C48 C45 C44 C43 JP5 C31 JP3 JP4 C28 C27 C37 C36 C32 R24 R22 C19 R23 C24 R20 C20 R19 C16 C15 R17 R18 R7 R9 R1 R8 C1 R10 R14 C4 SPD LNK ACT J3 U5 U4 D1 Q1 C39 RP1 High Current Digital Outputs Analog Ground Analog Outputs Bat...

Страница 18: ...6 DIN31 Pulled Up Factory Default Table 2 lists the banks of digital inputs and summarizes the jumper settings When you use the software digIn function call to read the digital inputs DIN16 DIN31 are considered to be digital input channels 16 31 Table 2 Banks of BL2600 Digital Inputs Digital Inputs Header Pins Jumpered Pulled Up Pulled Down DIN16 DIN19 JP3 1 2 Inputs pulled up to 5 V DIN20 DIN23 J...

Страница 19: ...s 3 2 2 PWM Outputs Digital inputs DIN20 DIN23 can be used as PWM output channels by setting the jumper on header JP4 across pins 7 8 to pull the digital inputs to ground Once the PWM driver sets up a given PWM channel the corresponding digital input channel is no longer avail able for use as a digital input The output voltage swing will be 0 to 2 5 V which is suitable for interfacing only to CMOS...

Страница 20: ...hen the BL2600 is first powered up or reset all the outputs are disabled that is at a high impedance tristate until the digHoutConfig software function call is made The digHoutConfig call sets the initial state of each high current output according to the configuration specified by the user and enables the digital outputs to their initial status Table 4 BL2600 High Current Outputs Logic States U3 ...

Страница 21: ...ble on opposite pairs of IDC header connectors you can still use the 2 A sinking or sourcing capability of the BL2600 by wiring all your connections including the ground in parallel to the opposite pairs see Figure 10 for an example Figure 10 Example of Wiring HK0 In Parallel on IDC Header For the H bridge which is shown in Figure 11 Ka and Kb should be the same Figure 11 H Bridge J13 GND HK0 HOUT...

Страница 22: ...may be set as a sinking digital output by using the digOutConfig 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 12 Figure 12 BL2600 Configurable I O DIO00 DIIO15 Inputs Pulled Up Factory Default 100 kW 27 kW GND K DCIN 5 V K SINKING OUTPUT 27 kW 220 W DIGITAL I...

Страница 23: ... to 36 V and can handle short spikes of 40 V NOTE If the inputs are pulled up to K or to DCIN the voltage range over which the digital inputs are protected changes to K or DCIN 36 V to 36 V When set as a sinking digital output a configurable I O channel can sink up to 200 mA at up to 40 V When you use the software digOutConfig function call to set the config urable I O DIO00 DIO15 are considered t...

Страница 24: ... The BL2600 uses a 22 12 MHz resonator which is doubled to 44 2 MHz At this frequency the BL2600 supports standard asynchronous baud rates up to a maximum of 5 525 Mbps 3 3 1 RS 232 The BL2600 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 B...

Страница 25: ... EGND RP5 RP6 U2 C4 R5 C5 R6 C6 U4 JA RCM1 RCM3000 ETHERNET CORE MODULE U3 RP17 RP18 34 33 16 15 1 2 1 2 15 16 33 34 C1 U1 RP3 RP4 GND K DCIN 5V JP3 JP4 AND JP4 JP1 AND JP2 GND K DCIN 5V J4 RABBITNET 1 J6 RABBITNET 0 J7 C14 C17 C15 C78 J9 C9 U9 RP16 C8 U8 R4 R3 RP15 RP14 RP12 RP13 RP11 R1 R2 C7 U6 U7 U5 RP8 RP7 RP9 RP10 C2 Q9 Q10 J5 Q12 Q15 Q14 Q16 Q11 Q13 C3 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 JP2 JP1 J1 J2 ...

Страница 26: ... for the fol lowing operations Programming debugging Cloning The programming port is used to start the BL2600 in a mode where the BL2600 will download a program from the port and then execute the program The programming port transmits information to and from a PC while a program is being debugged The Rabbit 3000 startup mode pins SMODE0 SMODE1 are presented to the program ming port so that an exte...

Страница 27: ...itions relative to the spring tab position located at the bottom of the RJ 45 jack in Figure 15 are always absolute and the RJ 45 connector will work properly with off the shelf Ethernet cables Figure 15 RJ 45 Ethernet Port Pinout Two LEDs are placed next to the RJ 45 Ethernet jack one to indicate an Ethernet link LNK and one to indicate Ethernet activity ACT The RJ 45 connector is shielded to min...

Страница 28: ...r noise pulses from the A D converter inputs Figure 16 Buffered A D Converter Inputs The A D converter chip can only accept positive voltages By pairing the analog inputs and setting the reference voltage from the D A converter 0 V for single ended unipolar or dif ferential measurements V voltage range 9 for single ended bipolar measurements single ended unipolar single ended bipolar differential ...

Страница 29: ...ther factors affecting the calibration must be taken into account by calibrating using the same mode and gain setup as in the intended use Sample programs are provided to illustrate how to read and calibrate the various A D inputs for the three operating modes These sample programs are found in the ADC subdirectory in SAMPLES BL2600 See Section 4 2 4 for more information on these sample programs a...

Страница 30: ...r channel are driven by the same output on the D A converter chip As a result either the anaOutVolts or the anaOutmAmps function calls will set both the voltage and the current outputs corre sponding to a particular channel For example if anaOutVolts sets unipolar channel AV0 to be 10 V AI0 will be 20 mA if anaOutVolts sets unipolar channel AV0 to be 5 V AI0 will be 12 mA the midpoint of the 4 20 ...

Страница 31: ...A Converter Calibration To get the best results form the D A converter it is necessary to calibrate each mode uni polar bipolar and current for each of its gains It is imperative that you calibrate each of the D A converter outputs in the same manner as they are to be used in the application The calibration table in software only holds calibration constants based on unipolar bipo lar and voltage o...

Страница 32: ... provides the reference voltages for the digital inputs to provide single ended unipolar or differential measurements 0 V or to provide single ended bipolar measurements V voltage range 9 Because the D A converter chip operation is configured by the anaOutConfig function it is important to run the anaOutConfig function before running anaInConfig if you plan to use the digital outputs to ensure tha...

Страница 33: ...IO15 DIO11 DIO07 DIO03 GND GND DIN29 DIN25 DIN21 DIN17 GND DIO13 DIO09 DIO05 DIO01 GND DIO14 DIO12 DIO10 DIO08 DIO06 DIO04 DIO02 DIO00 GND K DIO15 DIO13 DIO11 DIO09 DIO07 DIO05 DIO03 DIO01 GND GND DIN30 DIN28 DIN26 DIN24 GND DIN22 DIN20 DIN18 DIN16 DIN31 DIN29 DIN27 DIN25 K DIN23 DIN21 DIN19 DIN17 GND DIO 00 07 PULLS DIO 08 15 PULLS 1 2 39 40 SW1 J3 1 2 DCIN DCIN GND GND R111 R112 RESET RP2 RP1 JP...

Страница 34: ...trum 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 change to the following BIOS line in a way that is similar to the clock doubler described above define ENABLE_SPREADER 1 Set to 0 to disable spectrum spreader define SPREADER_SETTING 0 0 normal ...

Страница 35: ...5 AIN7 AGND AV1 AV3 AI1 AI3 AGND AIN0 AIN2 AIN4 AIN6 AGND AV0 AV2 AI0 AI2 AGND J11 20 19 R43 JP6 R44 R39 R38 R20 R33 R34 U13 R22 R21 R17 C18 C19 U12 R15 C13 R16 C10 R10 U11 J8 R14 R13 C11 AIN0 AIN1 AIN2 AIN3 AIN4 AIN5 AIN6 AIN7 AGND C12 R12 R11 U10 BT1 C26 C27 D1 U15 C25 J12 J13 C22 R55 R42 C23 C24 R41 R40 R35 R36 R37 U14 R26 R28 R30 R19 R29 R32 R31 R56 R57 L1 R27 R25 R23 R24 C20 C21 R18 C16 1 2 2...

Страница 36: ...32 Wolf BL2600 ...

Страница 37: ...c RAM included on the BL2600 The advantage of working in RAM is to save wear on the flash memory which is limited to about 100 000 write cycles NOTE An application can be developed in RAM but cannot run standalone from RAM after the programming cable is disconnected Standalone applications can only run from flash memory The disadvantage of using flash memory for debug is that interrupts must be di...

Страница 38: ...Do not 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 satisfaction you may retire the existing installation but keep it available to handle legacy applications 4 1 1 2 Upgrades Dynamic C installations are designed for use with the board they are included wit...

Страница 39: ...ntify the model of BL2600 being used and displays that information in the STDIO window 4 2 2 Digital I O The following sample programs are found in the IO subdirectory in SAMPLES BL2600 DIGIN C Demonstrates the use of the digital inputs Using the Demonstration Board you can see an input channel toggle from HIGH to LOW when pressing a pushbutton on the Demonstration Board See Appendix D for hookup ...

Страница 40: ... expected voltage Vout PWM percentage 2 5 V 4 2 3 Serial Communication The following sample programs are found in the RS232 subdirectory in SAMPLES BL2600 PARITY C This sample program repeatedly sends byte values 0 127 from Serial Port F to Serial Port C The program switches between generating parity and not generating parity on Serial Port F Serial Port C will always be checking parity so parity ...

Страница 41: ...D converter channel using two known currents to generate two coefficients gain and offset which are rewritten into the reserved EEPROM The current that is being monitored is displayed continuously ADC_CAL_SE_BIPOLAR C Demonstrates how to recalibrate a single ended bipolar A D converter channel using two known voltages to generate two coefficients gain and offset which are rewritten into the reserv...

Страница 42: ... with using the calibration constants that are stored in the reserved EEPROM The D A converter circuit is set up for asynchronous operation which updates the D A converter output at the time it s being written via the anaOut or anaOutmAmps function calls DAC_MA_SYNC C Demonstrates how to output a current that can be read with an ammeter The output current is computed with using the calibration con...

Страница 43: ...ern to the first 100 sectors of the SF1000 which can then be inspected or cleared by the user The user then has the option to either inspect or clear a page of serial flash memory SFLASH_TEST C Demonstrates how to read and write data from to the SF1000 Once the sample program is compiled and run it displays a message in the Dynamic C STDIO window to report whether the test was successful 4 2 7 TCP...

Страница 44: ... This function initializes the system I O ports and loads all the A D converter and D A converter calibration constants from flash memory into SRAM for use by your program The ports are initialized according to Table A 3 in Appendix A SEE ALSO digOut digIn serMode anaOut anaIn anaInDriver anaOutDriver void brdInit void ...

Страница 45: ...gHOut if digHOutConfig has not executed NOTE The extra digital outputs resulting from the configuration of DIO00 DIO15 as digital out puts are sinking outputs only and cannot be configured with digHOutConfig PARAMETER configuration is a 1 byte parameter where 4 bits are used for the high current outputs HOUT0 HOUT3 Bit 3 high current output channel HOUT3 Bit 2 high current output channel HOUT2 Bit...

Страница 46: ... 3 If you try to use a channel that is configured as a tristate output by digHTriStateConfig PARAMETERS channel is the output channel number 0 3 state sets a given channel to one of the following output states depending on how the output was con figured by digHoutConfig Sinking configuration 0 connect the load to GND 1 put the output in a high impedance state Sourcing configuration 0 put the outpu...

Страница 47: ... output channel HOUT2 Bit 1 high current output channel HOUT1 Bit 0 high current output channel HOUT0 bits 4 7 are not used The high current outputs can be configured as tristate outputs by setting the corresponding bit to a 0 or 1 0 disable operation as tristate output 1 enable operation as tristate output RETURN VALUE None SEE ALSO brdInit digHout dgigHoutConfig digHoutTriState EXAMPLE configura...

Страница 48: ...efore executing digHOutTriState 3 If you try to use a channel that is not configured as a tristate output by digHTriStateConfig PARAMETERS channel is the output channel number 0 3 state sets a given channel to one of the following output states depending on how the output was con figured by digHTriStateConfig Trisate configuration 0 connect the load to GND 1 connects the load to K 0 3 2 put the ou...

Страница 49: ... DIO13 Bit 12 output channel DIO12 Bit 11 output channel DIO11 Bit 10 output channel DIO10 Bit 9 output channel DIO09 Bit 8 output channel DIO08 Bit 7 output channel DIO07 Bit 6 output channel DIO06 Bit 5 output channel DIO05 Bit 4 output channel DIO04 Bit 3 output channel DIO03 Bit 2 output channel DIO02 Bit 1 output channel DIO01 Bit 0 output channel DIO00 The configurable I O are configured to ...

Страница 50: ...n A runtime error will occur for the following conditions 1 channel or state out of range 2 brdInit or digOutConfig was not executed before executing digOut 3 If you try to use a channel that is not configured as a digital output by digOutConfig PARAMETERS channel is the output channel number 0 15 state sets a given channel to one of the following output states 0 connect the load to GND 1 put the ...

Страница 51: ...ditions 1 bank is out of range 2 brdInit or digOutConfig was not executed before executing digOutBank PARAMETERS bank is 0 or 1 0 DIO00 DIO07 1 DIO08 DIO15 data is a value to be written to the specified digital output bank The data format and bitwise value are as follows 0 connect the load to GND 1 put the output in a high impedance state RETURN VALUE None SEE ALSO brdInit digHout digOutConfig dig...

Страница 52: ...t channels If a configurable I O channel DIO00 DIO15 that was configured as a digital output is read by digInBank then the value returned will be the state of the output channel A run time error will occur for the following conditions 1 bank out of range 2 brdInit was not executed before executing digInBank PARAMETER bank is the bank of digital input channels to read 0 DIO00 DIO07 bank 0 1 DIO08 D...

Страница 53: ...Rabbit 2000 Serial Port Software Use the following function calls with the BL2600 User interface to set up BL2600 serial communication lines Call this function after serXOpen Whether you are opening one or multiple serial ports this function must be executed after executing the last serXOpen function AND before you start using any of the serial ports This function is non reentrant If Mode 1 is sel...

Страница 54: ...r after the byte that is transmitted is detected in the receive data buffer Block data mode disable the transmitter after the same number of bytes transmitted are detected in the receive data buffer RETURN VALUE None SEE ALSO brdInit serMode ser485Rx Disables the RS 485 transmitter This puts you in listen mode which allows you to receive data from the RS 485 interface serMode must be executed befo...

Страница 55: ...the A D con verter uses internal channels 4 7 on the D A converter chip to bias the A D converter input circuit PARAMETERS ch_pair are the channel pairs 0 channels 0 and 1 1 channels 2 and 3 2 channels 4 and 5 3 channels 6 and 7 opmode selects the mode of operation for the channel pair on A D converter 0 Single Ended unipolar 0 10 V 1 Single Ended bipolar 10 V 2 Differential bipolar 20 V 3 4 20 mA...

Страница 56: ...0 mA operation value1 is the first A D converter value 0 4095 volts1 is the voltage corresponding to the first A D converter value value2 is the second A D converter value 0 4095 volts2 is the voltage corresponding to the second A D converter value int anaInCalib int channel int opmode int gaincode int value1 float volts1 int value2 float volts2 channel Single Ended Differential 4 20 mA 0 AIN0 AIN...

Страница 57: ...10 and 90 points of the maximum voltage range are recommended when calibrating a channel RETURN VALUE 0 if successful 1 if not able to make calibration constants SEE ALSO brdInit anaInConfig anaIn anaInmAmps anaInDiff anaInVolts ...

Страница 58: ... value corresponding to the voltage or current on the analog input channel 0 2047 for 11 bit conversions SEE ALSO brdInit anaInConfig anaInCalib anaInmAmps anaInDiff anaInVolts int anaIn int channel int gaincode channel Single Ended 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 Voltage Range ...

Страница 59: ...lue 2 The D A converter will be written to bias the A D converter input circuit for proper operation The D A converter access only applies for the single ended bipolar A D converter operation PARAMETER channel is the A D converter input channel 0 7 gaincode is the gain code of 0 to 7 RETURN VALUE A voltage value corresponding to the voltage on the analog input channel A value of 4096 indicates an ...

Страница 60: ...n below gaincode is the gain code of 0 to 7 RETURN VALUE A voltage value corresponding to the voltage on the analog input channel A value of 4096 indicates an overflow or out of range condition SEE ALSO brdInit anaInConfig anaIn anaInmAmps anaInVolts anaInCalib float anaInDiff int channel int gaincode channel Differential Inputs 0 AIN0 AIN1 2 AIN2 AIN3 4 AIN4 AIN5 6 AIN6 AIN7 Gain Code Macro Actua...

Страница 61: ...value PARAMETER channel is the A D converter input channel 0 3 corresponding to AIN0 AIN3 RETURN VALUE A current value corresponding to the current on the analog input channel with a range of 4 20 mA A value of 4096 indicates an overflow or out of range condition SEE ALSO brdInit anaInConfig anaIn anaInDiff anaInVolts anaInCalib float anaInmAmps int channel ...

Страница 62: ...verter input circuit and the correct con figuration of the A D converter would be affected if the D A converter configuration was changed later PARAMETERS configuration sets the output configuration as follows 0 unipolar operation 0 10V and 4 20 mA 1 bipolar operation 10V and 4 20 mA NOTE When the D A converter is configured for bipolar operation the 4 20 mA chan nels change from 12 bit to 11 bit ...

Страница 63: ...verter value 0 10 V 10 V or 4 20 mA value2 is the second D A converter value 0 4095 volts2 is the voltage or current corresponding to the second D A converter value 0 10 V 10 V or 4 20 mA NOTE The 10 and 90 points of the maximum voltage range are recommended when calibrating a channel RETURN VALUE 0 if sucessful 1 if not able to make calibration constants SEE ALSO brdInit anaOut anaOutVolts anaOut...

Страница 64: ...e voltage of a D A converter output channel PARAMETERS ch is the D A converter output channel 0 3 rawdata is a data value corresponding to the voltage desired on the output channel 0 4095 RETURN VALUE 0 if sucessful 1 if rawcount is more than 4095 SEE ALSO anaOutDriver anaOutVolts anaOutCalib Sets the voltage of a D A converter output channel by using the previously set calibration constants to ca...

Страница 65: ...constants to calculate the correct data values PARAMETERS ch is the D A converter output channel 0 3 current is the current desired on the output channel the valid range is 4 20 mA RETURN VALUE None SEE ALSO brdInit anaOut anaOutVolts anaOutStrobe anaOutConfig anaOutCalib void anaOutmAmps int ch float current ...

Страница 66: ...62 Wolf BL2600 ...

Страница 67: ... from Z World in a TCP IP tool kit More information is available at www zworld com 1 Connect the AC adapter and the programming cable as shown in Chapter 2 Getting Started 2 Ethernet Connections If you do not have access to an Ethernet network use a crossover Ethernet cable to con nect the BL2600 to a PC that at least has a 10Base T Ethernet card If you have Ethernet access use a straight through ...

Страница 68: ...NOTE A hardware RESET is accomplished by unplugging the AC adapter then plug ging it back in or by momentarily grounding the board reset input at pin 9 on screw ter minal header J2 When working with the BL2600 the green LNK light is on when a program is running and the board is properly connected either to an Ethernet hub or to an active Ethernet card The orange ACT light flashes each time a packe...

Страница 69: ...S MY_NETMASK MY_GATEWAY and 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 to 10 10 6 1 If you would like to change the default values for example to use an IP address of 10 1 1 2 for the BL2600 board and 10 1 1 1 for your PC you can edit the val...

Страница 70: ...version of Windows you are using look for the TCP IP Protocol Network Dial Up Connections Network line or tab Double click on this line or select Properties or Local Area Connections Properties to bring up the TCP IP properties dialog box You can edit the IP address and the subnet mask directly Disable obtain an IP address automatically You may want to write down the existing values in case you ha...

Страница 71: ...on is made Note If the LNK light does 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 window and running the ping program ping 10 10 6 100 or by Start Run and typing the command ping 10 10 6 100 Notice that the orange ACT light flashes on the BL2600 ...

Страница 72: ...t uses a digital input to indicate that the TCP IP connection should be closed and a digital output to toggle a LED to indicate that there is an active connection Follow the instructions included with the sample program Run the Telnet program on your PC Start Run telnet 10 10 6 100 As long as you have not modified the TCPCONFIG 1 macro in the sample program the IP address is 10 10 6 100 as shown o...

Страница 73: ...User s Manual 69 APPENDIX A SPECIFICATIONS Appendix A provides the specifications for the BL2600 and describes the conformal coating ...

Страница 74: ...BITNET 1 J6 RABBITNET 0 J7 C14 C17 C15 C78 J9 C9 U9 RP16 C8 U8 R4 R3 RP15 RP14 RP12 RP13 RP11 R1 R2 C7 U6 U7 U5 RP8 RP7 RP9 RP10 C2 Q9 Q10 J5 Q12 Q15 Q14 Q16 Q11 Q13 C3 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 JP2 JP1 J1 J2 GND DIN28 DIN24 DIN20 DIN16 GND DIO12 DIO08 DIO04 DIO00 DIN30 DIN26 DIN22 DIN18 K DIO14 DIO10 DIO06 DIO02 GND DIN31 DIN27 DIN23 DIN19 K DIO15 DIO11 DIO07 DIO03 GND GND DIN29 DIN25 DIN21 DIN17 G...

Страница 75: ...ing 40 V DC 2 A max per channel Analog Inputs Eight 11 bit res channels software selectable ranges unipolar 1 2 2 5 5 10 20 V DC bipolar 1 2 5 10 V DC 4 channels can be hardware configured for 4 20 mA 1 MΩ input impedance up to 4 100 samples s Analog Outputs Four 12 bit res channels buffered 0 10 V DC 10 VDC and 4 20 mA update rate 12 kHz Serial Ports 5 serial ports one RS 485 or one RS 232 two RS...

Страница 76: ... mended below the BL2600 Figure A 2 shows this exclusion zone Figure A 2 BL2600 Exclusion Zone Real Time Clock Yes Timers Ten 8 bit timers 6 cascadable 3 reserved for internal peripherals one 10 bit timer with 2 match registers Watchdog Supervisor Yes Power 9 36 V DC 12 W max Operating Temperature 40 C to 70 C 40 C to 85 C without battery Humidity 5 95 noncondensing Board Size 4 85 4 96 1 00 123 m...

Страница 77: ...4 4 2 970 75 4 4 195 106 6 4 265 108 3 4 495 114 2 0 375 9 5 0 380 9 7 0 415 10 5 1 785 45 3 1 970 50 0 2 106 53 5 2 670 67 8 3 650 92 7 4 125 104 8 3 835 97 4 3 720 94 5 2 320 58 9 0 220 5 6 U1 U6 R28 R38 R41 C5 C3 C9 C8 C12 C17 C23 C30 C18 C29 C35 C33 R29 R37 R39 R40 R42 Y3 C42 R35 R31 R27 R25 DS1 R67 R70 J4 C79 Y4 C83 C86 GND R75 R74 R71 DS3 DS2 R63 R64 C71 C72 C68 C64 C67 L2 U8 R49 R48 C62 R51...

Страница 78: ...23 R24 C20 C21 R18 C16 1 2 25 26 RXE J14 Q19 D3 Q17 D2 Q18 RXC D4 Q20 C34 RXF 485 C35 C36 C37 JP7 485 TERM RESISTOR C30 R58 R59 R60 U18 C32 C33 RCM2 U17 C31 R9 U16 R8 J10 R7 GND EGND RP5 RP6 U2 C4 R5 C5 R6 C6 U4 JA RCM1 RCM3000 ETHERNET CORE MODULE U3 RP17 RP18 34 33 16 15 1 2 1 2 15 16 33 34 C1 U1 RP3 RP4 GND K DCIN 5V JP3 JP4 AND JP4 JP1 AND JP2 GND K DCIN 5V J4 RABBITNET 1 J6 RABBITNET 0 J7 C14...

Страница 79: ...ed up to 5 V 3 5 Inputs pulled up to DCIN 5 6 Inputs pulled up to K 5 7 Inputs pulled down to GND JP6 JP2 JP1 JP3 JP4 JP5 JP7 U1 U6 R28 R38 R41 C5 C3 C9 C8 C12 C17 C23 C30 C18 C29 C35 C33 R29 R37 R39 R40 R42 Y3 C42 R35 R31 R27 R25 DS1 R67 R70 J4 C79 Y4 C83 C86 GND R75 R74 R71 DS3 DS2 R63 R64 C71 C72 C68 C64 C67 L2 U8 R49 R48 C62 R51 C61 R44 R47 C59 C49 C57 L1 R69 R72 R73 C75 C74 R58 C53 C47 C48 C4...

Страница 80: ...wn to GND JP6 A D Converter Voltage Current Measurement Options None Voltage Option 1 2 AIN0 4 20 mA option 3 4 AIN1 4 20 mA option 5 6 AIN2 4 20 mA option 7 8 AIN3 4 20 mA option JP7 RS 485 Bias and Termination Resistors 1 2 5 6 Bias and termination resistors connected 1 3 4 6 Bias and termination resistors not connected Although pins 1 3 and 4 6 of header JP7 are shown jumpered for the terminati...

Страница 81: ...TXC RS 232 Serial Port C Inactive high PC3 Input RXC RS 232 Pulled up PC4 Output Not connected Inactive high PC5 Input Not connected Pulled up PC6 Output TXA Programming Port Serial Port A Low PC7 Input RXA Programming Port Pulled up RABBIT 3000 Port A Port B Port D Ethernet Port PA0 PA7 PB2 PB4 PE0 PE3 PD0 PD1 PD4 PD5 RESET IOWR STATUS SMODE0 SMODE1 Watchdog 11 Timers Clock Doubler Slave Port Rea...

Страница 82: ...tal I O enable Inactive high PE2 Output Ethernet See Note PE3 Output RS 485 transmit control Low PE4 PE5 Input IN00 IN01 Pulled up PE6 PE7 Output Not connected Low PF0 Output Serial CLKD Low PF1 Input A D converter busy Pulled up PF2 PF7 Input IN02 IN07 Pulled up PG0 Output EEPROM CLK PG1 Output EEPROM data Pulled up PG2 Output TXF RS 232 Serial Port F Inactive high PG3 Input RXF RS 232 Pulled up ...

Страница 83: ...power supplies used by the op amps driving the digital outputs 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 ground by a 0 Ω resistor R57 This is done to minimize digital noise in the analog circuits and to eliminate the possibility of ground loops External connections to analog ground are m...

Страница 84: ...tor circuit controls the source of power by way of its RESET output signal A replaceable 950 mA h lithium battery provides power to the real time clock and SRAM when external power is removed from the circuit board The drain on the battery is typically less than 10 µA when there is no external power applied to the BL2600 and so the expected shelf life of the battery is This is almost as long as th...

Страница 85: ...es included in the BL2600 Tool Kit to connect header J1 on the Demonstra tion Board to screw terminal headers J1 and J12 on the BL2600 The connections are shown in Figure C 1 for sample program DIGIN C and for sample program SMTP C in Figure C 2 for sample program DIGOUT C and for sample program SSI C and in Figure C 3 for sample program HIGH_CURRENT_IO C 2 Make sure that your BL2600 is connected ...

Страница 86: ...5 RP8 RP7 RP9 RP10 C2 Q9 Q10 J5 Q12 Q15 Q14 Q16 Q11 Q13 C3 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 JP2 JP1 J1 J2 GND DIN28 DIN24 DIN20 DIN16 GND DIO12 DIO08 DIO04 DIO00 DIN30 DIN26 DIN22 DIN18 K DIO14 DIO10 DIO06 DIO02 GND DIN31 DIN27 DIN23 DIN19 K DIO15 DIO11 DIO07 DIO03 GND GND DIN29 DIN25 DIN21 DIN17 GND DIO13 DIO09 DIO05 DIO01 GND DIO14 DIO12 DIO10 DIO08 DIO06 DIO04 DIO02 DIO00 GND K DIO15 DIO13 DIO11 DIO09 D...

Страница 87: ...P7 RP9 RP10 C2 Q9 Q10 J5 Q12 Q15 Q14 Q16 Q11 Q13 C3 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 JP2 JP1 J1 J2 GND DIN28 DIN24 DIN20 DIN16 GND DIO12 DIO08 DIO04 DIO00 DIN30 DIN26 DIN22 DIN18 K DIO14 DIO10 DIO06 DIO02 GND DIN31 DIN27 DIN23 DIN19 K DIO15 DIO11 DIO07 DIO03 GND GND DIN29 DIN25 DIN21 DIN17 GND DIO13 DIO09 DIO05 DIO01 GND DIO14 DIO12 DIO10 DIO08 DIO06 DIO04 DIO02 DIO00 GND K DIO15 DIO13 DIO11 DIO09 DIO07 DI...

Страница 88: ...15 RP14 RP12 RP13 RP11 R1 R2 C7 U6 U7 U5 RP8 RP7 RP9 RP10 C2 Q9 Q10 J5 Q12 Q15 Q14 Q16 Q11 Q13 C3 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 JP2 JP1 J1 J2 GND DIN28 DIN24 DIN20 DIN16 GND DIO12 DIO08 DIO04 DIO00 DIN30 DIN26 DIN22 DIN18 K DIO14 DIO10 DIO06 DIO02 GND DIN31 DIN27 DIN23 DIN19 K DIO15 DIO11 DIO07 DIO03 GND GND DIN29 DIN25 DIN21 DIN17 GND DIO13 DIO09 DIO05 DIO01 GND DIO14 DIO12 DIO10 DIO08 DIO06 DIO04 DIO0...

Страница 89: ...ions are made point to point and until a port expansion method is available a RabbitNet master port can only be connected directly to a peripheral card and the number of peripheral cards is limited by the number of available RabbitNet ports on the master Figure D 1 Connecting Peripheral Cards to a Master MASTER SLAVE SLAVE MASTER SLAVE Rabbit 3000 Microprocessor Straight through Ethernet cable Cro...

Страница 90: ...ble on the con nector The following connectors are used Signal 0 1 friction lock connectors Power 0 156 friction lock connectors RabbitNet RJ 45 connector D A converter 8 channels of 0 10 V 12 bit D A conversion The following connectors are used Signal 0 1 friction lock connectors Power 0 156 friction lock connectors RabbitNet RJ 45 connector Relay card 6 relays rated at 250 V AC 1200 V A or 100 V...

Страница 91: ...r a data rate of 1 MHz Z World recommends a practical limit of 10 m 33 ft Connections between peripheral cards and masters are done using standard 8 conductor Ethernet cables Masters and peripheral cards are equipped with RJ 45 8 pin female con nectors The cables may be swapped end for end without affecting functionality D 2 1 Control and Routing Control starts at the master when the master assert...

Страница 92: ... maximum number of ports A set bit requires a service If portflag 0x03 both RabbitNet ports 0 and 1 will need to be serviced servicetype enables or disables each RabbitNet port as set by the port flags 0 disable port 1 enable port RETURN VALUE 0 Returns an address index to device information from a given physical node address This function will check device information to determine that the periph...

Страница 93: ...dev flags RN_MATCH_PORT RN_MATCH_SN newdev ports 0x03 search ports 0 and 1 newdev serialnum E3446C01L handle rn_find newdev RETURN VALUE Returns the handle of the first device matching the criteria 0 indicates no such devices were found SEE ALSO rn_device The peripheral card sends back the character the master sent This function will check device information to determine that the peripheral card i...

Страница 94: ... data length was greater than 15 SEE ALSO rn_read Reads a string from the specified device and register Waits for results This function will check device information 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 establish the handle regno is the command register number as designated by each dev...

Страница 95: ...RN VALUE The status byte from the previous command 1 means that device information indicates the peripheral card is not connected to the master Sets software watchdog timeout period Call this function prior to enabling the software watchdog timer This function will check device information to determine that the peripheral card is connected to a master PARAMETERS handle is an address index to devic...

Страница 96: ...timer 2 enables software watchdog timer RETURN VALUE The status byte from the previous command 1 means that device information indicates the peripheral card is not connected to the master SEE ALSO rn_hitwd rn_sw_wdt Hits software watchdog Set the timeout period and enable the software watchdog prior to using this function This function will check device information to determine that the peripheral...

Страница 97: ...status byte from the previous command 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 indicates which error occurred This register is cleared when read 7 Data available and waiting to be processed MOSI master out slave in 6 Write collision MISO master in slave...

Страница 98: ... Busy 11 Device not connected 0 Device 1 Router 0 No error 1 Communication error Use the function rn_comm_status to determine which error occurred Reserved for individual peripheral cards Reserved for individual peripheral cards 0 Last command accepted 1 Last command unexecuted 0 Not expired 1 HW or SW watchdog timer expired Use the function rn_rst_status to determine which timer expired ...

Страница 99: ...perfect Bugs are always present in a system of any size In order to prevent danger to life or property it is the responsibility of the system designer to incorporate redundant protective mechanisms appropriate to the risk involved All Z World products are 100 percent functionally tested Additional testing may include visual quality con trol inspections or mechanical defects analyzer inspections Sp...

Страница 100: ...96 Wolf BL2600 ...

Страница 101: ...on modules 8 34 installation 8 basic instructions 33 COM port 9 installation 8 starting 9 telephone based technical support 4 34 upgrades and patches 34 E Ethernet cables 63 Ethernet connections 63 steps 63 Ethernet port 23 pinout 23 exclusion zone 72 F features 1 flash memory lifetime write cycles 33 serial flash 31 flash memory addresses user blocks 31 H headers JP1 19 JP2 19 JP3 14 JP4 14 JP5 1...

Страница 102: ...37 AD_RDVOLT_ALL C 25 ADC_CAL_DIFF C 37 ADC_CAL_MA C 27 37 38 ADC_CAL_SE_BIPOLAR C 37 38 ADC_CAL_SE_UNIPOLAR C 37 ADC_RD_CALDATA C 37 38 D A converter outputs DACAL C 38 digital I O DIGIN C 35 DIGOUT C 35 PWM C 36 how to set IP address 65 PONG C 10 real time clock RTC_TEST C 10 SETRTCKB C 10 serial communication MASTER C 36 PUTS C 36 SIMPLE3WIRE C 36 SIMPLE5WIRE C 36 SLAVE C 37 SF1000 serial flash...

Страница 103: ...ne 72 header footprint 73 headers 73 relative pin 1 locations 73 temperature 71 dimensions BL2600 main board 70 spectrum spreader 30 status byte 94 subsystems 11 T TCP IP connections 63 10Base T Ethernet card 63 additional resources 68 Ethernet hub 63 steps 63 technical support 10 Tool Kit 3 AC adapter 3 DC power supply 3 Demonstration Board 3 Dynamic C software 3 programming cable 3 software 3 Us...

Страница 104: ...100 Wolf BL2600 ...

Страница 105: ...2 Demonstration Board Schematic www zworld com documentation schemat 090 0042 pdf 090 0128 Programming Cable Schematic www zworld com documentation schemat 090 0128 pdf The schematics included with the printed manual were the latest revisions available at the time the manual was last revised The online versions of the manual contain links to the latest revised schematic on the Web site You may als...

Страница 106: ......

Отзывы: