
iiBusModuLes:high-sPeeddMa(hsdMa)
ii-1-28
ePson
s1C33L17teChniCaLManuaL
0x301120–0x301150:hsdMaCh.xtransferCounterRegisters(phsx_Cnt)
name
address
Registername
Bit
Function
setting
init. R/W
Remarks
tCx_L7
tCx_L6
tCx_L5
tCx_L4
tCx_L3
tCx_L2
tCx_L1
tCx_L0
BLKLenx7
BLKLenx6
BLKLenx5
BLKLenx4
BLKLenx3
BLKLenx2
BLKLenx1
BLKLenx0
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Ch.xtransfercounter[7:0]
(blocktransfermode)
Ch.xtransfercounter[15:8]
(single/successivetransfermode)
Ch.xblocklength
(blocktransfermode)
Ch.xtransfercounter[7:0]
(single/successivetransfermode)
0
R/W
00301120
|
00301150
(hW)
hsdMaCh.x
transfer
counter
register
(pHSx_CNT)
note: Theletter‘x’inbitnames,etc.,denotesachannelnumberfrom0to3.
0x301120 HSDMACh.0TransferCounterRegister(pHS0_CNT)
0x301130 HSDMACh.1TransferCounterRegister(pHS1_CNT)
0x301140 HSDMACh.2TransferCounterRegister(pHS2_CNT)
0x301150 HSDMACh.3TransferCounterRegister(pHS3_CNT)
d[15:8] tCx_L[7:0]:Ch.xtransferCounterBits
Set the data transfer count. (Default: 0x00)
In block transfer mode, TCx_L[7:0] is bits[7:0] of the transfer counter. In single or successive transfer
mode, TCx_L[7:0] is bits[15:8] of the transfer counter.
This counter is decremented each time a DMA transfer in the corresponding channel is performed.
When the counter reaches 0, a cause of interrupt is generated. In single-address mode, the end-of-trans-
fer signal is output from the #DMAENDx pin at the same time. Even when the counter is 0, a DMA
request is accepted and the counter is decremented to 0xFFFF (or 0xFFFFFF).
Be sure to disable DMA transfers (HSx_EN (D0/0x30112C + 0x10x) = 0) before writing and reading
to and from the counter.
d[7:0]
BLKLenx[7:0]:Ch.xBlockLengthBits
In block transfer mode, these bits are used to specify a transfer block size. (Default: 0x00)
A transfer operation invoked by one trigger is completed after transferring one block of data of the size
set by BLKLENx[7:0].
In single or successive transfer mode, these bits are used to specify the 8 low-order bits of the transfer
counter.
note: Whenperformingdatatransferinblocktransfermode,theblocksizemustnotbesetto0.