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.

interfacing buzzer with lpc2148

Status
Not open for further replies.

Sadanand Patel

Newbie level 3
Joined
Jul 5, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
32
this is my code for buzzer interfaced with lpc 2148 its not working can anyone help??




#include<lpc214x.h>
void Delay(unsigned char msec);

int main()
{
IODIR0=(1<<11);

while(1)

{
IOCLR0=(1<<11); //0x00000800;
Delay(100);
IOSET0=(1<<11); //0x00000800;
Delay(100);
}
}

void Delay(unsigned char msec)

{
unsigned int i,j;
for(i=0;i<msec;i++)
for(j=0;j<60000;j++);
}



Untitled.png
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top