background image

Inputs and Outputs

ADwin

14

ADwin-Gold

 USB / ENET, manual version 3.8, October 2005

Tolerance Ranges

Slight variations regarding the calculated values may be within the tolerance
range of the individual component. Two kinds of variations are possible (in
LSB), which are indicated in this hardware manual:

INL

– The integral non-linearity (INL) defines the maximum deviation from the 

ideal straight line over the whole input voltage range.

DNL

– The differential non-linearity (DNL) defines the maximum deviation from 

the ideal quantization level.

5.2 Digital Inputs and Outputs

Digital inputs/outputs

On two 25-pin D-SUB sockets (DIO 00…DIO 31) there are 32 digital inputs or
outputs. They are programmable in groups of 8 as inputs or outputs.

The digital inputs are TTL-compatible and not protected against over voltage.
Do not use pins marked as "reserved". They are planned for changes and
expansions and can cause damages to your system if you do not pay attention
to this fact.

Trigger input (EVENT)

The 

ADwin-Gold

 is equipped with an external trigger input (EVENT). With this

trigger input processes are triggered by an external signal (trigger) with rising
edge and can completely and immediately be processed, (see also 

ADbasic

manual, chapter: "Program Structure").

Power-up configuration

After power-up of the device, all connections are configured as inputs.

CONF_DIO(12)

The instruction 

CONF_DIO(12)

 configures DIO 15:00 as digital inputs and

DIO 31:16 as digital outputs (see Fig. 10).

Only in this configuration will you be able to totally access the inputs and out-
puts with the instructions

DIGIN

DIGIN_WORD

DIGOUT_WORD

SET_DIGOUT

CLEAR_DIGOUT

.

About programming under other configurations the following chapter will give
you more detailed information: chapter 5.3 "Time-Critical Tasks" (see also

ADbasic 

manual and tutorial).

Fig. 10 – Pin assignment with the configuration 

CONF_DIO(12)

5.3 Time-Critical Tasks

For extremely time-critical tasks you can use instructions with which you have
direct access to the 

control and data registers of the ADC and DAC

 (see

ADbasic

 manual). These registers can be found in the memory address area

of the ADSP (memory mapped). These instructions also allow to optimize the
program structure (s.b.).

Inputs / DIGIN

Outputs / DIGOUT

CONN. 1

(male)

13

12

11

10

9

8

7

6

5

4

3

2

1

25

24

23

22

21

20

19

18

17

16

15

14

DI

GI

N-00

DI

GI

N-02

DI

GI

N-04

DI

GI

N-06

DI

GI

N-08

DI

GI

N-10

DI

GI

N-12

DI

GI

N-14

EVEN

T

GND

DI

GI

N-01

DI

GI

N-03

DI

GI

N-05

DI

GI

N-07

DI

GI

N-09

DI

GI

N-11

DI

GI

N-13

DI

GI

N-15

GND

R

ESER

VED

R

ESER

VED

CONN. 2

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

GND

+5V

 (out

put

, max.

 0.

1A

)

DI

GOUT-14

DI

GOUT-12

DI

GOUT-10

DI

GOUT-08

DI

GOUT-06

DI

GOUT-04

DI

GOUT-02

DI

GOUT-00

GND

DI

GOUT-15

DI

GOUT-13

DI

GOUT-11

DI

GOUT-09

DI

GOUT-07

DI

GOUT-05

DI

GOUT-03

DI

GOUT-01

R

ESER

VED

R

ESER

VED

Summary of Contents for ADwin-Gold-USB

Page 1: ...ADwin Gold USB ENET Manual ADwin Gold USB ENET manual version 3 8 October 2005...

Page 2: ...8 October 2005 J ger Computergesteuerte Messtechnik GmbH Rheinstra e 2 4 D 64653 Lorsch Germany For any questions please don t hesitate to contact us Hotline 49 6251 96320 Fax 49 6251 5 68 19 E Mail...

