Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Using multiple Software UARTS using different bitrates in PIC18F452

Status
Not open for further replies.

adwnis123

Full Member level 4
Joined
Jun 19, 2014
Messages
214
Helped
0
Reputation
0
Reaction score
1
Trophy points
18
Activity points
1,737
Hello,

Is it possible to use multiple Software UARTs with different bitrates in each SoftUART in PIC18F452 on mikroC (mikroelektronika)?

Thank you!
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
14,453
Helped
4,745
Reputation
9,505
Reaction score
4,519
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
123,275
I doubt it if you use the library routines provided. Note the receive warning about it being a blocking routine, that means it sits inside the routine until all the bits of a byte have been received, this implies it cannot simultaneously be checking another pin for data.

It is possible to do it if you write your own routines though. One sofware UART is easy, it can get quite complicated to run several at once, especially at different speeds but I have done it in the past with 8 software UARTS running concurently so it can be done.

Brian.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top