User`s manual
RX62N Group, RX621 Group 5. Usage Examples
7
);
/* Enable channel 3 */
R_DMAC_Control(
3,
PDL_DMAC_ENABLE,
PDL_NO_PTR,
PDL_NO_PTR,
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA,
PDL_NO_DATA
);
/* Initialise the flags */
sci_dma_transfer_complete = false;
break_required = false;
/* Enable the transmission using the DMAC */
R_SCI_Send(
2,
PDL_SCI_DMAC_TRIGGER_ENABLE,
PDL_NO_PTR,
PDL_NO_DATA,
PDL_NO_FUNC
);
/* Wait for the DMAC to complete the transfer */
while (sci_dma_transfer_complete == false);
/* Send the next string using polling mode */
R_SCI_Send(
2,
PDL_NO_DATA,
source_string_2,
0,
PDL_NO_FUNC
);
}
void DMAC3_transfer_end_handler(void)
{
uint8_t SCI_status = 0;
/* Wait for the SCI transmission to end */
do
{
R_SCI_GetStatus(
2,
&SCI_status,
PDL_NO_PTR,
PDL_NO_PTR,
PDL_NO_PTR
);
} while ((SCI_status & 0x04) == 0);
if (break_required == true)
{
/* Stop the SCI to allow the break signal to be output */
R_SCI_Control(
2,
PDL_SCI_STOP_TX | PDL_SCI_OUTPUT_SPACE
);
}
else
{
R20UT0084EE0112 Rev.1.12 Page 5-19
July. 16, 2014