IBM EM78P312N manual SPI Serial Peripheral Interface, Bit Microcontroller, 13 SPI Block Diagram

Models: EM78P312N

1 68
Download 68 pages 28.33 Kb
Page 35
Image 35
5.8 SPI (Serial Peripheral Interface)

EM78P312N

8-Bit Microcontroller

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

Bank 3

0X05

SPIC1

SMP

DCOL

BRS2

BRS1

BRS0

EDS

DORD

WBE

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bank 3

0X06

SPIC2

SPIS

0

0

0

0

SPIM1

SPIM0

RBF

R/W

--

--

--

--

R/W

R/W

R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bank 3

0X07

SPID

SPID7

SPID6

SPID5

SPID4

SPID3

SPID2

SPID1

SPID0

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bank 0

0x0E

ISFR1

EXIF5

TCIF2

ADIF

0

EXIF3

TCIF4

SPIF

TCIF3

R/W

R/W

R/W

--

R/W

R/W

R/W

R/W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SFR

0x0E

IMR1

EXIE5

TCIE2

ADIE

0

EXIE3

TCIE4

SPIE

TCIE3

R/W

R/W

R/W

--

R/W

R/W

R/W

R/W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DCOL

RBFI

RBF

 

SE

 

 

 

 

 

Set to 1

 

Clear

 

 

Collision

 

 

 

 

 

Buffer Full

Tx Empty

 

 

Detector

Detector

 

 

 

 

 

 

 

Detector

 

 

 

 

 

 

SHIFT Register

 

 

 

 

 

 

SPID

 

reg

 

 

 

 

 

(8

bits)

 

 

 

SDI

 

 

 

 

 

SMP

TLS0~1

 

 

 

 

 

 

DORD

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

SDO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Master/Slave

 

 

 

 

 

 

 

 

EDS

 

 

 

BRS2~0

 

 

 

 

Edge

 

 

 

 

 

 

 

Select

 

 

 

3

 

 

 

 

 

 

/SS

/SS enable

BRS2~0

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

SE

 

 

 

 

 

 

 

 

 

 

 

Prescaler

 

 

 

 

 

Tsystem

4, 16, 64, 256,1024

 

Edge

 

 

 

 

 

 

 

Select

 

 

 

TC1/2

 

 

 

EDS

 

SCK

 

 

 

 

 

 

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

31

(This specification is subject to change without further notice)

Page 35
Image 35
IBM EM78P312N manual SPI Serial Peripheral Interface, Bit Microcontroller, 13 SPI Block Diagram