---------------------------------- HD6S450, HD6S450Y Table 6 An Example of a Data Transfer for One Operand Transfer Address Data Size DMAC Registers after Transfer SRC: Source (Memory), DST Destination (Device), HR: Holding Register (DMAC Internal Reg.) Comment No. Data Transfer Output on Sus MAR DAR 0 00000012 000001 OS Initial Register Setting - - - 1 SRC -+ HR 00000012 WORD 00000014 000001 OS Higher order 16 bits of operand is *1 *2 fetched. 2 HR -+ DST 000001 OS BYTE 00000014 0000010A *3 *4 Higher order 16 bits of operand is 3 0000010A BYTE 00000014 0000010C transferred.
HR -+ DST *5 *4 *10 4 SRC -+ HR 00000014 WORD 00000016 0000010C Lower order 16 bits of operand is *6 *2 *9 fetched 5 HR -+ DST 0000010C BYTE 00000016 0000010E *7 *4 Lower order 16 bits of operand is 6 0000010E BYTE 00000016 00000110 transferred. HR -+ DST *S *4 *10 6' 00000016 00000110 1 MAR, DAR are pointing the next - - - operand addresses when the transfer is complete. Mode:
Port size ~ 8, Operand size ~ Long Word, Memory to Device, Source (Memory) Counts Up, Destination (Device) Counts Down Table 7 Memory Map for the Example of the Data Transfer ADDRESS I I ADDRESS ADDRESS I I 00000010 00000011 00000106 00000107 00000012 BYTE A I BYTE B *1 *1 BYTE C I BYTE 0 *6 *6 I I Source (Memory) 00000013 000001 OS BYTE A I *3 BYTE B T *5 BYTE C I *7 BYTE 0 I *S I 00000109 00000014 00000015 0000010A 0000010B 00000016 00000017 0000010C 00000100 0000010E 000001 OF 00000110 00000111 Destination (Device) Initiation and Control of Channel Operation (1) Operation Initiation The continue bit (CNT) allows multiple blocks to be trans· ferred in unchained operations.
The CNT bit is set in order to continue the current channel operation. If an attempt is made to continue a chained operation, a configuration error is signaled. The base address register and base transfer counter should have been previously initialized. The continue bit may be set as the channel is started or while the channel is still active. The operation timing error bit is signaled if a continuation is otherwise attempted. When the memory transfer counter is exhausted and the con- tinue bit of the CCR is set, the DMAC performs a continuation of the channel operation.
The base address, base function code, and base transfer count registers are copied into the memory address, memory function code, and memory transfer count registers. The block transfer complete (STC) bit of the CSR is set, the continue bit is reset, and the channel begins a new block transfer. If the memory transfer counter is loaded with a terminal count, the count error is signaled. (3) Operation Halting (Halt) To initiate the operation of a channel the STR bit of the CCR is set to start the operation. Setting the STR bit causes the immediate activation of the channel, the channel will be ready to accept requests immediately.
The channel initiates the operation by resetting the STR bit and setting the channel active bit in the CSR. Any pending requests are cleared, and the channel is then ready to receive requests for the new operation. If the channel is configured for an illegal operation, the config- uration error is signaled, and no channel operation is run. The illegal operations include the selection of any of the options marked "(undefined, reserved)". If the MTC is set to zero in any operation or STC is set to zero in the array chaining mode, then the count error is signaled and the channel is not activated. The channel cannot be started if any of the ACT, COC, STC, NOT or ERR bits is set in the CSR.
In this case, the channel signals the operation timing error. (2) Operation Continuation (Continue Mode) 4!PHITACHI 33