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.

[PIC] problem with uart1_read_text

Status
Not open for further replies.

majeed1352

Newbie level 3
Newbie level 3
Joined
Oct 18, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
22
Hi

I want to read from Terminal and send the gotten string through CAN BUS.

My problems are :

1- How to read from UART1 by this command : "UART1_Read_Text(input, 13, 255);" . I expected to get the "input" string by pressing the ENTER key, but after typing each character it go to the next line and only the first character enters.

2- CAN BUS sends and receives only one byte (one character) in the each transmission , How to send or receive a string by CAN?

Finally, after turning on my board, it doesn't work for a while and after 10 to 20 seconds it begins to work. It seems that it hangs on during turning on. Who I can make a waiting time for uC to recover to the normal condition to avoid this hang on (it turns some relay at the beginning).

Thanks
 

You have to use

Code C - [expand]
1
if(UART1_Data_Ready())

. See example in mikroC help. Search for UART1 in Index of help. Zip and post your complete mikroC project.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top