EasyManua.ls Logo

Profichip VPC3+S - Page 92

Default Icon
132 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8 Hardware Interface
92
Revision 1.04
VPC3+S User Manual
Copyright © profichip GmbH, 2012
Data written to the master SPI Data Register becomes the output data for
the slave, and data read from the master SPI Data Register after a transfer
operation is the input data from the slave.
Transmission Formats
During an SPI transmission, data is transmitted (shifted out serially) and re-
ceived (shifted in serially) simultaneously. The serial clock (SCK) synchro-
nizes shifting and sampling of the information on the two serial data lines.
The slave select line allows selection of an individual slave SPI device,
slave devices that are not selected do not interfere with SPI bus activities.
The CPOL clock polarity control bit specifies an active high or low clock
and has no significant effect on the transmission format. The CPHA clock
phase control bit selects one of two fundamentally different transmission
formats. Clock phase and polarity should be identical for the master SPI
device and the communicating slave device.
CPHA = 0 Transfer Format
The first edge on the SCK line is used to clock the first data bit of the slave
into the master and the first data bit of the master into the slave. In some
peripherals, the first bit of the slave’s data is available at the slave’s data
out pin as soon as the slave is selected. In this format, the first SCK edge is
issued a half cycle after SS has become low.
A half SCK cycle later, the second edge appears on the SCK line. When
this second edge occurs, the value previously latched from the serial data
input pin is shifted into the shift register.
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
SCK
(CPOL=’0’)
SCK
(CPOL=’1’)
SCK Edge Nr.
MISO
XSS
MOSI
SAMPLE
MOSI / MISO
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Begin
Transfer
End
Figure 8-4: SPI Transfer Format (CPHA='0')

Table of Contents

Other manuals for Profichip VPC3+S