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.

How to solve this error!!@@

Status
Not open for further replies.

V.RAGHUVEER

Newbie level 5
Joined
Jun 14, 2012
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,361
C:\Users\MICRO CONTROLLER\buzzers.c:22:Error: syntax error
:)
 

Post buzzers.c here

There is a reported error in line 22
 

[/HTML]
Post buzzers.c here

There is a reported error in line 22

Code:
#include <p18F4520.h>
#include <delays.h>

void main()
{
char i;
ADCON1 = 0x0F;
TRISA = 0b11000000;
PORTA = 0;


for(i = 0; i < 2000; i++)
{
PORTAbits.RA1 = 1;
Delay10TCYx(100);
PORTAbits.RA1 = 0;
Delay10TCYx(100);
}
}

Please use code tags
 
Last edited by a moderator:

Which one is line 22?

Which compiler do you use?
Are you sure that there is a PORTAbits defined?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top