LM3S101-CRN20-XNPT Luminary Micro, Inc., LM3S101-CRN20-XNPT Datasheet - Page 227

no-image

LM3S101-CRN20-XNPT

Manufacturer Part Number
LM3S101-CRN20-XNPT
Description
Microcontroller
Manufacturer
Luminary Micro, Inc.
Datasheet
Synchronous Serial Interface (SSI)
12.3
227
Figure 12-12. National Semiconductor MICROWIRE Frame Format, SSIFss Input Setup and
Initialization and Configuration
For each of the frame formats, the SSI is configured using the following steps:
1.
2.
3.
4.
5.
As an example, assume the SSI must be configured to operate with the following parameters:
Assuming the system clock is 20 MHz, the bit rate calculation would be:
FSSIClk = FSysClk / (CPSDVR * (1 + SCR)) ' 1x106 = 20x106 / (CPSDVR * (1 + SCR))
In this case, if CPSDVR=2, SCR must be 9.
The configuration sequence would be as follows:
1.
2.
3.
Ensure that the SSE bit in the SSICR1 register is disabled before making any configuration
changes.
Select whether the SSI will be a master or slave:
a.
b.
c.
Configure the clock prescale divisor by writing the SSICPSR register.
Write the SSICR0 register with the following configuration:
a.
b.
c.
d.
Enable the SSI by setting the SSE bit in the SSICR1 register.
Master operation
Freescale SPI mode (SPO=1, SPH=1)
1 Mbps bit rate
8 data bits
Ensure that the SSE bit in the SSICR1 register is disabled.
Write the SSICR1 register with a value of 0x00000000.
Write the SSICPSR register with a value of 0x00000002.
For master operations, set the SSICR1 register to 0x00000000.
For slave mode (output enabled), set the SSICR1 register to 0x00000004.
For slave mode (output disabled), set the SSICR1 register to 0x0000000C.
Serial clock rate (SCR)
Desired clock phase/polarity, if using Freescale SPI mode (SPH/SPO)
The protocol mode: Freescale SPI, TI SSF, National Semiconductor MICROWIRE (FRF)
The data size (DSS)
Hold Requirements
SSIClk
SSIFss
SSIRx
Preliminary
t
Hold
=t
t
Setup
SSIClk
=(2*t
SSIClk
)
First RX data to be
sampled by SSI slave
March 22, 2006

Related parts for LM3S101-CRN20-XNPT