ycnr
Newbie level 5
- Joined
- Feb 9, 2015
- Messages
- 9
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 98
I send my ccs program to PIC18F2550 with bootloader. But it is not work. I have tried with PICBASIC and PROTON. They are worked but my program which written in ccs is not work. What is my mistake? This is my program.
#include <18F2550.h>
#fuses HSPLL, NOWDT, NOPROTECT, NOLVP, NODEBUG, USBDIV, PLL5, CPUDIV1, VREGEN
#use delay(clock = 48M)
#build(reset=0x1000,interrupt=0x1008)
#org 0x0000,0x0FFF {}
void main(){
set_tris_b(0xF0);
while(1){
OUTPUT_B(0X0F);
delay_ms(1000);
OUTPUT_B(0X00);
delay_ms(1000);
}
}
What is my problem? Help please. THANKS...
#include <18F2550.h>
#fuses HSPLL, NOWDT, NOPROTECT, NOLVP, NODEBUG, USBDIV, PLL5, CPUDIV1, VREGEN
#use delay(clock = 48M)
#build(reset=0x1000,interrupt=0x1008)
#org 0x0000,0x0FFF {}
void main(){
set_tris_b(0xF0);
while(1){
OUTPUT_B(0X0F);
delay_ms(1000);
OUTPUT_B(0X00);
delay_ms(1000);
}
}
What is my problem? Help please. THANKS...