Direct Memory Access Controller
LH79524/LH79525 User’s Guide
5-14
Version 1.0
5.2.2.7 Terminal Count Register (TCNT)
The Terminal Count Register is a 16-bit Read Only register that contains the number of
data units remaining in the current DMA transfer. The data unit is equal to the source-to-
DMA data width (byte, half-word or word).
The register value is decremented every time data transfers to the DMA FIFO. When the
terminal count reaches zero, the FIFO content transfers to the destination and a DMA
transfer is finished.
Table 5-27. TCNT Register
BIT
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
FIELD
///
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
RO
RO
RO
RO
RO
RO
RO
RO
RO
RO
RO
RO
RO
RO
RO
RO
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FIELD
TERM
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
ADDR
DATASTREAM x BASE + 0x028
Table 5-28. TCNT Fields
BITS
NAME
DESCRIPTION
31:16
///
Reserved
Reading returns 0. Write the reset value.
15:0
TERM
Terminal Count
This field contains the number of data units remaining in
the current DMA transfer. The data unit is the source-to-DMA data width (byte,
half-word or word).