EasyManuals Logo
Home>Texas Instruments>Microcontrollers>TM4C1294NCPDT

Texas Instruments TM4C1294NCPDT User Manual

Texas Instruments TM4C1294NCPDT
1890 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1299 background imageLoading...
Page #1299 background image
TPR = (System Clock/(2*(SCL_LP + SCL_HP)*SCL_CLK))-1;
TPR = (80 MHz/(2*(2+1)*3330000))-1;
TPR = 3
Write the I2CMTPR register with the value of 0x0000.0003.
8. To send the master code byte, software should place the value of the master code byte into the
I2CMSA register and write the I2CMCS register with the following value depending on the
required operation:
For Standard High-Speed mode, the I2CMCS register should be written with 0x13.
For Burst High-Speed mode, the I2CMCS register should be written with 0x50.
9. This places the I2C master peripheral in High-speed mode, and all subsequent transfers (until
STOP) are carried out at High-speed data rate using the normal I2CMCS command bits, without
setting the HS bit in the I2CMCS register.
10. The transaction is ended by setting the STOP bit in the I2CMCS register.
11. Wait until the transmission completes by polling the I2CMCS register's BUSBSY bit until it has
been cleared.
12. Check the ERROR bit in the I2CMCS register to confirm the transmit was acknowledged.
18.5 Register Map
Table 18-4 on page 1300 lists the I
2
C registers. All addresses given are relative to the I
2
C base address:
I
2
C 0: 0x4002.0000
I
2
C 1: 0x4002.1000
I
2
C 2: 0x4002.2000
I
2
C 3: 0x4002.3000
I
2
C 4: 0x400C.0000
I
2
C 5: 0x400C.1000
I
2
C 6: 0x400C.2000
I
2
C 7: 0x400C.3000
I
2
C 8: 0x400B.8000
I
2
C 9: 0x400B.9000
Note that the I
2
C module clock must be enabled before the registers can be programmed (see
page 391). There must be a delay of 3 system clocks after the I
2
C module clock is enabled before
any I
2
C module registers are accessed.
The hw_i2c.h file in the TivaWare
Driver Library uses a base address of 0x800 for the I
2
C slave
registers. Be aware when using registers with offsets between 0x800 and 0x818 that TivaWare™
for C Series uses an offset between 0x000 and 0x018 with the slave base address.
1299June 18, 2014
Texas Instruments-Production Data
Tiva
TM4C1294NCPDT Microcontroller

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TM4C1294NCPDT and is the answer not in the manual?

Texas Instruments TM4C1294NCPDT Specifications

General IconGeneral
BrandTexas Instruments
ModelTM4C1294NCPDT
CategoryMicrocontrollers
LanguageEnglish

Related product manuals