SPI Master Core
Specification
Author: Simon Srot
simons@opencores.org
Rev. 0.
5
April 15, 2003
OpenCores
SPI Master Core Specification
4/15/2003
www.opencores.org
Rev 0.5
i
Revision History
Rev.
Date
Author
Description
0.1
June 13, 2002
Simon Srot
First Draft
0.2
July 12, 2002
Simon Srot
Document i
s lectured.
0.3
December 28,
2002
Simon Srot
Support for 64 bit character len added.
0.4
March 26,
2003
Simon Srot
Automatic slave select signal generation added.
0.5
April 15 2003
Simon Srot
Support for 128 bit character len added.
OpenCores
SPI Master Core Specification
4/15/2003
www.opencores.org
Rev 0.5
ii
Contents
CONTENTS
................................
................................................................
..........
II
INTRODUCTION................................................................
................................
. 1
IO PORTS
................................
................................
................................
..............
2
2.1
WISHBONE
INTERFACE SIGNALS
................................
................................
..
2
2.2
SPI
EXTERNAL CONNECTION
S
................................................................
.........
2
REGISTERS
................................
................................................................
..........
3
3.1
C
ORE
R
EGISTERS LIST
................................
................................
....................
3
3.2
D
ATA RECEIVE REGISTER
LOW
/
HIGH
[R
X
L/R
X
H]
................................
............
3
3.3
D
ATA TRANSMIT REGISTER LOW
/
HIGH
[T
X
L/T
X
H]
................................
.........
4
3.4
C
ONTROL AND STATUS RE
GISTER
[CTRL]
................................
...................... 4
3.5
D
IVIDER REGISTER
[DIVIDER]
................................................................
......
5
3.6
S
LAVE SELECT REGISTER
[SS]
................................................................
........
5
OPERATION
................................
................................................................
.........
7
4.1
WISHBONE
INTERFACE
................................
................................
................
7
4.2
S
ERIAL INTERFACE
................................
................................
.........................
7
ARCHITECTURE
................................................................
................................
9
CORE CONFIGURATION
................................
................................
...............
10
OpenCores
SPI Master Core Specification
4/15/2003
www.opencores.org
Rev 0.
5 1
of
10
Introduction
This document provides specifications for the SPI (Serial Peripheral Interface) Master
core. Synchronous serial interfaces are widely used to provide economical board
-
level
interfaces between different devices such as microcontrollers, DACs, ADCs and
other. Although there is no single standard for a synchronous serial bus, there are
industry
-
wide accepted guidelines based on two most popular implementations:
SPI (a trademark of Motorola Semiconductor)
Microwire/Plus (a trademark of National Sem
iconductor)
Many IC manufacturers produce components that are compatible with SPI and
Microwire/Plus.
The SPI Master core is compatible with both above-mentioned protocols as master
with some additional functionality. At the hosts side, the core acts like a WISHBONE
compliant slave device.
Features:
Full duplex synchronous serial data transfer
Variable
length of transfer word up to 128
bits
MSB or LSB first data transfer
Rx and Tx on both rising or falling edge of serial clock independently
8 slave select
lines
Fully static synchronous design with one clock domain
Technology independent Verilog
Fully synthesizable
- 1
- 2
- 3
- 4
- 5
前往页