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++);
}
#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++);
}