04.01.2014 Views

Clock Synchronous Serial I/O Mode - von Gunthard Kraus

Clock Synchronous Serial I/O Mode - von Gunthard Kraus

Clock Synchronous Serial I/O Mode - von Gunthard Kraus

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

R8C/10, R8C/11, R8C/12, R8C/13 Group<br />

<strong>Serial</strong> I/O Operation (<strong>Clock</strong> <strong>Synchronous</strong> <strong>Serial</strong> I/O <strong>Mode</strong>)<br />

3.5ms<br />

250µs 250µs<br />

1ms<br />

CLK0<br />

1 2 3 4 10 1<br />

TXD0<br />

1 2 3 4 10 1<br />

RXD0<br />

1 2 3 4 10 1<br />

8µs<br />

CLK0<br />

TxD0 D0 D1 D2<br />

D3 D4 D5 D6 D7<br />

RxD0<br />

D0<br />

D1<br />

D2<br />

D3 D4 D5 D6 D7<br />

Figure 1. Transmit Format<br />

3.1 Pins Used<br />

Table 1. List of Pins Used and Their Functions<br />

Pin name I/O Function<br />

P14/TxD0 Output <strong>Serial</strong> data output<br />

P15/RxD0 Input <strong>Serial</strong> data input<br />

P16/CLK0 Output Transfer clock output<br />

3.2 Memory Usage<br />

Table 2. Memory Usage<br />

Memory Usage Size Remarks<br />

ROM 167 bytes In only the main.c module<br />

RAM 21 bytes In only the main.c module<br />

Maximum user stack used 6 bytes sfr_init function: 3 bytes<br />

Cs_sral function: 3 bytes<br />

Maximum interrupt stack used 0 byte Unused<br />

The size of the used memory differs with the C compiler version and compile options. The above applies to the conditions<br />

given below.<br />

• C compiler: M3T-NC30WA V.5.20 Release 1<br />

• Compile option: -g -O -finfo Note - R8C<br />

Note: Unusable in the R8C/Tiny-only free version.<br />

Table 4. RAM Usage and Definition<br />

Symbol Type Size Content<br />

serial_cnt unsigned char 1 byte Transmit/receive data counter<br />

rcv_buf[10] unsigned char 10 bytes Receive buffer<br />

trn_buf[10] unsigned char 10 bytes Transmit buffer<br />

REJ05B0452-0110Z/Rev.1.10 August 2004 Page 2 of 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!