Beginner question for timer

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

Beginner question for timer

637 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MCU on Tue Apr 02 21:14:46 MST 2013
Hi,
I'm beginner for LPC,
I using LPCxpresso LPC1200 Rev B
I want to do a simple program, enable the 32bit timer counter and output the high low in port
So, I need to know how to set up the CT32B0,
I already enable the counter, but I don;t know the system clock speed.
If I not change the CMISS, did the system clock 24MHZ?
So the timer counter will update every 1/24MHZ?
1) Any sample code for it?
If I use the Blinky sample code as a base.
2) did I need to disable all the interrupt?
3) did I need to reset the watch dog?
0 项奖励
回复
1 回复

625 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Apr 04 00:47:41 MST 2013
There are code examples provided in the LPCXpresso Examples subdirectory for various parts (though not currently LPC12). However the code for LPC11, for example, should be easily adaptable.

You could also check out previous posts on the forum using the sticky post at the top of the thread list. For example, this thread may well be useful...

http://knowledgebase.nxp.com/showthread.php?t=3867

Also there is some information on the LPC12 watchdog and "support" for it in LPCXpresso at:

http://support.code-red-tech.com/CodeRedWiki/LPC12Watchdog

Regards,
CodeRedSupport
0 项奖励
回复