beautypg.com

Renesas RJJ10J1643-0101 User Manual

Page 29

background image

Rev.1.01 2007.02.16
RJJ10J1643-0101

27

RAPI_COM3

SCI3 channel 3

For serial communication mode, the following values can be set.

(H8/300H) (SCI3 channel 1, SCI3 channel 2, SCI3 channel 3)

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.

(H8/300H) (SCI3 channel 1, SCI3 channel 2, SCI3 channel 3)

RAPI_BIT_7

Transfer data length 7 bits

RAPI_BIT_8

Transfer data length 8 bits

For the clock source of serial communication, the following values can be set.

(H8/300H) (SCI3 channel 1, SCI3 channel 2)

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.

(H8/300H) (SCI3 channel 1, SCI3 channel 2, SCI3 channel 3)

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.

(H8/300H) (SCI3 channel 1, SCI3 channel 2, SCI3 channel 3)

RAPI_PARITY_NON

No parity bit

RAPI_PARITY_EVEN

Even parity bit

RAPI_PARITY_ODD

Odd parity bit

For the count source of the built-in baud rate generator, the following values can be set.

(H8/300H) (SCI3 channel 1, SCI3 channel 2 SCI3 channel 3)

RAPI_BCSS_F1

Φ clock

RAPI_BCSS_F4

φ/4

clock

RAPI_BCSS_F16

φ/16

clock RAPI_BCSS_F32 φ/64

clock

The noise rejection function can be set to be turned on or turned off.
When used in clock synchronous serial communication mode, the noise rejection
function has no effect.

(H8/300H) (SCI3 channel 3)

RAPI_NOISE_CANCEL_ON

Noise rejection function turned on

RAPI_NOISE_CANCEL_OFF

Noise rejection function turned off

[data2]

Sets the divide-by-N value of a communication speed.

Return value

If serial communication was successfully set, RAPI_TRUE is returned; if settings failed,
RAPI_FALSE is returned.