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.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top