H068450, H068450Y-------------------------------------------------------------------- The CCR has a halt bit which allows suspension of the opera- tion of the channel. If this bit is set, a request may still be generated and recognized, but the DMAC does not attempt to acquire the bus or to make transfers for the halted channel. When this bit is reset, the channel resume.; operation and serv- ices any request that may have been received while the channel was halted. However, in the burst request mode, the transfer request should be kept asserted until the initiation of the first transfer after clearing the halt bit.
(4) Operation Abort by Software (Software Abort) Setting the software abort bit (SAB) in the CCR allows the current operation of the channel to be aborted. In this case, the ERR bit and the COC bit in the CSR are set and the ACT bit is reset. TIle error code for the software abort is set in the CER. The SAB bit is designed to be reset if the ERR bit is reset. When the CCR is read, the SAB always reads as zero(O). (5) Interrupt Enable Block trallslel cOlllplete (WIT) hit is set wh~n the continue «'NT) hit 01 ('('I{ is set alld the memory transfer counter (MTC) is exhausted.
The UTC hit must he cleared before the another continuatioll is attempted (namely, setting the CNT bit again), otherwise an operation timing error occurs. The BTC bit is cleared by writing a one to this bit or resetting the DMAC. NOT Normal device termination (NDT) bit is set when the peripheral device terminates the channel operation by asserting the DONE line while the peripheral device was being acknowl- edged. The NDT bit is cleared by writing a one to this bit or re- setting the DMAC. ERR Error (ERR) bit is set if any errors have been signaled. When the ERR bit is set, the code corresponding to the kind of the error that occurred is set in the CER.
The ERR bit is cleared by writing a one to this bit or resetting the DMAC. ACT The active (ACT) bit is asserted after the STR bit has been set and the channel operation has started. This bit is remains set until the channel operation is terminated. The ACT bit is un- affected by write operations. This bit is cleared by the termi- nation of the channel or resetting the DMAC. The CCR has an interrupt enable bit (INT) which allows the channel to request interrupts. If INT is set, the channel can request interrupts. If it is clear, the channel will not request interrupts. • Channel Operation Termination As part of the transfer of an operand, the DMAC decrements the memory transfer counter (MTC).
If the chaining mode is not used and the CNT bit is not set or the last block is trans- ferred in the chaining mode, the operation of the channel is complete when the last operand transfer is completed and the MTC is zero. The DMAC notifies the peripheral device of the channel completion via the DONE output. However, in the continue mode, DONE is outputted at the termination of every data block transfer. When the channel operation has been completed, the ACT bit of the CSR is cleared, and the COC bit of the CSR is set. The occurrence of errors, such as the bus error, during the DMA bus cycle also terminates the channel operation.
In this case, the ACT bit in the CSR is cleared, the ERR and the COC bits are sct, and at the same time the code corresponding to the error that occurred is set in the CER. The DMAC can signal the termination of the channel opera- tion by generating an interrupt request. The INT bit of the CCR determines if an interrupt can be generated. The interrupt request is generated by the following condition.
(2) Interrupts :I) INT = I and ® COC = I or BTC = I or ERR = I or NDT = I or PCT = I (the PCL line is an interrupt input) This may be represented as IRQ - INT- (COC + BTC + ERR + NDT + PCT*) (*PCL line is programmed as an in terrupt inpu t.) When the IRQ line is asserted, changing the INT bit from one to zero to one will cause the IRQ output to change from "low" to "high" to "low" again. The IRQ should be negated by clearing the COC, the BTC, the ERR, the NDT and the PCT bits. . If the DMAC receives lACK from the MPU during asserting the IRQ, the DMAC provides an interrupt vector.
If multiple channels have interrupt requests, the determination of which channel presents its interrupt vector is made using the same priority scheme defined for the channel operations. The bus cycle in which the DMAC provides the interrupt vector when receiving an lACK from the MPU is called the interrupt acknowledge cycle. The interrupt vector returned to the MPU comes from either the normal or the error interrupt vector register. The normal interrupt register is used unless the ERR bit of CSR is set, in which case the error interrupt vector register is used.
The content of the interrupt vector register is placed on Do- D7, and DTACK is asserted to indicate that the vector is on the data bus. If a reset occurs, all interrupt vector registers are set to $OF (binary 00001111), the value of the uninitialized interrupt vector. The timing of the interrupt acknowledge cycle is shown in Figure 36. The HD68000 MPU outputs the interrupt level into A I -A3 and A4 -A7 is held "high" during the interrupt acknowledge cycle, but .the HD68450 DMAC ignores these signals. (1) Channel Status Register (CSR) The channel status register contains the status of the channel.
The register, except for ACT and PCS bits, is cleared by writing a one (I) into each bit of the register to be cleared. Those bits positions which contain a zero (0) in the write data remain un- affected. ACT and PCS bits are unaffecte· by the write opera- tion. COC The channel operation complete (COC) bit is set if the channel operation has completed. The COC bit must be cleared in order to start another channel operation. The COC bit is cleared only by writing a one to this bit or resetting the DMAC. PCS The peripheral status (PCS) bit reflects the level of the PCL line regardless of its programmed function. If PCL is at "High" level, the PCB bit reads as one.
If PCL is at "Low" level, the PCS bit reads as zero. The PCS bit is unaffected by writing to the CSR. PCT The peripheral control transition (PCT) bit is set, if a falling edge transition has occurred on the PCL line. (The PCL line must remain at "low" level for at least two clock cycles.) The PCT bit is cleared by writing a one to this bit or resetting the DMAC. BTC 34 ~HITACHI