20.08.2013 Views

HP 8648 A/B/C/D - Changpuak.ch

HP 8648 A/B/C/D - Changpuak.ch

HP 8648 A/B/C/D - Changpuak.ch

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example: Generate a Service Request for External<br />

Modulation<br />

Input (High& or Low)<br />

18 I-II ITPIJT<br />

-- 7 1-3; “:3-/-HT: QIJE!;: MI]D: Et.#B 3”<br />

28 l:liJTPlJT 719; “!s-j-HT: QIJE!;: Et#=@ 12:8”<br />

:3@ I:IIJTF’IJT 71’3; “%!;RE :s”<br />

48 IF SPOLL~71’3> THEt.4 PRItdT “Ext. . Plod. Inp~f. Hig/-g...,‘LI:r:ll,,<br />

El&. et:t. @d ‘I<br />

50 I:IIJTPIJT 71’3; “WI:&”<br />

En 8 E 1.1 [r<br />

Line 10 Enables bits 0 and 1 (decimal equivalent 3) in the<br />

MODulation register. Enabling these bits masks other<br />

bits in the MODulation register from reporting their<br />

status in the summary bit to QUEStionable.<br />

Line 20 Enables bit 7 (decimal equivalent 128) in the<br />

QUEStionable register. Enabling this bit masks other<br />

bits in the QUEStionable register from reporting their<br />

status in the summary bit to STATUS.<br />

Line 30 Enables bit 3 (decimal equivalent 8) of the STATUS<br />

register. Enabling this bit masks other bits from<br />

reporting.<br />

Line 40 Uses the <strong>HP</strong> BASIC command, SPOLL, (Serial Poll)<br />

to see if the service request bit is reporting any<br />

interrupts.<br />

Line 50 Clears all status registers. Clearing the status registers<br />

is not absolutely necessary, but is used here because<br />

of the unknown state of the instrument.<br />

<strong>HP</strong>-16 Programming 2-15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!