CHAPTER 11: DSTC
FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E 559
5.3 HWDESP[n] Register
The HWDESP[n] (Hardware DES pointer) Register sets the DESP of the DES that the DSTC refers to at
a transfer request of HW channel n.
Register configuration
Register function
Set the HWDESP[n] Register before making an HW transfer request. This register can be accessed only
when the DSTC is in the normal state. Settings of an unused HW channel n are not necessary.
The number of the HWDESP[n] Registers corresponds to the number of HW channels. However, there is
only one register window that can be seen from the CPU. Access this register as explained below.
− To read the value of the HWDESP[n] Register from the CPU, use an 8-bit (byte) access to write to
CHANNEL[7:0] the channel number to be read first. Afterward, read the value of HWDESP[13:0]
with a 16-bit (halfword) access.
− To write the value of the HWDESP[n] Register from the CPU, use an 8-bit (byte) access to write to
CHANNEL[7:0] the channel number to be written first. Afterward, write a value to HWDESP[13:0]
with a 16-bit (halfword) access. If the write access is a 32-bit (word) access, writing a value to
CHANNEL[7:0] and writing a value to HWDESP[13:0] can be executed simultaneously.
The DSTC stores the DESP value of the HWDESP[n] Register in HWDESPBUF in Figure 3-5 before
using it. If HW Start requests of channel n are made successively, the DSTC uses the DESP value stored
in HWDESPBUF, but not the DESP value of the HWDESP[n] Register. Therefore, if the values of the
HWDESP[n] Register are modified via the CPU, invalidate the value stored in HWDESPBUF. The DESP
value of HWDESPBUF can be invalidated by modifying the value of the RBDIS bit in the CFG Register.
For details of the CFG Register, see "5.5 CFG Register".
bit[7:0] CHANNEL[7:0]