Page 3: ...Outputs 14 5 3 Time Critical Tasks 14 6 Calibration 18 6 1 General Information 18 6 2 Calibrating 18 7 DA Add On 22 8 CO1 Counter Add On 23 8 1 Hardware 23 8 2 Software 25 8 3 Operating Mode Impulse...

Page 4: ...further information in this documentation or to other sources such as manuals data sheets literature etc C ADwin File names and paths are placed in angle brackets and characterized in the font Courier...

Page 5: ...by appropriately qualified personnel Qualified personnel are persons who due to their education experience and training as well as their knowledge of applicable technical stan dards guidelines accide...

Page 6: ...the processor of the ADwin system executes all tasks which require real time in parallel Real time operating system The operating system for the DSP of the ADwin system has been optimized to reach the...

Page 7: ...means immediate and full range responds The ADwin system never sends data to the PC without request The data transfer to the PC is always a response to an instruction coming from the PC Thus embedding...

Page 8: ...f the ADwin Gold Analog outputs The standard version of the ADwin Gold system is equipped with 2 analog outputs optional 8 with an output voltage range of 10V 10V and a 16 bit resolution You can synch...

Page 9: ...unter option with four 32 bit counters which can optionally be used for period width measurement as impulse counters or as up down counters with clock direction or four edge evaluation for quadrature...

Page 10: ...nce by taking measures for bleeding off interferences such as connecting the shielding to the enclosure just before entering it The more frequently you earth the shield ing on its way to the machine t...

Page 11: ...or male For using the system with an external power supply unit you need the submin iature connector described above The connector is provided by the following manufacturer under the article number 71...

Page 12: ...is booted shows that the operating system has been loaded appropriately and that via ADbasic the ADwin sys tem has been connected At the same time the flashing of the LED green col ored now at the AD...

Page 13: ...l pull up resistance 10 k Standard instructions For fast and easy programming there are standard instructions available in the compiler ADbasic which enable a user to easily measure or output data see...

Page 14: ...e earth of the ADwin Gold system with the earth of the computer If you do not operate the PC and the ADwin Gold system in the same place you should not use the power supplied by the PC but an external...

Page 15: ...his is in addition to the connections to the positive and negative input Fig 7 Input circuitry of an analog input 16 bit and 14 bit measurements You can convert the signals at the multiplexer outputs...

Page 16: ...AC is allocated to each of the outputs DAC instruction The standard instruction DAC number value checks each of the values if it exceeds or falls below of the 16 bit value range 0 65535 If the value i...

Page 17: ...t ADC ULSB 20V 214 1220 7 V The measured 16 bit value of the ADC is returned in the lower word of the reg ister A DAC value which is to be output has to be available there Fig 9 Storage of the ADC DAC...

Page 18: ...of the device all connections are configured as inputs CONF_DIO 12 The instruction CONF_DIO 12 configures DIO 15 00 as digital inputs and DIO 31 16 as digital outputs see Fig 10 Only in this configura...

Page 19: ...tions skillfully you may be able to execute faster measurements It is important to set the START_CONV instruction in a sufficient time delay from the SET_MUX instruction in order to consider the multi...

Page 20: ...Commentary 31 16 15 10 9 8 7 6 5 4 3 2 1 0 20400010 Start conversion All DACs synchronously 1 1 s 1 1 s 0 start conversion s 1 no effect 20400050 Write only to the register DAC 1 x x x x x x x x x x...

Page 21: ...UT OUT 4 IN OUT IN IN 5 IN OUT IN OUT 6 IN OUT OUT IN 7 IN OUT OUT OUT 8 OUT IN IN IN 9 OUT IN IN OUT 19 OUT IN OUT IN 11 OUT IN OUT OUT 12 OUT OUT IN IN 13 OUT OUT IN OUT 14 OUT OUT OUT IN 15 OUT OUT...

