Common Task
Examples
Program DEL_ WID
These are more comprehensive program listings which provide further
examples of multiple commands involving program loops and sub
routines
Purpose
This program shows how to program and change some of the
HP 81 12A parameters periodically. In this example every 2 second
Delay will be incremented by 1 ms while Width is decremented by 2
ms.
Comments
The interface is initialized and the HP 81 12A is set to the standard
settings
(
see Chapter)
Note
Lines 100 to 120 setup period, delay, width, high-level, and low-level
and line 130 enables the output.
The test signal is now output from the HP 81 12A.
In
the "Width and delay loop"
(
lines 250 to 350), every 2 second
delay is incremented by 1 ms while width is decremented by 2 ms.
The current values are printed in the Display subroutine
(
lines 440 to
490).
Width finally reaches the value of 2 ms.
The output is not automatically disabled when the program is exited.
10
!
Program name : DEL_WID
20
! - ------------------------------------------------------------
30
This example shows how to program and increment some HP8 1 12A
40
!
parameters (width and delay) .
50
60
70
80
90
Addr=712
CLEAR Addr
A=SPOLL (Addr)
Device address of the HP8 1 12A
initialize interface and set HP8 1 12A to standard setting
clear the status byte
100
OUTPUT Addr ; "PER40MS"
110
OUTPUT Addr ; "DEL9MS , WID22MS "
120
OUTPUT Addr ; " HIL2 . 5V , LOL-2 . 5V"
130
OUTPUT Addr ; "DO "
140
150
CLEAR SCREEN
Set Period to 40 ms
Set Delay to 9 ms , Width to 22 ms
High Level=2 . 5V , Low Level=-2 . 5V
Enable Output
160
PRINT "The test signals are output now . "
170
180
7-8
Programming Examples
Summary of Contents for 8112A
Page 6: ......
Page 24: ......
Page 36: ......
Page 44: ......
Page 70: ......
Page 92: ......
Page 144: ...8 32 Testing Performance ...
Page 176: ......
Page 190: ......
Page 194: ...10 2 4 Servicing the Power Supply ...
Page 196: ......
Page 197: ......
Page 216: ......
Page 240: ...10 4 16 Servicing the Shaper and Output Amplifier ...
Page 242: ...A R l BD RY MR I N 1 2 7 I I IJt 51 CR1 B e i 1 _ _ _ _ 20 ...
Page 244: ......
Page 251: ......
Page 262: ...A B A2 ED RY CONTROL ...
Page 270: ......
Page 290: ...R B c R3 BD RY M I CROPROCESSOR 1 2 3 FIGURE 1 0 7 8 ...
Page 294: ... 8 X2l 2 X2 Figure A 1 Mechanical Parts 1 A 2 Replaceable Parts ...
Page 295: ...MP MP3 MP MP2 MP4 MPS MP 1 2 MPS MP MP I B ElElElEl Replaceable Parts A 3 ...
Page 334: ......
Page 378: ...Figure B 14 Mechanical Parts 1 B 44 Backdating ...
Page 380: ......
Page 382: ......
Page 402: ......