EM78P312N
8-Bit Microcontroller
| shift start |
| shift start |
|
SPIS |
|
|
|
|
RBF | shift finish |
|
|
|
WBE | shift finish |
|
|
|
/SCK pin |
|
|
|
|
SO pin | a0 a1 a2 a3 a4 a5 a6 a7 |
| b0 b1 b2 b3 b4 b5 b6 b7 |
|
SI pin | c0 c1 c2 c3 c4 c5 c6 c7 |
| d0 d1 d2 d3 d4 d5 d6 d7 |
|
SPIF |
|
|
|
|
SPID | a | c | b | d |
| write data | read data | write data | read data |
| Fig. |
|
(d) Multiple Device Connect (/SS)
When selecting external clock for transfer clock source, the /SS function can be used. This pin (/SS) will be active when the /SS function is enabled, else the /SS pin is a general purpose I/O. Ignore the data on the SDI and SDO pins while /SS is high, since the SDO is no longer driven.
|
| SDO |
|
|
|
|
|
|
| SDI |
|
|
|
|
|
|
| SCK |
|
|
|
|
|
|
| /SS |
|
|
|
|
|
Master | P67 |
|
|
|
|
| |
P66 |
|
|
|
|
| ||
|
| P65 |
|
|
|
|
|
|
| P64 |
|
|
|
|
|
/SS | SDO | /SS | SDO | /SS | SDO | /SS | SDO |
SCK | SDI | SCK | SDI | SCK | SDI | SCK | SDI |
Slave Device 1 |
| Slave Device 2 |
| Slave Device 3 | Slave Device 4 |
|
Fig. 5-17 The SPI Configuration Example of Single-Master and Multi-Slaves
34 • | Product Specification (V1.0) 10.03.2006 |
(This specification is subject to change without further notice)