29.01.2013 Views

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 16 SERIAL INTERFACE (SIO31)<br />

16.3 Register to Control Serial Interface (SIO31)<br />

The serial interface (SIO31) uses the following type of register to control functions.<br />

• Serial operation mode register 31 (CSIM31)<br />

(1) Serial operation mode register 31 (CSIM31)<br />

This register is used to enable or disable SIO31’s serial clock, operation modes, and specific operations.<br />

CSIM31 can be set by a 1-bit or 8-bit memory manipulation instruction.<br />

RESET input sets CSIM31 to 00H.<br />

Caution In 3-wire serial I/O mode, set the port mode register (PMXX) as follows. In each case, set the output<br />

latch to 0.<br />

• During serial clock output (master transmission or master reception)<br />

Set P90 (SCK31) to output mode (PM90 = 0)<br />

• During serial clock input (slave transmission or slave reception)<br />

Set P90 to input mode (PM90 = 1)<br />

• During transmit/transmit and receive mode<br />

Set P91 (SO31) to output mode (PM91 = 0)<br />

• During receive mode<br />

Set P92 (SI31) to input mode (PM92 = 1)<br />

Figure 16-2. Format of Serial Operation Mode Register 31 (CSIM31)<br />

Address: FFB1H After reset: 00H R/W<br />

Symbol 7 6 5 4 3 2 1 0<br />

CSIM31 CSIE31 0 0 0 0 MODE1 SCL311 SCL310<br />

CSIE31<br />

Enable/disable specification for SIO31<br />

Shift register operation Serial counter Port<br />

0 Operation stop Clear Port functionNote 1<br />

1 Operation enable Count operation enable Serial function + port functionNote 2<br />

MODE1<br />

Transfer operation modes and flags<br />

Operation mode Transfer start trigger SO31 output<br />

0 Transmit/transmit and receive mode Write to SIO31 Normal output<br />

1 Receive-only mode Read from SIO31 Fixed at low level<br />

SCL311 SCL310 Clock selection<br />

0 0 External clock input to SCK31<br />

0 1 fX/2 3 (1.05 MHz)<br />

1 0 fX/2 4 (524 kHz)<br />

1 1 fX/2 5 (262 kHz)<br />

Preliminary User’s Manual U13420EJ2V0UM00<br />

259

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

Saved successfully!

Ooh no, something went wrong!