
Rev.1.00 May 22 2012
REJ09B0566
Library Reference
4.2.9 40BSerial Communication Interface R_SCI_Create
• This function configures each SCI pin that is required for operation. It also disables the alternative modes
on those pins.
• The wait time of 1 data bit period that is required during configuration is handled within this function.
Program example
/* PDL definitions */
#include “r_pdl_sci.h”
/* PDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* configure SCIF_3 in synchronous serial Mode. Configured it as a
transmitter with BAUD rate of 10,000 */
R_SCI_Create(3, PDL_SCI_SYNC | PDL_SCI_CLK_INT_OUT
|PDL_SCI_TX_CONNECTED ,
10000,2,0);
/* Configure SCI1 for asynchronous, 8N1, register values supplied */
R_SCI_Create(
1,
PDL_SCI_8N1,
PDL_SCI_PCLK_DIV_1 | PDL_SCI_CYCLE_BIT_16 | 0x50,
1,
0
);
}
Comentários a estes Manuais