medorpg
Newbie level 5
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:
Circuit Image
Based on this tutorial
https://www.youtube.com/watch?v=DeezlaooclY
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