Rev.2.00 Oct 16, 2006 page 85 of 354
REJ09B0340-0200
M30245 Group
2. Serial Interface Special Function
2.5.1 Overview
_____
Serial interface special function can control communications on the serial bus using SSi input pins. The
following is an overview of the serial interface special function.
(1) Transmission/reception format
8-bit data
(2) Transfer rate
If the internal clock is selected as the transfer clock, the divide-by-2 frequency, resulting from the bit
rate generator division, becomes the transfer rate. The bit rate generator count source can be se-
lected from the following: f
1
, f
8
, and f
32
. Clocks f
1
, f
8
, and f
32
are derived by dividing the CPU’s main
clock by 1, 8, and 32 respectively.
Furthermore, if an external clock is selected as the transfer clock, the clock frequency input to the CLK
pin becomes the transfer rate.
(3) Error detection
Fault error can be detected in the master mode.
_____
When an “L” signal is input to an SSi pin in the multiple master system, it is judged there is another
master existed, and the TxDi, RxDi and CLKi pins all become high impedance. Moreover, the fault
error interrupt request bit becomes "1" and a fault error interrupt is generated.
(4) How to deal with an error
When the fault error flag is set to “0”, output is restored to the clock output and data output pins. In the
_____
_____
master mode, if an SSi input pin is H level, “0” can be written for the fault error flag. When an SSi input
pin is L level, “0” cannot be written for the fault error flag. In the slave mode, the “0” can be written for
_____
the fault error flag regardless of the input to the SSi input pins.
(5) Function selection
For serial interface special function, the following functions can be selected:
(a) Function for choosing CLK polarity
This function switches the CLK polarity of the transfer clock. The following operations are available:
• Data is input at the falling edge of the transfer clock, and is output at the rising edge.
• Data is input at the rising edge of the transfer clock, and is output at the falling edge.
(b) Function for setting clock phase
This function switches the phase of the transfer clock. Choose either of the following:
•Without clock delay
•With clock delay
(c) Function for setting serial input pin
This function switches the serial bus control privilege between the master mode and slave mode.
Choose either of the following:
• Master mode
• Slave mode
2.5 Serial Interface Special Function
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...