LM3S2965-IQC20-A0T Luminary Micro, Inc., LM3S2965-IQC20-A0T Datasheet - Page 378

no-image

LM3S2965-IQC20-A0T

Manufacturer Part Number
LM3S2965-IQC20-A0T
Description
Microcontroller
Manufacturer
Luminary Micro, Inc.
Datasheet
Inter-Integrated Circuit (I
15.4
Table 15-2. Inter-Integrated Circuit (I
378
Offset
0x00C
0x00C
0x000
0x000
0x004
0x004
0x004
0x004
0x008
0x008
0x010
0x010
Name
I2CMSA
I2CSOAR
I2CMCS
I2CMCS
I2CSCSR
I2CSCSR
I2CMDR
I2CSDR
I2CMTPR
I2CSIMR
I2CMIMR
I2CSRIS
6.
7.
8.
9.
I
“I
base addresses for the master and slave:
2
2
C Register Map
C Register Map” on page 378 lists the I
I
I
I
I
2
2
2
2
TPR = (System Clock / (2 * (SCL_LP + SCL_HP) * SCL_CLK)) - 1;
TPR = (20MHz / (2 * (6 + 4) * 100000)) - 1;
TPR = 9
Write the I2CMTPR register with the value of 0x0000.0009.
Specify the slave address of the master and that the next operation will be a Send by writing
the I2CMSA register with a value of 0x0000.0076. This sets the slave address to 0x3B.
Place data (byte) to be sent in the data register by writing the I2CMDR register with the desired
data.
Initiate a single byte send of the data from Master to Slave by writing the I2CMCS register with
a value of 0x0000.0007 (STOP, START, RUN).
Wait until the transmission completes by polling the I2CMCS register’s BUSBSY bit until it has
been cleared.
C Master 0: 0x4002.0000
C Slave 0: 0x4002.0800
C Master 1: 0x4002.1000
C Slave 1: 0x4001.1800
2
C) Interface
Type
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
RO
RO
RO
2
C) Interface Register Map
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0001
0x0000.0000
0x0000.0000
0x0000.0000
Reset
Preliminary
2
C registers. All addresses given are relative to the I
Description
I2C Master Slave Address
I2C Slave Own Address
I2C Master Control/Status
I2C Master Control/Status
I2C Slave Control/Status
I2C Slave Control/Status
I2C Master Data
I2C Slave Data
I2C Master Timer Period
I2C Slave Interrupt Mask
I2C Master Interrupt Mask
I2C Slave Raw Interrupt Status
June 04, 2007
page
See
380
393
381
381
394
394
385
396
386
397
387
398
2
C

Related parts for LM3S2965-IQC20-A0T