IBM EM78P312N Network Card User Manual


 
EM78P312N
8-Bit Microcontroller
Product Specification (V1.0) 10.03.2006
31
(This specification is subject to change without further notice)
5.8 SPI (Serial Peripheral Interface)
Registers for the SPI Circuit
R_BANK Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
SMP DCOL BRS2 BRS1 BRS0 EDS DORD WBE
Bank 3 0X05 SPIC1
R/W R/W R/W R/W R/W R/W R/W R
SPIS 0 0 0 0 SPIM1 SPIM0 RBF
Bank 3 0X06 SPIC2
R/W -- -- -- -- R/W R/W R
SPID7 SPID6 SPID5 SPID4 SPID3 SPID2 SPID1 SPID0
Bank 3 0X07 SPID
R/W R/W R/W R/W R/W R/W R/W R/W
EXIF5 TCIF2 ADIF 0 EXIF3 TCIF4 SPIF TCIF3
Bank 0 0x0E ISFR1
R/W R/W R/W -- R/W R/W R/W R/W
EXIE5 TCIE2 ADIE 0 EXIE3 TCIE4 SPIE TCIE3
SFR 0x0E IMR1
R/W R/W R/W -- R/W R/W R/W R/W
SHIFT Register
SPID reg
Prescaler
4, 16, 64, 256,1024
SDI
SDO
SCK
Edge
Select
Edge
Select
Tsystem
TC1/2
BRS2~0
3
Master/Slave
BRS2~0
3
RBFI
RBF
Buffer Full
Set to 1
SE
Tx Empty
Clear
(8 bits)
TLS0~1
2
SE
/SS
/SS enable
EDS
EDS
DORD
Collision
Detector
DCOL
SMP
Detector
Detector
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.