This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why is MDR (I2C Master Core) register is not updating ???

I am trying I2C driver below is the code. () The code I'm using from (Software Development Kit\TM4C1294XL Firmware Development Package\examples\peripherals\i2c).

Here, by using       I2CMasterDataPut(I2C0_BASE, pui32DataTx[ui32Index]);  I'm trying to write the data into the MDR(I2C CORE) register but the value is not getting written into the same!!. That's why I'm not able to receive the data  received ACK from the slave also.

Can anyone please suggest me the solution?

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//*****************************************************************************
//
// master_slave_loopback.c - Example demonstrating a simple I2C message
// transmission and reception.
//
// Copyright (c) 2010-2020 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0