8291

When the 8291 is addressed to talk, it uses the data-out register to move data onto the GPIB. Upon a write to this register, the 8291 initiates and completes the handshake while sending the byte out over the bus. When the

Interrupt Registers

ICPT IAPT I GET I ENO OEC I ERR BO BI

INTERRUPT STATUS 1 II R)

liNT I SPAS I LLO I REM I SPAscl LLOC IREMCI ADSC I

INTERRUPT STATUS 2 12R)

RFO/OAV holdoff mode is in effect, data is held until the release command is issued. Also, a read of the data-in register does not destroy the information in the data-out register.

ICPT

I

APT

I

GET I END

I DEC I ERR BO BI I

 

 

 

INTERRUPT ENABLE 1 I1W)

I 0

I

0

I

DMAOI DMAI

I SPAscl LLOC I REMCI ADscl

INTERRUPT ENABLE 2 (2W)

The 8291 can be configured to generate an interrupt to the microprocessor upon the occurrence of any of 12 conditions or events on the GPIB. Upon receipt of an interrupt, the microprocessor must read the Interrupt Status registers to determine which event has occurred, and then execute the appropriate service routine (if necessary). Each of the 12 interrupt status bits has a matching enable bit in the interrupt enable registers. These enable bits are used to select the events that will cause the INT pin to be asserted. Writing a logic "1" into any of these bits enables the corresponding interrupt status bits to generate an interrupt. Bits in the Interrupt

Status registers are set regardless of the states of the enable bits. The Interrupt Status registers are then cleared upon being read or when a local pon (power·on) message is executed. If an event occurs while one of the Interrupt Status registers is being read, the event is typically held until after its register is cleared and then placed in the register.

The mnemonics for each of the bits in these registers and a brief description of their respective functions appears in Table 4. This table also indicates how each of the interrupt bits is set.

TABLE 4. Interrupt Bits

Indicates Undefined Commands CPT An undefined command has been received.

Set by (TPAS + LPAS)oSCGoACOSoMODE 3 APT A secondary address must be ""assed through to the microprocessor for recognition.

Set by DTAS GET A group execute trigger has occurred.

Set by (EOS + EOI)oLACS END An EOS or EOI message has been received.

Set by OCAS DEC Device Clear Active State has occurred.

Set by TACS.nbaoOAC.RFO ERR Interface error has occurred; no listeners are active.

TACSo(SWNS + SGNS) BO

Set by LACS.ACOS BI

' ----

Shows status of the INT pin INT

The device has been enabled for a serial poll SPAS

The device is in local lock out state. LLO (LWLS+RWLS)

The device is in a remote state. ~ (REMS+RWLS)

SPAS---SPAS SPASC

LLCNO LLO LLOC

Remoti:~Jocal REMC

AddressedUnaddressed--AOSC

tSee section on 8291A compatibility.

A byte should be output. t

A byte has been input.

These are status only. They will not generate I- interrupts, nor do they have corresponding

mask bits.

Serial Poll Active State change interrupt.t

Local lock out change interrupt.

Remote/Local change interrupt.

Address status change interrupt:

'Inton (talk-only) and Ion (listen·only)modes, no ADSC interrupt Is generated.

9-89

Page 404
Image 404
Intel mcs-48 manual SPAS---SPAS Spasc Llcno LLO Lloc, Interrupt Registers