Address Assignment Of Spi Register; Table 15: Overview Of Spi Registers - Siemens ERTEC200 Manual

Enhanced real-time ethernet controller
Table of Contents

Advertisement

For the synchronous clock output of the SPI interface, the following frequencies are calculated according to the assigned
SPI registers:
50 MHz
SCLKOUT = -----------------------------
CPSDRV * (1+SCR)
The SPI parameters can assume the following values:
CPSDRV
From 2 to 254
SCR
From 0 to 255
This yields a frequency range of
769 Hz
25 MHz[Master]/8.33 MHz[Slave]
The SPI interface can also be used as a BOOT medium if, for example, functions from a serial EEPROM are to be
loaded to the ERTEC 200 and executed. The BOOT medium is selected by the BOOT[3:0] inputs during the active reset
phase. (See BOOT ROM description).
The BOOT loader then takes over setting of the SPI signal bins and loading of the program code. For BOOT mode with
SPI interface, the GPIO[22] is used as a chip select signal.
4.7.1

Address Assignment of SPI Register

The SPI registers are 16 bits in width. Reading or writing the SPI register is useful only in 16-bit access
byte-by-byte write operation is not intercepted by the hardware.
Register Name Offset Address Address Area
SSPCR0
SSPCR1
SSPDR
SSPSR
SSPCPSR
SSPIIR/SSPICR
0x0018 - 0x003C
0x0040 - 0x0090
0x0094 - 0x00FF

Table 15: Overview of SPI Registers

Copyright © Siemens AG 2007. All rights reserved.
Technical data subject to change
(CPSDRV = 254, SCR = 255) to
(CPSDRV = 2, SCR = 0)
SPI
(Base Address 0x4000_2200)
0x0000
2 bytes
0x0004
1 bytes
0x0008
2 bytes
0x000C
1 bytes
0x0010
1 bytes
0x0014
1 bytes
Access
Default
R/W
0x0000
R/W
0x00
R/W
0x----
R
0x03
R/W
0x00
R/W
0x00
55
. However, a
Description
SSP control register 0
SSP control register 1
Rx/Tx FIFO data register
SSP status register
SSP clock prescale register
Int identification register (read
)
Interrupt clear re
gister (write)
Reserved
Reserved for test purposes
Reserved for future extension
ERTEC 200 Manual
Version 1.1.0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents