<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>LPC1111 I2C not working</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/33639/lpc1111-i2c-not-working</link><description> 
Hi there, 

 
I am newer at ARM programming but I need to get I2C communication
working to read from accelerometer. For beggining I would like to get
at least some bits transfered on I2C pins. In this forum I have found
I2C example: http://www.keil</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/155280?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2015 03:12:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6bb7033c-5f90-4c87-a803-a00f7818b8db</guid><dc:creator>Audrius Merfeldas</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks a lot John,&lt;/p&gt;

&lt;p&gt;
I have checked your source code with my LPC1115 evaluation board
and that works perfect! Having working code I at least know what to
check in datasheet. Your post was very helpful.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/154868?ContentTypeID=1</link><pubDate>Sun, 13 Dec 2015 17:56:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d59b697a-f1dd-462a-896b-c78e3b237e7a</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;-&amp;gt; void I2C_Write(unsigned char data,unsigned char status).
I don&amp;#39;t know what argument &amp;quot;status&amp;quot; should be.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;-&amp;gt; while(LPC_I2C-&amp;gt;STAT!=status); //Wait for the Status
Byte&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;-&amp;gt; Any ideas what status I need to wait for?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
The source code you choose to use, did not come with a testable
main().&lt;br /&gt;
The source code I provided, came with a testable main().&lt;br /&gt;
Would you mind giving my source code a try?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/154369?ContentTypeID=1</link><pubDate>Sat, 12 Dec 2015 11:53:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bbdc2af3-57cb-460b-a07c-c3e9580f6850</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
It&amp;#39;s not possible to learn from just source code when the learning
relates to embedded hardware - you need to keep one eye on the source
code and the other eye on the hardware documentation.&lt;/p&gt;

&lt;p&gt;
It&amp;#39;s trivial to see the source code assign a value to a register -
but you can&amp;#39;t know exactly what that line does or why it does it
unless you also look at the specification for the register. And most
of the time, it isn&amp;#39;t enough to read the documentation for the
register. You need to read the full chapter for that peripheral
hardware to see how the register interacts with other parts of the
device functionality.&lt;/p&gt;

&lt;p&gt;
Same thing if you want to learn Windows programming and decides to
read source code - you would also need to read the API documentation
to pick up the actual meaning of the individual function calls. And
what alternative options you would get if you change the set of flags
or parameter values you send to the API.&lt;/p&gt;

&lt;p&gt;
Lots of people have learned the mechanics or cars without reading
specifications. You can get far with just dismantling gear and then
put it together again. It works great if you just want to repair the
car to the original specifications. But if you want to redesign it,
you either need to spend time reading engineering texts or take a
part a rather large number of different cars just to learn all the
different ways things can interact.&lt;/p&gt;

&lt;p&gt;
Programming isn&amp;#39;t about repairing a program to the original
specification. It&amp;#39;s about designing new functionality. That&amp;#39;s why it
doesn&amp;#39;t work well to just try to cut and paste code - it&amp;#39;s important
to know what the different pieces actually does, to know how they can
be adapted to fit together when reusing them in a new program.&lt;/p&gt;

&lt;p&gt;
So while it&amp;#39;s possible to learn lots of new tricks by reading
other peoples code, you&amp;#39;ll need to complement the code reading with
time spent with reference documentation.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/153802?ContentTypeID=1</link><pubDate>Sat, 12 Dec 2015 11:27:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5e0b2d3e-4981-4c4f-b316-95f435fa668a</guid><dc:creator>Audrius Merfeldas</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks,&lt;/p&gt;

&lt;p&gt;
To learn from source examples is much easier for me, but looks
like i will do try to study I2C basics.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/153133?ContentTypeID=1</link><pubDate>Sat, 12 Dec 2015 10:00:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cc360be2-c74f-4b2d-b38f-0ef74964c54a</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
In this case (&lt;b&gt;NXP&lt;/b&gt;), see also: &lt;a href="http://www.lpcware.com/"&gt;http://www.lpcware.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
or &lt;a href="https://www.lpcware.com/"&gt;https://www.lpcware.com/&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/152403?ContentTypeID=1</link><pubDate>Sat, 12 Dec 2015 09:57:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:561af8f8-e244-4c68-b5e7-5937d9d2709e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Actually, I2C is rather more complicated than some - with all the
Start Conditions, Stop Conditions, Addressing, ACKs, etc.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;I am strugling with it&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
As already noted, you really do need to take some time to
understand what&amp;#39;s going on with both I2C in general and the I2C
hardware within your particular microcontroller &amp;amp; peripheral.&lt;/p&gt;

