Common Task Examples; Program Del-Wid - HP 8112A Operating, Programming And Servicing Manual

50 mhz programmable pulse generator
Table of Contents

Advertisement

Common Task
Examples

Program DEL-WID

Purpose
Comments
Note
10
! Program name: DEL,WID
2 0
3 0
! This example shows how to program and increment some
4 0
! parameters
(width and
5 0
!
6 0
7 0
CLEAR Addr
8 0
I
9 0
100
OUTPUT Addr*"PER40MS"
110
OUTPUT Addrj"DELSMS,WID22MS"
120
OUTPUT Addr;"HIL2.5V,LOL-2.5V"
130
OUTPUT Addr;"DO"
I
140
150
CLEAR SCREEN
160
PRINT "The test signals are output now."
170
PRINT
180
!
7-8 Programming Examples
These are more comprehensive program listings which provide further
examples of multiple commands involving program loops and sub
routines
This program shows how to program and change some of the
HP 8112A parameters periodically. In this example every 2 second
Delay will be incremented by 1 ms while Width is decremented by 2
ms.
The interface is initialized and the HP 8112A is set to the standard
settings (see Chapter)
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 8112A.
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.
delay).
! Device address of the HP8112A
! initialize interface and set
! Set Period to 40 ms
! Set Delay to 9 ms, Width to 22 ms
! High Level=2.5V, Low Level=-2.5V
! Enable Output

Advertisement

Table of Contents
loading

Table of Contents