Dma Transfer Count Registers 0 To 3 (Dbc0 To Dbc3) - NEC V850E/IA1 mPD703116 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

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
14
13
12
DBC0
BC15
BC14
BC13
BC12
DBC1
BC15
BC14 BC13 BC12 BC11 BC10 BC9 BC8 BC7 BC6 BC5 BC4 BC3 BC2 BC1 BC0
DBC2
BC15
BC14 BC13 BC12 BC11 BC10 BC9 BC8 BC7 BC6 BC5 BC4 BC3 BC2 BC1 BC0
DBC3
BC15
BC14 BC13 BC12 BC11 BC10 BC9 BC8 BC7 BC6 BC5 BC4 BC3 BC2 BC1 BC0
Bit Position
Bit Name
15 to 0
BC15 to BC0
144
CHAPTER 6 DMA FUNCTIONS (DMA CONTROLLER)
11
10
9
8
7
6
BC11
BC10
BC9
BC8
BC7
BC6
Sets the byte transfer count. It stores the remaining byte transfer count during DMA
transfer.
DBCn (n = 0 to 3)
0000H
0001H
:
FFFFH
User's Manual U14492EJ3V0UD
5
4
3
2
1
0
BC5
BC4
BC3
BC2
BC1
BC0
Function
States
Byte transfer count 1 or remaining byte transfer count
Byte transfer count 2 or remaining byte transfer count
:
Byte transfer count 65,536 (2
count
Address
Initial value
FFFFF0C0H
Undefined
FFFFF0C2H
Undefined
FFFFF0C4H
Undefined
FFFFF0C6H
Undefined
16
) or remaining byte transfer

Advertisement

Table of Contents
loading

Table of Contents