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.

How to use USART in mikroCwithout errors?

Status
Not open for further replies.

r3stles

Newbie level 3
Joined
Jun 13, 2009
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,307
hELP

I need help.
How to declare: USART in mikroC

The code id :

USART_INIT(9600); //initializare serial port
SPBRG=103; // Pentru 9600 baud rade
...

but I'm error : undeclared identifier USART_INIT in expression.
 

Re: hELP

Does your hardware has USART device?
--
Amr Ali
 

Re: hELP

I want to send data to serial port through HyperTerminal
 

Re: hELP

Does your ship has a USART port?
--
Amr Ali
 

Re: hELP

What do you mean you have port USART. I'm used to PIC16F877A and MAX232 for transmitting data
 

Re: hELP

Did you check the case of the function? C is case sensitive.
I think it is Usart_Init not USART_INIT.
--
Amr Ali
 

hELP

Hi,

mikroC is not case sensitive.
Try
Code:
UART1_Init(9600);
You do not need to write SPBRG = 103, as the compiler does that for you when you init UART.

Hope this helps.
Tahmid.
 

Re: hELP

C is case sensitive.
Do you mean that compiler supported functions are not case-sensitive?
--
Amr Ali

Added after 15 minutes:

Check that link for errors and supported functions in MikroC **broken link removed**
--
Amr Ali
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top