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.

need help for lpc2148 coding

Status
Not open for further replies.

Pranjal Patil

Newbie level 4
Newbie level 4
Joined
Jan 10, 2015
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
28
I want to generate 50hz sine wave using arm 7(lpc2148) .i hv code for sine wave.but dnt knw how to generate sine wave of particular frequency.plz help me..its urgent
 

plz tell me ,c code to transmit measured sample data of sinewave on serial port(using hyperterminal)
I want code for keil (lpc2148)
 

I have done code for traingular wave generation using lpc2148 but it gives me error.plz check this n tell me.(i hv done coding in eclipse).


#include "includes.h"

OS_STK TestTask1Stack[200];
void TestTask1(void *pdata);

OS_STK TestTask2Stack[200];
void TestTask2(void *pdata);

int main (void)
{
unsigned int a,b;
PINSEL1=0X00200000;


OSInit();
OSTaskCreate(TestTask1, (void *)0, &TestTask1Stack[199], 0);
OSStart();
return 0;
}



void TestTask1(void *pdata)
{
unsigned int a,i=0;
PINSEL1=0X00200000;
while(1)
{
if(a!=0xff)
{
DACR=int(i)<<6;
}
elseif(a!=0x00)
{
DACR=int(i)<<6;
}
}
}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top