&lt;p&gt;
The full I2C specification is here:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.nxp.com/documents/user_manual/UM10204.pdf"&gt;www.nxp.com/.../UM10204.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
The &lt;b&gt;datasheet&lt;/b&gt; and/or User Manual for the microcontroller
will explain how its I2C hardware works. Also check the
manufacturer&amp;#39;s website for examples, application notes, etc.&lt;br /&gt;
In this case, &lt;b&gt;NXP&lt;/b&gt;: 
&lt;a href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-arm-cortex-m-mcus/lpc-cortex-m0-plus-m0/lpc1100-series/8kb-flash-4kb-sram-hvqfn32-package"&gt;www.nxp.com/.../8kb-flash-4kb-sram-hvqfn32-package&lt;/a&gt;:LPC1111FHN33&lt;/p&gt;

&lt;p&gt;
If you&amp;#39;re using a library, you will need to study its
&lt;b&gt;documentation&lt;/b&gt; to find out how to use it effectively.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/147945?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 13:42:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1dd47d55-bf69-408c-895a-5b4355032d04</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;I guess I need to exchange lines to this&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
And that&amp;#39;s the core of your actual problem: instead of learning
how I2C in general, or the I2C implementation on this micro actually
works, you just start throwing wild guesses around. That&amp;#39;s no way to
develop low-level software.&lt;/p&gt;

&lt;p&gt;
And after roughly a half dozen hints, you still can&amp;#39;t be bothered
to format your source code properly. Combined these two indicate that
you either cannot, or don&amp;#39;t want to be helped.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/147944?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2015 05:37:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3254be93-e943-49e9-ac08-15e84251f181</guid><dc:creator>Audrius Merfeldas</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have exchange lines and tested. LPC hangs in write function.&lt;/p&gt;

&lt;p&gt;
void I2C_Write(unsigned char data,unsigned char status). I don&amp;#39;t
know what argument &amp;quot;status&amp;quot; should be.&lt;/p&gt;

&lt;p&gt;
while(LPC_I2C-&amp;gt;STAT!=status); //Wait for the Status Byte&lt;/p&gt;

&lt;p&gt;
Any ideas what status I need to wait for?&lt;/p&gt;

&lt;p&gt;
Thanks&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/147127?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 23:39:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c6e36b09-1507-4a5e-82cc-7bfc0836f8b2</guid><dc:creator>Audrius Merfeldas</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes they are. I am using HVQFN 33 package of LPC1111.&lt;br /&gt;
I am getting now pulse down on SCL and SDA pins every timer match
interrupt.&lt;br /&gt;
I have spoted one thing in me code that can be wrong:&lt;/p&gt;

&lt;p&gt;
I2C_Start(); I2C_Write(100,1); I2C_Stop();&lt;/p&gt;

&lt;p&gt;
I guess I need to exchange lines to this&lt;/p&gt;

&lt;p&gt;
I2C_Write(100,1); I2C_Start(); I2C_Stop();&lt;/p&gt;

&lt;p&gt;
I will check this later.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/145672?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 23:18:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ccfe4fbc-dd71-4a9c-a893-5fc584a04967</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;pre&gt;
void I2C_Init(void)
{
        LPC_SYSCON-&amp;gt;PRESETCTRL |= (1&amp;lt;&amp;lt;1);      //De-Asserts Reset Signal to I2C
        LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;5);   //Enable I2C Clock

        LPC_IOCON-&amp;gt;PIO0_4 &amp;amp;= ~0x3F;
        LPC_IOCON-&amp;gt;PIO0_4 |= 0x01;   //SCL

        LPC_IOCON-&amp;gt;PIO0_5 &amp;amp;= ~0x3F;
        LPC_IOCON-&amp;gt;PIO0_5 |= 0x01;   //SDA
&lt;/pre&gt;

&lt;p&gt;
Can you confirm that for LPC1111, the PIO0_4, PIO0_5 are for I2C
SCL, SDA?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/143644?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 21:59:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e68952c2-4088-458f-a41f-d52fbcfb9fce</guid><dc:creator>Audrius Merfeldas</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks, jap I have checked. For me all registers used in this
source code look the same. I suppose I2C is one of the simples
communication way so it shouldn&amp;#39;t be so hard, but I am strugling with
it.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/140909?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 17:49:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:85368e0d-30bc-4565-8d30-301dd4455d23</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;-&amp;gt; In this forum I have found I2C example:&lt;br /&gt;
-&amp;gt; &lt;a href="http://www.keil.com/forum/58249/"&gt;http://www.keil.com/forum/58249/&lt;/a&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
The mentioned thread and the source code there, is for LPC1343, not
for LPC1111.&lt;br /&gt;
And you can&amp;#39;t just copy some code from one project to another,
without any understanding, expecting it would work for you.&lt;/p&gt;

&lt;p&gt;
Try to find some example designed for LPC1111. Study it before use
it.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/131566?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 01:16:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e657c45f-497b-450c-98de-9fe44c370077</guid><dc:creator>Audrius Merfeldas</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ok, no problem, but does anyone have answer to me topic instead of
writing stupid jokes&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/131560?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 00:59:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0e90e0d4-4944-4de8-bd0e-e7cadf4f7115</guid><dc:creator>Kevin Pollark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Oh dear.&lt;/p&gt;

&lt;p&gt;
You can lead a horse to water but it&amp;#39;s pretty damn crowded there
because of all the men you tried to teach to fish with that other
proverb.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/129102?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 00:41:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:67e50ebd-6c7f-49e1-9897-aad5b929bfce</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
If you had spent some time looking at the information presented to
you before you posted, you could have ended up with code looking
like:&lt;/p&gt;

&lt;pre&gt;
#include &amp;lt;stdio.h&amp;gt;

int main(void) {
    printf(&amp;quot;Hello World!\n&amp;quot;);
    return 0;
}
&lt;/pre&gt;

&lt;p&gt;
There is a reason why the posting instructions has a sentence
starting with &amp;quot;Place source code between [...]&amp;quot;.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/85224?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 23:50:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cc7ba001-a459-4e03-a8cb-354c7883b27c</guid><dc:creator>Audrius Merfeldas</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have found where it messed up. After posting to this forum. When
I previewing it it looks ok, but after posting it it messed up. To
overcome this problem I have upload it online here:&lt;br /&gt;
&lt;a href="http://txt.do/5uxdf"&gt;http://txt.do/5uxdf&lt;/a&gt;&lt;br /&gt;
Looking forward to any solutions.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/84958?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 23:43:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:87ee060e-2b0f-4844-899e-4a2f42d5de8c</guid><dc:creator>Audrius Merfeldas</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks for your comment mate, I don&amp;#39;t know but somehow when I was
copying it from editor everything messed up. Once again sorry for a
messy post. I have try one more time to post me source code:&lt;/p&gt;

&lt;p&gt;
#include &amp;quot;LPC11xx.h&amp;quot; /* LPC11xx definitions */&lt;br /&gt;
#include &amp;quot;gpio.h&amp;quot;&lt;br /&gt;
#include &amp;lt;cr_section_macros.h&amp;gt;&lt;br /&gt;
#include &amp;lt;NXP/crp.h&amp;gt;&lt;br /&gt;
__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;&lt;/p&gt;

&lt;p&gt;
int i=0;&lt;br /&gt;
unsigned int status = 0;&lt;/p&gt;

&lt;p&gt;
void timer16_0_setup(void) //Set up 16 bit timer&lt;br /&gt;
{ LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;7); //enable timer clock
LPC_TMR16B0-&amp;gt;PR = 48000-1; //prescaler 48000 = 1ms
LPC_TMR16B0-&amp;gt;MCR = (3&amp;lt;&amp;lt;3); //interrupt and reset counter
match1 LPC_TMR16B0-&amp;gt;CCR = 0; //timer mode LPC_TMR16B0-&amp;gt;MR1 =
1000-1; //set match1 time in us NVIC_EnableIRQ(TIMER_16_0_IRQn);
//enable interrupt LPC_TMR16B0-&amp;gt;TCR = 1; //start timer&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
void I2C_Init(void)&lt;br /&gt;
{ LPC_SYSCON-&amp;gt;PRESETCTRL |= (1&amp;lt;&amp;lt;1); //De-Asserts Reset
Signal to I2C LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;5); //Enable
I2C Clock&lt;/p&gt;

