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.

PIC16F876-A problem with bootloader

Status
Not open for further replies.

amitdandyan

Newbie level 6
Joined
May 8, 2009
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,396
mikroc usart_write examples

I m using PIC16F876-A....i hv copied the following program given in mikro C examples for bootloader....bt i hv been facing difficulty in building it....

void main()
org 0x1E7D
{

Susart_Init(129); //20MHz crystal

if (Susart_Write_Loop('g', 'r') != 255)
Start_Bootload();
else
Start_Program();
}


Someone please explain this program to me....as the instruction "Susart" is not given in help topics.....!!!!!!!!!!!!!
 

seadolphine2000

Advanced Member level 3
Joined
Apr 12, 2005
Messages
881
Helped
122
Reputation
244
Reaction score
86
Trophy points
1,308
Activity points
7,374
usart_write

Here you are the description

Prototype: void Usart_Write(unsigned short data);
Returns: Nothing.
Description: Function transmits a byte (data) via USART.
Requires: USART HW module must be initialized and communication established before using this function. See Usart_Init.
Example: int chunk = 0x1E;
Usart_Write(chunk); /* send chunk via USART */


This is from the help of the MikroC, there's nothing called "Susart". It's just "Usart".

I hope this helps.
 

amitdandyan

Newbie level 6
Joined
May 8, 2009
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,396
Re: PIC16F876-A problem

thanx for your concern......bt i hv read about USART....and i hv used it for serial communication.....this problem is different from that...i think so..!!!!!!!!!

I hv used similar example for PIC18F252 and it was build successfully.....bt a different kind of problem occurred....for which i hv put a query at following link....
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top