background image

 

20

Programming Examples 

Run this sample program to select available channels for the SK switch to be controlled through 
a PC printer port. See the 

Testing the Switch

 section. 

 

1     REM TESTING PROGRAM FOR SK SWITCH THROUGH A PC PRINTER PORT 
2     REM OUTPUT DATA PINS ARE AS FOLLOWS: 
3     REM (ADDRESS 378H) BIT0-BIT6 CORRESPOND TO DATA0-DATA6 
4     REM (ADDRESS 37AH) BIT7=Busy, BIT2=Error 
10    DIM SHARED KEYPRESS AS STRING 
20    I = 0                                     'SET CHANNEL TO 0 
30    OUT &H378, I + 128                        'OUTPUT THE CHANNEL SELECTION 
40    OUT &H37A, 1                              'SET STROBE LOW 
50    OUT &H37A, 0                              'SET STROBE HIGH 
60    CLS                                       'CLEAR THE USER SCREEN 
62    LOCATE 6, 23 
64    PRINT "JDS Uniphase - SK SWITCH TEST" 
66    LOCATE 11, 23 
68    PRINT "PRESS I TO INCREMENT CHANNEL" 
70    LOCATE 12, 23 
72    PRINT "PRESS D TO DECREMENT CHANNEL" 
74    LOCATE 13, 23 
76    PRINT "PRESS R TO Reset AND TEST CHANNEL POSITION" 
78    LOCATE 14, 23 
80    PRINT "PRESS Q TO QUIT" 
82    LOCATE 20, 23 
84    PRINT "               " 
86    LOCATE 20, 23 
88    PRINT "CHANNEL"; I                        'DISPLAY CURRENT CHANNEL 
100   STATUS = INP(&H379)                       'CHECK SWITCH STATUS 
110   IF (STATUS AND 8) THEN                    'CHECK FOR ERROR 
120      LOCATE 22, 23                          'DECLARE POSITION ERROR 
 
130      PRINT "POSITION Error DETECTED!" 
140   ELSE 
150      LOCATE 22, 23 
160      PRINT "                        "       'CLEAR POS. ERROR STATEMENT 
170   END IF 
180   STATUS = INP(&H379)                       'CHECK SWITCH STATUS 
190   IF (STATUS AND 128) <> 128 THEN GOTO 180  'WAIT FOR BUSY BIT TO CLEAR 
200   KEYPRESS = INKEY$                         'CHECK FOR KEYBOARD SELECTION 
210   IF KEYPRESS = "Q" THEN GOTO 1000 
220   IF KEYPRESS = "I" THEN I = I + 1 
230   IF KEYPRESS = "D" THEN I = I - 1 
240   IF KEYPRESS = "R" THEN 
250      OUT &H378, I                           'OUTPUT THE CHANNEL AND RESET 
260   ELSE 
270      OUT &H378, I + 128                     'OUTPUT THE CHANNEL SELECTION 
280   END IF 
300   IF KEYPRESS <> "" THEN 
310      OUT &H37A, 1                           'SET THE STROBE LINE LOW 
320      OUT &H37A, 0                           'SET THE STROBE LINE HIGH 
340   END IF 
500   GOTO 82 
1000  STOP

 

Summary of Contents for SK Series

Page 1: ...SK SERIES FIBEROPTIC SWITCH MODULE User s Manual...

Page 2: ...ii SD000166 Rev 501 June 2003 2003 JDS Uniphase All rights reserved...

Page 3: ...nal E mail Sales jdsu sales us jdsu com WWW JDSU COM Instrumentation Customer Support and Service Emergency technical support is available 24 hours a day seven days a week Phone 613 843 3000 extension...

Page 4: ...iv...

Page 5: ...plications 4 Standard Accessories 4 Specifications 5 Getting Started 7 Before Initializing and Operating the Unit 7 Initial Inspection 7 Operating Environment 7 Temperature 7 Humidity 8 Cleaning Conne...

Page 6: ...vi Testing the Switch 19 Programming Examples 20 Service 21 Storing and Shipping 21 Claims and Repackaging 21 Returning Shipments to JDS Uniphase 21...

Page 7: ...he common terminal connects to the earthed pole of the power source Willfully interrupting the protective earth connection is prohibited Never look into the end of an optical cable connected to an opt...

