User`s manual

RX62N Group, RX621 Group 4. Library Reference
4.2.11. Data Transfer Controller
1) R_DTC_Set
Synopsis
Set the Data Transfer Controller options.
Prototype
bool R_DTC_Set (
uint8_t data1,
// Configuration options
uint32_t * data2
// Vector table base address
);
Description
Set the global options for the Data Transfer Controller.
[data1]
Configuration selections.
If multiple selections are required, use "|" to separate each selection.
The default settings are shown in bold. Specify PDL_NO_DATA to use the defaults.
Read skip control
PDL_DTC_READ_SKIP_DISABLE or
PDL_DTC_READ_SKIP_ENABLE
Disable or enable skipping of transfer data read when
the vector numbers match.
Address size control
PDL_DTC_ADDRESS_FULL or
PDL_DTC_ADDRESS_SHORT
Select 32-bit (full) or 24-bit (short) address mode.
[data2]
The first address of the area of on-chip RAM where the DTC vector table shall be stored.
The address must be on a 4 kB boundary i.e. have the format xxxxx000h.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Data Transfer Controller
Reference
R_DTC_Create
Remarks
Before calling R_DTC_Create, call this function.
Program example
/* RPDL definitions */
#include "r_pdl_dtc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
/* Reserve an area for the DTC vector table */
#pragma address dtc_vector_table = 0x00015000
uint32_t dtc_vector_table [256];
void func(void)
{
/* Configure the controller */
R_DTC_Set(
PDL_DTC_ADDRESS_SHORT,
dtc_vector_table
);
}
R20UT0084EE0112 Rev.1.12 Page 4-81
July. 16, 2014