Page 22: ...g 14 bit converters connecting cables from the inputs outputs to the reference voltage source and to the measurement device recommended BNC cables 6 2 Calibrating Connect your ADwin Gold system with t...

Page 23: ...you close the program with Exit the new settings remain With Undo Exit you undo all inputs and you exit the calibration program that means the original settings are transferred to the ADwin Gold syst...

Page 24: ...DMM to the selected out put Connect the voltage source or a calibrated DAC output to the selected input Adjust the offset value at the scroll bar in such a manner that your digi tal multimeter display...

Page 25: ...view window Step 4 With Print Calibration you can print a protocol of the specified calibra tion data In the open window you can enter different information which will be presented in your printout fo...

Page 26: ...nected to the pins of the DSub socket ANALOG OUT Fig 15 Pin assignment of the DA add on Programming and calibration You program and calibrate the additional DACs like the DAC 1 and DAC 2 see chapter 5...

Page 27: ...counter values into the latch LATCH The following modes are possible 1 Clock and direction A positive edge at CLK increments or decrements the counter values by one The signal at DIR determines the co...

Page 28: ...t to a specified potential Connect the positive input to 5V and the negative input to GND Counter inputs with TTL operation mode for Gold Gold D single ended mode not available with Rev B2 with Gold o...

Page 29: ...tructions Please configure the counters according to the following order 1 Disable specified counter CNT_ENABLE 2 Set operating mode CNT_MODE CNT_SET CNT_INPUTMODE CNT_SE_DIFF 3 Clear counter CNT_CLEA...

Page 30: ...e following rules for programming a Process the read 32 bit value only with variables of the type INTEGER or LONG ADbasic then keeps internally the read bit pattern unmodified and automatically consid...

Page 31: ...is counted incremented or decremented up to a maximum frequency of 20 MHz The direction is derived from a high signal count up or low signal count down at the DIR input direction This signal can be st...

Page 32: ...horter than 50 ns Impulse widths or pause durations shorter than 100 ns are not incremented Changing the phase shift will have an effect on the maximum input fre quency If it differs from 90 degrees t...

Page 33: ...am of the CO1 add on in the mode period duration measurement In this mode the counter values are latched into Latch A at every positive edge and the previous data are overwritten The pulse width will...

Page 34: ...example Control Registers 32 bit Latch B 32 bit Counter 32 bit Latch A CLK EN CLR ADwin GOLD bus Data Data Data LATCH DIR Up ref CLK to fref switches of other counters Divider 4 fref switch G 20 MHz C...

Page 35: ...out Latch B Counter 3 x x x x x 20400234 Read out Latch A Counter 4 x x x x x 20400238 Read out Latch B Counter 4 x x x x x 20400300 Enable counter x x x x x 0 Disable counter x 1 Enable counter 20400...

Page 36: ...1 CO4 where the inputs of the CO1 add on can also be found 2 CAN interfaces page 35 Depending on your requirements you can order both interfaces either as high speed or low speed version Switching in...

Page 37: ...n CO Power in is supplied at the connectors CO1 CO4 for example for an external incremental encoder Please note The negative inputs U1in are galvanically connected with GND via a common line the negat...

Page 38: ...art of conversion m 0 initialize value PAR_9 0 FOR n 1 TO 32 Go through all possible 32 bits m SHIFT_RIGHT PAR_1 32 n AND 1 XOR m PAR_9 SHIFT_LEFT m 32 n OR PAR_9 NEXT n PAR_2 0 Enable next conversion...

Page 39: ...e enclosure Power supply Low speed only The low speed version requires an external power supply of 12V DC to run the CAN controller The power must be supplied for each interface separately Bus Termina...

Page 40: ...are parameters in a defined bit length The parameters 0 211 1 or 0 229 1 result from the bit length Message objects The controller stores each message incoming or outgoing in one out of 15 message obj...

Page 41: ...t bits if you have an 11 bit identifier it is 11111111100b In this example the comparison of bit 2 is responsible for the assignment of the messages because the bits 3 10 of the compared identifiers a...

