Rev.1.01 2007.02.16
RJJ10J1643-0101
26
(R8C) (UART0, UART1)
RAPI_SM_SYNC
Clock synchronous serial communication mode
RAPI_SM_ASYNC
Clock asynchronous serial communication mode
For the data length format of clock asynchronous serial communication, the following
values can be set.
If the API is used in clock synchronous serial communication mode, do not set these
values.
(R8C) (UART0, UART1)
RAPI_BIT_7
Transfer data length 7 bits
RAPI_BIT_8
Transfer data length 8 bits
RAPI_BIT_9
Transfer data length 9 bits
For the clock source of serial communication, the following values can be set.
(R8C) (UART0, UART1)
RAPI_CKDIR_INT
Internal clock is used as the clock source of serial communication.
RAPI_CKDIR_EXT
External clock is used as the clock source of serial communication.
For the stop bit length of clock asynchronous serial communication, the following
values can be set.
If the API is used in clock synchronous serial communication mode, do not set these
values.
(R8C) (UART0, UART1)
RAPI_STPB_1
1 stop bit
RAPI_STPB_2
2 stop bits
For the parity bit of clock asynchronous serial communication, the following values can
be set.
If the API is used in clock synchronous serial communication mode, do not set these
values.
(R8C) (UART0, UART1)
RAPI_PARITY_NON
No parity bit
RAPI_PARITY_EVEN
Even parity bit
RAPI_PARITY_ODD
Odd parity bit
For the clock polarity of serial communication, the following values can be set.
If the API is used in clock asynchronous serial communication mode, do not set these
values.
(R8C) (UART0, UART1)
RAPI_DPOL_NON
Polarity not inverted
RAPI_DPOL_INV Polarity
inverted
For the count source of the built-in baud rate generator, the following values can be set.
(R8C) (UART0, UART1)
RAPI_BCSS_F1 f1SIO
RAPI_BCSS_F8 f8SIO
RAPI_BCSS_F32 f32SIO
For the transfer format, the following values can be set.
If the data length selected for use in clock asynchronous serial communication mode is
7 or 9 bits long, do not set these values.
(R8C) (UART0, UART1)
RAPI_LSB_SEL LSB
first
RAPI_MSB_SEL MSB
first
(H8/300H)
RAPI_COM1
SCI3 channel 1
RAPI_COM2
SCI3 channel 2