User`s manual
RX62N Group, RX621 Group 4. Library Reference
2) R_DTC_Create
Synopsis
Configure the Data Transfer Controller for a transfer.
Prototype
bool R_DTC_Create(
uint32_t data1,
// Configuration selection
uint32_t * data2,
// Transfer data start address
void * data3,
// Source start address
void * data4,
// Destination start address
uint16_t data5,
// Transfer count
uint8_t data6
// Block size
);
Description (1/3)
Configure DTC activation for one trigger source.
[data1]
Configuration selections.
If multiple selections are required, use "|" to separate each selection.
The default settings are shown in bold.
•
Transfer mode selection
PDL_DTC_NORMAL or
PDL_DTC_REPEAT or
PDL_DTC_BLOCK
Normal or
Repeat or
Block mode.
PDL_DTC_SOURCE or
PDL_DTC_DESTINATION
If Repeat or Block mode is selected, select the source
or destination side to be the Repeat or Block area.
•
Address direction selection
PDL_DTC_SOURCE_ADDRESS_FIXED or
PDL_DTC_SOURCE_ADDRESS_PLUS or
PDL_DTC_SOURCE_ADDRESS_MINUS
After a data transfer, leave the source
address unchanged, increment it or
decrement it.
PDL_DTC_DESTINATION_ADDRESS_FIXED or
PDL_DTC_DESTINATION_ADDRESS_PLUS or
PDL_DTC_DESTINATION_ADDRESS_MINUS
After a data transfer, leave the destination
address unchanged, increment it or
decrement it.
•
Transfer data size
PDL_DTC_SIZE_8 or
PDL_DTC_SIZE_16 or
PDL_DTC_SIZE_32
Select 1, 2 or 4 bytes to be transferred in one
operation.
•
Chain transfer control
PDL_DTC_CHAIN_DISABLE or
PDL_DTC_CHAIN_CONTINUOUS or
PDL_DTC_CHAIN_0
Disable chain transfer operation,
Perform continuous chain transfers or
Perform a chain transfer when the transfer counter is
0.
•
Interrupt generation
PDL_DTC_IRQ_COMPLETE or
PDL_DTC_IRQ_TRANSFER
Select interrupt request generation when the transfer
sequence completes, or for every transfer.
•
Trigger selection
Name
Trigger cause
PDL_DTC_TRIGGER_CHAIN or
Chain transfer.
PDL_DTC_TRIGGER_SW or
By software.
PDL_DTC_TRIGGER_CMT0 or
Compare match on channel CMTn (n = 0 to 3).
PDL_DTC_TRIGGER_CMT1 or
PDL_DTC_TRIGGER_CMT2 or
PDL_DTC_TRIGGER_CMT3 or
PDL_DTC_TRIGGER_USB0_D0 or
D0FIFO transfer request on USB port n (n = 0 to 1).
PDL_DTC_TRIGGER_USB1_D0 or
PDL_DTC_TRIGGER_USB0_D1 or
D1FIFO transfer request on USB port n (n = 0 to 1).
PDL_DTC_TRIGGER_USB1_D1 or
R20UT0084EE0112 Rev.1.12 Page 4-82
July. 16, 2014