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.

Keil sbit syntax error

Status
Not open for further replies.

Jeffrey Peter

Member level 5
Member level 5
Joined
Aug 28, 2011
Messages
82
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Tirunelveli,Tamill Nadu, India
Activity points
1,802
This is the first program that I'm writing using Keil. It shows sbit syntax error........

Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include<REG52.h>
#include<stdio.h>
void main()
{
    int i,j;
    bit state=0;
    sbit ledPin = P1^5;
    while(1)
    {
        ledPin = 1;
        for(i=0;i<1000;i++)
        {
            for(j=0;j<120;j++)
            {
            }
        }
        ledPin = 0;
        }
}

 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top