User`s manual
RX62N Group, RX621 Group 4. Library Reference
4.2.20. Serial Communication Interface
1) R_SCI_Set
Synopsis
Configure the SCI pin selection.
Prototype
bool R_SCI_Set(
uint8_t data
// Configuration
);
Description
Set up the global SCI options.
[data]
Configure the global options. Use "|" to separate each selection.
•
Pin selection (required only if the pins are used for the SCI function).
PDL_SCI_PIN_SCI1_A or
PDL_SCI_PIN_SCI1_B
Select the -A or -B pins for RxD1, SCK1, TxD1.
PDL_SCI_PIN_SCI2_A or
PDL_SCI_PIN_SCI2_B
Select the -A or -B pins for RxD2, SCK2, TxD2.
PDL_SCI_PIN_SCI3_A or
PDL_SCI_PIN_SCI3_B
Select the -A or -B pins for RxD3, SCK3, TxD3.
PDL_SCI_PIN_SCI6_A or
PDL_SCI_PIN_SCI6_B
Select the -A or -B pins for RxD6, SCK6, TxD6.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
SCI
Reference
R_SCI_Create
Remarks
•
Before calling R_SCI_Create, if the selected device package offers A or B pins for SCI signals
call this function to configure the relevant pins.
•
Pins which are not used for the SCI functions may be omitted.
•
Please refer to the "Port Function Control Register F (PFFSCI)" section in the RX62N Hardware
Manual for details of SCI pin selection.
Program example
#include "r_pdl_sci.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Configure the applicable SCI pins */
R_SCI_Set(
PDL_SCI_PIN_SCI2_A | PDL_SCI_PIN_SCI6_B
);
}
R20UT0084EE0112 Rev.1.12 Page 4-169
July. 16, 2014