User`s manual
RX62N Group, RX621 Group 4. Library Reference
Remarks
•
If address increment or decrement is selected, the address changes according to the number of
bytes (1, 2 or 4) in each transfer.
•
Before calling this function, call R_DTC_Set.
•
Call this function before configuring the peripherals that will be involved in the data transfer.
•
Call this function once for each peripheral that will trigger a transfer, and for each chained
transfer.
•
For chain transfers, each transfer data area in the chain must be contiguous.
•
When all calls to this function are complete, call R_DTC_Control to start the DTC.
Program example
/* RPDL definitions */
#include "r_pdl_dtc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
/* Reserve 16 bytes (full address mode) for the CMT0-triggered transfer data
area */
/* Use a 32-bit type to make the address a multiple of 4 */
uint32_t dtc_cmt0_transfer_data[4];
void func(void)
{
/* Configure the DTC for CMT0 */
R_DTC_Create(
PDL_DTC_NORMAL | PDL_DTC_SOURCE_ADDRESS_FIXED | \
PDL_DTC_DESTINATION_ADDRESS_PLUS | PDL_DTC_SIZE_8 | \
PDL_DTC_TRIGGER_CMT0,
dtc_cmt0_transfer_data,
(void*)0x0000AA00,
(void*)0x0000BB00,
100,
0
);
}
R20UT0084EE0112 Rev.1.12 Page 4-85
July. 16, 2014