Page 42: ...ntrol the message input polling You can enable the interrupts of several message objects Which object has caused the interrupt can be seen in the interrupt register 5Fh It contains the number of the m...

Page 43: ...hich are not positioned in an end location must not be terminated For the termination there is if required for the chosen circuit type a voltage of 5V provided at pin 6 9 3 1 Setting the interface par...

Page 44: ...some common Baud rates and their divisors Fig 30 RS xxx Baud rates Special features of RS485 Via a RS485 interface more than 2 participants can communicate with each other Contrary to the RS232 interf...

Page 45: ...the interfaces with each other REM befor starting the program INCLUDE adwpext inc DIM DATA_1 1000 AS LONG Transmitted data DIM DATA_2 1000 AS LONG Received data DIM lauf AS LONG Control variable INIT...

Page 46: ...us REM until it receives the value 55 Now the interface REM becomes active and sends the value 44 INCLUDE adwgcan inc DIM ret_val val AS LONG INIT RS_RESET REM Initialization of the interfaces REM 384...

Page 47: ...out processes and only with the file ADwin9 btl the system will only be booted after power up but no pro cesses can be executed With the installation of the ADwin Developer Software from the supplied...

Page 48: ...Ampere The power supply unit is rated for the highest load and maximum expansions of the ADwin Gold Please pay attention to the fact that the USB Ethernet cables are sufficiently shielded in order to...

Page 49: ...CO1 1 7 Idle current Ethernet Interface Iidle USB Ub 10V 1 3 A Ub 12V 1 1 Ub 35V 0 4 Ub 12V Gold DA 1 5 Ub 12V Gold CO1 1 1 Power up current Ethernet Interface Ipower on Enet Ub 12V 2 1 Ub 12V Gold DA...

Page 50: ...IO per DIO line 35 mA ITOTAL all DIGIN or all DIGOUT via VCC GND 70 EVENT Input Edge recognition pos VT Low VCC 5V 1 65 1 9 2 15 V Switching hysteresis VT VT 0 4 0 9 Input current IIH VI 2 7V 20 A II...

Page 51: ...16 bit Number 2 with DA add on 8 Output voltage Uout 10 9 999695 V Settling time tsettle 2V jump 3 s FSR a 20V 10 Permissible current 25 mA Integral non linearity INL 2 LSB Differential non linearity...

Page 52: ...ency fref 20 MHz Prescaler by 4 fref 4 5 Accuracy and Drift 100 ppm Counter inputs differentiala Differential input thresh old voltage VTH 10V VCM 13 2V 200 200 mV Input hysteresis VTH 10V VCM 13 2V 4...

Page 53: ...6 bit x x x x x x x x x x x x x x 20400120 Read out register and start conver sion ADC 1 14 bit x x x x x x x x x 0 0 x x x 20400130 Read out register ADC 1 14 bit x x x x x x x x x 0 0 x x x 20400140...

Page 54: ...counter CNT_CLEAR x x x x x 0 no effect x 1 clear counter x x x 20400320 Latch counter CNT_LATCH x x x x x 0 no effect x 1 latch counter x x x 20400330 Select counter input CLR or LATCH x x x x x 0 CL...

Page 55: ...a connection to PC no longer via link but via Ethernet or USB All analog inputs and counter inputs are only available with differential operation mode B3 Nov 2003 Additional TTL counter inputs for sin...

Page 56: ...h CONF_DIO 17 Fig 14 Hardware addresses of the control and data registers for the digital inputs outputs 17 Fig 15 Pin assignment of the DA add on 22 Fig 16 Block diagram of the Gold CO1 counter add o...

Page 57: ...n 28 Gold CO1 23 impulse width measurement 29 operating modes 23 E Earthing 6 Encoder 28 Event CAN bus 38 input resistor 9 rising edge 14 F Four edge evaluation 28 G Gain factor kV 13 I impulse width...

Reviews: