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
Summary of Contents for PM6685
Page 1: ...Programmable Frequency Counter PM6685 PM6685R Service Manual ...
Page 4: ...This page is intentionally left blank ...
Page 5: ...Chapter 1 Safety Instructions ...
Page 7: ...Chapter 2 Performance Check ...
Page 12: ...This page is intentionally left blank 2 6 Performance Check Options ...
Page 13: ...Chapter 3 Disassembly ...
Page 16: ...This page is intentionally left blank 3 4 Disassembly PM9691 or PM9692 Oven Oscillator ...
Page 17: ...Chapter 4 Circuit Descriptions ...
Page 33: ...Chapter 5 Repair ...
Page 42: ...This page is intentionally left blank 5 10 Safety Inspection and Test After Repair ...
Page 43: ...Chapter 6 Calibration Adjustments ...
Page 49: ...Chapter 7 Replacement Parts ...
Page 53: ...Replacement Parts Mechanical Parts 7 5 80 Lug bent 15 to lock ...
Page 62: ...This page is intentionally left blank 7 14 Replacement Parts GPIB Interface PM9626B ...
Page 63: ...Chapter 8 Drawings Diagrams ...
Page 65: ...This page is intentionally left blank Drawings Diagrams 8 3 ...
Page 66: ...Main PCB Component layout 8 4 Drawings Diagrams Top View ...
Page 68: ...Main PCB Component layout 8 6 Drawings Diagrams Bottom View K2 K1 K3 K4 ...
Page 70: ...This page is intentionally left blank 8 8 Drawings Diagrams ...
Page 72: ...8 10 Drawings Diagrams This page is intentionally left blank ...
Page 74: ...8 12 Drawings Diagrams This page is intentionally left blank ...
Page 76: ...Display Keyboard PCB Component layout 8 14 Drawings Diagrams ...
Page 78: ...GPIB Unit PM9626B Component layout 8 16 Drawings Diagrams ...
Page 79: ...GPIB Unit PM9626B Drawings Diagrams 8 17 ...
Page 80: ...This page is intentionally left blank 8 18 Drawings Diagrams ...
Page 81: ...Chapter 9 Appendix ...
Page 89: ...Replacement Parts 9 9 This page is intentionally left blank ...
Page 90: ...Power Supply Component layout 9 10 Replacement Parts BOTTOM SIDE TOP SIDE ...