Page 8: ...for instructions on handling and operating the unit safely See the user s manual for instructions on handling and operating the unit safely Electrostatic discharge ESD See the user s manual for instru...

Page 9: ...itch The operation of the switch is based on JDS Uniphase s proven expanded beam lens technology using a precision stepper motor to align optical channels The standard single pole configuration consis...

Page 10: ...Features Up to 26 channels Typical insertion loss 0 4 dB Typical return loss 60 dB Simple parallel interface control Compact modular package suitable for original equipment manufacturing OEM Applicat...

Page 11: ...ngle mode 0 02 dB 0 05 dB Insertion loss stability3 0 04 dB 0 06 dB Repeatability4 sequential switching random switching 0 005 dB 0 01 dB 0 02 dB 0 05 dB Crosstalk single mode 90 dB 80 dB Input power...

Page 12: ...C maximum Power consumption1 2 20 W steady state Physical Dimensions W x H x D 79 x 28 x 140 mm Weight 280 g Environmental Operating temperature 0 to 55 C Storage temperature 40 to 70 C Humidity non c...

Page 13: ...and work in an electrostatic discharge ESD controlled area 2 Inspect the shipping container for any indication of excessive shock to the contents and inspect the contents to ensure that the shipment i...

Page 14: ...rrule that can easily be broken Optical cable ends need to be cleaned before using them with the unit The following items are required for cleaning Filtered compressed air or dusting gas for example T...

Page 15: ...her end of the pipe cleaner or swab dry the areas cleaned 7 Using the dusting gas or compressed air blow the areas cleaned Mounting Considerations The SK switch can be mounted in any orientation The o...

Page 16: ...obe Strobe input active low high to low pulse read data lines and reset line high pulse ignore state of data lines and Reset line A minimum pulse width of 1 s is required This line is pulled high inte...

Page 17: ...esistors For inputs the maximum low level output is 0 8 V and the minimum high level is 2 0 V For outputs the maximum low level output is 0 5 V and the minimum high level is 4 0 V Fiber Exit The fiber...

Page 18: ...12...

Page 19: ...escription The top and side views of the SK switch module are shown in Figure 6 Figure 6 Top and Side Views of the SK Switch Connections The way that the SK switch interfaces with the input output lin...

Page 20: ...mbers are strobed in through the data lines on high to low transitions of the Strobe line When a new channel is strobed in the SK switch immediately selects the channel The channel number is represent...

Page 21: ...0 0 0 1 0 1 1 12 1 0 0 0 1 1 0 0 13 1 0 0 0 1 1 0 1 14 1 0 0 0 1 1 1 0 15 1 0 0 0 1 1 1 1 16 1 0 0 1 0 0 0 0 17 1 0 0 1 0 0 0 1 18 1 0 0 1 0 0 1 0 19 1 0 0 1 0 0 1 1 20 1 0 0 1 0 1 0 0 21 1 0 0 1 0 1...

Page 22: ...sition Busy Output Line The Busy line provides an indication of the switching mechanism state The line is low when the switch is idle and high when the switching mechanism is moving to another port Er...

Page 23: ...strobe pulse width 1 s tmv switching cycle time 0 55 ms trh reset hold time 20 s trst reset cycle time 1 1 s Calibrating the Switch The switch is factory calibrated No further calibration is required...

Page 24: ...18...

Page 25: ...D sub Connector GND 1 GND GND 2 19 Busy 3 11 D0 4 2 Error 5 15 D1 6 3 D2 8 4 D3 10 5 D4 12 6 Strobe 13 1 D5 14 7 D6 16 8 Reset 18 9 GND 19 GND GND 20 GND 5 V DC 23 5 V DC 5 V DC 24 5 V DC To test the...

Page 26: ...TE 13 23 76 PRINT PRESS R TO Reset AND TEST CHANNEL POSITION 78 LOCATE 14 23 80 PRINT PRESS Q TO QUIT 82 LOCATE 20 23 84 PRINT 86 LOCATE 20 23 88 PRINT CHANNEL I DISPLAY CURRENT CHANNEL 100 STATUS INP...

Page 27: ...iphase sales personnel This number must be obtained prior to shipping any material to JDS Uniphase The owner s name and address the model number and full serial number of the unit the RMA number and a...

Reviews: