Download UM10198 - eecosales.com

Transcript
UM10198
Philips Semiconductors
Chapter 15: SPI controllers
Table 250. Summary of SPI registers …continued
Address
Name
Description
Reset state
Access
0x2008 8010
0x2009 0010
SPI1_STAT; SPI2_STAT
SPIn Status Register. Provides information on
conditions in the SPI interface.
0x01
R/W
0x2008 8014
0x2009 0014
SPI1_DAT
SPIn Data Buffer Register. Provides access to the
transmit and receive FIFO buffers.
0
R/W
0x2008 8400
0x2009 0400
SPI1_TIM_CTRL
SPI2_TIM_CTRL
SPIn Timer Control Register. Controls the
generation of timed interrupts.
0x02
R/W
0x2008 8404
0x2009 0404
SPI1_TIM_COUNT
SPI2_TIM_COUNT
SPIn Timer Counter Register. This is the counter
for timed interrupts.
0
R/W
0x2008 8408
0x2009 0408
SPI1_TIM_STAT
SPI2_TIM_STAT
SPIn Timer Status Register. Contains the timed
interrupt pending flag.
0
R/W
SPI2_DAT
5.1 SPIn Global Control register (SPIn_GLOBAL - 0x2008 8000, 0x2009
0000)
The SPIn_GLOBAL register contains control bits that allow enabling and/or resetting the
related SPI interface.
Table 251. SPIn Global Control register (SPIn_GLOBAL - 0x2008 8000, 0x2009 0000)
SPIn_GLOBAL
Function
Description
Reset
value
1
rst
Allows software reset of the SPI interface.
0
0: No action.
1: The SPI interface is reset. The interface must be enabled
to be active.
0
enable
Enables the SPI interface.
0
0: The SPI interface is disabled.
1: The SPI interface is enabled.
5.2 SPIn Control register (SPIn_CON - 0x2008 8004, 0x2009 0004)
The SPIn_CON register contains bits that control many aspects of SPI operation. These
include selection of how the pins are used, the frame size, the SPI mode (how data and
clocks are related), and the FIFO thresholds.
UM10198_1
User manual
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
Rev. 01 — 1 June 2006
247 of 396