CHAPTER 6 DMA FUNCTIONS (DMA CONTROLLER)
144
User’s Manual U14492EJ3V0UD
6.3.3 DMA transfer count registers 0 to 3 (DBC0 to DBC3)
These 16-bit registers are used to set the byte transfer counts for DMA channel n (n = 0 to 3). They store the
remaining transfer counts during DMA transfer.
Since these registers are 2-stage FIFO buffer registers, a new DMA byte transfer count for DMA transfer can be
specified during DMA transfer (refer to
6.9 Next Address Setting Function
). In this case, if a new DBCn register is
set, the value set will be transferred to the slave register and enabled only if DMA transfer ends normally, and the TCn
bit of DMA channel control register n (DCHCn) has been set to 1 or the INITn bit of the DCHCn register has been set
to 1 (n = 0 to 3). However, take note that this value set will be disabled if the DBCn register is set with the Enn bit of
the DCHCn register cleared to 0 and DMA transfer prohibited.
These registers are decremented by 1 per transfer. Transfer is terminated if a borrow occurs.
These registers can be read/written in 16-bit units.
Remark
If the DBCn register is read after a terminal count has occurred during DMA transfer without the value of
the DBCn register being rewritten, the value set immediately before DMA transfer is read (0000H is not
read even after completion of transfer).
15
BC15
DBC0
Address
FFFFF0C0H
Initial value
Undefined
14
BC14
13
BC13
12
BC12
11
BC11
10
BC10
9
BC9
8
BC8
7
BC7
6
BC6
5
BC5
4
BC4
3
BC3
2
BC2
1
BC1
0
BC0
BC15
DBC1
FFFFF0C2H
Undefined
BC14 BC13 BC12 BC11 BC10 BC9 BC8 BC7 BC6 BC5 BC4 BC3 BC2 BC1 BC0
BC15
DBC2
FFFFF0C4H
Undefined
BC14 BC13 BC12 BC11 BC10 BC9 BC8 BC7 BC6 BC5 BC4 BC3 BC2 BC1 BC0
BC15
DBC3
FFFFF0C6H
Undefined
BC14 BC13 BC12 BC11 BC10 BC9 BC8 BC7 BC6 BC5 BC4 BC3 BC2 BC1 BC0
Bit Position
Bit Name
Function
Sets the byte transfer count. It stores the remaining byte transfer count during DMA
transfer.
DBCn (n = 0 to 3)
States
0000H
Byte transfer count 1 or remaining byte transfer count
0001H
Byte transfer count 2 or remaining byte transfer count
:
:
FFFFH
Byte transfer count 65,536 (2
16
) or remaining byte transfer
count
15 to 0
BC15 to BC0
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...