newman
Junior Member level 3
bootloader for CCS
#include <16F877A.H>
//Configure the PIC to use: HS clock, no Watchdog Timer,
//no code protection, enable Power Up Timer
#fuses HS,NOWDT,NOPROTECT,PUT
//Tell the compiler the clock is 20 MHz thereby can be used at subroutine DELAY_MS()
//and for serial I/O (RS232)
#use Delay(clock=20000000)
.
.
.
Void main()
{
#asm
#ORG 0x1F00,0x1FFF {} //for the 8k 16F876/7
#endasm
byte counter;
byte BLINK_NUMBER;
byte value;
//Iniatilization of MCU
//Set all PORT A as ouput
set_tris_a(0);
______________________________________
I can't compile after I add "#asm
#ORG 0x1F00,0x1FFF {} //for the 8k 16F876/7
#endasm"
I did anything wrong? I use Carlos Buelna PIC16F87xA bootloader with 20Mhz.
#include <16F877A.H>
//Configure the PIC to use: HS clock, no Watchdog Timer,
//no code protection, enable Power Up Timer
#fuses HS,NOWDT,NOPROTECT,PUT
//Tell the compiler the clock is 20 MHz thereby can be used at subroutine DELAY_MS()
//and for serial I/O (RS232)
#use Delay(clock=20000000)
.
.
.
Void main()
{
#asm
#ORG 0x1F00,0x1FFF {} //for the 8k 16F876/7
#endasm
byte counter;
byte BLINK_NUMBER;
byte value;
//Iniatilization of MCU
//Set all PORT A as ouput
set_tris_a(0);
______________________________________
I can't compile after I add "#asm
#ORG 0x1F00,0x1FFF {} //for the 8k 16F876/7
#endasm"
I did anything wrong? I use Carlos Buelna PIC16F87xA bootloader with 20Mhz.