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.

Problem with a bootloader code for CCS

Status
Not open for further replies.

newman

Junior Member level 3
Joined
Jun 3, 2004
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
198
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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top