<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LPC1114 + Accelerometer in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560619#M15946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by syntx on Fri Aug 19 10:50:16 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I configureated now to clear the flag (accInt1Initialised) first, and toggling the led just inside&amp;nbsp; the if as you sad. So I can get some samples by uart and the led is toggling and after a while stop toggling the led and uart don't send anything else... I made other test sending the irqcounter and after a while he stops counting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it's a problem of syncronization, I don't know how to fix it&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:20:07 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:20:07Z</dc:date>
    <item>
      <title>LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560611#M15938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by syntx on Thu Aug 18 20:16:21 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi I'm trying to interface an LPC1114 + Accelerometer (LIS331DLH), I'm configuring the accelerometer to generate an interrupt for data-ready (when a data conversion is finished), this interrupt will be open-drain, active low and if the interrupt is generated and I'll not read the data the interrupt still actived. So I configurated my gpio with no pull-up, edge interrupt, edge single, active low. The problem is this. After I configure the accelerometer (I already checked with the ST if the configuration of the accelerometer is correct and they confirmed it), after this It starts to generate interrupts, so the first interrupt I got read and send by uart the information, as I have a counter inside the IRQ_Handler I'm sending inside while(1) the value of the counter, after read the data of the accelerometer the accelerometer generates other interrupt, the LPC1114 detect, the counter goes counter++ BUT, nothing else happens, the interrupt flag is cleaned, and microcontoller keeps working and don't read the interrupt in the accelerometer, that still waiting for a read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
void systemInit()
{
&amp;nbsp; cpuInit();
&amp;nbsp; systickInit((CFG_CPU_CCLK / 1000) * CFG_SYSTICK_DELAY_IN_MS);
&amp;nbsp; pmuInit();&amp;nbsp; 

&amp;nbsp; // Initialise UART with the default baud rate (set in projectconfig.h)
&amp;nbsp; uartInit(CFG_UART_BAUDRATE);

&amp;nbsp; // Set LED pin as output and turn LED off
&amp;nbsp; gpioSetDir(CFG_LED_PORT, CFG_LED_PIN, 1);
&amp;nbsp; gpioSetValue(CFG_LED_PORT, CFG_LED_PIN, CFG_LED_ON);

&amp;nbsp; // Set GPIO0_11 and GPIO1.0 to INPUT
&amp;nbsp; gpioSetDir(0, 11, gpioDirection_Input);
&amp;nbsp; gpioSetDir(1,&amp;nbsp; 0, gpioDirection_Input);

&amp;nbsp; // Disable the internal pullup/down resistor on P0.11 and P1.0
&amp;nbsp; gpioSetPullup (&amp;amp;IOCON_JTAG_TDI_PIO0_11, gpioPullupMode_Inactive);
&amp;nbsp; gpioSetPullup (&amp;amp;IOCON_JTAG_TMS_PIO1_0 , gpioPullupMode_Inactive);

&amp;nbsp; // Setup an interrupt on GPIO0.11
&amp;nbsp; gpioSetInterrupt(0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Port
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Pin
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpioInterruptSense_Edge,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Edge Sensitive
&amp;nbsp;&amp;nbsp; gpioInterruptEdge_Single,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Single Edge
&amp;nbsp;&amp;nbsp; gpioInterruptEvent_ActiveLow);&amp;nbsp;&amp;nbsp; // Active Low
 
&amp;nbsp; // Setup an interrupt on GPIO1.0
&amp;nbsp; gpioSetInterrupt(1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Port
&amp;nbsp;&amp;nbsp; 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Pin
&amp;nbsp;&amp;nbsp; gpioInterruptSense_Edge,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Edge Sensitive
&amp;nbsp;&amp;nbsp; gpioInterruptEdge_Single,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Single Edge
&amp;nbsp;&amp;nbsp; gpioInterruptEvent_ActiveLow);&amp;nbsp;&amp;nbsp; // Active Low
&amp;nbsp; 
 // Enable the interrupts
&amp;nbsp; gpioIntEnable(0, 11);
&amp;nbsp; gpioIntEnable(1,&amp;nbsp; 0);

&amp;nbsp; // Initialise and Configure LIS331
&amp;nbsp; #ifdef CFG_LIS331
&amp;nbsp;&amp;nbsp;&amp;nbsp; accdata_t X, Y, Z;
&amp;nbsp;&amp;nbsp;&amp;nbsp; accsensorInit(); 
&amp;nbsp;&amp;nbsp;&amp;nbsp; lis331GetAcceleration (&amp;amp;X, &amp;amp;Y, &amp;amp;Z);&amp;nbsp; 
&amp;nbsp; #endif
}

