Software Functional Description
General
The PM 6685 software is divided into two main modules: the GPIB
and DEVICE modules. The GPIB fully implements the Message Ex-
change protocol as described in the IEEE 488.2 - 1987 standard.
The DEVICE module is a real-time measurement executive that can
be interrupted to do other tasks, such as handling the keyboard, per-
forming bus commands etc.
The basic structure of the main module is as follows:
main PM6685()
{
Initialize();
while (TRUE)
{
if (BREAKFLAG_KEYBOARD)
{
HandleKeyboard();
}
if (BREAKFLAG_PRESET)
{
PresetDevice();
}
if (BREAKFLAG_GPIBCOMMAND)
{
ExecuteGpibCommands();
}
if (BREAKFLAG_RESTART)
{
RestartMeasurement();
}
while (not any BREAKFLAG)
{
Measure( );
}
}
}
All break flags are set by interrupt-driven events, either from exter-
nal functions (the GPIB interface) or from internal functions (timers
etc.).
The
Initialize
procedure does all necessary initialization at power
up. It also does the power up tests. See Power-On test in chapter 2.
The
Handlekeyboard
procedure controls all user input/output via
the front panel, except displaying the measurement results.
The
PresetDevice
procedure reprograms the complete device when
the PRESET key has been pressed (in local mode). It aborts pending
measurements.
The
ExecuteGpibCommands
procedure executes GPIB commands
and, if a query is received, it starts the response formatter and sends
the requested data to the GPIB interface. If the display is switched
on, the results are also displayed.
The
RestartMeasurement
procedure aborts pending measure-
ments; the measure loop will later continue to measure. This is
mainly used when the RESTART key is pressed.
The
Measure
procedure is the measurement control loop that is used
in local mode. It sends its result to the display.
The
ParseGpibInputData
procedure parses the GPIB messages
found in the input buffer and sends executable statements to the
ExeceuteGpibCommands procedure. The input of data to the input
buffer from the external GPIB interface is fully controlled in inter-
rupts. These interrupts are always enabled so the new data bytes can
be stored in the input buffer while parsing commands. This
ParseGpibInputDat
is also executed in interrupt.
Software Functional Description 4-15
Содержание PM6685
Страница 1: ...Programmable Frequency Counter PM6685 PM6685R Service Manual ...
Страница 4: ...This page is intentionally left blank ...
Страница 5: ...Chapter 1 Safety Instructions ...
Страница 7: ...Chapter 2 Performance Check ...
Страница 12: ...This page is intentionally left blank 2 6 Performance Check Options ...
Страница 13: ...Chapter 3 Disassembly ...
Страница 16: ...This page is intentionally left blank 3 4 Disassembly PM9691 or PM9692 Oven Oscillator ...
Страница 17: ...Chapter 4 Circuit Descriptions ...
Страница 33: ...Chapter 5 Repair ...
Страница 42: ...This page is intentionally left blank 5 10 Safety Inspection and Test After Repair ...
Страница 43: ...Chapter 6 Calibration Adjustments ...
Страница 49: ...Chapter 7 Replacement Parts ...
Страница 53: ...Replacement Parts Mechanical Parts 7 5 80 Lug bent 15 to lock ...
Страница 62: ...This page is intentionally left blank 7 14 Replacement Parts GPIB Interface PM9626B ...
Страница 63: ...Chapter 8 Drawings Diagrams ...
Страница 65: ...This page is intentionally left blank Drawings Diagrams 8 3 ...
Страница 66: ...Main PCB Component layout 8 4 Drawings Diagrams Top View ...
Страница 68: ...Main PCB Component layout 8 6 Drawings Diagrams Bottom View K2 K1 K3 K4 ...
Страница 70: ...This page is intentionally left blank 8 8 Drawings Diagrams ...
Страница 72: ...8 10 Drawings Diagrams This page is intentionally left blank ...
Страница 74: ...8 12 Drawings Diagrams This page is intentionally left blank ...
Страница 76: ...Display Keyboard PCB Component layout 8 14 Drawings Diagrams ...
Страница 78: ...GPIB Unit PM9626B Component layout 8 16 Drawings Diagrams ...
Страница 79: ...GPIB Unit PM9626B Drawings Diagrams 8 17 ...
Страница 80: ...This page is intentionally left blank 8 18 Drawings Diagrams ...
Страница 81: ...Chapter 9 Appendix ...
Страница 89: ...Replacement Parts 9 9 This page is intentionally left blank ...
Страница 90: ...Power Supply Component layout 9 10 Replacement Parts BOTTOM SIDE TOP SIDE ...