&lt;p&gt;
LPC_IOCON-&amp;gt;PIO0_4 &amp;amp;= ~0x3F; LPC_IOCON-&amp;gt;PIO0_4 |= 0x01;
//SCL&lt;/p&gt;

&lt;p&gt;
LPC_IOCON-&amp;gt;PIO0_5 &amp;amp;= ~0x3F; LPC_IOCON-&amp;gt;PIO0_5 |= 0x01;
//SDA&lt;/p&gt;

&lt;p&gt;
LPC_I2C-&amp;gt;SCLH = 360; //I2PCLK is 72MHz LPC_I2C-&amp;gt;SCLL = 360;
//I2PCLK is 72MHz&lt;/p&gt;

&lt;p&gt;
LPC_I2C-&amp;gt;CONCLR = 0xFF; //Clear All Flags LPC_I2C-&amp;gt;CONSET =
(1&amp;lt;&amp;lt;6); //I2C Interface Enable&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
void I2C_Start(void)&lt;br /&gt;
{ LPC_I2C-&amp;gt;CONCLR = 0X28; LPC_I2C-&amp;gt;CONSET |= 0x20; //Set the
Start Bit while(LPC_I2C-&amp;gt;STAT!=0x08); //Wait for the Status
Bit&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
void I2C_Restart(void)&lt;br /&gt;
{ LPC_I2C-&amp;gt;CONCLR = 0X28; LPC_I2C-&amp;gt;CONSET |= 0x20; //Set the
Start Bit while(LPC_I2C-&amp;gt;STAT!=0x10); //Wait for the Status
Bit&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
void I2C_Stop(void)&lt;br /&gt;
{ LPC_I2C-&amp;gt;CONSET |= 0x14; //Stop I2C LPC_I2C-&amp;gt;CONCLR =
0x08;&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
void I2C_Write(unsigned char data,unsigned char status)&lt;br /&gt;
{ LPC_I2C-&amp;gt;CONCLR = 0X28; LPC_I2C-&amp;gt;DAT = data;
LPC_I2C-&amp;gt;CONCLR = 0X28; //Clear Start Flag and SI Interrupt
//while(LPC_I2C-&amp;gt;STAT!=status); //Wait for the Status Byte&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
unsigned char I2C_Read(void)&lt;br /&gt;
{ LPC_I2C-&amp;gt;CONCLR = 0X2C; //Cleat SI and Asset Acknowledgment Flag
while(LPC_I2C-&amp;gt;STAT!=0x58); return(LPC_I2C-&amp;gt;DAT);&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
//Timer interrupt&lt;br /&gt;
void TIMER16_0_IRQHandler(void)&lt;br /&gt;
{ if(LPC_TMR16B0-&amp;gt;IR &amp;amp; (1&amp;lt;&amp;lt;1)) //if match interrupt {
I2C_Start(); I2C_Write(100,1); I2C_Stop(); } LPC_TMR16B0-&amp;gt;IR =
(1&amp;lt;&amp;lt;1); //reset timer interrupt flag }&lt;/p&gt;

&lt;p&gt;
int main (void) {&lt;/p&gt;

&lt;p&gt;
//Set up timer timer16_0_setup(); I2C_Init(); GPIOInit();&lt;/p&gt;

&lt;p&gt;
while (1) // Loop forever {&lt;/p&gt;

&lt;p&gt;
} }&lt;/p&gt;

&lt;p&gt;
Hope this is more clear. This code is trying to send some data
through I2C at every timer interrupt. As I have wrote before with
scope I cannot see any signals on SDA SCK pins.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/82943?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 06:53:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4ed520d1-4676-49d4-9f9b-0e6769dfb7ca</guid><dc:creator>Kevin Pollark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sorry chum, but i don&amp;#39;t have time to look at a messed up post like
that.&lt;/p&gt;

&lt;p&gt;
Maybe if you posted more carefully, so people could view the code
more easily, you&amp;#39;d get some helpful responses.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPC1111 I2C not working</title><link>https://community.arm.com/thread/64344?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 06:31:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8b040e15-d41f-4336-b41f-e863069a80dc</guid><dc:creator>Audrius Merfeldas</dc:creator><description>&lt;p&gt;&lt;p&gt;
Any ideas?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>