553
Chapter 8, Programming The Call Processing Subsystem
Example Programs
2040
* Call Processing Status Register Group Condition register conditions which will set the
Summary Message TRUE if they occur:
Bit 5: Connect LED lit
decimal value = 2^5 = 32
Bit 4: Access LED lit
decimal value = 2^4 = 16
Bit 3: Page LED lit
decimal value = 2^3 = 8
Bit 2: Unused in Test Set
decimal value = 2^2 = 4
Bit 1: Register LED lit
decimal value = 2^1 = 2
Bit 0: Active LED lit
decimal value = 2^0 = 1
32+16+8+4+2+1 = 63
Therefore set the Call Processing Enable Register to 63: STAT:CALLP:ENAB 63
* The Call Processing Status Register Group Summary Message is passed to the Status
Byte Register through Bit 9 in the Operational Status Register Group Condition Register.
The Operational Status Register Group must be configured to set its Summary Message
TRUE if the Summary Message from the Call Processing Status Register Group is
TRUE. Therefore Bit 9 (2^9=512) in the Operational Status Register Group Enable
Register must be set HIGH: STAT:OPER:ENAB 512
* The Test Set’s HP-IB interface has a large input buffer and can handshake in several
commands. The commands are processed serially out of the input buffer. In this example
program the Cnfg_srvc_intrp sends 8 commands to the Test Set in rapid succession.
The *RST command requires several seconds to execute. Since the Test Set can
handshake in many commands it can appear to the control program that the Test Set has
executed all of the commands sent, when in reality they have only been placed in the
input buffer. To prevent the control program from getting ahead of the Test Set the
*OPC? query command is used to synchronize the Test Set and the control program.
3000
The Srvice_interupt subprogram first checks for errors. If an error is detected from one of
the enabled registers the Error_flag is set and the subprogram is exited. If an error is
detected from a non-enabled register the program stops. If no errors are detected then the
Call Processing registers are queried to clear them to allow further interrupts and the
operation complete bit is set. In a ‘real world’ situation the Srvice_interupt subprogram
should take some action if the Call Processing subsystem did not generate the interrupt (if
the command IF BIT(Status_byte,7) was not true). This branch is left out of the example
subprogram to minimize the number of program lines. As written, the subprogram assumes
that the interrupt was caused by the desired call processing activity completing
successfully.
6080
Ptr_value is the value that the positive transition filter will be set to. The value is
determined by which pseudo-LED will light when the desired command is completed. For
example, a successful PAGE is indicated by the Connect pseudo-LED lighting. Therefore
the Ptr_value is set to 32 (2^5) for the Page command.
Table 52
Comments For SRQ Example Program (Continued)
Program Line
Number
Comment
Содержание 8921A
Страница 14: ...14 ...
Страница 17: ...Contents 17 3 HP IB Command Guidelines Sequential and Overlapped Commands 72 Guidelines for Operation 73 ...
Страница 24: ...Contents 24 9 Error Messages ...
Страница 25: ...Contents 25 Index 593 ...
Страница 26: ...Contents 26 ...
Страница 27: ...27 1 Using HP IB ...
Страница 58: ...58 Chapter 1 Using HP IB Remote Local Modes ...
Страница 59: ...59 2 Methods For Reading Measurement Results ...
Страница 71: ...71 3 HP IB Command Guidelines ...
Страница 94: ...94 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Страница 95: ...95 4 HP IB Commands ...
Страница 100: ...100 Adjacent Channel Power ACP ...
Страница 150: ...150 Display DISPlay space TDMA test TESTs TFReq THLP TIBasic TMAKe TPARm TPRint TSEQn TSPec Returns current screen TX ...
Страница 173: ...173 System System SYSTem ERRor Returns integer value quoted string ...
Страница 236: ...236 Triggering Measurements ...
Страница 237: ...237 5 Advanced Operations ...
Страница 350: ...350 Chapter 6 Memory Cards Mass Storage Using Memory Cards Figure 20 Inserting a Memory Card ...
Страница 360: ...360 Chapter 6 Memory Cards Mass Storage Using External Disk Drives ...
Страница 361: ...361 7 IBASIC Controller ...
Страница 442: ...442 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Страница 559: ...559 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Страница 562: ...562 Chapter 8 Programming The Call Processing Subsystem Example Programs ...
Страница 563: ...563 9 Error Messages ...
Страница 592: ...592 ...