lis331Error_e lis331GetAcceleration (accdata_t *ax, accdata_t *ay, accdata_t *az)
{
&amp;nbsp; if (!_lis331Initialised) lis331Init();

&amp;nbsp; // Read accelerations
lis331Read16 (LIS331_OUT_X_L_A, &amp;amp;ax-&amp;gt;data);
lis331Read16 (LIS331_OUT_Y_L_A, &amp;amp;ay-&amp;gt;data);
lis331Read16 (LIS331_OUT_Z_L_A, &amp;amp;az-&amp;gt;data);

&amp;nbsp; return LIS331_ERROR_OK;
}

static lis331Error_e lis331Read16(uint8_t reg, int16_t *value)
{
if (!_lis331Initialised) lis331Init();

uint32_t i;
// Clear buffers
&amp;nbsp; for ( i = 0; i &amp;lt; I2C_BUFSIZE; i++ )
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; I2CMasterBuffer&lt;I&gt; = 0x00;
I2CSlaveBuffer&lt;I&gt; = 0x00;
&amp;nbsp; }

&amp;nbsp; I2CWriteLength = 2;
&amp;nbsp; I2CReadLength = 2;
&amp;nbsp; I2CMasterBuffer[0] = LIS331_ADDRESS_WRITE;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // I2C device Write address
&amp;nbsp; I2CMasterBuffer[1] = reg | I2C_AUTO_INCREMENT;&amp;nbsp; // Command register just for data acceleration registers)
&amp;nbsp; I2CMasterBuffer[2] = LIS331_ADDRESS_READ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // I2C device Read address
 
&amp;nbsp; i2cEngine();

&amp;nbsp; // Shift values to create properly formed integer
&amp;nbsp; *value = ((I2CSlaveBuffer[1] &amp;lt;&amp;lt; 8) | I2CSlaveBuffer[0]) &amp;gt;&amp;gt; 4;

&amp;nbsp; //&amp;nbsp; Sign extend negative numbers
&amp;nbsp; if (I2CSlaveBuffer[1] &amp;amp; 0x80)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Negative value
&amp;nbsp;&amp;nbsp;&amp;nbsp; *value ^= *value;
&amp;nbsp;&amp;nbsp;&amp;nbsp; *value += 1;
&amp;nbsp; }
&amp;nbsp; return LIS331_ERROR_OK;
}

