29.01.2013 Views

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

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.

262<br />

CHAPTER 16 SERIAL INTERFACE (SIO31)<br />

Notes 1. When CSIE31 = 0 (SIO31 operation stop status), the pins SI31, SO31, and SCK31 can be used for<br />

port functions.<br />

2. When CSIE31 = 1 (SIO31 operation enabled state), the SI31 pin can be used as a port pin if only the<br />

send function is used, and the SO31 pin can be used as a port pin if only the receive-only mode is<br />

used.<br />

Remarks 1. fX: main system clock oscillation frequency<br />

2. Figures in parentheses are for operation with fX = 8.38 MHz.<br />

(2) Communication operations<br />

In the three-wire serial I/O mode, data is transmitted and received in 8-bit units. Each bit of data is sent or received<br />

in synchronization with the serial clock.<br />

The serial I/O shift register 31 (SIO31) is shifted in synchronization with the falling edge of the serial clock.<br />

Transmission data is held in the SO31 latch and is output from the SO31 pin. Data that is received via the SI31<br />

pin in synchronization with the rising edge of the serial clock is latched to SIO31.<br />

Completion of an 8-bit transfer automatically stops operation of SIO31 and sets interrupt request flag (CSIIF31).<br />

SCK31 1<br />

Figure 16-3. Timing of 3-Wire Serial I/O Mode<br />

SI31 DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0<br />

CSIIF31<br />

2 3 4 5 6 7 8<br />

SO31 DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0<br />

(3) Transfer start<br />

A serial transfer starts when the following two conditions have been satisfied and transfer data has been set (or<br />

read) to serial I/O shift register 31 (SIO31).<br />

• The SIO31 operation control bit (CSIE31) = 1<br />

• After an 8-bit serial transfer, either the internal serial clock is stopped or SCK31 is set to high level.<br />

• Transmit/transmit and receive mode<br />

When CSIE31 = 1 and MODE1 = 0, transfer starts when writing to SIO31.<br />

• Receive-only mode<br />

When CSIE31 = 1 and MODE1 = 1, transfer starts when reading from SIO31.<br />

Caution After data has been written to SIO31, transfer will not start even if the CSIE31 bit value is set<br />

to “1”.<br />

Completion of an 8-bit transfer automatically stops the serial transfer operation and interrupt request flag<br />

(CSIIF31) is set.<br />

Preliminary User’s Manual U13420EJ2V0UM00<br />

Transfer completion<br />

Transfer starts in synchronization with the SCK31 falling edge

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

Saved successfully!

Ooh no, something went wrong!