User`s manual

RX62N Group, RX621 Group 4. Library Reference
Remarks
This function must be called in order to start the DTC (R_DTC_Create must be called at least
once before starting the DTC).
Start the DTC before generating a transfer trigger.
Program example
/* RPDL definitions */
#include "r_pdl_dtc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Start the controller */
R_DTC_Control(
PDL_DTC_START,
PDL_NO_PTR,
PDL_NO_PTR,
PDL_NO_PTR,
PDL_NO_DATA,
PDL_NO_DATA
);
/* Update the parameters for CMT0-triggered transfers */
R_DTC_Control(
PDL_DTC_UPDATE_DESTINATION | PDL_DTC_UPDATE_COUNT,
dtc_cmt0_transfer_data,
PDL_NO_PTR,
(void*)0x0000BB00,
100,
PDL_NO_DATA
);
}
R20UT0084EE0112 Rev.1.12 Page 4-88
July. 16, 2014