EM78P312N
8-Bit Microcontroller
5.8 SPI (Serial Peripheral Interface)
Registers for the SPI Circuit
R_BANK Address Name Bit 7
Bit 6
DCOL
R/W
0
Bit 5
BRS2
R/W
0
Bit 4
Bit 3
BRS0
R/W
0
Bit 2
EDS
R/W
Bit 1
DORD
R/W
Bit 0
WBE
R
SMP
BRS1
Bank 3
Bank 3
Bank 3
Bank 0
SFR
0X05
0X06
0X07
0x0E
0x0E
SPIC1
SPIC2
SPID
R/W
SPIS
R/W
R/W
0
SPIM1 SPIM0
RBF
R
--
--
--
--
R/W
SPID2
R/W
R/W
SPID1
R/W
SPID7
R/W
SPID6
R/W
TCIF2
R/W
TCIE2
R/W
SPID5
R/W
ADIF
R/W
ADIE
R/W
SPID4
SPID3
R/W
EXIF3
R/W
EXIE3
R/W
SPID0
R/W
TCIF3
R/W
TCIE3
R/W
R/W
0
EXIF5
R/W
TCIF4
R/W
SPIF
R/W
ISFR1
IMR1
--
EXIE5
R/W
0
TCIE4
R/W
SPIE
R/W
--
RBFI
RBF
DCOL
SE
Clear
Set to 1
Collision
Detector
Buffer Full
Detector
Tx Empty
Detector
SHIFT Register
SPID
(8 bits)
reg
SDI
TLS0~1
SMP
DORD
2
SDO
Master/Slave
EDS
Edge
Select
BRS2~0
3
/SS
BRS2~0
/SS enable
Prescaler
3
SE
4, 16, 64, 256,1024
Tsystem
Edge
Select
SCK
EDS
TC1/2
Fig. 5-13 SPI Block Diagram
The serial interface are connected to external devices via P70 (/SCK), P71 (SI), P72
(SO). The serial interface can also be used as I/O port. In the transmit mode, P71 can
be used as normal I/O port and in receive mode, P72 and P71 can be used as normal
I/O ports.
Product Specification (V1.0) 10.03.2006
(This specification is subject to change without further notice)
• 31