LM3S300 Luminary Micro, Inc, LM3S300 Datasheet - Page 304

no-image

LM3S300

Manufacturer Part Number
LM3S300
Description
Lm3s300 Arm Microcontroller
Manufacturer
Luminary Micro, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LM3S300-EQN25-C2
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S300-EQN25-C2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S300-IGZ25-C2
Manufacturer:
TI
Quantity:
982
Company:
Part Number:
LM3S300-IGZ25-C2
Quantity:
168
Part Number:
LM3S300-IQN25-C2
Quantity:
250
Part Number:
LM3S300-IQN25-C2
Manufacturer:
TI
Quantity:
214
Part Number:
LM3S300-IQN25-C2
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S300-IQN25-C2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Inter-Integrated Circuit (I
13.3
304
Figure 13-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
2
C) Interface
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.
June 04, 2008

Related parts for LM3S300