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.

[SOLVED] how to use the modified lib UART MPLABX?

Status
Not open for further replies.

TiagoRibeiro

Full Member level 2
Full Member level 2
Joined
Oct 29, 2013
Messages
130
Helped
18
Reputation
36
Reaction score
17
Trophy points
28
Location
São Paulo/Brazil
Visit site
Activity points
765
I want to use two UART software. So I modified the lib SW_UART the C18 compiler (as putsUART, putcUART, TX and RX pin). My doubt is .. how to include this modified files in my project?
Thank you
 

Software UARTs have several limitations, maximum baud rate and consumption of execution cycles another.

Attempting to successfully manage two independent instantiations concurrently of a software UART, maybe pushing it, depending the system clock rate of your PIC microcontroller.

What is the model of the PIC you are currently utilizing and what is the system clock rate? What are the required baud rates of each UART?

Why not utilize a PIC18 with two UARTs?

You maybe more successful using an Analog Multiplexer with your single hardware UART.

**broken link removed**
If all UARTs aren’t used simultaneously in the application, time-multiplexing a hardware UART module to four UART-enabled peripherals can be accomplished with a hardware multiplexer and a few MCU I/O lines (Fig. 1). In this case, the control program will map UART hardware to the required peripheral by controlling multiplexers.

**broken link removed**


Another option is to utilize one of several external UART with SPI interface, several devices offer more than one UART with a single SPI interface.



BigDog
 

what I'm doing is to reuse an existing project that uses the pic18f4680, bluetooth module and CAN communication. What I'm wanting to do is use this same project to put in place the bluetooth module, a GPS and GPRS and maintain CAN communication.
crystal = 20Mhz
GPS baud = 4800
GPRS baud = 9600
And thank you for your help
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top