Jeffrey Peter
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; } }