Programming The Stb And Sre; Event Status Register (Esr); Event Status Enable (Ese) Register; Bit Assignments For The Esr And Ese - Fluke 5820A Operator's Manual

Oscilloscope calibrator
Hide thumbs Also See for 5820A:
Table of Contents

Advertisement

5820A
Operators Manual

5-46. Programming the STB and SRE

By resetting (to 0) the bits in the SRE, you can mask (disable) associated bits in the serial
poll status byte. Bits set to 1 enable the associated bit in the serial poll status byte. The
following sample BASIC program enables the Error Available (EAV) bit.
10
20
30
40
50
60
The following BASIC program generates an error and checks the Serial Poll Status Byte.
Enable the EAV bit with the example above.
10
20
30
40
50
60
70

5-47. Event Status Register (ESR)

The Event Status Register is a two-byte register in which the higher eight bits are always
0, and the lower eight bits represent various conditions of the 5820A Calibrator. The ESR
is cleared (set to 0) when the power is turned on, and every time it is read.
Many of the remote commands require parameters. Improper use of parameters causes
command errors to occur. When a command error occurs, bit CME (5) in the Event
Status Register (ESR) goes to 1 (if enabled in ESE register), and the error is logged in the
error queue.

5-48. Event Status Enable (ESE) Register

A mask register called the Event Status Enable register (ESE) allows the controller to
enable or mask (disable) each bit in the ESR. When a bit in the ESE is 1, the
corresponding bit in the ESR is enabled. When any enabled bit in the ESR is 1, the ESB
bit in the Serial Poll Status Byte also goes to 1. The ESR bit stays 1 until the controller
reads the ESR or does a device clear, a selected device clear, or sends the reset or *CLS
command to the calibrator. The ESE is cleared (set to 0) when the power is turned on.

5-49. Bit Assignments for the ESR and ESE

The bits in the Event Status Register (ESR) and Event Status Enable register (ESE) are
assigned as shown in Figure 5-10.
5-40
! THIS PROGRAM SETS EAV IN THE SRE
PRINT @6,"*SRE 8"
PRINT @6, "*SRE?"
INPUT @6, A%
PRINT "SRE = ";A%
RETURN
! THIS PROGRAM GENERATES AN ERROR AND CHECKS IT
PRINT @6, "OUT 1300V"
A% = SPL(6)
IF ((A% AND 72%)=0%)THEN PRINT "EAV and RQS should have been set"
PRINT @6, "*STB?"
INPUT @6, A%
IF ((A% AND 8%)=0%) THEN PRINT "EAV should have been set"
! LOAD THE REGISTER
! ASK FOR THE SRE CONTENTS
! RETRIEVE THE REGISTER CONTENTS
! 1300V IS OUT OF 5820A RANGE
! DO A SERIAL POLL
! RETRIEVE BYTE

Advertisement

Table of Contents
loading

Table of Contents