hi-3210 Holt Integrated Circuits, Inc., hi-3210 Datasheet - Page 32

no-image

hi-3210

Manufacturer Part Number
hi-3210
Description
Arinc 429 Data Management Engine / Octal Receiver / Quad Transmitter
Manufacturer
Holt Integrated Circuits, Inc.
Datasheet
HOST SERIAL PERIPHERAL INTERFACE
In the HI-3210, internal RAM and registers occupy a (32K +
128) x 8 address space. The lowest 32K addresses access
RAM locations and the remaining addresses access
registers. Timing is identical for register operations and
RAM operations via the serial peripheral interface, and
read and write operations have likewise identical timing.
Host access is only allowed when the part is READY or in
SAFE mode.
return the Master Status Register value until either of these
modes occur.
Serial Peripheral Interface (SPI) Basics
The HI-3210 uses an SPI synchronous serial interface for
host access to registers and RAM. Host serial
communication is enabled through the Chip Select (
pin, and is accessed via a three-wire interface consisting of
Serial Data Input (SI) from the host, Serial Data Output
(SO) to the host and Serial Clock (SCK). All programming
cycles are completely self-timed, and no erase cycle is
required before write.
The SPI (Serial Peripheral Interface) protocol specifies
master and slave operation; the HI-3210 Host CPU
interface operates as an SPI slave.
The SPI protocol defines two parameters, CPOL (clock
polarity) and CPHA (clock phase). The possible
CPHA
Without describing details of the SPI modes, the HI-3210
operates in the two modes where input data for each
device ( master and slave) is clocked on the rising edge of
SCK (SPI Mode 0)
SCK (SPI Mode 3)
SO
CS
SI
FIGURE 1. Generalized Single-Byte Transfer Using SPI Protocol, SCK is Shown for SPI Modes 0 and 3
combinations define four possible "SPI Modes."
NOTE:
High Z
writes will be blocked and reads will
MSB
MSB
0
0
1
1
HOLT INTEGRATED CIRCUITS
CPOL-
2
2
CS
HI-3210
)
32
3
3
SCK, and output data for each device changes on the
falling edge. These are known as SPI Mode 0 (CPHA = 0,
CPOL = 0) and SPI Mode 3 (CPHA = 1, CPOL = 1). Be sure
to set the host SPI logic for one of these modes.
As seen in Figure 1, the difference between SPI Modes 0
and 3 is the idle state for the SCK signal. There is no
configuration setting in the HI-3210 to select SPI Mode 0 or
Mode 3 because compatibility is automatic. Beyond this
point, the HI-3210 data sheet only shows the SPI Mode 0
SCK signal in timing diagrams.
The SPI protocol transfers serial data as 8-bit bytes. Once
CS
latch input data into the master and slave devices, starting
with each byte’s most-significant bit. The HI-3210 SPI can
be clocked at 20 MHz.
Multiple bytes may be transferred when the host holds
low after the first byte transferred, and continues to clock
SCK in multiples of 8 clocks.
select terminates the serial transfer and reinitializes the
HI-3210 SPI for the next transfer. If
full byte is clocked by SCK, the incomplete byte clocked
into the device SI pin is discarded.
In the general case, both master and slave simultaneously
send and receive serial data (full duplex) as shown in
Figure 1 below. When the HI-3210 is sending data on SO
during read operations, activity on its SI input is ignored.
Figures 2 and 3 show actual behavior for the HI-3210 SO
output.
chip select is asserted, the next 8 rising edges on SCK
4
4
5
5
6
6
A rising edge on
LSB
LSB
CS
7
7
goes high before a
High Z
CS
chip
CS

Related parts for hi-3210