CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Modifying CCS Bootloader for 16F877 mcu.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

Modifying CCS Bootloader for 16F877 mcu.
PostPosted: Mon Nov 22, 2004 12:36 am     Reply with quote

Hi,

I need to do know the following points regarding the bootloader sample program that
comes with CCS compiler ( loader.c and Ex_load.c)

COMPILER USED: PCM
MCU : PIC 16F877

1. How can I port the code to 16F877 Mcu.
2. I do not have the Evaluation Board required by the example. I have instead a board that uses
MAX 232 IC to connect to the COM port. The mcu used is PIC 16F877. Is it possible to use this
board.

3. The serial cable is a null modem with only the Rxd and the Txd pins crossed over and does
not have any other pins connected . Do I have to cross the RTS and CTS for XON/XOFF flow controls
Is it possible to ignore flow control completely ???

4. Kindly also advise how I can upload a program to the mcu using hyperterminal.
5. Alternative bootloaders will also do if the CCS bootloader cannot be modified.


thanks
arun
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Nov 22, 2004 7:27 am     Reply with quote

Quote:
1. How can I port the code to 16F877 Mcu.


Did you look at the file? That's what the default include is!

Code:
#if defined(__PCM__)
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)  // Jumpers: 8 to 11, 7 to 12


Quote:
2. I do not have the Evaluation Board required by the example. I have instead a board that uses
MAX 232 IC to connect to the COM port. The mcu used is PIC 16F877. Is it possible to use this
board.

Yes

Quote:

3. The serial cable is a null modem with only the Rxd and the Txd pins crossed over and does
not have any other pins connected . Do I have to cross the RTS and CTS for XON/XOFF flow controls
Is it possible to ignore flow control completely ???

XON/XOFF is software flow control. No hardware connections (RTS and CTS). You need software flow control



Quote:
4. Kindly also advise how I can upload a program to the mcu using hyperterminal.
Use the transfer->send text file and send the hex file


Quote:
5. Alternative bootloaders will also do if the CCS bootloader cannot be modified.
Goolge it or search this board. Lots of info.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group