MC68230LS-MC68230L l() Requesting Bus Master Service - The PlfT has several means of indicating a need for service by a bus master. First, the processor may poll the Port Status Register. It contains a status bit for each handshake pin, plus a level bit that always reflects the instantaneous state of that handshake pin. A status bit IS 1 when the PlfT needs servicing, i.e., generally when the bus master needs to read or write data to the ports, or when a handshake pin used as a simple status input has been asserted The interpretation of these bits is dependent on the chosen mode and submode. ble. It will not overrun the DMA controller.
The pin is com- patible with the MC68450 Direct Memory Access Controller (oMACI. Vectored, Prioritized Port Interrupts - Use of MC68000- compatible vectored interrupts with the PlfT requires the PIRQ and PlACK pins. When PlACK is asserted, the PlfT places an a-bit vector on the data pins 00-07. Under normal conditions, this vector corresponds to highest priority, enabled, active port interrupt source with which the OMAREO pin is not currently associated. The most- significant SIX bits are provided by the Port Interrupt Vector Register (PIVR), with the lower two bits supplied by prioritization logic according to conditions present when PiACK is asserted.
It is important to nole that the only affect on the PlfT caused by interrupt acknowledge cycles IS that the vector IS placed on the data bus. Specifically, no registers, data, status, or other Internal states of the PlfT are affected by the cycle. Second, the PlfT may be placed In the processor's inter- rupt structure As mentioned previously, the PlfT contains Port A and B Control Registers that configure the handshake pillS Other bits In these registers enable an Interrupt associated with each handshake pin ThiS Interrupt is made available through the PC5fPIRO pin, If the PIRO function IS selected Three additional conditions are required for PIRO to be asserted.
111 the handshake pin status bit set, 121 the corresponding Interrupt Iservlce request I enable bit is set, (31 and OMA requests are not assOCiated with that data transfer I H 1 and H3 onlyl The condit loriS from each of the four handshake pins and corresponding status bits are ORed to determine PIRO Several conditions may be present when the PlACK input is asserted to the PlfT. These conditions affect the PlfT's response and the termination of the bus cycle.
If the PlfT has no interrupt function selected, or is not asserting PIRO, the PlfT will make no response to PlACK (oT ACK will not be asserted) If the PlfT IS asserting PIRO when PlACK IS received, the PlfT will output the contents of the Port Inter- rupt Vector Register and the prioritization bits. If the PIVR has not been Initialized, SOF will be read from til,s register These conditions are summarized in Table 3 T he third method of requesting service IS via the PC4f OMAREO pin This pin can be assOCiated with double- buffered transfers In each mode. If it IS used as a OMA con- troller request.
It can initiate requests to keep the PlfT's Input / output double-buffering emptyffull as much as possi- TABLE 3 - RESPONSE TO PORT INTERRUPT ACKNOWLEDGE PIRO negated OR interrupt -- Conditions request function not selected PIRO asserted PIVR has not-been Initialized No response from PI! T PlfT provides $OF.
the Since RESET No DTACK Unln,t,al,zed Vector.· PIVR has been Initialized No response from PlfT PlfT provides PIVR contents Since RESET No DTACK with priOritization bits • The unlnlt,al,zed vector IS the value returned from an Interrupt vector register before It has been initialized The vector table entries for the PlfT appear as a con- ti IUOUS block of four vector numbers whose common upper shake Pin Input Resetting a handshake status bit can be done by writing an a-bit mask to the Port Status Register SIX bits are programmed In the PIVR The follOWing table pairs each Interrupt source with the 2-blt value provided by the PriOritization logiC.
when Interrupt acknowledge IS dsserted ThiS IS called the direct method of resetting To reset a status bit that IS resettable by the direct method, the mask must contain a 1 In the bit position of the Port Status Register cor responding to the deSired bit Other posItions must contain O's For status bits that are not resettable by the direct method In the chosen mode, the data written to the port status register has no effect For status bits that are reset- table by the direct method In the chosen mode.
a 0 In the mask has no effect H1 source 00 H3 source 10 H2 source - 01 H4 source 11 Autovectored POrt Interrupts Autovecored Interrupts use only the PIRO Pin The operation of the PlfT with vec- tored and autovectored Interrupts IS Identical except that no vectors arB supplied and the PC6f PlACK pin can be used as a Port C pin Handshake Pin Sense Control - The PI! T contains exclusive-OR gates to control the sense of each of the hand- shake pins, whether used as Inputs or outputs FOUl bits In the Port General Co~trol Register may be programmed to determine whether the pinS are asserted In the low or high voltage state. As With other control registers.
these bits are reset to 0 when the RESET pin IS asserted. defaulting the asserted level to be low Direct Method of Resetting Status - In certain modes one or more handshake pinS can be used as edge-sensitive Inputs for sole purpose of setting bits In the Port Status Register These bits consist of Simple fllp- flops They are set I to 11 by the occurrence of the assel ted edge of the hand- Enabling Ports A and B - Certain functions Involved With double-buffered data transfers, the handshake pinS, and the status bits, may be disabled by the external system or by the MOTOROLA SemIconductor Products Inc. 15