English
Language : 

LM3S2739 Datasheet, PDF (371/532 Pages) List of Unclassifed Manufacturers – Microcontroller
LM3S2739 Microcontroller
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.
6. 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.
7. Place data (byte) to be sent in the data register by writing the I2CMDR register with the desired
data.
8. 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).
15.4
9. Wait until the transmission completes by polling the I2CMCS register’s BUSBSY bit until it has
been cleared.
I2C Register Map
“I2C Register Map” on page 371 lists the I2C registers. All addresses given are relative to the I2C
base addresses for the master and slave:
■ I2C Master 0: 0x4002.0000
■ I2C Slave 0: 0x4002.0800
■ I2C Master 1: 0x4002.1000
■ I2C Slave 1: 0x4001.1800
Table 15-2. Inter-Integrated Circuit (I2C) Interface Register Map
Offset Name
0x000 I2CMSA
0x000 I2CSOAR
0x004 I2CMCS
0x004 I2CMCS
0x004 I2CSCSR
0x004 I2CSCSR
0x008 I2CMDR
0x008 I2CSDR
0x00C I2CMTPR
0x00C I2CSIMR
0x010 I2CMIMR
0x010 I2CSRIS
Type
R/W
R/W
R/W
R/W
RO
RO
R/W
R/W
R/W
R/W
R/W
RO
Reset
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0001
0x0000.0000
0x0000.0000
0x0000.0000
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
See
page
373
386
374
374
387
387
378
389
379
390
380
391
June 04, 2007
371
Preliminary