MC9S12XDP512CFU
Model | MC9S12XDP512CFU |
Description | 16-BIT, FLASH, 40MHz, MICROCONTROLLER, PQFP80 |
PDF file | Total 1348 pages (File size: 8M) |
Chip Manufacturer | PHILIPS |
Chapter 12 Serial Peripheral Interface (S12SPIV4)
12.2.3
SS — Slave Select Pin
This pin is used to output the select signal from the SPI module to another peripheral with which a data
transfer is to take place when it is configured as a master and it is used as an input to receive the slave select
signal when the SPI is configured as slave.
12.2.4
SCK — Serial Clock Pin
In master mode, this is the synchronous output clock. In slave mode, this is the synchronous input clock.
12.3
12.3.1
Memory Map and Register Definition
Module Memory Map
This section provides a detailed description of address space and registers used by the SPI.
The memory map for the SPI is given in
Figure 12-2.
The address listed for each register is the sum of a
base address and an address offset. The base address is defined at the SoC level and the address offset is
defined at the module level. Reads from the reserved bits return zeros and writes to the reserved bits have
no effect.
Register
Name
SPICR1
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
Bit 7
SPIE
0
6
SPE
0
5
SPTIE
0
4
MSTR
3
CPOL
2
CPHA
0
1
SSOE
Bit 0
LSBFE
SPICR2
MODFEN
BIDIROE
0
SPISWAI
SPC0
SPIBR
0
SPPR2
0
SPPR1
SPTEF
SPPR0
MODF
SPR2
0
SPR1
0
SPR0
0
SPISR
SPIF
0
Reserved
SPIDR
Bit 7
6
5
4
3
2
1
Bit 0
Reserved
Reserved
= Unimplemented or Reserved
Figure 12-2. SPI Register Summary
MC9S12XDP512 Data Sheet, Rev. 2.21
518
Freescale Semiconductor