Timer 2 problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Timer 2 problem

633 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ramesh@spatika on Mon Aug 30 23:41:17 MST 2010
Hi,
Last week i was trying to initialise timer 2 in lpc 1768 for using as a counter.

But, unfortunately as soon as the program is started the programs stops in a hard fault handler()


kindly clarify me if someone has any solution for the same.
0 项奖励
回复
1 回复

605 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Aug 31 00:07:56 MST 2010
For information on how to go about debugging a hard fault, please see:

http://lpcxpresso.code-red-tech.com/LPCXpresso/node/52

You might also want to take a look at the "RDB1768cmsis_timers" example (supplied with LPCXpresso 3.4.6, or downloadable from http://support.code-red-tech.com/CodeRedWiki/RDB1768V2Support). This example sets up the 4 timers to be found in the LPC1768 MCU, and flashes the  LEDs based on when the timers trigger interrupts - one LED per timer  interrupt. Note though that the LED related code in this example is for Code Red's RDB1768 board, and will not work directly on the LPCXpresso1768 board. However the timer code may give you useful pointers for your own code.

Regards,
CodeRedSupport
0 项奖励
回复