LPC1114 weird problem in Timer/UART

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1114 weird problem in Timer/UART

890件の閲覧回数
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 件の賞賛
返信
6 返答(返信)

876件の閲覧回数
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 件の賞賛
返信

876件の閲覧回数
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 件の賞賛
返信

876件の閲覧回数
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 件の賞賛
返信

876件の閲覧回数
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 件の賞賛
返信

876件の閲覧回数
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 件の賞賛
返信

876件の閲覧回数
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 件の賞賛
返信