int main(void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sysinit();
while (1){
GPIO_GPIO3DATA ^= (1 &amp;lt;&amp;lt; CFG_LED_PIN);
systickDelay(30);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // IRQ ACCELEROMETER
uartSendByte(gpio1_counter);

&amp;nbsp; if(_accInt1Initialised == true){
accInt1Handler();
}
&amp;nbsp; return 0;
}

void accInt1Handler(void)
{
lis331GetAcceleration (&amp;amp;aX, &amp;amp;aY, &amp;amp;aZ);

uartBuffer[1] = aX.byte[1];
uartBuffer[2] = aX.byte[0];
uartBuffer[4] = aY.byte[1];
uartBuffer[5] = aY.byte[0];
uartBuffer[7] = aZ.byte[1];
uartBuffer[8] = aZ.byte[0];
uartSend((uint8_t *)uartBuffer, 10);

_accInt1Initialised = false;
}

void PIOINT1_IRQHandler(void)
{
&amp;nbsp; if (GPIO_GPIO1MIS &amp;amp; 0x01)
&amp;nbsp; {
gpio1_counter++;
_accInt1Initialised = true;
GPIO_GPIO1IC |= 0x01;
__asm volatile ("nop"); // Recommended in Datasheet
__asm volatile ("nop");
}&amp;nbsp;&amp;nbsp; 
&amp;nbsp; return;
}
&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is wrong ?? Another idea to deal properly with this interrupt? I don't want to poll the int, but in this way is like poll the pin because I can't work with everything inside the irq_handler because i need to use the i2c.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560611#M15938</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560612#M15939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Aug 18 22:05:28 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
GPIO_GPIO1IC |= 0x01;
__asm volatile ("nop");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Recommended in Datasheet
__asm volatile ("nop");
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;Looks OK (clear edge detection) &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure if I understand your problem. Can you confirm the following points: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Interrupt is firing and gpio1_counter++ is counting up ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 _accInt1Initialised is true ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 LPC_GPIO1-&amp;gt;MIS is set, but accInt1Handler is not called ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is _accInt1Initialised volatile?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is PIOINT1 NVIC enabled somewhere&amp;nbsp; (NVIC_EnableIRQ(1&amp;lt;&amp;lt;30))&amp;nbsp; ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560612#M15939</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560613#M15940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by syntx on Thu Aug 18 22:35:41 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;#1 Interrupt is firing and gpio1_counter++ is counting up ?&lt;BR /&gt;Yes&lt;BR /&gt;&lt;BR /&gt;#2 _accInt1Initialised is true ?&lt;BR /&gt;In the first interrupt yes, after the first I don't know&lt;BR /&gt;&lt;BR /&gt;#3 LPC_GPIO1-&amp;gt;MIS is set, but accInt1Handler is not called ?&lt;BR /&gt;Just in the first time&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;#4 Is _accInt1Initialised volatile?&lt;BR /&gt;Yes&lt;BR /&gt;&lt;BR /&gt;#5 Is PIOINT1 NVIC enabled somewhere&amp;nbsp; (NVIC_EnableIRQ(1&amp;lt;&amp;lt;30))?&lt;BR /&gt;Yes, in gpioInit(); Just didn't put in this post.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the first time the interrupt occurs and the gpio1_counter counts, but in the second the interrupt occurs too, gpio1_conter counts BUT I don't know if accInt1Initialised not goes true or the if(accInt1Initialised) inside while(1) is not working, so accInt1Handler never been called again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560613#M15940</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560614#M15941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Aug 18 22:44:41 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Then use your debugger :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set a breakpoint at the end of your Interrupt handler and 'Add Watch Expression' for accInt1Initialised :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560614#M15941</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560615#M15942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by syntx on Thu Aug 18 22:46:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm without debugger at the moment, I'll have to wait two weeks to get my debugger =/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point I'm debugging just watching the uart.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560615#M15942</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560616#M15943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Aug 18 22:52:25 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to reset your flags as soon as possible:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
if(_accInt1Initialised == true){
 _accInt1Initialised == false;
&amp;nbsp; accInt1Handler();&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}

UART is a very 'slow' thing....
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;...without debugger.... :eek:&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;What about toggling a LED?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560616#M15943</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560617#M15944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by syntx on Fri Aug 19 10:07:58 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I'm toggling a led in inside the while(1) and the led still toggling...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560617#M15944</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560618#M15945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Aug 19 10:18:30 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Toggling also in accInt1Initialised :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
if(_accInt1Initialised == true)
{
 LED_toggle;
 ...
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560618#M15945</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560619#M15946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by syntx on Fri Aug 19 10:50:16 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I configureated now to clear the flag (accInt1Initialised) first, and toggling the led just inside&amp;nbsp; the if as you sad. So I can get some samples by uart and the led is toggling and after a while stop toggling the led and uart don't send anything else... I made other test sending the irqcounter and after a while he stops counting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it's a problem of syncronization, I don't know how to fix it&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560619#M15946</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560620#M15947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Aug 19 11:12:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Which ODR (Output data rate) are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to test without slow UART. Can you scope or measure how long you need for UART output ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560620#M15947</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 + Accelerometer</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560621#M15948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by syntx on Fri Aug 19 11:42:24 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ODR = 100Hz = 10ms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You sad about faster baudrate I already tried with 57600 too but the reaction was the same. I measured the times yester, I think it was 30ms between and interrupt occurs, get data, send by uart and wait for another interrupt. I don't remember exactly right now cause I'm not at the lab this moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the way to deal with the IRQ. As I'm doing this interrupt data-ready just for test and read some accelerations from the accelerometer. I disabled the IRQ inside the LPC1112 and created an Timer, every 5ms I read the data from the accelerometer and send by uart. Now it's working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for your help!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:20:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Accelerometer/m-p/560621#M15948</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:20:08Z</dc:date>
    </item>
  </channel>
</rss>

