User`s manual
RX62N Group, RX621 Group 4. Library Reference
Description (2/2)
[data4]
Extended timing control. If multiple selections are required, use "|" to separate each selection.
The default settings are shown in bold. For Slave mode, select PDL_NO_DATA.
•
Extended timing selection
PDL_SPI_CLOCK_DELAY_MINIMUM or
PDL_SPI_CLOCK_DELAY_EXTENDED
Select the minimum or extended delay between
the assertion of the SSL pin and the start of
RSPCK oscillation.
•
SSL negation delay
PDL_SPI_SSL_DELAY_MINIMUM or
PDL_SPI_SSL_DELAY_EXTENDED
Select the minimum or extended delay between
the end of RSPCK oscillation and the negation of
the active SSL pin.
•
Next-access delay
PDL_SPI_NEXT_DELAY_MINIMUM or
PDL_SPI_NEXT_DELAY_EXTENDED
Select the minimum or extended delay between
the end of one frame and the start of the next
frame.
Return value
True if all parameters are valid; otherwise false.
Category
SPI
Reference
R_SPI_Create
Remarks
•
For Slave mode operation, configure command 0.
•
When Clock-synchronous Slave mode is used, avoid selecting mode 0 or mode 2.
•
If parity is enabled while in Master mode, both the frame data length and data transfer format
should be the same for each command.
Program example
/* RPDL definitions */
#include "r_pdl_spi.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Configure SPI channel 0 commands 0 and 1 */
R_SPI_Command(
0,
0,
PDL_SPI_CLOCK_MODE_0 | PDL_SPI_ASSERT_SSL0 | \
PDL_SPI_LENGTH_8 | PDL_SPI_MSB_FIRST,
PDL_NO_DATA
);
R_SPI_Command(
0,
1,
PDL_SPI_CLOCK_MODE_1 | PDL_SPI_ASSERT_SSL1 | \
PDL_SPI_LENGTH_8 | PDL_SPI_LSB_FIRST,
PDL_NO_DATA
);
}
R20UT0084EE0112 Rev.1.12 Page 4-209
July. 16, 2014