User`s manual
RX62N Group, RX621 Group 4. Library Reference
Program example
/* RPDL definitions */
#include "r_pdl_sci.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Configure SCI0 for asynchronous, 8N1, 38400 baud */
R_SCI_Create(
0,
PDL_SCI_ASYNC | PDL_SCI_8N1,
38400,
1
);
/* Configure SCI1 for asynchronous, 8N1, register values supplied */
R_SCI_Create(
1,
PDL_SCI_ASYNC | PDL_SCI_8N1,
BIT_31 | PDL_SCI_PCLK_DIV_1 | PDL_SCI_CYCLE_BIT_16 | \
(115200 & 0x00FFFF00) | 0x50,
1
);
}
R20UT0084EE0112 Rev.1.12 Page 4-173
July. 16, 2014