Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

timer in lpc2129 with 12 Mhz crystal.

Status
Not open for further replies.

salim1103

Newbie level 6
Newbie level 6
Joined
Nov 28, 2012
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,349
Hi friends,
I am using lpc2129 with 12 Mhz crystal.how to intialize the timer in lpc2129 and also i need timer code for lpc2129.
 

here is the code...............

Code:
#include<LPC21xx.h>
int main()
{
	//VPBDIV=0x00000001;
	PINSEL0=0x00000080;
	T0TCR=0x01;
	T0PR=0x3e7;
	T0MR0=0x00002ee0;
	T0MCR=0x00000002;
	T0EMR=0x00000031;
	//T0TCR=0x00;
}

keep on monitoring the port 0.3
 

Code:
#include<LPC21xx.h>
int main()
{
	//VPBDIV=0x00000001;
	PINSEL0=0x00000080;
	T0TCR=0x01;
	T0PR=0x3e7;
	T0MR0=0x00002ee0;
	T0MCR=0x00000002;
	T0EMR=0x00000031;
	//T0TCR=0x00;
}

keep on monitoring the port 0.3[/QUOTE]

- - - Updated - - -

Thank you jjeevan.I completed the timer code.Now i am trying pwm in lpc2129.I need the code of pwm in lpc2129........
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top