LPC1114 weird problem in Timer/UART

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1114 weird problem in Timer/UART

937 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Spyker on Tue May 21 10:03:22 MST 2013
Hello,

I got a weird problem when using timers and uart.

My uart works fine, but if i initialize a timer32 the uart doesn't work!

Also, I'm using the FreeRTOS.

Anyone here already got this problem? :confused:

Thank you anyway!
0 Kudos
Reply
6 Replies

923 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JasonBourne on Wed Mar 19 01:01:55 MST 2014
Hi,

I seem to have found what was creating the problem for me, hopefully it helps someone else: I was not clearing the interrupt when entering the timer IRQ. In the end, something like:

void TIMER32_0_IRQHandler (void)
{
Chip_TIMER_ClearMatch(LPC_TIMER32_0,MATCH_NUM);
// ETC
}

In some driver modules it seems that it is not necessary to clear the interrupt but in the case of the timer it needs to be forced.

Regards
0 Kudos
Reply

923 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JasonBourne on Tue Mar 18 07:47:36 MST 2014
Hi all,

I've just ran into this exact same problem; either the UART interrupts, or the timer (depending on whether the timer is disabled or enabled respectively), but not both.

Has anyone managed to figure out why this is happening or how to solve it?

Thanks!
0 Kudos
Reply

923 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Spyker on Tue Jun 04 09:52:19 MST 2013

Quote: wells
If you are using the LPCOpen v1.03 release with the 32-bit timer 1 peripheral, you might want to look at this tracker issue related to a software bug...

http://www.lpcware.com/content/forum/bug-timer11xxc



I'm using the code provided by NXP in LPCXpresso (Examples).

Checked my code and the UART clock seens ok to me.

Still trying fix it out, thanks for your support.
0 Kudos
Reply

923 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wells on Mon Jun 03 16:00:10 MST 2013
If you are using the LPCOpen v1.03 release with the 32-bit timer 1 peripheral, you might want to look at this tracker issue related to a software bug...

http://www.lpcware.com/content/forum/bug-timer11xxc
0 Kudos
Reply

923 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Spyker on Mon Jun 03 12:23:07 MST 2013
Thank you for the answer, I going to check it out!
0 Kudos
Reply

923 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbm on Wed May 22 02:22:12 MST 2013
Check the code you use to turn on the clock for your timer. It may by mistake turn off the UART clock.
0 Kudos
Reply