Newbie Problem,Blinking LED when switch is ON

Status
Not open for further replies.

medorpg

Newbie level 5
Joined
Nov 4, 2009
Messages
9
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,338
I have this simple tutorial that I watch on youtube

which is a blinking LED when switch is on, Using
MikroC
Proteus ISIS

The code is compiled fine on MikroC
but when I add the .asm file to the Microcontroller (PIC18F452) in the Proteus ISIS I get like 86 errors
most of them is Error 108 "Illegal Character $"

Please someone tell me what I do wrong

Code:
Code:
 void main(){
 TRISB.F0=1;
 TRISB.F1=1;
 TRISD=0x000;
 PORTD=0x000;

 while(1)
 {
     if(PORTB.F1==1){
     PORTD.F1=1;
     DELAY_MS(500);
     PORTD.F1=1;
     DELAY_MS(500);
     }
  }
}

Circuit Image



Based on this tutorial
https://www.youtube.com/watch?v=DeezlaooclY
 

Hi man,
Are you still interested in this? If so, I can help you write the code to do the same thing as in the vid.
Tahmid.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…