User`s manual

RX62N Group, RX621 Group 5. Usage Examples
/* Wait for the last transfer to complete */
do
{
/* Read the count for the last transfer in the chain */
R_DTC_GetStatus(
dtc_sw_transfer_data + 8,
PDL_NO_PTR,
PDL_NO_PTR,
PDL_NO_PTR,
&TransferCount,
PDL_NO_PTR
);
} while (TransferCount != 0);
/* Clear the software interrupt flag */
R_INTC_Write(
PDL_INTC_REG_IR_ICU_SWINT,
0
);
/* Stop the controller */
R_DTC_Control(
PDL_DTC_STOP,
PDL_NO_PTR,
PDL_NO_PTR,
PDL_NO_PTR,
PDL_NO_DATA,
PDL_NO_DATA
);
}
Figure 5-12: Example of DTC chain transfer
R20UT0084EE0112 Rev.1.12 Page 5-27
July. 16, 2014