Chapter 14 Serial Peripheral Interface (SPIV3) Block Description
Freescale Semiconductor
MC9S12C-Family / MC9S12GC-Family
415
Rev 01.24
14.2.2
MISO — Master In/Slave Out Pin
This pin is used to transmit data out of the SPI module when it is configured as a slave and receive data
when it is configured as master.
14.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 its configured as a master and its used as an input to receive the slave select
signal when the SPI is configured as slave.
14.2.4
SCK — Serial Clock Pin
This pin is used to output the clock with respect to which the SPI transfers data or receive clock in case of
slave.
14.3
Memory Map and Register Definition
This section provides a detailed description of address space and registers used by the SPI.
The memory map for the SPIV3 is given below in
. 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.
14.3.1
Module Memory Map
Table 14-1. SPIV3 Memory Map
Address
Use
Access
0x0000
SPI Control Register 1 (SPICR1)
R/W
0x0001
SPI Control Register 2 (SPICR2)
R/W
(1)
1. Certain bits are non-writable.
0x0002
SPI Baud Rate Register (SPIBR)
R/W
0x0003
SPI Status Register (SPISR)
R
(2)
2. Writes to this register are ignored.
0x0004
Reserved
—
3. Reading from this register returns all zeros.
0x0005
SPI Data Register (SPIDR)
R/W
0x0006
Reserved
—
0x0007
Reserved
—
Summary of Contents for MC9S12C Family
Page 689: ......