LM3S6938 Luminary Micro, Inc, LM3S6938 Datasheet - Page 389

no-image

LM3S6938

Manufacturer Part Number
LM3S6938
Description
Lm3s6938 Arm Microcontroller
Manufacturer
Luminary Micro, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LM3S6938-EQC50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S6938-EQC50-A2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S6938-IBZ50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S6938-IBZ50-A2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S6938-IQC50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
15.3
July 25, 2008
Figure 15-13. Slave Command Sequence
Initialization and Configuration
The following example shows how to configure the I
This assumes the system clock is 20 MHz.
1.
2.
3.
4.
5.
Enable the I
Control module.
Enable the clock to the appropriate GPIO module via the RCGC2 register in the System Control
module.
In the GPIO module, enable the appropriate pins for their alternate function using the
GPIOAFSEL register. Also, be sure to enable the same pins for Open Drain operation.
Initialize the I
Set the desired SCL clock speed of 100 Kbps by writing the I2CMTPR register with the correct
value. The value written to the I2CMTPR register represents the number of system clock periods
in one SCL clock period. The TPR value is determined by the following equation:
NO
TREQ bit=1?
Write data to
I2CSDR
2
C clock by writing a value of 0x0000.1000 to the RCGC1 register in the System
2
C Master by writing the I2CMCR register with a value of 0x0000.0020.
YES
NO
Write OWN Slave
also valid
Read I2CSCSR
FBR is
Read data from
RREQ bit=1?
Write -------1 to
Preliminary
Address to
I2CSOAR
I2CSCSR
I2CSDR
Idle
YES
2
C module to send a single byte as a master.
LM3S6938 Microcontroller
389

Related parts for LM3S6938